diff options
| author | Ninir <[email protected]> | 2012-10-30 10:22:09 +0100 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-10-31 11:09:44 -0700 |
| commit | be03a5308663052be22d48cbe247b2c259fdefe9 (patch) | |
| tree | 94993c2adb2ff7cbd57ea9e8def0d3fcbdf4ebb4 /less/tables.less | |
| parent | 14b941744c5ef3cc67c41e3bae7284fafe052415 (diff) | |
| download | bootstrap-be03a5308663052be22d48cbe247b2c259fdefe9.tar.xz bootstrap-be03a5308663052be22d48cbe247b2c259fdefe9.zip | |
Replaced hardcoded CSS rules with mixins
Diffstat (limited to 'less/tables.less')
| -rw-r--r-- | less/tables.less | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/less/tables.less b/less/tables.less index 3f2c7f783..fc8750f97 100644 --- a/less/tables.less +++ b/less/tables.less @@ -91,31 +91,22 @@ 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 { - -webkit-border-top-left-radius: 4px; - border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; + .border-top-left-radius(4px); } thead:first-child tr:first-child th:last-child, tbody:first-child tr:first-child td:last-child { - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; - -moz-border-radius-topright: 4px; + .border-top-right-radius(4px); } // 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, 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; + .border-bottom-left-radius(4px); } 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 { - -webkit-border-bottom-right-radius: 4px; - border-bottom-right-radius: 4px; - -moz-border-radius-bottomright: 4px; + .border-bottom-right-radius(4px); } // Special fixes to round the left border on the first td/th @@ -123,17 +114,13 @@ table { caption + tbody tr:first-child td:first-child, colgroup + thead tr:first-child th:first-child, colgroup + tbody tr:first-child td:first-child { - -webkit-border-top-left-radius: 4px; - border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; + .border-top-left-radius(4px); } 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 { - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; - -moz-border-radius-topright: 4px; + .border-top-right-radius(4px); } } |
