Skip to content

Commit 1c8ef98

Browse files
authored
Rollup merge of rust-lang#64948 - GuillaumeGomez:improve-sidebar-styling, 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
2 parents 19d035c + 4aa526f commit 1c8ef98

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ nav.sub {
183183
position: fixed;
184184
left: 0;
185185
top: 0;
186-
height: 100vh;
186+
bottom: 0;
187187
overflow: auto;
188188
}
189189

@@ -573,7 +573,7 @@ h4 > code, h3 > code, .invisible > code {
573573
margin-top: 0;
574574
}
575575

576-
nav {
576+
nav:not(.sidebar) {
577577
border-bottom: 1px solid;
578578
padding-bottom: 10px;
579579
margin-bottom: 10px;

src/librustdoc/html/static/themes/dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pre {
129129
pre.rust .comment { color: #8d8d8b; }
130130
pre.rust .doccomment { color: #8ca375; }
131131

132-
nav {
132+
nav:not(.sidebar) {
133133
border-bottom-color: #4e4e4e;
134134
}
135135
nav.main .current {

src/librustdoc/html/static/themes/light.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pre {
129129
pre.rust .comment { color: #8E908C; }
130130
pre.rust .doccomment { color: #4D4D4C; }
131131

132-
nav {
132+
nav:not(.sidebar) {
133133
border-bottom-color: #e0e0e0;
134134
}
135135
nav.main .current {

0 commit comments

Comments
 (0)