Skip to content

Commit

Permalink
Rollup merge of #99114 - GuillaumeGomez:css-cleanup, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Group .test-arrow CSS rules and fix rgb/rgba property

Surprisingly, the web browsers were handling the `rgb`/`rgba` typo correctly. At least it now is as expected.

For the rest, it's simply grouping `.test-arrow` rules.

r? `@Dylan-DPC`
  • Loading branch information
matthiaskrgr authored Jul 10, 2022
2 parents e5b91c8 + 2f3624c commit d3286ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/html/static/css/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ a {
color: #D2991D;
}

a.test-arrow {
color: #dedede;
}
body.source .example-wrap pre.rust a {
background: #333;
}
Expand Down Expand Up @@ -255,6 +252,7 @@ pre.rust .question-mark {
}

a.test-arrow {
color: #dedede;
background-color: rgba(78, 139, 202, 0.2);
}

Expand Down
6 changes: 2 additions & 4 deletions src/librustdoc/html/static/css/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ a {
color: #3873AD;
}

a.test-arrow {
color: #f5f5f5;
}
body.source .example-wrap pre.rust a {
background: #eee;
}
Expand Down Expand Up @@ -239,7 +236,8 @@ pre.rust .question-mark {
}

a.test-arrow {
background-color: rgb(78, 139, 202, 0.2);
color: #f5f5f5;
background-color: rgba(78, 139, 202, 0.2);
}

a.test-arrow:hover{
Expand Down

0 comments on commit d3286ff

Please sign in to comment.