Skip to content

Commit 868833f

Browse files
Fix code block display in portability element in dark theme
1 parent 89573b3 commit 868833f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ a.test-arrow {
189189
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #2f2f2f; }
190190
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #2f2f2f; }
191191

192+
.stab > code {
193+
color: #ddd;
194+
}
195+
192196
#help > div {
193197
background: #4d4d4d;
194198
border-color: #bfbfbf;

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

+4
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ a.test-arrow {
190190
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
191191
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
192192

193+
.stab > code {
194+
color: #000;
195+
}
196+
193197
#help > div {
194198
background: #e9e9e9;
195199
border-color: #bfbfbf;

0 commit comments

Comments
 (0)