orgen-theme/assets/scss/custom/mixins/_badge.scss
2023-04-06 16:58:33 +08:00

13 lines
292 B
PHP

@mixin badge-variant($bg) {
color: saturate(darken($bg, 10%), 10);
background-color: transparentize(lighten($bg, 25%), .5);
&[href] {
@include hover-focus {
color: color-yiq($bg);
text-decoration: none;
background-color: darken($bg, 10%);
}
}
}