diff options
| author | Chris Rebert <[email protected]> | 2013-11-06 18:32:35 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-11-06 18:33:07 -0800 |
| commit | 798e64cebf60e1d0d75b0c1c8f1cedfc259130cd (patch) | |
| tree | 3ed90d156d8d43b2c6ee7b9ed3705b78f00f3a26 /less | |
| parent | 3887f540b978d593f433bfef15888bc2d103de72 (diff) | |
| download | bootstrap-798e64cebf60e1d0d75b0c1c8f1cedfc259130cd.tar.xz bootstrap-798e64cebf60e1d0d75b0c1c8f1cedfc259130cd.zip | |
use nesting to make .table-striped & .table-hover mixin-able again; fixes #11387
Diffstat (limited to 'less')
| -rw-r--r-- | less/tables.less | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/less/tables.less b/less/tables.less index 0deadc782..55d5aa0e1 100644 --- a/less/tables.less +++ b/less/tables.less @@ -104,10 +104,12 @@ th { // // Default zebra-stripe styles (alternating gray and transparent backgrounds) -.table-striped > tbody > tr:nth-child(odd) { - > td, - > th { - background-color: @table-bg-accent; +.table-striped { + > tbody > tr:nth-child(odd) { + > td, + > th { + background-color: @table-bg-accent; + } } } @@ -116,10 +118,12 @@ th { // // Placed here since it has to come after the potential zebra striping -.table-hover > tbody > tr:hover { - > td, - > th { - background-color: @table-bg-hover; +.table-hover { + > tbody > tr:hover { + > td, + > th { + background-color: @table-bg-hover; + } } } |
