Skip to content

Commit 2b8b062

Browse files
Andrew LucaXhmikosR
authored andcommitted
Allow to change .table-striped odd or even (#25333)
1 parent 0f53402 commit 2b8b062

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

scss/_tables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
6969

7070
.table-striped {
71-
tbody tr:nth-of-type(odd) {
71+
tbody tr:nth-of-type(#{$table-striped-order}) {
7272
background-color: $table-accent-bg;
7373
}
7474
}

scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ $table-dark-hover-bg: rgba($white, .075) !default;
317317
$table-dark-border-color: lighten($gray-900, 7.5%) !default;
318318
$table-dark-color: $body-bg !default;
319319

320+
$table-striped-order: odd !default;
321+
320322

321323
// Buttons + Forms
322324
//

0 commit comments

Comments
 (0)