diff options
| author | Mark Otto <[email protected]> | 2012-11-14 01:20:20 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-11-14 01:20:20 -0800 |
| commit | cd1f72f4847c24d46fa3c5022dd89568ed803601 (patch) | |
| tree | 10c82e177c28d066ae957d0009b72e55c8b1a7a2 | |
| parent | 303767350cae9e5caceffad7f1d646f6b2dbc441 (diff) | |
| parent | 41889f74d0dc97cfb8bbd80754fc0ec01ef39d58 (diff) | |
| download | bootstrap-cd1f72f4847c24d46fa3c5022dd89568ed803601.tar.xz bootstrap-cd1f72f4847c24d46fa3c5022dd89568ed803601.zip | |
Merge pull request #5894 from amid2887/patch-3
Update less/tables.less ( typing, use variable, add border-radius reset )
| -rw-r--r-- | less/tables.less | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/less/tables.less b/less/tables.less index fc8750f97..d73b58180 100644 --- a/less/tables.less +++ b/less/tables.less @@ -91,36 +91,45 @@ table { // For first th or td in the first row in the first thead or tbody thead:first-child tr:first-child th:first-child, tbody:first-child tr:first-child td:first-child { - .border-top-left-radius(4px); + .border-top-left-radius(@baseBorderRadius); } thead:first-child tr:first-child th:last-child, tbody:first-child tr:first-child td:last-child { - .border-top-right-radius(4px); + .border-top-right-radius(@baseBorderRadius); } - // For first th or td in the first row in the first thead or tbody + // For first th or td in the last row in the last thead or tbody thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td:first-child, tfoot:last-child tr:last-child td:first-child { - .border-bottom-left-radius(4px); + .border-bottom-left-radius(@baseBorderRadius); } thead:last-child tr:last-child th:last-child, tbody:last-child tr:last-child td:last-child, tfoot:last-child tr:last-child td:last-child { - .border-bottom-right-radius(4px); + .border-bottom-right-radius(@baseBorderRadius); + } + + // Clear border-radius for first and last td in the last row in the last tbody for table with tfoot + tfoot + tbody:last-child tr:last-child td:first-child { + .border-bottom-left-radius(0); } + tfoot + tbody:last-child tr:last-child td:last-child { + .border-bottom-right-radius(0); + } + // 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, colgroup + tbody tr:first-child td:first-child { - .border-top-left-radius(4px); + .border-top-left-radius(@baseBorderRadius); } caption + thead tr:first-child th:last-child, caption + tbody tr:first-child td:last-child, colgroup + thead tr:first-child th:last-child, colgroup + tbody tr:first-child td:last-child { - .border-top-right-radius(4px); + .border-top-right-radius(@baseBorderRadius); } } |
