diff options
| author | Mark Otto <[email protected]> | 2012-07-19 21:25:24 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-07-19 21:25:24 -0700 |
| commit | 3c1a0fbda40d06ab0b89d07ad808aa6975c8381d (patch) | |
| tree | dc8221d626ff2f7935adae188a9f28b7da5f0e0d /less | |
| parent | 89d7ec5290912ddd762f743f450b58b865afc6c3 (diff) | |
| download | bootstrap-3c1a0fbda40d06ab0b89d07ad808aa6975c8381d.tar.xz bootstrap-3c1a0fbda40d06ab0b89d07ad808aa6975c8381d.zip | |
fixes #4103: simpler fix for tfoot in .table-border
Diffstat (limited to 'less')
| -rw-r--r-- | less/tables.less | 38 | ||||
| -rw-r--r-- | less/tests/css-tests.html | 27 |
2 files changed, 59 insertions, 6 deletions
diff --git a/less/tables.less b/less/tables.less index 4db484062..2ccca8689 100644 --- a/less/tables.less +++ b/less/tables.less @@ -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; + } +*/ } diff --git a/less/tests/css-tests.html b/less/tests/css-tests.html index 527e96616..81d5b1896 100644 --- a/less/tests/css-tests.html +++ b/less/tests/css-tests.html @@ -404,6 +404,13 @@ <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"> @@ -414,9 +421,9 @@ </colgroup> <thead> <tr> - <td>1</td> - <td>2</td> - <td>3</td> + <th>A</th> + <th>B</th> + <th>C</th> </tr> </thead> <tbody> @@ -436,6 +443,13 @@ <td>3</td> </tr> </tbody> + <tfoot> + <tr> + <td>3</td> + <td>6</td> + <td>9</td> + </tr> + </tfoot> </table> </div><!--/span--> <div class="span6"> @@ -466,6 +480,13 @@ <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"> |
