diff options
| author | bors <bors@rust-lang.org> | 2022-10-26 14:12:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-26 14:12:16 +0000 |
| commit | 0a6b941df354c59b546ec4c0d27f2b9b0cb1162c (patch) | |
| tree | 54d7e69a23086191d8c755260e36da8e60c8c295 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 43dd3d514b6b11c5195de2fd8e665828801d0972 (diff) | |
| parent | 74a4c679b37ee687cba88534c1e2b22da55f55be (diff) | |
| download | rust-0a6b941df354c59b546ec4c0d27f2b9b0cb1162c.tar.gz rust-0a6b941df354c59b546ec4c0d27f2b9b0cb1162c.zip | |
Auto merge of #103572 - Dylan-DPC:rollup-a8bnxrw, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #95710 (Stabilize arbitrary_enum_discriminant, take 2) - #102706 (Support excluding the generation of the standalone docs) - #103428 (Removed verbose printing from the `PrettyPrinter` when printing constants) - #103543 (Update books) - #103546 (interpret: a bit of cast cleanup) - #103554 (rustdoc: add visible focus outline to rustdoc-toggle) 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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 173553ed477..8424b2c4e29 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1585,6 +1585,15 @@ details.rustdoc-toggle > summary:hover::before { opacity: 1; } +details.rustdoc-toggle > summary:focus-visible::before { + /* The SVG is black, and gets turned white using a filter in the dark themes. + Do the same with the outline. + The dotted 1px style is copied from Firefox's focus ring style. + */ + outline: 1px dotted #000; + outline-offset: 1px; +} + details.rustdoc-toggle.top-doc > summary, details.rustdoc-toggle.top-doc > summary::before, details.rustdoc-toggle.non-exhaustive > summary, |
