]> 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 025157713498e07c4d2afe68689d4546a95e85bd..88a412314e058be4820db7b7e9abb2c4bd5261c4 100644 (file)
@@ -167,7 +167,7 @@ h2, h3, h4 {
 h2,
 .top-doc .docblock > h3,
 .top-doc .docblock > h4 {
-       border-bottom: 1px solid;
+       border-bottom: 1px solid var(--headings-border-bottom-color);
 }
 h3.code-header {
        font-size: 1.125rem; /* 18px */
@@ -652,7 +652,7 @@ h2.location a {
 }
 
 .top-doc .docblock h2 { font-size: 1.375rem; }
-.top-doc .docblock h3 { font-size: 1.25; }
+.top-doc .docblock h3 { font-size: 1.25rem; }
 .top-doc .docblock h4,
 .top-doc .docblock h5 {
        font-size: 1.125rem;
@@ -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%;