From 9991f3faa1489d8edc517ffadb34e698930a9856 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 7 Oct 2011 23:53:32 -0700 Subject: [PATCH] resolve problem with nested tables having double borders --- bootstrap.css | 7 +++++-- bootstrap.min.css | 3 ++- docs/index.html | 47 ++++++++++++++++++++++++++++++++++++++++++++ lib/scaffolding.less | 2 +- lib/tables.less | 5 ++++- 5 files changed, 59 insertions(+), 5 deletions(-) diff --git a/bootstrap.css b/bootstrap.css index 96c15f5c02..fb922f68e0 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 Oct 4 01:16:04 PDT 2011 + * Date: Fri Oct 7 23:53:08 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). @@ -1083,9 +1083,12 @@ table td { table th + th, table td + td { border-left: 1px solid #ddd; } -table tr + tr td { +table tr td { border-top: 1px solid #ddd; } +table tr:first-child td { + border-top: 0; +} table tbody tr:first-child td:first-child { -webkit-border-radius: 4px 0 0 0; -moz-border-radius: 4px 0 0 0; diff --git a/bootstrap.min.css b/bootstrap.min.css index b0ec80db20..e9f788775c 100644 --- a/bootstrap.min.css +++ b/bootstrap.min.css @@ -184,7 +184,8 @@ table{width:100%;margin-bottom:18px;padding:0;border-collapse:separate;*border-c table th{padding-top:9px;font-weight:bold;vertical-align:middle;border-bottom:1px solid #ddd;} table td{vertical-align:top;} table th+th,table td+td{border-left:1px solid #ddd;} -table tr+tr td{border-top:1px solid #ddd;} +table tr td{border-top:1px solid #ddd;} +table tr:first-child td{border-top:0;} 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;} 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;} 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;} diff --git a/docs/index.html b/docs/index.html index ccba3b34d1..f357d2454a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -869,6 +869,53 @@ Dent Code + + + span 4 columns + + + + + span 2 columns + + + span 2 columns + + + + + + + + + + + + + + + + + +
12
12
+ + + + + + + + + + + + + + + +
12
12
+ +
diff --git a/lib/scaffolding.less b/lib/scaffolding.less
index 4f8634710f..b9646aed7a 100644
--- a/lib/scaffolding.less
+++ b/lib/scaffolding.less
@@ -77,7 +77,7 @@ a {
 
 .row {
   .clearfix();
-  margin-left: -1 * @gridGutterWidth;
+  margin-left: -@gridGutterWidth;
 }
 
 // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
diff --git a/lib/tables.less b/lib/tables.less
index 949072001d..2781681cca 100644
--- a/lib/tables.less
+++ b/lib/tables.less
@@ -34,9 +34,12 @@ table {
   td + td {
     border-left: 1px solid #ddd;
   }
-  tr + tr td {
+  tr td {
     border-top: 1px solid #ddd;
   }
+  tr:first-child td {
+    border-top: 0;
+  }
   tbody tr:first-child td:first-child {
     .border-radius(4px 0 0 0);
   }