From 6edcde062d45899eb370ad97fc22d9c902b059fd Mon Sep 17 00:00:00 2001 From: Nordanne Isahac Date: Wed, 1 Jun 2016 21:30:57 +0800 Subject: [PATCH] Added background, and color css declarations for table tfoot --- scss/components/_table.scss | 19 ++++++++++++++++--- scss/settings/_settings.scss | 1 + 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/scss/components/_table.scss b/scss/components/_table.scss index 1ab735d86..1e25b20a5 100644 --- a/scss/components/_table.scss +++ b/scss/components/_table.scss @@ -56,6 +56,10 @@ $table-foot-background: smart-scale($table-background, $table-color-scale) !defa /// @type Color $table-head-font-color: $body-font-color !default; +/// Default font color for footer. +/// @type Color +$table-foot-font-color: $body-font-color !default; + /// Default value for showing the header when using stacked tables. /// @type Boolean $show-header-for-stacked: false !default; @@ -73,13 +77,22 @@ $show-header-for-stacked: false !default; font-weight: $global-weight-bold; padding: $table-padding; } + + // Table head + thead { + background: $table-head-background; + color: $table-head-font-color; + } + + // Table foot + tfoot { + background: $table-foot-background; + color: $table-foot-font-color; + } // Table head and foot thead, tfoot { - background: $table-head-background; - color: $table-head-font-color; - // Rows within head and foot tr { background: transparent; diff --git a/scss/settings/_settings.scss b/scss/settings/_settings.scss index c7c3e91c3..af51ab2b6 100644 --- a/scss/settings/_settings.scss +++ b/scss/settings/_settings.scss @@ -504,6 +504,7 @@ $table-stripe: even; $table-head-background: smart-scale($table-background, $table-color-scale / 2); $table-foot-background: smart-scale($table-background, $table-color-scale); $table-head-font-color: $body-font-color; +$table-foot-font-color: $body-font-color; $show-header-for-stacked: false; // 32. Tabs -- 2.47.2