forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_badge.scss
57 lines (52 loc) · 1.32 KB
/
_badge.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Badges
* --------------------------------------------------
*/
.badge {
@include badge-style($badge-default-bg, $badge-default-text);
display: inline-block;
padding: 3px 8px;
min-width: 10px;
border-radius: $badge-border-radius;
vertical-align: baseline;
text-align: center;
white-space: nowrap;
font-weight: $badge-font-weight;
font-size: $badge-font-size;
line-height: $badge-line-height;
&:empty {
display: none;
}
&.badge-light {
@include badge-style($badge-light-bg, $badge-light-text);
}
&.badge-stable {
@include badge-style($badge-stable-bg, $badge-stable-text);
}
&.badge-positive {
@include badge-style($badge-positive-bg, $badge-positive-text);
}
&.badge-calm {
@include badge-style($badge-calm-bg, $badge-calm-text);
}
&.badge-assertive {
@include badge-style($badge-assertive-bg, $badge-assertive-text);
}
&.badge-balanced {
@include badge-style($badge-balanced-bg, $badge-balanced-text);
}
&.badge-energized {
@include badge-style($badge-energized-bg, $badge-energized-text);
}
&.badge-royal {
@include badge-style($badge-royal-bg, $badge-royal-text);
}
&.badge-dark {
@include badge-style($badge-dark-bg, $badge-dark-text);
}
}
// Quick fix for labels/badges in buttons
.button .badge {
position: relative;
top: -1px;
}