X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustdoc%2Fhtml%2Fstatic%2Fcss%2Frustdoc.css;h=cf3c63d6a8fb6b64b6c1c53f8283041946002204;hb=0b6c7fbbba8540cf33a257022324849580316510;hp=b28c8766f8a8c298dc69b69098cd77d38fb7bd46;hpb=e27ebb5dff38aad9fbaa3d957820a1bd3c8d3bbf;p=rust.git diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index b28c8766f8a..cf3c63d6a8f 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -175,11 +175,13 @@ h3.code-header { h4.code-header { font-size: 1rem; } -h3.code-header, h4.code-header { +.code-header { font-weight: 600; border-bottom-style: none; - padding: 0; margin: 0; + padding: 0; + margin-top: 0.6em; + margin-bottom: 0.4em; } .impl, .impl-items .method, @@ -192,8 +194,6 @@ h3.code-header, h4.code-header { .methods .associatedtype { flex-basis: 100%; font-weight: 600; - margin-top: 16px; - margin-bottom: 10px; position: relative; } @@ -743,21 +743,13 @@ nav.sub { .content .item-info { position: relative; - margin-left: 33px; + margin-left: 24px; } .sub-variant > div > .item-info { margin-top: initial; } -.content .item-info::before { - content: '⬑'; - font-size: 1.5625rem; - position: absolute; - top: -6px; - left: -19px; -} - .content .impl-items .docblock, .content .impl-items .item-info { margin-bottom: .6em; } @@ -776,6 +768,7 @@ nav.sub { #main-content > .item-info { margin-top: 0; + margin-left: 0; } nav.sub { @@ -1124,13 +1117,6 @@ body.blur > :not(#help) { float: right; } -.has-srclink { - font-size: 1rem; - margin-bottom: 12px; - /* Push the src link out to the right edge consistently */ - justify-content: space-between; -} - .variants_table { width: 100%; } @@ -2065,6 +2051,24 @@ details.rustdoc-toggle[open] > summary.hideme::after { } } +.method-toggle summary, +.implementors-toggle summary { + margin-bottom: 0.75em; +} + +.method-toggle[open] { + margin-bottom: 2em; +} + +.implementors-toggle[open] { + margin-bottom: 2em; +} + +#trait-implementations-list .method-toggle, +#synthetic-implementations-list .method-toggle, +#blanket-implementations-list .method-toggle { + margin-bottom: 1em; +} /* Begin: styles for --scrape-examples feature */