Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2017-06-26 04:22:51 +0300
committerMark Otto <markdotto@gmail.com>2017-06-26 04:22:51 +0300
commit2392047a0ccc270897c3c451e9646e81a4ff3035 (patch)
treef6bbcddc4be3a3d3abc7a8fd071ebfae9c5eca76 /scss/_alert.scss
parentfc053ed096a16a4c0840fc9a942394390847b12c (diff)
update alert component to use theme sass map and add a ton of options in the process
Diffstat (limited to 'scss/_alert.scss')
-rw-r--r--scss/_alert.scss15
1 files changed, 4 insertions, 11 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss
index 562821a58b..3dfd13f56a 100644
--- a/scss/_alert.scss
+++ b/scss/_alert.scss
@@ -41,15 +41,8 @@
//
// Generate contextual modifier classes for colorizing the alert.
-.alert-success {
- @include alert-variant($alert-success-bg, $alert-success-border-color, $alert-success-text);
-}
-.alert-info {
- @include alert-variant($alert-info-bg, $alert-info-border-color, $alert-info-text);
-}
-.alert-warning {
- @include alert-variant($alert-warning-bg, $alert-warning-border-color, $alert-warning-text);
-}
-.alert-danger {
- @include alert-variant($alert-danger-bg, $alert-danger-border-color, $alert-danger-text);
+@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));
+ }
}