diff options
| author | Mark Otto <[email protected]> | 2016-09-08 22:18:40 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-09-08 22:18:40 -0700 |
| commit | a96038b50aaa201271383c95bb117c14f3bc5efb (patch) | |
| tree | 5ff9da062bacdd5f6b3a68d1a98843ce7aa540aa /scss | |
| parent | 0be876359ed4ed7c8a3d315a6ef9a04eede8d765 (diff) | |
| download | bootstrap-a96038b50aaa201271383c95bb117c14f3bc5efb.tar.xz bootstrap-a96038b50aaa201271383c95bb117c14f3bc5efb.zip | |
Revamp background utilities and add new .text-white utility
- Rather than mix multiple properties in our color utilities, this splits all color and all background utils into separate classes.
- Adds new .text-white class to help lighten text color for darker backgrounds
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/mixins/_background-variant.scss | 1 | ||||
| -rw-r--r-- | scss/utilities/_text.scss | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/scss/mixins/_background-variant.scss b/scss/mixins/_background-variant.scss index ff21ad958..54a734dcc 100644 --- a/scss/mixins/_background-variant.scss +++ b/scss/mixins/_background-variant.scss @@ -2,7 +2,6 @@ @mixin bg-variant($parent, $color) { #{$parent} { - color: #fff !important; background-color: $color !important; } a#{$parent} { diff --git a/scss/utilities/_text.scss b/scss/utilities/_text.scss index 901f77144..a12f9a178 100644 --- a/scss/utilities/_text.scss +++ b/scss/utilities/_text.scss @@ -32,6 +32,10 @@ // Contextual colors +.text-white { + color: #fff !important; +} + @include text-emphasis-variant('.text-muted', $text-muted); @include text-emphasis-variant('.text-primary', $brand-primary); |
