Added label color box in dropdown

This commit is contained in:
Phil Hughes 2016-03-18 17:11:51 +00:00
parent 8d147219cd
commit 6d40eee5ea
2 changed files with 10 additions and 7 deletions

View file

@ -78,8 +78,11 @@ class @LabelsSelect
else
selected = if label.title is selectedLabel then 'is-active' else ''
color = if label.color? then "<span class='dropdown-label-box' style='background-color: #{label.color}'></span>" else ""
"<li>
<a href='#' class='#{selected}'>
#{color}
#{label.title}
</a>
</li>"

View file

@ -354,11 +354,11 @@
}
}
.dropdown-menu-labels {
.label {
position: relative;
width: 30px;
margin-right: 5px;
text-indent: -99999px;
}
.dropdown-label-box {
position: relative;
top: 3px;
display: inline-block;
width: 20px;
height: 16px;
border-radius: 3px;
}