diff options
| author | Chris Rebert <[email protected]> | 2015-10-29 21:37:28 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-10-29 21:37:28 -0700 |
| commit | 9d201a8ef2548fffb9b8a03f6a7cc9437bf70a67 (patch) | |
| tree | a7368443fee9c5da7b0ba098c45a5d4758b98c15 | |
| parent | 6e8f08dc6706a00a0d6a54284d61cc12857a15d8 (diff) | |
| download | bootstrap-9d201a8ef2548fffb9b8a03f6a7cc9437bf70a67.tar.xz bootstrap-9d201a8ef2548fffb9b8a03f6a7cc9437bf70a67.zip | |
Move .bg-* utility classes into separate file
[skip sauce]
[skip validator]
| -rw-r--r-- | scss/_utilities-background.scss | 24 | ||||
| -rw-r--r-- | scss/_utilities.scss | 26 | ||||
| -rw-r--r-- | scss/bootstrap.scss | 1 |
3 files changed, 25 insertions, 26 deletions
diff --git a/scss/_utilities-background.scss b/scss/_utilities-background.scss new file mode 100644 index 000000000..4bbf7318d --- /dev/null +++ b/scss/_utilities-background.scss @@ -0,0 +1,24 @@ +// +// Contextual backgrounds +// + +// Inverse +// TODO: redo this as a proper class +.bg-inverse { + color: $gray-lighter; + background-color: $gray-dark; +} + +.bg-faded { + background-color: $gray-lightest; +} + +@include bg-variant('.bg-primary', $brand-primary); + +@include bg-variant('.bg-success', $brand-success); + +@include bg-variant('.bg-info', $brand-info); + +@include bg-variant('.bg-warning', $brand-warning); + +@include bg-variant('.bg-danger', $brand-danger); diff --git a/scss/_utilities.scss b/scss/_utilities.scss index fa3b6e1d2..ea04f9a34 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -89,29 +89,3 @@ @include text-emphasis-variant('.text-warning', $brand-warning); @include text-emphasis-variant('.text-danger', $brand-danger); - - -// Contextual backgrounds -// For now we'll leave these alongside the text classes until v4 when we can -// safely shift things around (per SemVer rules). - -// Inverse -// Todo: redo this as a proper class -.bg-inverse { - color: $gray-lighter; - background-color: $gray-dark; -} - -.bg-faded { - background-color: $gray-lightest; -} - -@include bg-variant('.bg-primary', $brand-primary); - -@include bg-variant('.bg-success', $brand-success); - -@include bg-variant('.bg-info', $brand-info); - -@include bg-variant('.bg-warning', $brand-warning); - -@include bg-variant('.bg-danger', $brand-danger); diff --git a/scss/bootstrap.scss b/scss/bootstrap.scss index 518a1a5af..e9300f54d 100644 --- a/scss/bootstrap.scss +++ b/scss/bootstrap.scss @@ -51,5 +51,6 @@ // Utility classes @import "utilities"; +@import "utilities-background"; @import "utilities-spacing"; @import "utilities-responsive"; |
