Skip to content

Commit

Permalink
Rollup merge of rust-lang#102798 - notriddle:notriddle/text-decoratio…
Browse files Browse the repository at this point in the history
…n-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.
  • Loading branch information
matthiaskrgr authored Oct 8, 2022
2 parents d81aa7c + b2369cb commit b8ac02b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b8ac02b

Please sign in to comment.