0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-17 14:54:30 +01:00
Bootstrap/scss/mixins/_badge.scss
gijsbotje cc092272ee modified the yiq to to an actual function
function only returns a value, not the attribute itself
updated every use of the former mixin to use the new function
2017-09-13 17:32:44 +02:00

13 lines
230 B
SCSS

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