Skip to content

Make line-height for chapter greater than section #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 2 additions & 44 deletions src/theme/book.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ table thead td {
.chapter {
list-style: none outside none;
padding-left: 0;
line-height: 1.9em;
line-height: 2.2em;
}
.chapter li a {
padding: 5px 0;
Expand All @@ -89,7 +89,7 @@ table thead td {
.section {
list-style: none outside none;
padding-left: 20px;
line-height: 2.5em;
line-height: 1.9em;
}
.section li {
-o-text-overflow: ellipsis;
Expand Down Expand Up @@ -254,7 +254,6 @@ table thead td {
position: relative;
left: 10px;
z-index: 1000;
-webkit-border-radius: 4px;
border-radius: 4px;
font-size: 0.7em;
}
Expand All @@ -264,15 +263,6 @@ table thead td {
line-height: 25px;
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) {
.nav-chapters {
display: none;
Expand All @@ -295,7 +285,6 @@ table thead td {
position: relative;
display: inline-block;
margin-bottom: 50px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.next {
Expand Down Expand Up @@ -398,7 +387,6 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.light pre {
Expand Down Expand Up @@ -513,7 +501,6 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.coal pre {
Expand Down Expand Up @@ -628,7 +615,6 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.navy pre {
Expand Down Expand Up @@ -743,7 +729,6 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.rust pre {
Expand All @@ -765,30 +750,3 @@ table thead td {
.rust pre > .result {
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;
}
}
4 changes: 2 additions & 2 deletions src/theme/stylus/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
.chapter {
list-style: none outside none
padding-left: 0
line-height: 1.9em
line-height: 2.2em

li a {
padding: 5px 0
Expand All @@ -54,7 +54,7 @@
.section {
list-style: none outside none
padding-left: 20px
line-height: 2.5em
line-height: 1.9em

li {
text-overflow: ellipsis
Expand Down