about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustdoc/html/static/rustdoc.css10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index f32252b726c..426405e1812 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
+}