File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,18 @@ nav.sub {
182182 top : 0 ;
183183 bottom : 0 ;
184184 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 ;
185197}
186198
187199.sidebar .block > ul > li {
Original file line number Diff line number Diff line change 3030
3131.sidebar {
3232 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 );
3345}
3446
3547.sidebar .current {
Original file line number Diff line number Diff line change 3232
3333.sidebar {
3434 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 );
3547}
3648
3749.sidebar .current {
You can’t perform that action at this time.
0 commit comments