Skip to content

Commit 61cc23e

Browse files
committed
Auto merge of #46586 - GuillaumeGomez:fix-mobile-important-display, r=QuietMisdreavus
Fixes doc important trait display on mobile Fixes #46527. r? @QuietMisdreavus
2 parents 69ae2b7 + 0017d50 commit 61cc23e

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
@@ -995,6 +995,14 @@ h4 > .important-traits {
995995
top: 2px;
996996
}
997997

998+
@media (max-width: 700px) {
999+
h4 > .important-traits {
1000+
position: absolute;
1001+
left: -22px;
1002+
top: 24px;
1003+
}
1004+
}
1005+
9981006
.modal {
9991007
position: fixed;
10001008
width: 100vw;
@@ -1068,4 +1076,4 @@ h3.important {
10681076
position: absolute;
10691077
left: -42px;
10701078
margin-top: 2px;
1071-
}
1079+
}

0 commit comments

Comments
 (0)