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
commit 1c8ef985f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

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;

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 {

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 {