aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Yeo <[email protected]>2017-06-08 18:27:07 -0700
committerMark Otto <[email protected]>2017-06-13 08:46:15 -0700
commitc349f5917430166889e2f8a6697878e4ee5f3f7c (patch)
tree169ddf810523a6f9af461f3ce43c9b5984e0eec0
parent4cc21bbf74c4cfcd2eedaff88f2376a2ebc8d4f1 (diff)
downloadbootstrap-c349f5917430166889e2f8a6697878e4ee5f3f7c.tar.xz
bootstrap-c349f5917430166889e2f8a6697878e4ee5f3f7c.zip
Rename for consistency `$table-sm-cell-padding`, `$table-bg-accent`, `$table-bg-hover`, `$table-bg-active`, `$table-inverse-bg-accent`, `$table-inverse-bg-hover` to `$table-cell-padding-sm`, `$table-accent-bg`, `$table-hover-bg`, `$table-active-bg`, `$table-inverse-accent-bg`, `$table-inverse-hover-bg`, respectively (#22414)
-rw-r--r--scss/_tables.scss12
-rw-r--r--scss/_variables.scss12
2 files changed, 12 insertions, 12 deletions
diff --git a/scss/_tables.scss b/scss/_tables.scss
index 36c3dab77..90a5e69bb 100644
--- a/scss/_tables.scss
+++ b/scss/_tables.scss
@@ -37,7 +37,7 @@
.table-sm {
th,
td {
- padding: $table-sm-cell-padding;
+ padding: $table-cell-padding-sm;
}
}
@@ -69,7 +69,7 @@
.table-striped {
tbody tr:nth-of-type(odd) {
- background-color: $table-bg-accent;
+ background-color: $table-accent-bg;
}
}
@@ -81,7 +81,7 @@
.table-hover {
tbody tr {
@include hover {
- background-color: $table-bg-hover;
+ background-color: $table-hover-bg;
}
}
}
@@ -93,7 +93,7 @@
// inheritance to nested tables.
// Generate the contextual variants
-@include table-row-variant(active, $table-bg-active);
+@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);
@@ -134,14 +134,14 @@
&.table-striped {
tbody tr:nth-of-type(odd) {
- background-color: $table-inverse-bg-accent;
+ background-color: $table-inverse-accent-bg;
}
}
&.table-hover {
tbody tr {
@include hover {
- background-color: $table-inverse-bg-hover;
+ background-color: $table-inverse-hover-bg;
}
}
}
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 4c8ae3e26..69d223965 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -316,12 +316,12 @@ $list-inline-padding: 5px !default;
// Customizes the `.table` component with basic values, each used across all table variations.
$table-cell-padding: .75rem !default;
-$table-sm-cell-padding: .3rem !default;
+$table-cell-padding-sm: .3rem !default;
$table-bg: transparent !default;
-$table-bg-accent: rgba($black,.05) !default;
-$table-bg-hover: rgba($black,.075) !default;
-$table-bg-active: $table-bg-hover !default;
+$table-accent-bg: rgba($black,.05) !default;
+$table-hover-bg: rgba($black,.075) !default;
+$table-active-bg: $table-hover-bg !default;
$table-border-width: $border-width !default;
$table-border-color: $gray-lighter !default;
@@ -330,8 +330,8 @@ $table-head-bg: $gray-lighter !default;
$table-head-color: $gray !default;
$table-inverse-bg: $gray-dark !default;
-$table-inverse-bg-accent: rgba($white, .05) !default;
-$table-inverse-bg-hover: rgba($white, .075) !default;
+$table-inverse-accent-bg: rgba($white, .05) !default;
+$table-inverse-hover-bg: rgba($white, .075) !default;
$table-inverse-border-color: lighten($gray-dark, 7.5%) !default;
$table-inverse-color: $body-bg !default;