Upgrade bootstrap sources from v3.3.7 (modified) to v4.6.1 (pristine)
[ndcode_site.git] / css / bootstrap / mixins / _badge.scss
1 @mixin badge-variant($bg) {
2   color: color-yiq($bg);
3   background-color: $bg;
4
5   @at-root a#{&} {
6     @include hover-focus() {
7       color: color-yiq($bg);
8       background-color: darken($bg, 10%);
9     }
10
11     &:focus,
12     &.focus {
13       outline: 0;
14       box-shadow: 0 0 0 $badge-focus-width rgba($bg, .5);
15     }
16   }
17 }