1
0
mirror of https://github.com/til-schneider/slim-wiki.git synced 2025-08-07 09:06:37 +02:00

Improved styling

This commit is contained in:
til-schneider
2015-12-21 11:10:00 +01:00
parent 29d6fe9a12
commit 08e3d7db20
4 changed files with 26 additions and 18 deletions

View File

@@ -36,5 +36,11 @@ table {
width: auto; width: auto;
margin: 0 @contentMinMarginX; margin: 0 @contentMinMarginX;
} }
}
.breadcrumbs {
position: fixed;
left: 0;
top: 0;
width: 100%;
} }

View File

@@ -1,9 +1,10 @@
.markdown-body { .content {
font-size: 16px; font-size: 16px;
color: @colorText; color: @colorText;
line-height: 1.4; line-height: 1.4;
padding-top: 30px;
p, blockquote, ul, ol, dl, li, table, pre, h5, h6 { p, h5, h6 {
margin: 15px 0; margin: 15px 0;
} }
@@ -11,20 +12,20 @@
line-height: 1.2; line-height: 1.2;
color: #0d0d0d; color: #0d0d0d;
} }
h1, h2 { h1, h2, h3 {
font-weight: normal; font-weight: normal;
} }
h1 { h1 {
margin: 80px 0 50px; margin: 60px 0 40px;
font-size: 52px; font-size: 40px;
} }
h2 { h2 {
margin: 60px 0 40px; margin: 45px 0 30px;
font-size: 42px; font-size: 30px;
} }
h3 { h3 {
margin: 40px 0; margin: 38px 0 25px;
font-size: 28px; font-size: 25px;
} }
h4 { h4 {
margin: 20px 0; margin: 20px 0;
@@ -34,12 +35,17 @@
font-size: 18px; font-size: 18px;
} }
h6 { h6 {
font-size: 16px; font-size: 18px;
font-weight: normal;
font-style: italic;
} }
ul, ol { ul, ol {
margin: 0 0 45px; margin: 0 0 45px;
} }
li {
margin: 5px 0;
}
blockquote { blockquote {
margin: 20px 0 20px 10px; margin: 20px 0 20px 10px;
@@ -61,13 +67,14 @@
pre { pre {
overflow: auto; overflow: auto;
margin: 20px 0;
} }
pre > code { pre > code {
display: block; display: block;
border: 1px solid #CCCCCC; border: 1px solid #CCCCCC;
line-height: 1.2; line-height: 1.2;
margin: 20px 0; margin: 0;
padding: 15px 10px; padding: 15px 10px;
} }

View File

@@ -19,11 +19,6 @@ a:hover, a:active {
// Views // Views
.breadcrumbs { .breadcrumbs {
position: fixed;
left: 0;
top: 0;
width: 100%;
background-color: white; background-color: white;
.main-column { .main-column {

View File

@@ -36,7 +36,7 @@
$isFirst = false; $isFirst = false;
} }
?></div></nav> ?></div></nav>
<article class="markdown-body main-column"><?php echo $data['articleHtml']; ?></article> <article class="content main-column"><?php echo $data['articleHtml']; ?></article>
</body> </body>
<!-- build:js client/view.js --> <!-- build:js client/view.js -->