Skip to content

Commit bf10c88

Browse files
Make scrollbar in the sidebar always visible for visual consistency
1 parent 41301c3 commit bf10c88

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustdoc/html/static/css/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ nav.sub {
303303
left: 0;
304304
top: 0;
305305
bottom: 0;
306-
overflow: auto;
306+
overflow-y: scroll;
307307
}
308308

309309
/* Improve the scrollbar display on firefox */

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ pre, .rustdoc.source .example-wrap {
7070

7171
/* Improve the scrollbar display on firefox */
7272
* {
73-
scrollbar-color: #5c6773 transparent;
73+
scrollbar-color: #5c6773 #24292f;
7474
}
7575

7676
.sidebar {
77-
scrollbar-color: #5c6773 transparent;
77+
scrollbar-color: #5c6773 #24292f;
7878
}
7979

8080
/* Improve the scrollbar display on webkit-based browsers */

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pre, .rustdoc.source .example-wrap {
4444
scrollbar-color: rgb(64, 65, 67) #717171;
4545
}
4646
.sidebar {
47-
scrollbar-color: rgba(32,34,37,.6) transparent;
47+
scrollbar-color: rgba(32,34,37,.6) #5a5a5a;
4848
}
4949

5050
/* Improve the scrollbar display on webkit-based browsers */

0 commit comments

Comments
 (0)