about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-08 14:38:21 +0200
committerGitHub <noreply@github.com>2022-10-08 14:38:21 +0200
commitb8ac02b27b2e3798914290308426b818348d2824 (patch)
tree29ab20f6ce2d07af1f54e90576ba786907d030bf
parentd81aa7c9fecd8036539f5200f6e08988fddd3e14 (diff)
parentb2369cb63647d43436731e7f0e6940bfd07fc2d5 (diff)
downloadrust-b8ac02b27b2e3798914290308426b818348d2824.tar.gz
rust-b8ac02b27b2e3798914290308426b818348d2824.zip
Rollup merge of #102798 - notriddle:notriddle/text-decoration-underline, r=GuillaumeGomez
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 61610aed1f4..480b893596c 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,