mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 03:59:39 +08:00
Correctly style uncolored tags in discussion hero
This commit is contained in:
parent
37c0b91614
commit
b2d2bfa34e
@ -27,7 +27,8 @@ export default function() {
|
||||
extend(DiscussionHero.prototype, 'view', function(view) {
|
||||
var tags = sortTags(this.props.discussion.tags());
|
||||
if (tags && tags.length) {
|
||||
view.attrs.style = 'color: #fff; background-color: '+tags[0].color();
|
||||
view.attrs.style = 'background-color: '+tags[0].color();
|
||||
view.attrs.className += ' discussion-hero-colored';
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -34,6 +34,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.discussion-hero-colored {
|
||||
&, & a {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.tags-label {
|
||||
.discussion-summary & {
|
||||
margin-right: 10px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user