Skip to content

Commit 9da9c3b

Browse files
Small improvement for the sidebar on mobile devices
1 parent c0d40a1 commit 9da9c3b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/librustdoc/html/static/rustdoc.css

+7-5
Original file line numberDiff line numberDiff line change
@@ -764,17 +764,19 @@ span.since {
764764
}
765765

766766
.sidebar {
767-
height: 40px;
767+
height: 45px;
768768
min-height: 40px;
769-
width: 100%;
770-
margin: 0px;
771-
padding: 0px;
769+
width: calc(100% + 30px);
770+
margin: 0;
771+
margin-left: -15px;
772+
padding: 0 15px;
772773
position: static;
773774
}
774775

775776
.sidebar .location {
776777
float: right;
777778
margin: 0px;
779+
margin-top: 2px;
778780
padding: 3px 10px 1px 10px;
779781
min-height: 39px;
780782
background: inherit;
@@ -789,7 +791,7 @@ span.since {
789791
.sidebar img {
790792
width: 35px;
791793
margin-top: 5px;
792-
margin-bottom: 0px;
794+
margin-bottom: 5px;
793795
float: left;
794796
}
795797

0 commit comments

Comments
 (0)