aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-10-07 23:53:32 -0700
committerMark Otto <[email protected]>2011-10-07 23:53:32 -0700
commit9991f3faa1489d8edc517ffadb34e698930a9856 (patch)
tree2aeb4dbae36c7b3dd73aa071c3d3b00fd417c945
parentd74dee5e0f74a09d850696b78840debf8334dcc2 (diff)
downloadbootstrap-9991f3faa1489d8edc517ffadb34e698930a9856.tar.xz
bootstrap-9991f3faa1489d8edc517ffadb34e698930a9856.zip
resolve problem with nested tables having double borders
-rw-r--r--bootstrap.css7
-rw-r--r--bootstrap.min.css3
-rw-r--r--docs/index.html47
-rw-r--r--lib/scaffolding.less2
-rw-r--r--lib/tables.less5
5 files changed, 59 insertions, 5 deletions
diff --git a/bootstrap.css b/bootstrap.css
index 96c15f5c0..fb922f68e 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 b0ec80db2..e9f788775 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 ccba3b34d..f357d2454 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -869,6 +869,53 @@
<td>Dent</td>
<td>Code</td>
</tr>
+ <tr>
+ <td colspan="4">
+ span 4 columns
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ span 2 columns
+ </td>
+ <td colspan="2">
+ span 2 columns
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table>
+ <thead>
+ <tr>
+ <th>1</th>
+ <th>2</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ <td colspan="2">
+ <table>
+ <thead>
+ <tr>
+ <th>1</th>
+ <th>2</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>2</td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
</tbody>
</table>
<pre class="prettyprint linenums">
diff --git a/lib/scaffolding.less b/lib/scaffolding.less
index 4f8634710..b9646aed7 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 949072001..2781681cc 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);
}