mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 20:34:52 +00:00
we need access to badge category bg in drop down for extensibility
This commit is contained in:
parent
95f8b3ed4c
commit
dd9c23eb5e
@ -1,5 +1,6 @@
|
|||||||
{{#if category}}
|
{{#if category}}
|
||||||
<a href {{action "expand"}} class="badge-category" {{bind-attr style="badgeStyle"}}>
|
<a href {{action "expand"}} class="badge-category" {{bind-attr style="badgeStyle"}}>
|
||||||
|
<span class="badge-category-bg" style="background-color: #{{unbound category.color}};"></span>
|
||||||
{{#if category.read_restricted}}
|
{{#if category.read_restricted}}
|
||||||
{{fa-icon "lock"}}
|
{{fa-icon "lock"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -91,8 +91,14 @@ h1 a.badge-category div {vertical-align: top;}
|
|||||||
|
|
||||||
.category-breadcrumb li > .badge-category {
|
.category-breadcrumb li > .badge-category {
|
||||||
float: left;
|
float: left;
|
||||||
|
&:not(.home):first-child {
|
||||||
|
.badge-category-bg {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.user-preferences .autocomplete .badge-wrapper .badge-category {
|
.user-preferences .autocomplete .badge-wrapper .badge-category {
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user