File tree 2 files changed +27
-4
lines changed
src/librustdoc/html/static
2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -822,6 +822,7 @@ span.since {
822
822
margin-left : -15px ;
823
823
padding : 0 15px ;
824
824
position : static;
825
+ z-index : 1 ;
825
826
}
826
827
827
828
.sidebar > .location {
@@ -848,25 +849,34 @@ span.since {
848
849
}
849
850
850
851
.sidebar-menu {
851
- position : absolute;
852
+ position : fixed;
853
+ z-index : 10 ;
852
854
font-size : 2rem ;
853
855
cursor : pointer;
854
- margin-top : 2px ;
856
+ width : 45px ;
857
+ left : 0 ;
858
+ text-align : center;
855
859
display : block;
860
+ border-bottom : 1px solid;
861
+ border-right : 1px solid;
856
862
}
857
863
858
864
.sidebar-elems {
859
- background-color : # F1F1F1 ;
860
865
position : fixed;
861
866
z-index : 1 ;
862
867
left : 0 ;
863
868
top : 45px ;
864
869
bottom : 0 ;
865
870
overflow-y : auto;
866
- border-right : 1px solid # 000 ;
871
+ border-right : 1px solid;
867
872
display : none;
868
873
}
869
874
875
+ .sidebar > .block .version {
876
+ border-bottom : none;
877
+ margin-top : 12px ;
878
+ }
879
+
870
880
nav .sub {
871
881
margin : 0 auto;
872
882
}
Original file line number Diff line number Diff line change @@ -330,3 +330,16 @@ pre.ignore:hover, .information:hover + pre.ignore {
330
330
.modal-content > .close : hover + .whiter {
331
331
background-color : # ff1f1f ;
332
332
}
333
+
334
+ @media (max-width : 700px ) {
335
+ .sidebar-menu {
336
+ background-color : # F1F1F1 ;
337
+ border-bottom-color : # e0e0e0 ;
338
+ border-right-color : # e0e0e0 ;
339
+ }
340
+
341
+ .sidebar-elems {
342
+ background-color : # F1F1F1 ;
343
+ border-right-color : # 000 ;
344
+ }
345
+ }
You can’t perform that action at this time.
0 commit comments