about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-07 17:05:30 -0700
committerMichael Howell <michael@notriddle.com>2022-10-07 17:05:30 -0700
commitb2369cb63647d43436731e7f0e6940bfd07fc2d5 (patch)
tree3f04f1f529c8acc27fecbef9a0d77040abc4a372
parent2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4 (diff)
downloadrust-b2369cb63647d43436731e7f0e6940bfd07fc2d5.tar.gz
rust-b2369cb63647d43436731e7f0e6940bfd07fc2d5.zip
rustdoc: add main-heading and example-wrap link CSS to big selector
This makes the stylesheet more consistent about how it handles link hover.
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index e29abbec69c..1341229915a 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -163,9 +163,6 @@ h1.fqn {
 	padding-bottom: 6px;
 	margin-bottom: 15px;
 }
-.main-heading a:hover {
-	text-decoration: underline;
-}
 #toggle-all-docs {
 	text-decoration: none;
 }
@@ -584,10 +581,6 @@ pre.example-line-numbers {
 	border-bottom-left-radius: 5px;
 }
 
-.example-wrap > pre.rust a:hover {
-	text-decoration: underline;
-}
-
 .src-line-numbers {
 	text-align: right;
 }
@@ -767,6 +760,8 @@ h2.small-section-header > .anchor {
 	content: 'ยง';
 }
 
+.main-heading a:hover,
+.example-wrap > pre.rust a:hover,
 .all-items a:hover,
 .docblock a:not(.test-arrow):not(.scrape-help):hover,
 .docblock-short a:not(.test-arrow):not(.scrape-help):hover,