Rollup merge of #64948 - GuillaumeGomez:improve-sidebar-styling, r=Mark-Simulacrum

Improve sidebar styling to make its integration easier

Part of https://github.com/rust-lang/docs.rs/issues/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
This commit is contained in:
Mazdak Farrokhzad
2019-10-02 18:24:35 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ nav.sub {
position: fixed;
left: 0;
top: 0;
height: 100vh;
bottom: 0;
overflow: auto;
}
@@ -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;
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {