Make line-height for chapter greater than section

Fixes #166
This commit is contained in:
Boris Egorov 2016-09-04 22:04:55 +07:00
parent 9e634a4e83
commit 49608b560b
2 changed files with 4 additions and 46 deletions

View File

@ -72,7 +72,7 @@ table thead td {
.chapter { .chapter {
list-style: none outside none; list-style: none outside none;
padding-left: 0; padding-left: 0;
line-height: 1.9em; line-height: 2.2em;
} }
.chapter li a { .chapter li a {
padding: 5px 0; padding: 5px 0;
@ -89,7 +89,7 @@ table thead td {
.section { .section {
list-style: none outside none; list-style: none outside none;
padding-left: 20px; padding-left: 20px;
line-height: 2.5em; line-height: 1.9em;
} }
.section li { .section li {
-o-text-overflow: ellipsis; -o-text-overflow: ellipsis;
@ -254,7 +254,6 @@ table thead td {
position: relative; position: relative;
left: 10px; left: 10px;
z-index: 1000; z-index: 1000;
-webkit-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
font-size: 0.7em; font-size: 0.7em;
} }
@ -264,15 +263,6 @@ table thead td {
line-height: 25px; line-height: 25px;
white-space: nowrap; white-space: nowrap;
} }
.theme-popup .theme:hover:first-child {
border-top-left-radius: inherit;
border-top-right-radius: inherit;
}
.theme-popup .theme:hover:last-child {
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
}
@media only screen and (max-width: 1250px) { @media only screen and (max-width: 1250px) {
.nav-chapters { .nav-chapters {
display: none; display: none;
@ -295,7 +285,6 @@ table thead td {
position: relative; position: relative;
display: inline-block; display: inline-block;
margin-bottom: 50px; margin-bottom: 50px;
-webkit-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
} }
.next { .next {
@ -398,7 +387,6 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.light pre { .light pre {
@ -513,7 +501,6 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.coal pre { .coal pre {
@ -628,7 +615,6 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.navy pre { .navy pre {
@ -743,7 +729,6 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.rust pre { .rust pre {
@ -765,30 +750,3 @@ table thead td {
.rust pre > .result { .rust pre > .result {
margin-top: 10px; margin-top: 10px;
} }
@media print {
#sidebar {
display: none;
}
#page-wrapper {
left: 0;
overflow-y: initial;
}
#content {
max-width: none;
margin: 0;
padding: 0;
}
#menu-bar {
display: none;
}
.page {
overflow-y: initial;
}
.nav-chapters {
display: none;
}
.mobile-nav-chapters {
display: none;
}
}

View File

@ -35,7 +35,7 @@
.chapter { .chapter {
list-style: none outside none list-style: none outside none
padding-left: 0 padding-left: 0
line-height: 1.9em line-height: 2.2em
li a { li a {
padding: 5px 0 padding: 5px 0
@ -54,7 +54,7 @@
.section { .section {
list-style: none outside none list-style: none outside none
padding-left: 20px padding-left: 20px
line-height: 2.5em line-height: 1.9em
li { li {
text-overflow: ellipsis text-overflow: ellipsis