diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index e760daae8d..88db0c0444 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1748,8 +1748,8 @@ table { background-color: #f9f9f9; } -.table tbody tr:hover td, -.table tbody tr:hover th { +.table-hover tbody tr:hover td, +.table-hover tbody tr:hover th { background-color: #f5f5f5; } diff --git a/docs/base-css.html b/docs/base-css.html index 4136399340..9eed2bea23 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -566,6 +566,45 @@ For example, <code>section</code> should be wrapped as inline. <table class="table table-bordered"> … </table> + + +

.table-hover

+

Enable a hover state on table rows within a <tbody>.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
+
+
+<table class="table table-hover">
+  …
+</table>
 

.table-condensed

diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 0f0537ede1..583d0709ee 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -497,6 +497,45 @@ <table class="table table-bordered"> … </table> + + +

{{_i}}.table-hover{{/i}}

+

{{_i}}Enable a hover state on table rows within a <tbody>.{{/i}}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#{{_i}}First Name{{/i}}{{_i}}Last Name{{/i}}{{_i}}Username{{/i}}
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
+
{{! /example }} +
+<table class="table table-hover">
+  …
+</table>
 

{{_i}}.table-condensed{{/i}}

diff --git a/less/tables.less b/less/tables.less index b4f6027bf9..8bd563a062 100644 --- a/less/tables.less +++ b/less/tables.less @@ -136,7 +136,7 @@ table { // HOVER EFFECT // ------------ // Placed here since it has to come after the potential zebra striping -.table { +.table-hover { tbody tr:hover td, tbody tr:hover th { background-color: @tableBackgroundHover;