diff options
| author | Andrew Luca <[email protected]> | 2018-01-19 19:34:49 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-01-19 19:34:49 +0200 |
| commit | 2b8b062540eb39c6756e1491c9d44b818bc7baef (patch) | |
| tree | 116e6f25f36c7e1097007bbaa171c30954f33cf7 | |
| parent | 0f53402fc041fd7a10571711a571df0df50892d3 (diff) | |
| download | bootstrap-2b8b062540eb39c6756e1491c9d44b818bc7baef.tar.xz bootstrap-2b8b062540eb39c6756e1491c9d44b818bc7baef.zip | |
Allow to change `.table-striped` `odd` or `even` (#25333)
| -rw-r--r-- | scss/_tables.scss | 2 | ||||
| -rw-r--r-- | scss/_variables.scss | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/scss/_tables.scss b/scss/_tables.scss index 0e3b1198e..9e88743cf 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -68,7 +68,7 @@ // Default zebra-stripe styles (alternating gray and transparent backgrounds) .table-striped { - tbody tr:nth-of-type(odd) { + tbody tr:nth-of-type(#{$table-striped-order}) { background-color: $table-accent-bg; } } diff --git a/scss/_variables.scss b/scss/_variables.scss index be580deb3..92a164c60 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -317,6 +317,8 @@ $table-dark-hover-bg: rgba($white, .075) !default; $table-dark-border-color: lighten($gray-900, 7.5%) !default; $table-dark-color: $body-bg !default; +$table-striped-order: odd !default; + // Buttons + Forms // |
