From: Mark Otto Date: Thu, 18 Jul 2013 07:10:22 +0000 (-0700) Subject: Fixes #8452: adds `.active` to table classes X-Git-Tag: v3.0.0-rc1~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79a10feb7aaebfb8714f1b8abb0bcbb44eb53d65;p=thirdparty%2Fbootstrap.git Fixes #8452: adds `.active` to table classes --- 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 - TB - Monthly - 02/04/2012 - Declined + Column content + Column content + Column content - + 3 - TB - Monthly - 03/04/2012 - Pending + Column content + Column content + Column content + + + 4 + Column content + Column content + Column content + + + 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 {