Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markotto@twitter.com>2012-08-08 09:50:49 +0400
committerMark Otto <markotto@twitter.com>2012-08-08 09:50:49 +0400
commit4eee78e0513c2c08b26fb57c43d57b9cb0857a87 (patch)
tree5dc055852593f5673023e8e0c4e57ca3f3c840e9 /less/tables.less
parenta525a6fe33afde7d4ab4a0febaaed76ff0393505 (diff)
fixes #4304: more specific selectors on table border classes to override .table-striped
Diffstat (limited to 'less/tables.less')
-rw-r--r--less/tables.less31
1 files changed, 19 insertions, 12 deletions
diff --git a/less/tables.less b/less/tables.less
index 90168c5699..3d571fe540 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -48,16 +48,6 @@ table {
tbody + tbody {
border-top: 2px solid @tableBorder;
}
-
- .success td {
- background-color: @successBackground;
- }
- .error td {
- background-color: @errorBackground;
- }
- .info td {
- background-color: @infoBackground;
- }
}
@@ -169,8 +159,8 @@ table {
// ------------
// Placed here since it has to come after the potential zebra striping
.table-hover {
- tbody tr:hover td,
- tbody tr:hover th {
+ tr:hover td,
+ tr:hover th {
background-color: @tableBackgroundHover;
}
}
@@ -214,3 +204,20 @@ table {
.span23 { .tableColumns(23); }
.span24 { .tableColumns(24); }
}
+
+
+// TABLE BACKGROUNDS
+// -----------------
+// Exact selectors below required to override .table-striped
+
+.table {
+ tbody tr.success td {
+ background-color: @successBackground;
+ }
+ tbody tr.error td {
+ background-color: @errorBackground;
+ }
+ tbody tr.info td {
+ background-color: @infoBackground;
+ }
+}