Mirror/docs/_sass/bootstrap/mixins/_badge.scss

13 lines
230 B
SCSS
Raw Normal View History

2018-12-19 23:05:06 +00:00
@mixin badge-variant($bg) {
color: color-yiq($bg);
background-color: $bg;
&[href] {
@include hover-focus {
color: color-yiq($bg);
text-decoration: none;
background-color: darken($bg, 10%);
}
}
}