mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-30 15:24:08 +03:00
Fixes #5729: Nested striped tables
* 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
This commit is contained in:
+7
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user