we need access to badge category bg in drop down for extensibility

This commit is contained in:
Sam 2015-02-06 16:20:55 +11:00
parent 95f8b3ed4c
commit dd9c23eb5e
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{{#if category}}
<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}}
{{fa-icon "lock"}}
{{/if}}

View file

@ -91,8 +91,14 @@ h1 a.badge-category div {vertical-align: top;}
.category-breadcrumb li > .badge-category {
float: left;
&:not(.home):first-child {
.badge-category-bg {
display: none;
}
}
}
.user-preferences .autocomplete .badge-wrapper .badge-category {
margin: 2px;
font-weight: normal;