]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add better handling to the tables so that the thead and tbody first row can have...
authorMark Otto <mark.otto@twitter.com>
Sat, 8 Oct 2011 07:19:01 +0000 (00:19 -0700)
committerMark Otto <mark.otto@twitter.com>
Sat, 8 Oct 2011 07:19:01 +0000 (00:19 -0700)
bootstrap.css
bootstrap.min.css
lib/tables.less

index 819bda3f505471f447916f37a2d9ed0dea809525..3b4a240091662ddd53f48920e8b703ab3f214a58 100644 (file)
@@ -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: Sat Oct  8 00:16:12 PDT 2011
+ * Date: Sat Oct  8 00:18:37 PDT 2011
  */
 /* Reset.less
  * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here      that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -1097,12 +1097,12 @@ table tbody th {
 .bordered-table tr:first-child td {
   border-top: 0;
 }
-.bordered-table tbody tr:first-child td:first-child {
+.bordered-table thead tr:first-child th:first-child, .bordered-table tbody tr:first-child td:first-child {
   -webkit-border-radius: 4px 0 0 0;
   -moz-border-radius: 4px 0 0 0;
   border-radius: 4px 0 0 0;
 }
-.bordered-table tbody tr:first-child td:last-child {
+.bordered-table thead tr:first-child th:last-child, .bordered-table tbody tr:first-child td:last-child {
   -webkit-border-radius: 0 4px 0 0;
   -moz-border-radius: 0 4px 0 0;
   border-radius: 0 4px 0 0;
index bdd63897886e6fb55056a3e08ae432d67314ad66..472177f00186607544195382e589a96b92bfd4e2 100644 (file)
@@ -187,8 +187,8 @@ table tbody th{border-bottom:0;vertical-align:top;}
 .bordered-table{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.bordered-table th+th,.bordered-table td+td,.bordered-table th+td{border-left:1px solid #ddd;}
 .bordered-table tr td{border-top:1px solid #ddd;}
 .bordered-table tr:first-child td{border-top:0;}
-.bordered-table tbody tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0;}
-.bordered-table tbody tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0;}
+.bordered-table thead tr:first-child th:first-child,.bordered-table tbody tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0;}
+.bordered-table thead tr:first-child th:last-child,.bordered-table tbody tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0;}
 .bordered-table tbody tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;}
 .bordered-table tbody tr:last-child td:last-child{-webkit-border-radius:0 0 4px 0;-moz-border-radius:0 0 4px 0;border-radius:0 0 4px 0;}
 table .span1{width:20px;}
index 158f06d93389379bb15b7e5824fe1bee8e5ca9e7..085eef49af5500fee4841d2b9ae1e747188881f5 100644 (file)
@@ -55,9 +55,11 @@ table {
   tr:first-child td {
     border-top: 0;
   }
+  thead tr:first-child th:first-child,
   tbody tr:first-child td:first-child {
     .border-radius(4px 0 0 0);
   }
+  thead tr:first-child th:last-child,
   tbody tr:first-child td:last-child {
     .border-radius(0 4px 0 0);
   }