From dbcd87331d8a84fe5f65da0420409e859effebf1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 14 Aug 2012 14:51:33 -0700 Subject: [PATCH] fixes #4371: scope hovers on table rows to tbody --- docs/assets/css/bootstrap.css | 4 ++-- less/tables.less | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index ec63378c58..d6cfbe0998 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 3d571fe540..853b97e390 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; + } } }