about summary refs log tree commit diff
path: root/src/librustdoc/html/static
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-27 09:48:06 -0700
committerMichael Howell <michael@notriddle.com>2022-10-27 10:01:28 -0700
commitdd912add18e0a0498e3032781ea73ee846ee76cf (patch)
treee6c8057ebe0dd9a6704a543726191fc3b79b1328 /src/librustdoc/html/static
parent60b5f6dc9190c1fa10c2ca22d472d32f9689253e (diff)
downloadrust-dd912add18e0a0498e3032781ea73ee846ee76cf.tar.gz
rust-dd912add18e0a0498e3032781ea73ee846ee76cf.zip
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')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css6
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 84a1fa2e28e..5eb876b641c 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 {
@@ -1538,6 +1534,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 {