From a4799ad5dd29a422ef4d4bcb8b071c7c09535581 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 13 Jul 2017 15:25:35 +0200 Subject: [PATCH] Optimize scss --- table.scss | 75 +++++++++++++++++------------------------------------- 1 file changed, 24 insertions(+), 51 deletions(-) diff --git a/table.scss b/table.scss index 4181995..649d105 100644 --- a/table.scss +++ b/table.scss @@ -1,70 +1,43 @@ @import "_mixins", "_vars"; -.table.red { +.table { background: none; - caption { - background: #B8312F; color: #fff; } thead { - background: #B8312F; - color: #fff; - } -} - -.table.orange { - background: none; - - caption { - background: #FBA026; color: #fff; } - thead { - background: #FBA026; - color: #fff; - } -} - -.table.green { - background: none; - - caption { - background: #41A85F; - color: #fff; + &.red { + caption, thead { + background: #B8312F; + } } - thead { - background: #41A85F; - color: #fff; - } -} - -.table.blue { - background: none; - - caption { - background: #2C82C9; - color: #fff; + &.orange { + caption, thead { + background: #FBA026; + } } - thead { - background: #2C82C9; - color: #fff; - } -} - -.table.white { - background: none; - - caption { - background: #fff; + &.green { + caption, thead { + background: #41A85F; + } } - thead { - background: #fff; + &.blue { + caption, thead { + background: #2C82C9; + } + } + + &.white { + caption, thead { + background: #fff; + } } } @@ -221,4 +194,4 @@ table.list { .nobreak { white-space: nowrap; -} \ No newline at end of file +}