Allow non-pinned tags to be colored

This commit is contained in:
Toby Zerner 2015-06-15 12:20:49 +09:30
parent 85d7dc8752
commit ed2fb779e6
2 changed files with 5 additions and 2 deletions

View File

@ -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
}), }),

View File

@ -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;
} }