From 25e2e282c18e26e0303a2f106db59eb3a5c76ab8 Mon Sep 17 00:00:00 2001 From: Andrew Luca Date: Tue, 16 Jan 2018 16:00:06 +0200 Subject: [PATCH] Allow to change `.table-striped` `odd` or `even` --- scss/_tables.scss | 2 +- scss/_variables.scss | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scss/_tables.scss b/scss/_tables.scss index 0e3b1198e3dc..9e88743cf7ae 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 24e141772946..71a07cf8f0a5 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 //