mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
FIX: add category colors back to categories pages (#21977)
This commit is contained in:
parent
96c6e535a6
commit
e43ac00bf4
|
@ -1,12 +1,7 @@
|
|||
{{#each this.categories as |c|}}
|
||||
<div
|
||||
data-notification-level={{c.notificationLevelString}}
|
||||
style={{unless
|
||||
this.noCategoryStyle
|
||||
(html-safe
|
||||
(concat (border-color c.color) (category-color-variable c.color))
|
||||
)
|
||||
}}
|
||||
style={{unless this.noCategoryStyle (category-color-variable c.color)}}
|
||||
class="category category-box category-box-{{c.slug}}
|
||||
{{if c.isMuted 'muted'}}
|
||||
{{if this.noCategoryStyle 'no-category-boxes-style'}}"
|
||||
|
|
|
@ -5,12 +5,7 @@
|
|||
/>
|
||||
|
||||
<div
|
||||
style={{unless
|
||||
this.noCategoryStyle
|
||||
(html-safe
|
||||
(concat (border-color c.color) (category-color-variable c.color))
|
||||
)
|
||||
}}
|
||||
style={{unless this.noCategoryStyle (category-color-variable c.color)}}
|
||||
data-category-id={{c.id}}
|
||||
data-notification-level={{c.notificationLevelString}}
|
||||
data-url={{c.url}}
|
||||
|
|
|
@ -20,12 +20,7 @@
|
|||
{{if this.noCategoryStyle 'no-category-style'}}"
|
||||
style={{unless
|
||||
this.noCategoryStyle
|
||||
(html-safe
|
||||
(concat
|
||||
(border-color this.category.color)
|
||||
(category-color-variable this.category.color)
|
||||
)
|
||||
)
|
||||
(category-color-variable this.category.color)
|
||||
}}
|
||||
>
|
||||
<CategoryTitleLink @category={{this.category}} />
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
border-width: 0;
|
||||
border-left-width: 6px;
|
||||
border-style: solid;
|
||||
border-color: var(--primary-low);
|
||||
border-color: var(--category-color, var(--primary-low));
|
||||
|
||||
.mobile-view & {
|
||||
width: 100%;
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
|
||||
tbody {
|
||||
.category {
|
||||
border-left: 6px solid;
|
||||
border-left: 6px solid var(--category-color, var(--primary-low));
|
||||
h3,
|
||||
h4 {
|
||||
line-height: var(--line-height-medium);
|
||||
|
|
Loading…
Reference in New Issue
Block a user