Skip to content

Commit 120e9cb

Browse files
committed
Rollup merge of rust-lang#58303 - GuillaumeGomez:stability-tags-display, r=QuietMisdreavus
Improve stability tags display The issue was the font color on dark theme. Fixed now: <img width="352" alt="screenshot 2019-02-08 at 14 15 24" src="https://user-images.githubusercontent.com/3050060/52483276-bd810380-2bb3-11e9-8d46-95368569ac85.png"> r? @QuietMisdreavus
2 parents 5a06eab + 9fa01da commit 120e9cb

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

src/librustdoc/html/render.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2787,8 +2787,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
27872787
<tr class='{stab}{add}module-item'>\
27882788
<td><a class=\"{class}\" href=\"{href}\" \
27892789
title='{title}'>{name}</a>{unsafety_flag}</td>\
2790-
<td class='docblock-short'>{stab_tags}{docs}\
2791-
</td>\
2790+
<td class='docblock-short'>{stab_tags}{docs}</td>\
27922791
</tr>",
27932792
name = *myitem.name.as_ref().unwrap(),
27942793
stab_tags = stability_tags(myitem),

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ a.test-arrow {
190190
box-shadow: 1px 0 0 1px #000, 0 0 0 2px transparent;
191191
}
192192

193-
.stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #404040; }
194-
.stab.internal { background: #FFB9B3; border-color: #B71C1C; color: #404040; }
195-
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #404040; }
196-
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #404040; }
197-
198193
.module-item .stab {
199194
color: #ddd;
200195
}
201196

197+
.stab.unstable {background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
198+
.stab.internal { background: #FFB9B3; border-color: #B71C1C; color: #2f2f2f; }
199+
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #2f2f2f; }
200+
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #2f2f2f; }
201+
202202
#help > div {
203203
background: #4d4d4d;
204204
border-color: #bfbfbf;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ a.test-arrow {
191191
box-shadow: 1px 0 0 1px #e0e0e0, 0 0 0 2px transparent;
192192
}
193193

194+
.module-item .stab {
195+
color: #000;
196+
}
197+
194198
.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
195199
.stab.internal { background: #FFB9B3; border-color: #B71C1C; }
196200
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
197201
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
198202

199-
.module-item .stab {
200-
color: #000;
201-
}
202-
203203
#help > div {
204204
background: #e9e9e9;
205205
border-color: #bfbfbf;

0 commit comments

Comments
 (0)