Skip to content

Commit

Permalink
No background for code in portability snippets
Browse files Browse the repository at this point in the history
This better matches the appearance of this kind of snippet in the full
item view and is less jarring to read due to repeated
foreground-background changes.
  • Loading branch information
nagisa committed Mar 15, 2021
1 parent 7a7bbdb commit 9aa48ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/themes/ayu.css
Expand Up @@ -266,7 +266,7 @@ a {

.stab.portability > code {
color: #e6e1cf;
background-color: transparent;
background: none;
}

#help > div {
Expand Down
5 changes: 1 addition & 4 deletions src/librustdoc/html/static/themes/dark.css
Expand Up @@ -222,10 +222,7 @@ a.test-arrow {
.stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #2f2f2f; }
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #2f2f2f; }

.stab.portability > code {
color: #ddd;
}
.stab.portability > code { background: none; }

#help > div {
background: #4d4d4d;
Expand Down
5 changes: 1 addition & 4 deletions src/librustdoc/html/static/themes/light.css
Expand Up @@ -220,10 +220,7 @@ a.test-arrow {
.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }

.stab.portability > code {
color: #000;
}
.stab.portability > code { background: none; }

#help > div {
background: #e9e9e9;
Expand Down

0 comments on commit 9aa48ba

Please sign in to comment.