File tree 1 file changed +14
-16
lines changed
src/librustdoc/html/static/css
1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,7 @@ main {
257
257
position : relative;
258
258
flex-grow : 1 ;
259
259
padding : 10px 15px 40px 45px ;
260
- height : 100vh ;
261
- overflow-y : auto;
260
+ min-width : 0 ;
262
261
}
263
262
264
263
.source main {
@@ -325,12 +324,13 @@ nav.sub {
325
324
.sidebar {
326
325
width : 200px ;
327
326
overflow-y : scroll;
327
+ position : sticky;
328
+ min-width : 200px ;
329
+ height : 100vh ;
328
330
}
329
331
330
332
.rustdoc .source .sidebar {
331
- overflow-y : auto;
332
- min-width : 200px ;
333
- height : 100vh ;
333
+ overflow : auto;
334
334
}
335
335
336
336
.source .sidebar {
@@ -1675,10 +1675,8 @@ details.rustdoc-toggle[open] > summary.hideme::after {
1675
1675
}
1676
1676
1677
1677
main {
1678
- height : auto;
1679
1678
padding-left : 15px ;
1680
1679
padding-top : 0px ;
1681
- overflow-y : visible;
1682
1680
}
1683
1681
1684
1682
.rustdoc {
@@ -1704,6 +1702,15 @@ details.rustdoc-toggle[open] > summary.hideme::after {
1704
1702
z-index : 11 ;
1705
1703
}
1706
1704
1705
+ .sidebar .mobile {
1706
+ position : sticky !important ;
1707
+ top : 0 ;
1708
+ left : 0 ;
1709
+ width : 100% ;
1710
+ margin-left : 0 ;
1711
+ background-color : rgba (0 , 0 , 0 , 0 );
1712
+ }
1713
+
1707
1714
.sidebar > .location {
1708
1715
float : right;
1709
1716
margin : 0px ;
@@ -1839,15 +1846,6 @@ details.rustdoc-toggle[open] > summary.hideme::after {
1839
1846
height : 50px ;
1840
1847
}
1841
1848
1842
- .sidebar .mobile {
1843
- position : sticky;
1844
- top : 0 ;
1845
- left : 0 ;
1846
- width : 100% ;
1847
- margin-left : 0 ;
1848
- background-color : rgba (0 , 0 , 0 , 0 );
1849
- }
1850
-
1851
1849
.show-it , .sidebar-elems : focus-within {
1852
1850
z-index : 2 ;
1853
1851
left : 0 ;
You can’t perform that action at this time.
0 commit comments