Skip to content

Commit

Permalink
Fix sidebar line-height. (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored Apr 3, 2020
1 parent 769cc0a commit e839ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/html_handlebars/helpers/toc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ fn write_li_open_tag(
is_expanded: bool,
is_affix: bool,
) -> Result<(), std::io::Error> {
let mut li = String::from("<li class=\"");
let mut li = String::from("<li class=\"chapter-item ");
if is_expanded {
li.push_str("expanded ");
}
Expand Down
2 changes: 1 addition & 1 deletion src/theme/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ ul#searchresults span.teaser em {
display: none;
}

.chapter li.expanded {
.chapter li.chapter-item {
line-height: 1.5em;
margin-top: 0.6em;
}
Expand Down

0 comments on commit e839ef0

Please sign in to comment.