diff options
author | Mark Otto <otto@github.com> | 2012-12-02 02:25:28 +0400 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2012-12-02 02:25:28 +0400 |
commit | 19ee7999f4db33406c4552d4eed568cd1fb8405a (patch) | |
tree | 5f4cc28a71e367854ad41ab84534869302a3dac7 /less | |
parent | dd11d0a3fa4ba061f6dcb8db81f144d81101e052 (diff) |
remove single corner border-radius mixins
Diffstat (limited to 'less')
-rw-r--r-- | less/button-groups.less | 16 | ||||
-rw-r--r-- | less/mixins.less | 40 | ||||
-rw-r--r-- | less/tables.less | 16 |
3 files changed, 25 insertions, 47 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index eb843bcd88..4648245c7d 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -57,25 +57,25 @@ // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match .btn-group > .btn:first-child { margin-left: 0; - .border-top-left-radius(@border-radius-base); - .border-bottom-left-radius(@border-radius-base); + border-top-left-radius: @border-radius-base; + border-bottom-left-radius: @border-radius-base; } // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it .btn-group > .btn:last-child, .btn-group > .dropdown-toggle { - .border-top-right-radius(@border-radius-base); - .border-bottom-right-radius(@border-radius-base); + border-top-right-radius: @border-radius-base; + border-bottom-right-radius: @border-radius-base; } // Reset corners for large buttons .btn-group > .btn.large:first-child { margin-left: 0; - .border-top-left-radius(@border-radius-large); - .border-bottom-left-radius(@border-radius-large); + border-top-left-radius: @border-radius-large; + border-bottom-left-radius: @border-radius-large; } .btn-group > .btn.large:last-child, .btn-group > .large.dropdown-toggle { - .border-top-right-radius(@border-radius-large); - .border-bottom-right-radius(@border-radius-large); + border-top-right-radius: @border-radius-large; + border-bottom-right-radius: @border-radius-large; } // On hover/focus/active, bring the proper btn to front diff --git a/less/mixins.less b/less/mixins.less index 41a9a27824..ab63757f68 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -173,44 +173,22 @@ // CSS3 PROPERTIES // -------------------------------------------------- -// Single Corner Border Radius -.border-top-left-radius(@radius) { - -webkit-border-top-left-radius: @radius; - -moz-border-radius-topleft: @radius; - border-top-left-radius: @radius; -} -.border-top-right-radius(@radius) { - -webkit-border-top-right-radius: @radius; - -moz-border-radius-topright: @radius; - border-top-right-radius: @radius; -} -.border-bottom-right-radius(@radius) { - -webkit-border-bottom-right-radius: @radius; - -moz-border-radius-bottomright: @radius; - border-bottom-right-radius: @radius; -} -.border-bottom-left-radius(@radius) { - -webkit-border-bottom-left-radius: @radius; - -moz-border-radius-bottomleft: @radius; - border-bottom-left-radius: @radius; -} - -// Single Side Border Radius +// Single side border-radius .border-top-radius(@radius) { - .border-top-right-radius(@radius); - .border-top-left-radius(@radius); + border-top-right-radius: @radius; + border-top-left-radius: @radius; } .border-right-radius(@radius) { - .border-top-right-radius(@radius); - .border-bottom-right-radius(@radius); + border-bottom-right-radius: @radius; + border-top-right-radius: @radius; } .border-bottom-radius(@radius) { - .border-bottom-right-radius(@radius); - .border-bottom-left-radius(@radius); + border-bottom-right-radius: @radius; + border-bottom-left-radius: @radius; } .border-left-radius(@radius) { - .border-top-left-radius(@radius); - .border-bottom-left-radius(@radius); + border-bottom-left-radius: @radius; + border-top-left-radius: @radius; } // Drop shadows diff --git a/less/tables.less b/less/tables.less index eaa494e5b1..98e800106f 100644 --- a/less/tables.less +++ b/less/tables.less @@ -90,30 +90,30 @@ 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(@border-radius-base); + border-top-left-radius: @border-radius-base; } thead:first-child tr:first-child th:last-child, tbody:first-child tr:first-child td:last-child { - .border-top-right-radius(@border-radius-base); + border-top-right-radius: @border-radius-base; } // 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(@border-radius-base); + border-bottom-left-radius: @border-radius-base; } 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(@border-radius-base); + border-bottom-right-radius: @border-radius-base; } // 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); + border-bottom-left-radius: 0; } tfoot + tbody:last-child tr:last-child td:last-child { - .border-bottom-right-radius(0); + border-bottom-right-radius: 0; } @@ -122,13 +122,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 { - .border-top-left-radius(@border-radius-base); + border-top-left-radius: @border-radius-base; } 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(@border-radius-base); + border-top-right-radius: @border-radius-base; } } |