Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2013-01-12 08:38:14 +0400
committerMark Otto <otto@github.com>2013-01-12 08:38:14 +0400
commitd7c93fc647f38fb4baab9a2f95225600050dc1fe (patch)
tree4a4ec0e2e988391af8059c22899aaa83b16365ec /less
parent53f9e25150c0dcd8f2285691b0e74a7bde553fbe (diff)
Fixes #6478: scope table backgrounds to immediate td/th elements
Diffstat (limited to 'less')
-rw-r--r--less/tables.less20
1 files changed, 10 insertions, 10 deletions
diff --git a/less/tables.less b/less/tables.less
index f3b9967f07..73522996c4 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -161,8 +161,8 @@ table {
// Placed here since it has to come after the potential zebra striping
.table-hover {
tbody {
- tr:hover td,
- tr:hover th {
+ tr:hover > td,
+ tr:hover > th {
background-color: @tableBackgroundHover;
}
}
@@ -206,32 +206,32 @@ table th[class*="span"],
// Exact selectors below required to override .table-striped
.table tbody tr {
- &.success td {
+ &.success > td {
background-color: @successBackground;
}
- &.error td {
+ &.error > td {
background-color: @errorBackground;
}
- &.warning td {
+ &.warning > td {
background-color: @warningBackground;
}
- &.info td {
+ &.info > td {
background-color: @infoBackground;
}
}
// Hover states for .table-hover
.table-hover tbody tr {
- &.success:hover td {
+ &.success:hover > td {
background-color: darken(@successBackground, 5%);
}
- &.error:hover td {
+ &.error:hover > td {
background-color: darken(@errorBackground, 5%);
}
- &.warning:hover td {
+ &.warning:hover > td {
background-color: darken(@warningBackground, 5%);
}
- &.info:hover td {
+ &.info:hover > td {
background-color: darken(@infoBackground, 5%);
}
}