diff options
| author | bors <bors@rust-lang.org> | 2022-09-09 20:43:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-09 20:43:13 +0000 |
| commit | 1d37ed661a6922e7a167609b8cd7eb31e972b19b (patch) | |
| tree | d05693f2376caa5a9725b030558f246f5edf995a /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 98f3001eecbe4cbd091c10ffab45b4c164bb507b (diff) | |
| parent | 2e258cec0505f58ffc2d1997acb5f4ea2e279500 (diff) | |
| download | rust-1d37ed661a6922e7a167609b8cd7eb31e972b19b.tar.gz rust-1d37ed661a6922e7a167609b8cd7eb31e972b19b.zip | |
Auto merge of #101611 - GuillaumeGomez:rollup-yw3qtug, r=GuillaumeGomez
Rollup of 5 pull requests Successful merges: - #101475 (Use futex-based locks and thread parker on Hermit) - #101492 (Suggest adding array lengths to references to arrays if possible) - #101495 (Compile spin_loop_hint as pause on x86 even without sse2 enabled) - #101529 (Fix the example code and doctest for Formatter::sign_plus) - #101600 (rustdoc: simplify the codeblock tooltip) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 22217a39012..ec9e3b1ecd1 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -347,10 +347,6 @@ img { max-width: 100%; } -li { - position: relative; -} - .source .content { max-width: none; overflow: visible; @@ -652,7 +648,7 @@ h2.location a { position: relative; } -.docblock > :not(.information):not(.more-examples-toggle) { +.docblock > :not(.more-examples-toggle):not(.example-wrap) { max-width: 100%; overflow-x: auto; } @@ -1169,12 +1165,12 @@ pre.ignore { border-left: 2px solid var(--codeblock-ignore-color); } -pre.compile_fail:hover, .information:hover + .example-wrap pre.compile_fail, -pre.should_panic:hover, .information:hover + .example-wrap pre.should_panic { +.example-wrap:hover pre.compile_fail, +.example-wrap:hover pre.should_panic { border-left: 2px solid var(--codeblock-error-hover-color); } -pre.ignore:hover, .information:hover + .example-wrap pre.ignore { +.example-wrap:hover pre.ignore { border-left: 2px solid var(--codeblock-ignore-hover-color); } @@ -1187,12 +1183,12 @@ pre.ignore:hover, .information:hover + .example-wrap pre.ignore { color: var(--codeblock-ignore-color); } -.information > .compile_fail:hover, -.information > .should_panic:hover { +.example-wrap:hover .tooltip.compile_fail, +.example-wrap:hover .tooltip.should_panic { color: var(--codeblock-error-hover-color); } -.information > .ignore:hover { +.example-wrap:hover .tooltip.ignore { color: var(--codeblock-ignore-hover-color); } @@ -1727,7 +1723,7 @@ in storage.js plus the media query with (max-width: 700px) to prevent an overlay between the "collapse toggle" and the information tooltip. However, it's not needed with smaller screen width because the doc/code block is always put "one line" below. */ - .docblock > .information:first-child > .tooltip { + .docblock > .example-wrap:first-child > .information > .tooltip { margin-top: 16px; } |
