Skip to content

Commit 9aa48ba

Browse files
committed
No background for code in portability snippets
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.
1 parent 7a7bbdb commit 9aa48ba

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/librustdoc/html/static/themes/ayu.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ a {
266266

267267
.stab.portability > code {
268268
color: #e6e1cf;
269-
background-color: transparent;
269+
background: none;
270270
}
271271

272272
#help > div {

src/librustdoc/html/static/themes/dark.css

+1-4
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,7 @@ a.test-arrow {
222222
.stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
223223
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #2f2f2f; }
224224
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #2f2f2f; }
225-
226-
.stab.portability > code {
227-
color: #ddd;
228-
}
225+
.stab.portability > code { background: none; }
229226

230227
#help > div {
231228
background: #4d4d4d;

src/librustdoc/html/static/themes/light.css

+1-4
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ a.test-arrow {
220220
.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
221221
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
222222
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
223-
224-
.stab.portability > code {
225-
color: #000;
226-
}
223+
.stab.portability > code { background: none; }
227224

228225
#help > div {
229226
background: #e9e9e9;

0 commit comments

Comments
 (0)