]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/css/rustdoc.css
Rollup merge of #102491 - notriddle:notriddle/sidebar-opacity, r=GuillaumeGomez
[rust.git] / src / librustdoc / html / static / css / rustdoc.css
index 08f797c0e2d1d2b6534046f5d73cea504ff68050..eb5271aaf7e38ce23599f7db8b0a88a8454768c3 100644 (file)
@@ -138,6 +138,13 @@ h1, h2, h3, h4 {
 .docblock h3, .docblock h4, h5, h6 {
        margin: 15px 0 5px 0;
 }
+.docblock > h2:first-child,
+.docblock > h3:first-child,
+.docblock > h4:first-child,
+.docblock > h5:first-child,
+.docblock > h6:first-child {
+       margin-top: 0;
+}
 h1.fqn {
        margin: 0;
        padding: 0;
@@ -187,7 +194,6 @@ h4.code-header {
 .impl-items .associatedtype,
 .methods .associatedtype {
        flex-basis: 100%;
-       font-weight: 600;
        position: relative;
 }
 
@@ -1314,11 +1320,6 @@ h3.variant {
        font-size: 1.25rem;
 }
 
-/* Example code has the "Run" button that needs to be positioned relative to the pre */
-pre.rust.rust-example-rendered {
-       position: relative;
-}
-
 pre.rust {
        tab-size: 4;
        -moz-tab-size: 4;
@@ -2006,7 +2007,8 @@ in storage.js plus the media query with (min-width: 701px)
 
 .method-toggle summary,
 .implementors-toggle summary,
-.impl {
+.impl,
+#implementors-list > .docblock {
        margin-bottom: 0.75em;
 }