]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/rustdoc.css
use span instead of div for since version
[rust.git] / src / librustdoc / html / static / rustdoc.css
index 5314255ac322b9d58b221c898e792dc68a48d270..4204d20498d701a5f74a76ded3bdb18c50ac2809 100644 (file)
@@ -345,7 +345,7 @@ nav.sub {
        margin: 0;
 }
 .docblock-short code {
-       white-space: nowrap;
+       white-space: pre-wrap;
 }
 
 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
@@ -914,7 +914,7 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
        height: 12px;
 }
 
-span.since {
+.out-of-band > span.since {
        position: initial;
        font-size: 20px;
        margin-right: 5px;
@@ -1113,6 +1113,10 @@ span.since {
        h1.fqn {
                overflow: initial;
        }
+
+       #main > .line-numbers {
+               margin-top: 0;
+       }
 }
 
 @media print {
@@ -1577,3 +1581,17 @@ div.name.expand::before {
        left: -15px;
        top: 2px;
 }
+
+/* This part is to fix the "Expand attributes" part in the type declaration. */
+.type-decl > pre > :first-child {
+       margin-left: 0 !important;
+}
+.type-decl > pre > :nth-child(2) {
+       margin-left: 1.8em !important;
+}
+.type-decl > pre > .toggle-attributes {
+       margin-left: 2.2em;
+}
+.type-decl > pre > .docblock.attributes {
+       margin-left: 4em;
+}