From 79a10feb7aaebfb8714f1b8abb0bcbb44eb53d65 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 18 Jul 2013 00:10:22 -0700 Subject: [PATCH] Fixes #8452: adds `.active` to table classes --- docs/assets/css/bootstrap.css | 6 +++ docs/css.html | 76 ++++++++++++++++++++++++----------- less/tables.less | 5 +++ 3 files changed, 63 insertions(+), 24 deletions(-) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index f74f5fb02f..e79177efa8 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1249,6 +1249,12 @@ table th[class^="col-"] { float: none; } +.table > tbody > tr > td.active, +.table > tbody > tr > th.active, +.table > tbody > tr.active > td { + background-color: #f5f5f5; +} + .table > tbody > tr > td.success, .table > tbody > tr > th.success, .table > tbody > tr.success > td { diff --git a/docs/css.html b/docs/css.html index b401b6593d..10f2ea1ddf 100644 --- a/docs/css.html +++ b/docs/css.html @@ -1048,8 +1048,8 @@ For example, <section> should be wrapped as inline. -

Optional row classes

-

Use contextual classes to color table rows.

+

Contextual table classes

+

Use contextual classes to color table rows or individual cells.

@@ -1066,19 +1066,25 @@ For example, <section> should be wrapped as inline. - + - + - + + + + +
.success Indicates a successful or positive action.Indicates a successful or positive action
.danger Indicates a dangerous or potentially negative action.Indicates a dangerous or potentially negative action
.warning Indicates a warning that might need attention.Indicates a warning that might need attention
+ .active + Applies the hover color to a particular row or cell
@@ -1087,42 +1093,64 @@ For example, <section> should be wrapped as inline. # - Product - Payment Taken - Status + Column heading + Column heading + Column heading 1 - TB - Monthly - 01/04/2012 - Approved + Column content + Column content + Column content + + + 2 + Column content + Column content + Column content - 2 - TB - Monthly - 02/04/2012 - Declined + 3 + Column content + Column content + Column content + + + 4 + Column content + Column content + Column content - 3 - TB - Monthly - 03/04/2012 - Pending + 5 + Column content + Column content + Column content + + + 6 + Column content + Column content + Column content + + + 7 + Column content + Column content + Column content {% highlight html %} -... 1 - TB - Monthly - 01/04/2012 - Approved + Column content + Column content + Column content -... {% endhighlight %} diff --git a/less/tables.less b/less/tables.less index 3a546917c4..b742897c17 100644 --- a/less/tables.less +++ b/less/tables.less @@ -219,6 +219,11 @@ table { // Exact selectors below required to override .table-striped .table > tbody > tr { + > td.active, + > th.active, + &.active > td { + background-color: @table-bg-hover; + } > td.success, > th.success, &.success > td {