_badges.scss
2.1 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/***
Custom Bootstrap Badges
***/
.badge {
font-size: 11px !important;
font-weight: 300;
text-align: center;
height: 18px;
padding: 3px 6px 3px 6px;
-webkit-border-radius: 12px !important;
-moz-border-radius: 12px !important;
border-radius: 12px !important;
text-shadow:none !important;
text-align: center;
vertical-align: middle;
&.badge-roundless {
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
&.badge-empty {
display: inline-block;
padding: 0;
min-width: 8px;
height: 8px;
width: 8px;
}
}
/* Badge variants */
@mixin badge-variant($bg-color) {
background-color: $bg-color;
background-image: none;
}
.badge-default {
@include badge-variant($brand-default);
}
.badge-primary {
@include badge-variant($brand-primary);
}
.badge-info {
@include badge-variant($brand-info);
}
.badge-success {
@include badge-variant($brand-success);
}
.badge-danger {
@include badge-variant($brand-danger);
}
.badge-warning {
@include badge-variant($brand-warning);
}
/* Fix badge position for navs */
.nav.nav-pills,
.nav.nav-stacked {
> li {
> a {
> .badge {
margin-top: -2px;
}
}
}
}
/***
Dropdown Menu Badges
***/
.dropdown-menu {
> li {
> a {
> .badge {
position: absolute;
margin-top: 1px;
right: 3px;
display: inline;
font-size: 11px;
font-weight: 300;
text-shadow:none;
height: 18px;
padding: 3px 6px 3px 6px;
text-align: center;
vertical-align: middle;
-webkit-border-radius: 12px !important;
-moz-border-radius: 12px !important;
border-radius: 12px !important;
}
}
}
&.badge-roundless {
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
}