aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-11 09:43:13 -0800
committerMark Otto <[email protected]>2012-01-11 09:43:13 -0800
commit32c628725924ca014df208fa57de4c5a4050733e (patch)
tree81bd804c312ab42d28310f74ffae1a00e5c547a3
parenta2ebf0c0c1381c38dda24bf12aebd5f9b4907e06 (diff)
downloadbootstrap-32c628725924ca014df208fa57de4c5a4050733e.tar.xz
bootstrap-32c628725924ca014df208fa57de4c5a4050733e.zip
comments and borders for multiple tbody
-rw-r--r--bootstrap.css5
-rw-r--r--bootstrap.min.css1
-rw-r--r--lib/tables.less8
3 files changed, 13 insertions, 1 deletions
diff --git a/bootstrap.css b/bootstrap.css
index 561a70572..6ac110e29 100644
--- a/bootstrap.css
+++ b/bootstrap.css
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Tue Jan 10 21:52:26 PST 2012
+ * Date: Wed Jan 11 09:43:04 PST 2012
*/
html, body {
margin: 0;
@@ -993,6 +993,9 @@ th {
td {
vertical-align: top;
}
+thead:first-child tr th, thead:first-child tr td {
+ border-top: 0;
+}
tbody + tbody {
border-top: 2px solid #ddd;
}
diff --git a/bootstrap.min.css b/bootstrap.min.css
index 6c6ed8985..761fb53be 100644
--- a/bootstrap.min.css
+++ b/bootstrap.min.css
@@ -179,6 +179,7 @@ table{width:100%;margin-bottom:18px;}
th,td{padding:8px;line-height:18px;text-align:left;border-top:1px solid #ddd;}
th{font-weight:bold;vertical-align:bottom;}
td{vertical-align:top;}
+thead:first-child tr th,thead:first-child tr td{border-top:0;}
tbody+tbody{border-top:2px solid #ddd;}
.condensed-table th,.condensed-table td{padding:4px 5px;}
.bordered-table{border:1px solid #ddd;border-collapse:separate;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.bordered-table th+th,.bordered-table td+td,.bordered-table th+td,.bordered-table td+th{border-left:1px solid #ddd;}
diff --git a/lib/tables.less b/lib/tables.less
index 4c1fb6e07..8b69f5d7f 100644
--- a/lib/tables.less
+++ b/lib/tables.less
@@ -26,6 +26,14 @@ th {
td {
vertical-align: top;
}
+
+// Remove top border from thead by default
+thead:first-child tr th,
+thead:first-child tr td {
+ border-top: 0;
+}
+
+// Account for multiple tbody instances
tbody + tbody {
border-top: 2px solid #ddd;
}