Skip to content

Commit

Permalink
Rollup merge of rust-lang#64948 - GuillaumeGomez:improve-sidebar-styl…
Browse files Browse the repository at this point in the history
…ing, r=Mark-Simulacrum

Improve sidebar styling to make its integration easier

Part of rust-lang/docs.rs#417

Setting the height was an error: forcing the element bottom to be at the bottom allows to change to top of the sidebar.

r? @Mark-Simulacrum
  • Loading branch information
Centril authored Oct 2, 2019
2 parents 19d035c + 4aa526f commit 1c8ef98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ nav.sub {
position: fixed;
left: 0;
top: 0;
height: 100vh;
bottom: 0;
overflow: auto;
}

Expand Down Expand Up @@ -573,7 +573,7 @@ h4 > code, h3 > code, .invisible > code {
margin-top: 0;
}

nav {
nav:not(.sidebar) {
border-bottom: 1px solid;
padding-bottom: 10px;
margin-bottom: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pre {
pre.rust .comment { color: #8d8d8b; }
pre.rust .doccomment { color: #8ca375; }

nav {
nav:not(.sidebar) {
border-bottom-color: #4e4e4e;
}
nav.main .current {
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pre {
pre.rust .comment { color: #8E908C; }
pre.rust .doccomment { color: #4D4D4C; }

nav {
nav:not(.sidebar) {
border-bottom-color: #e0e0e0;
}
nav.main .current {
Expand Down

0 comments on commit 1c8ef98

Please sign in to comment.