@spark-hire/bootstrap-themes 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/dark.css +1 -1
- package/css/dark.map +2 -2
- package/css/light.css +1 -1
- package/css/light.map +2 -2
- package/package.json +1 -1
- package/scss/badges.scss +19 -4
- package/scss/shared.scss +1 -1
package/package.json
CHANGED
package/scss/badges.scss
CHANGED
|
@@ -7,8 +7,23 @@
|
|
|
7
7
|
font-weight: normal;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
$all-colors: map-merge($colors, $theme-colors);
|
|
11
|
+
$grays: ($gray-100, $gray-200, $gray-300, $gray-400, $gray-500, $gray-600, $gray-700, $gray-800, $gray-900, $gray-1000);
|
|
12
|
+
|
|
13
|
+
@each $color, $value in $all-colors {
|
|
14
|
+
.badge-#{$color} {
|
|
15
|
+
background-color: $value;
|
|
16
|
+
|
|
17
|
+
// Force white font color on gray backgrounds. Contrast function would set color to black.
|
|
18
|
+
@if index($grays, $value) {
|
|
19
|
+
color: $white;
|
|
20
|
+
} @else {
|
|
21
|
+
color: color-yiq($value);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.badge-outline-#{$color} {
|
|
26
|
+
border: 1px solid $value;
|
|
27
|
+
color: $value;
|
|
28
|
+
}
|
|
14
29
|
}
|
package/scss/shared.scss
CHANGED