Skip to content

Commit 4aa526f

Browse files
Improve sidebar styling to make its integration easier
1 parent bd9a0aa commit 4aa526f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustdoc/html/static/rustdoc.css

+2-2
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

+1-1
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

+1-1
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)