diff options
| author | Mark Otto <[email protected]> | 2017-12-24 14:36:22 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-12-28 10:20:34 -0800 |
| commit | a6ae1cc50dff527eb79382be103f235481afa007 (patch) | |
| tree | 28039d6ba157255e53f46642f2e599c4bbdbf09d /scss | |
| parent | be3aa437a11dbe625ba401ad3c1ea3b57af30f78 (diff) | |
| download | bootstrap-a6ae1cc50dff527eb79382be103f235481afa007.tar.xz bootstrap-a6ae1cc50dff527eb79382be103f235481afa007.zip | |
Move alert theme-color() levels to variables
Closes #24341
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_alert.scss | 2 | ||||
| -rw-r--r-- | scss/_variables.scss | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss index c2d5c8109..dd43e2376 100644 --- a/scss/_alert.scss +++ b/scss/_alert.scss @@ -46,6 +46,6 @@ @each $color, $value in $theme-colors { .alert-#{$color} { - @include alert-variant(theme-color-level($color, -10), theme-color-level($color, -9), theme-color-level($color, 6)); + @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level)); } } diff --git a/scss/_variables.scss b/scss/_variables.scss index b99b477fb..c7dbdcf84 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -764,6 +764,10 @@ $alert-border-radius: $border-radius !default; $alert-link-font-weight: $font-weight-bold !default; $alert-border-width: $border-width !default; +$alert-bg-level: -10 !default; +$alert-border-level: -9 !default; +$alert-color-level: 6!default; + // Progress bars |
