diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2022-11-18 17:48:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-18 17:48:19 -0500 |
| commit | 9db23f8d30e8d00e2e5e18b51f7bb8e582520600 (patch) | |
| tree | 39cfe78848e60f981dd45db69bfff7987a3602a7 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | a065e97bdc599406f4cea8dad90cc5f215a4e61a (diff) | |
| parent | 616f34e3c3068b0d39c969cb91695d3ea6e3a71c (diff) | |
| download | rust-9db23f8d30e8d00e2e5e18b51f7bb8e582520600.tar.gz rust-9db23f8d30e8d00e2e5e18b51f7bb8e582520600.zip | |
Rollup merge of #104556 - notriddle:notriddle/variant, r=GuillaumeGomez
rustdoc: use `code-header` class to format enum variants The font size and weights should be exactly the same after this PR, but the spacing is changed to be the same as methods. Preview: http://notriddle.com/notriddle-rustdoc-demos/variant/test_dingus_enum/enum.TestEnum.html
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 5ec2fe47e01..27bd893b7aa 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -706,8 +706,6 @@ a { } .small-section-header { - display: flex; - justify-content: space-between; position: relative; } @@ -715,7 +713,7 @@ a { display: initial; } -.impl:hover > .anchor, .trait-impl:hover > .anchor { +.impl:hover > .anchor, .trait-impl:hover > .anchor, .variant:hover > .anchor { display: inline-block; position: absolute; } @@ -1234,12 +1232,6 @@ a.test-arrow:hover { font-size: 1.25rem; } -h3.variant { - font-weight: 600; - font-size: 1.125rem; - margin-bottom: 10px; -} - .sub-variant h4 { font-size: 1rem; font-weight: 400; @@ -1908,6 +1900,7 @@ in storage.js } } +.variant, .implementors-toggle > summary, .impl, #implementors-list > .docblock, @@ -1919,6 +1912,7 @@ in storage.js margin-bottom: 0.75em; } +.variants > .docblock, .impl-items > .rustdoc-toggle[open]:not(:last-child), .methods > .rustdoc-toggle[open]:not(:last-child), .implementors-toggle[open]:not(:last-child) { |
