diff options
| author | Mark Otto <[email protected]> | 2017-03-19 17:37:00 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-03-19 18:39:48 -0700 |
| commit | d093460252c712f82ef1b52758c7f12f3110193e (patch) | |
| tree | 993c7d2253797b435167917b039eee344a35ad50 | |
| parent | 13a874e3404ff82d9c84e39c596e7205803bb25e (diff) | |
| download | bootstrap-d093460252c712f82ef1b52758c7f12f3110193e.tar.xz bootstrap-d093460252c712f82ef1b52758c7f12f3110193e.zip | |
fixes rest of #21585; adds custom styles for inverse table accent hover and active states
| -rw-r--r-- | scss/_tables.scss | 14 | ||||
| -rw-r--r-- | scss/_variables.scss | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/scss/_tables.scss b/scss/_tables.scss index cf0ca171a..f041f6094 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -131,6 +131,20 @@ &.table-bordered { border: 0; } + + &.table-striped { + tbody tr:nth-of-type(odd) { + background-color: $table-inverse-bg-accent; + } + } + + &.table-hover { + tbody tr { + @include hover { + background-color: $table-inverse-bg-hover; + } + } + } } diff --git a/scss/_variables.scss b/scss/_variables.scss index 54bf91c1e..69eb4017b 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -327,6 +327,9 @@ $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-bg-active: $table-inverse-bg-hover !default; $table-inverse-border: lighten($gray-dark, 7.5%) !default; $table-inverse-color: $body-bg !default; |
