diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-10-28 07:06:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-28 07:06:47 +0200 |
| commit | 32c96248c5076dd92f9084409b8deddc2667b83f (patch) | |
| tree | 652009d16ef6d806b1b33576fb75c7e76390384a /src/librustdoc/html/static/css | |
| parent | 19b406d16bb587cff56b837203f28f8b1966d651 (diff) | |
| parent | dd912add18e0a0498e3032781ea73ee846ee76cf (diff) | |
| download | rust-32c96248c5076dd92f9084409b8deddc2667b83f.tar.gz rust-32c96248c5076dd92f9084409b8deddc2667b83f.zip | |
Rollup merge of #103643 - notriddle:notriddle/summary-focus-visible, r=GuillaumeGomez
rustdoc: stop hiding focus outlines on non-rustdoc-toggle details tags We really shouldn't be overriding this kind of stuff unless the browser default is really broken (like outlining the thing that isn't clickable). This directly reverts b8f4e74cbc938d3448507d422c98061c2b71c922.
Diffstat (limited to 'src/librustdoc/html/static/css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index c1c37f5b11d..09371dc027b 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -292,10 +292,6 @@ p:last-child { margin: 0; } -summary { - outline: none; -} - /* Fix some style changes due to normalize.css 8 */ button { @@ -1535,6 +1531,8 @@ details.rustdoc-toggle > summary.hideme { details.rustdoc-toggle > summary { list-style: none; + /* focus outline is shown on `::before` instead of this */ + outline: none; } details.rustdoc-toggle > summary::-webkit-details-marker, details.rustdoc-toggle > summary::marker { |
