<div class="badge ">
-15%
</div>
<div class="badge {{ class }}">
{{ text }}
</div>
{
"text": "-15%"
}
$badge__padding : 0 $spacer--medium !default;
$badge__margin : 0 0 $spacer !default;
$badge__border-radius : $border-radius !default;
$badge__color : $white !default;
$badge__color--new : $font-color-base !default;
$badge__background : $bg-color-dark !default;
$badge__background--new: $white !default;
$badge__font-size : $font-size-small !default;
$badge__font-family : $font-family-base !default;
$badge__font-weight : $font-weight-bold !default;
$badge__text-transform : uppercase !default;
$badge__line-height : 16px !default;
$badge__justify-content: center !default;
@import 'badge-variables';
.badge {
display: inline-flex;
padding: $badge__padding;
margin: $badge__margin;
border-radius: $badge__border-radius;
color: $badge__color;
background: $badge__background;
font-family: $badge__font-family;
font-size: $badge__font-size;
font-weight: $badge__font-weight;
text-transform: $badge__text-transform;
line-height: $badge__line-height;
justify-content: $badge__justify-content;
&--new {
color: $badge__color--new;
background: $badge__background--new;
}
}
No notes defined.