Skip to content

Commit ad55286

Browse files
Fixes for mobile
1 parent 6c278b9 commit ad55286

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

templates/style.scss

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,34 @@ div.rustdoc {
5252
font-family: $font-family-serif;
5353
padding: 10px 15px 20px 15px;
5454

55+
@media (max-width: 700px) {
56+
padding-top: 0;
57+
}
58+
5559
.sidebar {
56-
padding-top: 32px;
60+
@media (min-width: 701px) {
61+
padding-top: 32px;
62+
}
63+
5764
.block > ul > li {
5865
margin-right: -10px;
5966
}
6067
}
6168

69+
@media (max-width: 700px) {
70+
.sidebar.mobile {
71+
top: 32px;
72+
73+
.sidebar-elems.show-it {
74+
top: 77px;
75+
}
76+
77+
#sidebar-filler {
78+
top: 32px;
79+
}
80+
}
81+
}
82+
6283
// this is actual fix for docs.rs navigation and rustdoc sidebar
6384
position: absolute;
6485
left: 0;

0 commit comments

Comments
 (0)