Skip to content

Commit 0017d50

Browse files
Fixes doc important trait display on mobile
1 parent 833785b commit 0017d50

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+9-1
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,14 @@ h4 > .important-traits {
983983
top: 2px;
984984
}
985985

986+
@media (max-width: 700px) {
987+
h4 > .important-traits {
988+
position: absolute;
989+
left: -22px;
990+
top: 24px;
991+
}
992+
}
993+
986994
.modal {
987995
position: fixed;
988996
width: 100vw;
@@ -1069,4 +1077,4 @@ h3.important {
10691077
position: absolute;
10701078
left: -42px;
10711079
margin-top: 2px;
1072-
}
1080+
}

0 commit comments

Comments
 (0)