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
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2017-06-28 19:36:27 +0300
committerMark Otto <markdotto@gmail.com>2017-06-28 19:36:27 +0300
commit0f232de9d794b75333899df2b2829d97c48179bc (patch)
tree34589de0fac063267a705a9561ef36090698a1e6 /scss
parent3e0375e03bd1bf75075ef3d7fc7ff867493adca5 (diff)
move table variants to use sass map
Diffstat (limited to 'scss')
-rw-r--r--scss/_tables.scss9
1 files changed, 3 insertions, 6 deletions
diff --git a/scss/_tables.scss b/scss/_tables.scss
index 90a5e69bb9..8b1f551a0d 100644
--- a/scss/_tables.scss
+++ b/scss/_tables.scss
@@ -92,12 +92,9 @@
// Exact selectors below required to override `.table-striped` and prevent
// inheritance to nested tables.
-// Generate the contextual variants
-@include table-row-variant(active, $table-active-bg);
-@include table-row-variant(success, $state-success-bg);
-@include table-row-variant(info, $state-info-bg);
-@include table-row-variant(warning, $state-warning-bg);
-@include table-row-variant(danger, $state-danger-bg);
+@each $color, $value in $theme-colors {
+ @include table-row-variant($color, theme-color-level($color, -9));
+}
// Inverse styles