1
Fork 0

Rollup merge of #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
This commit is contained in:
kennytm 2019-02-20 01:13:15 +08:00
commit 120e9cb70f
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
3 changed files with 10 additions and 11 deletions

View file

@ -2787,8 +2787,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
<tr class='{stab}{add}module-item'>\ <tr class='{stab}{add}module-item'>\
<td><a class=\"{class}\" href=\"{href}\" \ <td><a class=\"{class}\" href=\"{href}\" \
title='{title}'>{name}</a>{unsafety_flag}</td>\ title='{title}'>{name}</a>{unsafety_flag}</td>\
<td class='docblock-short'>{stab_tags}{docs}\ <td class='docblock-short'>{stab_tags}{docs}</td>\
</td>\
</tr>", </tr>",
name = *myitem.name.as_ref().unwrap(), name = *myitem.name.as_ref().unwrap(),
stab_tags = stability_tags(myitem), stab_tags = stability_tags(myitem),

View file

@ -190,15 +190,15 @@ a.test-arrow {
box-shadow: 1px 0 0 1px #000, 0 0 0 2px transparent; box-shadow: 1px 0 0 1px #000, 0 0 0 2px transparent;
} }
.stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #404040; }
.stab.internal { background: #FFB9B3; border-color: #B71C1C; color: #404040; }
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #404040; }
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #404040; }
.module-item .stab { .module-item .stab {
color: #ddd; color: #ddd;
} }
.stab.unstable {background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
.stab.internal { background: #FFB9B3; border-color: #B71C1C; color: #2f2f2f; }
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #2f2f2f; }
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #2f2f2f; }
#help > div { #help > div {
background: #4d4d4d; background: #4d4d4d;
border-color: #bfbfbf; border-color: #bfbfbf;

View file

@ -191,15 +191,15 @@ a.test-arrow {
box-shadow: 1px 0 0 1px #e0e0e0, 0 0 0 2px transparent; box-shadow: 1px 0 0 1px #e0e0e0, 0 0 0 2px transparent;
} }
.module-item .stab {
color: #000;
}
.stab.unstable { background: #FFF5D6; border-color: #FFC600; } .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
.stab.internal { background: #FFB9B3; border-color: #B71C1C; } .stab.internal { background: #FFB9B3; border-color: #B71C1C; }
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; } .stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; } .stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
.module-item .stab {
color: #000;
}
#help > div { #help > div {
background: #e9e9e9; background: #e9e9e9;
border-color: #bfbfbf; border-color: #bfbfbf;