File tree 3 files changed +36
-0
lines changed
src/librustdoc/html/static
3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,18 @@ nav.sub {
182
182
top : 0 ;
183
183
bottom : 0 ;
184
184
overflow : auto;
185
+ /* Improve the sidebar display on firefox */
186
+ scrollbar-width : thin;
187
+ }
188
+
189
+ /* Improve the sidebar display on webkit-based browsers */
190
+ .sidebar ::-webkit-scrollbar {
191
+ width : 8px ;
192
+ }
193
+
194
+ /* Improve the sidebar display on webkit-based browsers */
195
+ .sidebar ::-webkit-scrollbar-track {
196
+ -webkit-box-shadow : inset 0 ;
185
197
}
186
198
187
199
.sidebar .block > ul > li {
Original file line number Diff line number Diff line change 30
30
31
31
.sidebar {
32
32
background-color : # 505050 ;
33
+ /* Improve the sidebar display on firefox */
34
+ scrollbar-color : rgba (32 , 34 , 37 , .6 ) transparent;
35
+ }
36
+
37
+ /* Improve the sidebar display on webkit-based browsers */
38
+ .sidebar ::-webkit-scrollbar-track {
39
+ background-color : # 717171 ;
40
+ }
41
+
42
+ /* Improve the sidebar display on webkit-based browsers */
43
+ .sidebar ::-webkit-scrollbar-thumb {
44
+ background-color : rgba (32 , 34 , 37 , .6 );
33
45
}
34
46
35
47
.sidebar .current {
Original file line number Diff line number Diff line change 32
32
33
33
.sidebar {
34
34
background-color : # F1F1F1 ;
35
+ /* Improve the sidebar display on firefox */
36
+ scrollbar-color : rgba (36 , 37 , 39 , 0.6 ) # d9d9d9 ;
37
+ }
38
+
39
+ /* Improve the sidebar display on webkit-based browsers */
40
+ .sidebar ::-webkit-scrollbar-track {
41
+ background-color : # dcdcdc ;
42
+ }
43
+
44
+ /* Improve the sidebar display on webkit-based browsers */
45
+ .sidebar ::-webkit-scrollbar-thumb {
46
+ background-color : rgba (36 , 37 , 39 , 0.6 );
35
47
}
36
48
37
49
.sidebar .current {
You can’t perform that action at this time.
0 commit comments