File tree 1 file changed +5
-4
lines changed
src/librustdoc/html/static/css
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 14
14
and on the RUSTDOC_MOBILE_BREAKPOINT */
15
15
--desktop-sidebar-width : 200px ;
16
16
--src-sidebar-width : 300px ;
17
+ --desktop-sidebar-z-index : 100 ;
17
18
}
18
19
19
20
/* See FiraSans-LICENSE.txt for the Fira Sans license. */
@@ -386,7 +387,7 @@ img {
386
387
height : 100vh ;
387
388
top : 0 ;
388
389
left : 0 ;
389
- z-index : 100 ;
390
+ z-index : var ( --desktop-sidebar-z-index ) ;
390
391
}
391
392
392
393
.rustdoc .src .sidebar {
@@ -407,7 +408,7 @@ img {
407
408
touch-action : none;
408
409
width : 9px ;
409
410
cursor : col-resize;
410
- z-index : 200 ;
411
+ z-index : calc ( var ( --desktop-sidebar-z-index ) + 1 ) ;
411
412
position : fixed;
412
413
height : 100% ;
413
414
/* make sure there's a 1px gap between the scrollbar and resize handle */
@@ -1045,7 +1046,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
1045
1046
position : absolute;
1046
1047
top : 100% ;
1047
1048
right : 0 ;
1048
- z-index : 101 ;
1049
+ z-index : calc ( var ( --desktop-sidebar-z-index ) + 1 ) ;
1049
1050
margin-top : 7px ;
1050
1051
border-radius : 3px ;
1051
1052
border : 1px solid var (--border-color );
@@ -1556,7 +1557,7 @@ a.tooltip:hover::after {
1556
1557
height : 34px ;
1557
1558
width : 34px ;
1558
1559
background-color : var (--main-background-color );
1559
- z-index : 101 ;
1560
+ z-index : calc ( var ( --desktop-sidebar-z-index ) + 1 ) ;
1560
1561
}
1561
1562
.hide-sidebar .src # sidebar-button {
1562
1563
position : static;
You can’t perform that action at this time.
0 commit comments