Skip to content

Commit b8ac02b

Browse files
authored
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.
2 parents d81aa7c + b2369cb commit b8ac02b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/librustdoc/html/static/css/rustdoc.css

+2-7
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ h1.fqn {
163163
padding-bottom: 6px;
164164
margin-bottom: 15px;
165165
}
166-
.main-heading a:hover {
167-
text-decoration: underline;
168-
}
169166
#toggle-all-docs {
170167
text-decoration: none;
171168
}
@@ -584,10 +581,6 @@ pre.example-line-numbers {
584581
border-bottom-left-radius: 5px;
585582
}
586583

587-
.example-wrap > pre.rust a:hover {
588-
text-decoration: underline;
589-
}
590-
591584
.src-line-numbers {
592585
text-align: right;
593586
}
@@ -767,6 +760,8 @@ h2.small-section-header > .anchor {
767760
content: '§';
768761
}
769762

763+
.main-heading a:hover,
764+
.example-wrap > pre.rust a:hover,
770765
.all-items a:hover,
771766
.docblock a:not(.test-arrow):not(.scrape-help):hover,
772767
.docblock-short a:not(.test-arrow):not(.scrape-help):hover,

0 commit comments

Comments
 (0)