From 71974e2f4d2d42ebb13e357245e60b4b961a3bfa Mon Sep 17 00:00:00 2001 From: Andrei Railean Date: Wed, 25 Jun 2014 14:01:34 +1000 Subject: [PATCH 1/2] assign background to row of .table-striped if background is not set on row, striping doesn't work properly in responsive tables where row and cells are set to display: block. --- less/tables.less | 1 + 1 file changed, 1 insertion(+) diff --git a/less/tables.less b/less/tables.less index 2e1ef337b7..e5347362e8 100644 --- a/less/tables.less +++ b/less/tables.less @@ -106,6 +106,7 @@ th { .table-striped { > tbody > tr:nth-child(odd) { + background-color: @table-bg-accent; > td, > th { background-color: @table-bg-accent; From ac67bc857fb3e4a4da1240222d51dd8a76a1bacf Mon Sep 17 00:00:00 2001 From: Andrei Railean Date: Wed, 25 Jun 2014 15:16:25 +1000 Subject: [PATCH 2/2] removing redundant background declarations on TDs --- less/tables.less | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/less/tables.less b/less/tables.less index e5347362e8..38c7da349b 100644 --- a/less/tables.less +++ b/less/tables.less @@ -107,10 +107,6 @@ th { .table-striped { > tbody > tr:nth-child(odd) { background-color: @table-bg-accent; - > td, - > th { - background-color: @table-bg-accent; - } } } @@ -121,10 +117,7 @@ th { .table-hover { > tbody > tr:hover { - > td, - > th { - background-color: @table-bg-hover; - } + background-color: @table-bg-hover; } }