showcase/_sass/bootstrap/mixins/_badge.scss

13 lines
230 B
SCSS
Raw Normal View History

2023-07-22 13:34:09 -04: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%);
}
}
}