Skip to content

Commit

Permalink
Rollup merge of rust-lang#85470 - GuillaumeGomez:fix-css-rules, r=jsha
Browse files Browse the repository at this point in the history
Fix invalid CSS rules for a:hover

When hovering some links:

![Screenshot from 2021-05-19 15-00-31](https://user-images.githubusercontent.com/3050060/118823585-5f2a4b80-b8b9-11eb-8043-bb7759a178c7.png)
![Screenshot from 2021-05-19 15-00-29](https://user-images.githubusercontent.com/3050060/118823566-5b96c480-b8b9-11eb-8c4e-08e490752fbf.png)

It is a side-effect from rust-lang#84462.

r? ```@jsha```
  • Loading branch information
RalfJung committed May 19, 2021
2 parents 2065c4b + ec32bcf commit b2becf0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions src/librustdoc/html/static/themes/ayu.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,14 @@ pre, .rustdoc.source .example-wrap {
color: #c5c5c5;
}

.content a:hover {
.search-results a:hover {
background-color: #777;
}

.content a:focus {
.search-results a:focus {
color: #000 !important;
background-color: #c6afb3;
}
.content a:focus {
color: #000 !important;
}
.search-results a {
color: #0096cf;
}
Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ pre, .rustdoc.source .example-wrap {
color: #ddd;
}

.content a:hover {
.search-results a:hover {
background-color: #777;
}

.content a:focus {
.search-results a:focus {
color: #eee !important;
background-color: #616161;
}
Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ pre, .rustdoc.source .example-wrap {
color: #4E4C4C;
}

.content a:hover {
.search-results a:hover {
background-color: #ddd;
}

.content a:focus {
.search-results a:focus {
color: #000 !important;
background-color: #ccc;
}
Expand Down

0 comments on commit b2becf0

Please sign in to comment.