diff options
| author | Mark Otto <[email protected]> | 2012-12-08 12:57:21 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-12-08 12:57:21 -0800 |
| commit | 9376a7c221a64c2bf508d02ea2ccd85748d10fcc (patch) | |
| tree | 22108fb29cdb08456ad1a00451b742d84a699a3c /less/tables.less | |
| parent | cacc2137620675f81ab8895c2988778d12f92596 (diff) | |
| download | bootstrap-2.2.2.tar.xz bootstrap-2.2.2.zip | |
Fixes #5729: Nested striped tablesv2.2.2
* Scopes striping to immediate children of the tbody and tr
* For nested tables, sets a background color of @bodyBackground, to override the default transparent bg
Diffstat (limited to 'less/tables.less')
| -rw-r--r-- | less/tables.less | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/less/tables.less b/less/tables.less index b816e7c2d..f3b9967f0 100644 --- a/less/tables.less +++ b/less/tables.less @@ -48,6 +48,11 @@ table { tbody + tbody { border-top: 2px solid @tableBorder; } + + // Nesting + .table { + background-color: @bodyBackground; + } } @@ -143,8 +148,8 @@ table { // Default zebra-stripe styles (alternating gray and transparent backgrounds) .table-striped { tbody { - tr:nth-child(odd) td, - tr:nth-child(odd) th { + > tr:nth-child(odd) > td, + > tr:nth-child(odd) > th { background-color: @tableBackgroundAccent; } } |
