aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-08-14 14:51:33 -0700
committerMark Otto <[email protected]>2012-08-14 14:51:33 -0700
commitdbcd87331d8a84fe5f65da0420409e859effebf1 (patch)
tree14ba0d4328769215aa77a67a871a224c274906d0
parent662fface3b73917b8424ad87995dee62f5e3053a (diff)
downloadbootstrap-dbcd87331d8a84fe5f65da0420409e859effebf1.tar.xz
bootstrap-dbcd87331d8a84fe5f65da0420409e859effebf1.zip
fixes #4371: scope hovers on table rows to tbody
-rw-r--r--docs/assets/css/bootstrap.css4
-rw-r--r--less/tables.less8
2 files changed, 7 insertions, 5 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index ec63378c5..d6cfbe099 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -1863,8 +1863,8 @@ table {
background-color: #f9f9f9;
}
-.table-hover tr:hover td,
-.table-hover tr:hover th {
+.table-hover tbody tr:hover td,
+.table-hover tbody tr:hover th {
background-color: #f5f5f5;
}
diff --git a/less/tables.less b/less/tables.less
index 3d571fe54..853b97e39 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -159,9 +159,11 @@ table {
// ------------
// Placed here since it has to come after the potential zebra striping
.table-hover {
- tr:hover td,
- tr:hover th {
- background-color: @tableBackgroundHover;
+ tbody {
+ tr:hover td,
+ tr:hover th {
+ background-color: @tableBackgroundHover;
+ }
}
}