<span class=" badge -secondary">5<i class="icon -basket"></i></span>
<span class="{{mixes}} badge {{modifiers}}">{{text}}{{#icon}}<i class="icon {{.}}"></i>{{/icon}}</span>
{
"text": "5",
"icon": "-basket",
"modifiers": "-secondary"
}
.badge {
display: inline-block;
margin-left: 0.5rem;
padding: 0.5rem 1rem;
background-color: $primary;
color: $white;
.icon:not(:first-child) {
padding-left: 1rem;
}
&.-secondary {
background-color: $secondary;
}
&.-white,
.-active & {
background-color: $white;
color: $primary;
}
}
There are no notes for this item.