mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Allow non-pinned tags to be colored
This commit is contained in:
parent
85d7dc8752
commit
ed2fb779e6
|
@ -96,7 +96,8 @@ export default class TagDiscussionModal extends FormModal {
|
||||||
? m('li', {
|
? m('li', {
|
||||||
'data-index': tag.id(),
|
'data-index': tag.id(),
|
||||||
className: classList({
|
className: classList({
|
||||||
category: tag.position() !== null,
|
pinned: tag.position() !== null,
|
||||||
|
colored: !!tag.color(),
|
||||||
selected: selected.indexOf(tag) !== -1,
|
selected: selected.indexOf(tag) !== -1,
|
||||||
active: this.index() == tag
|
active: this.index() == tag
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -162,13 +162,15 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&.category {
|
&.pinned {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
|
|
||||||
& .name {
|
& .name {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
&.colored {
|
||||||
&.selected .tag-icon:before {
|
&.selected .tag-icon:before {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user