UNPKG

776 BSCSSView Raw
1@charset "UTF-8";
2
3// badge mixins
4// --------------------------------------------------
5@mixin badge-bounding {
6 position: relative;
7 display: inline-block;
8 vertical-align: middle;
9 line-height: 1;
10}
11
12@mixin badge-state(
13 $color,
14 $bgColor,
15 $borderRadius
16) {
17 color: $color;
18 background: $bgColor;
19 text-align: center;
20 white-space: nowrap;
21 border-radius: $borderRadius;
22 a,
23 a:hover {
24 color: $color;
25 }
26}
27
28@mixin badge-size(
29 $width,
30 $minWidth,
31 $height,
32 $padding,
33 $fontSize,
34 $lineHeight
35) {
36 position: absolute;
37 width: $width;
38 height: $height;
39 min-width: $minWidth;
40 padding: $padding;
41 font-size: $fontSize;
42 line-height: $lineHeight;
43 transform: translateX(-50%);
44}