1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | .badge {
|
7 | display: inline-block;
|
8 | padding: $badge-padding-y $badge-padding-x;
|
9 | @include font-size($badge-font-size);
|
10 | font-weight: $badge-font-weight;
|
11 | line-height: 1;
|
12 | text-align: center;
|
13 | white-space: nowrap;
|
14 | vertical-align: baseline;
|
15 | @include border-radius($badge-border-radius);
|
16 | @include transition($badge-transition);
|
17 |
|
18 | @at-root a#{&} {
|
19 | @include hover-focus() {
|
20 | text-decoration: none;
|
21 | }
|
22 | }
|
23 |
|
24 |
|
25 | &:empty {
|
26 | display: none;
|
27 | }
|
28 | }
|
29 |
|
30 |
|
31 | .btn .badge {
|
32 | position: relative;
|
33 | top: -1px;
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | .badge-pill {
|
41 | padding-right: $badge-pill-padding-x;
|
42 | padding-left: $badge-pill-padding-x;
|
43 | @include border-radius($badge-pill-border-radius);
|
44 | }
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | @each $color, $value in $theme-colors {
|
51 | .badge-#{$color} {
|
52 | @include badge-variant($value);
|
53 | }
|
54 | }
|