File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/librustdoc/html/static/css Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1414 and on the RUSTDOC_MOBILE_BREAKPOINT */
1515 --desktop-sidebar-width : 200px ;
1616 --src-sidebar-width : 300px ;
17+ --desktop-sidebar-z-index : 100 ;
1718}
1819
1920/* See FiraSans-LICENSE.txt for the Fira Sans license. */
@@ -386,7 +387,7 @@ img {
386387 height : 100vh ;
387388 top : 0 ;
388389 left : 0 ;
389- z-index : 100 ;
390+ z-index : var ( --desktop-sidebar-z-index ) ;
390391}
391392
392393.rustdoc .src .sidebar {
@@ -407,7 +408,7 @@ img {
407408 touch-action : none;
408409 width : 9px ;
409410 cursor : col-resize;
410- z-index : 200 ;
411+ z-index : calc ( var ( --desktop-sidebar-z-index ) + 1 ) ;
411412 position : fixed;
412413 height : 100% ;
413414 /* 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 */
10451046 position : absolute;
10461047 top : 100% ;
10471048 right : 0 ;
1048- z-index : 101 ;
1049+ z-index : calc ( var ( --desktop-sidebar-z-index ) + 1 ) ;
10491050 margin-top : 7px ;
10501051 border-radius : 3px ;
10511052 border : 1px solid var (--border-color );
@@ -1556,7 +1557,7 @@ a.tooltip:hover::after {
15561557 height : 34px ;
15571558 width : 34px ;
15581559 background-color : var (--main-background-color );
1559- z-index : 101 ;
1560+ z-index : calc ( var ( --desktop-sidebar-z-index ) + 1 ) ;
15601561}
15611562.hide-sidebar .src # sidebar-button {
15621563 position : static;
You can’t perform that action at this time.
0 commit comments