]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/css/rustdoc.css
rustdoc mobile: move notable traits to return type
[rust.git] / src / librustdoc / html / static / css / rustdoc.css
index aecc9aa879a69fe1e392723de2c89d9aa8f2d487..88a412314e058be4820db7b7e9abb2c4bd5261c4 100644 (file)
@@ -1111,7 +1111,14 @@ table,
 }
 
 .item-info .stab {
-       display: inline-block;
+       width: fit-content;
+       /* This min-height is needed to unify the height of the stab elements because some of them
+          have emojis.
+       */
+       min-height: 36px;
+       display: flex;
+       align-items: center;
+       white-space: pre-wrap;
 }
 .stab {
        padding: 3px;
@@ -1121,6 +1128,7 @@ table,
 }
 .stab p {
        display: inline;
+       margin: 0;
 }
 
 .stab .emoji {
@@ -1965,12 +1973,6 @@ in storage.js plus the media query with (min-width: 701px)
                display: none !important;
        }
 
-       .notable-traits {
-               position: absolute;
-               left: -22px;
-               top: 24px;
-       }
-
        #titles > button > div.count {
                float: left;
                width: 100%;