| 1 |
@import "../utilities/derived-variables" |
| 2 |
|
| 3 |
@each $name, $pair in $colors |
| 4 |
$color: nth($pair, 1) |
| 5 |
.has-text-#{$name} |
| 6 |
color: $color !important |
| 7 |
a.has-text-#{$name} |
| 8 |
&:hover, |
| 9 |
&:focus |
| 10 |
color: bulmaDarken($color, 10%) !important |
| 11 |
.has-background-#{$name} |
| 12 |
background-color: $color !important |
| 13 |
@if length($pair) >= 4 |
| 14 |
$color-light: nth($pair, 3) |
| 15 |
$color-dark: nth($pair, 4) |
| 16 |
// Light |
| 17 |
.has-text-#{$name}-light |
| 18 |
color: $color-light !important |
| 19 |
a.has-text-#{$name}-light |
| 20 |
&:hover, |
| 21 |
&:focus |
| 22 |
color: bulmaDarken($color-light, 10%) !important |
| 23 |
.has-background-#{$name}-light |
| 24 |
background-color: $color-light !important |
| 25 |
// Dark |
| 26 |
.has-text-#{$name}-dark |
| 27 |
color: $color-dark !important |
| 28 |
a.has-text-#{$name}-dark |
| 29 |
&:hover, |
| 30 |
&:focus |
| 31 |
color: bulmaLighten($color-dark, 10%) !important |
| 32 |
.has-background-#{$name}-dark |
| 33 |
background-color: $color-dark !important |
| 34 |
|
| 35 |
@each $name, $shade in $shades |
| 36 |
.has-text-#{$name} |
| 37 |
color: $shade !important |
| 38 |
.has-background-#{$name} |
| 39 |
background-color: $shade !important |