]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #4103: simpler fix for tfoot in .table-border
authorMark Otto <markotto@twitter.com>
Fri, 20 Jul 2012 04:25:24 +0000 (21:25 -0700)
committerMark Otto <markotto@twitter.com>
Fri, 20 Jul 2012 04:25:24 +0000 (21:25 -0700)
docs/assets/css/bootstrap.css
less/tables.less
less/tests/css-tests.html

index b9ea3b7d0d2acf623b01beef2c9f13eebb809593..bc52f0f865dcf861ed5bf1807ee8ff3b820d3222 100644 (file)
@@ -1753,6 +1753,35 @@ table {
   -webkit-border-radius: 4px;
      -moz-border-radius: 4px;
           border-radius: 4px;
+  /*  thead:last-child tr:last-child th:first-child,
+  tbody:last-child tr:last-child td:first-child,
+  tfoot tr:last-child td:first-child {
+    -webkit-border-bottom-left-radius: 4px;
+            border-bottom-left-radius: 4px;
+        -moz-border-radius-bottomleft: 4px;
+  }
+
+  tfoot ~ tbody:last-child tr:last-child td:first-child {
+    -webkit-border-bottom-left-radius: 0;
+            border-bottom-left-radius: 0;
+        -moz-border-radius-bottomleft: 0;
+  }
+
+  thead:last-child tr:last-child th:last-child,
+  tbody:last-child tr:last-child td:last-child,
+  tfoot tr:last-child td:last-child {
+    -webkit-border-bottom-right-radius: 4px;
+            border-bottom-right-radius: 4px;
+        -moz-border-radius-bottomright: 4px;
+  }
+
+  tfoot ~ tbody:last-child tr:last-child td:last-child {
+    -webkit-border-bottom-right-radius: 0;
+            border-bottom-right-radius: 0;
+        -moz-border-radius-bottomright: 0;
+  }
+*/
+
 }
 
 .table-bordered th,
@@ -1787,7 +1816,8 @@ table {
 }
 
 .table-bordered thead:last-child tr:last-child th:first-child,
-.table-bordered tbody:last-child tr:last-child td:first-child {
+.table-bordered tbody:last-child tr:last-child td:first-child,
+.table-bordered tfoot:last-child 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;
@@ -1797,7 +1827,8 @@ table {
 }
 
 .table-bordered thead:last-child tr:last-child th:last-child,
-.table-bordered tbody:last-child tr:last-child td:last-child {
+.table-bordered tbody:last-child tr:last-child td:last-child,
+.table-bordered tfoot:last-child tr:last-child td:last-child {
   -webkit-border-bottom-right-radius: 4px;
           border-bottom-right-radius: 4px;
   -moz-border-radius-bottomright: 4px;
index 4db484062fc37281ce1f4d728ff8ec4b8429b09c..2ccca868903b29c6f784f58ac2aa5942178fb754 100644 (file)
@@ -113,20 +113,22 @@ table {
   }
   // For first th or td in the first row in the first thead or tbody
   thead:last-child tr:last-child th:first-child,
-  tbody:last-child tr:last-child td:first-child {
+  tbody:last-child tr:last-child td:first-child,
+  tfoot:last-child tr:last-child td:first-child {
     .border-radius(0 0 0 4px);
     -webkit-border-bottom-left-radius: 4px;
             border-bottom-left-radius: 4px;
         -moz-border-radius-bottomleft: 4px;
   }
   thead:last-child tr:last-child th:last-child,
-  tbody:last-child tr:last-child td:last-child {
+  tbody:last-child tr:last-child td:last-child,
+  tfoot:last-child tr:last-child td:last-child {
     -webkit-border-bottom-right-radius: 4px;
             border-bottom-right-radius: 4px;
         -moz-border-radius-bottomright: 4px;
   }
 
-  // Special fixes to round the left border on the first td/td
+  // Special fixes to round the left border on the first td/th
   caption + thead tr:first-child th:first-child,
   caption + tbody tr:first-child td:first-child,
   colgroup + thead tr:first-child th:first-child,
@@ -143,6 +145,36 @@ table {
             border-top-right-radius: 4px;
           -moz-border-right-topleft: 4px;
   }
+
+  // Accounting for tfoot
+/*  thead:last-child tr:last-child th:first-child,
+  tbody:last-child tr:last-child td:first-child,
+  tfoot tr:last-child td:first-child {
+    -webkit-border-bottom-left-radius: 4px;
+            border-bottom-left-radius: 4px;
+        -moz-border-radius-bottomleft: 4px;
+  }
+
+  tfoot ~ tbody:last-child tr:last-child td:first-child {
+    -webkit-border-bottom-left-radius: 0;
+            border-bottom-left-radius: 0;
+        -moz-border-radius-bottomleft: 0;
+  }
+
+  thead:last-child tr:last-child th:last-child,
+  tbody:last-child tr:last-child td:last-child,
+  tfoot tr:last-child td:last-child {
+    -webkit-border-bottom-right-radius: 4px;
+            border-bottom-right-radius: 4px;
+        -moz-border-radius-bottomright: 4px;
+  }
+
+  tfoot ~ tbody:last-child tr:last-child td:last-child {
+    -webkit-border-bottom-right-radius: 0;
+            border-bottom-right-radius: 0;
+        -moz-border-radius-bottomright: 0;
+  }
+*/
 }
 
 
index 527e9661630e11ae944ab4bd50e4263fde50e6c0..81d5b189654e44a99a6b9931b34e7de13a61a4f5 100644 (file)
           <td>3</td>
         </tr>
       </tbody>
+      <tfoot>
+        <tr>
+          <td>3</td>
+          <td>6</td>
+          <td>9</td>
+        </tr>
+      </tfoot>
     </table>
     <h4>Bordered with thead, with colgroup</h4>
     <table class="table table-bordered">
       </colgroup>
       <thead>
         <tr>
-          <td>1</td>
-          <td>2</td>
-          <td>3</td>
+          <th>A</th>
+          <th>B</th>
+          <th>C</th>
         </tr>
       </thead>
       <tbody>
           <td>3</td>
         </tr>
       </tbody>
+      <tfoot>
+        <tr>
+          <td>3</td>
+          <td>6</td>
+          <td>9</td>
+        </tr>
+      </tfoot>
     </table>
   </div><!--/span-->
   <div class="span6">
           <td>3</td>
         </tr>
       </tbody>
+      <tfoot>
+        <tr>
+          <td>3</td>
+          <td>6</td>
+          <td>9</td>
+        </tr>
+      </tfoot>
     </table>
     <h4>Bordered with rowspan and colspan</h4>
     <table class="table table-bordered">