diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index f32252b726c8f..426405e181218 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -983,6 +983,14 @@ h4 > .important-traits { top: 2px; } +@media (max-width: 700px) { + h4 > .important-traits { + position: absolute; + left: -22px; + top: 24px; + } +} + .modal { position: fixed; width: 100vw; @@ -1069,4 +1077,4 @@ h3.important { position: absolute; left: -42px; margin-top: 2px; -} \ No newline at end of file +}