]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
assign background to row of .table-striped
authorAndrei Railean <andrei@siter.com.au>
Wed, 25 Jun 2014 04:01:34 +0000 (14:01 +1000)
committerAndrei Railean <andrei@siter.com.au>
Wed, 25 Jun 2014 04:01:34 +0000 (14:01 +1000)
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

index 2e1ef337b75a63580de2fd1f7d16e014c7bf9fb9..e5347362e8452a8dc917d7fd83cf8e0caff2ef3f 100644 (file)
@@ -106,6 +106,7 @@ th {
 
 .table-striped {
   > tbody > tr:nth-child(odd) {
+    background-color: @table-bg-accent;
     > td,
     > th {
       background-color: @table-bg-accent;