From 0f232de9d794b75333899df2b2829d97c48179bc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 28 Jun 2017 09:36:27 -0700 Subject: move table variants to use sass map --- scss/_tables.scss | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'scss') diff --git a/scss/_tables.scss b/scss/_tables.scss index 90a5e69bb..8b1f551a0 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 -- cgit v1.2.3