Clean up border-radius helper

Simplified mixins after suggestion from @aron
This commit is contained in:
Mark Perkins
2012-08-03 12:19:40 +01:00
parent 01dc3b1185
commit f9324de262
2 changed files with 5 additions and 19 deletions

View File

@@ -398,7 +398,7 @@ h2 {
display: block;
margin: 10px 0;
border: 0;
font: 0/0 a;
font: a;
text-shadow: none;
color: transparent;
background-color: transparent;

View File

@@ -4,24 +4,10 @@
// Shortcuts --------------------------------
.border-radius(@radius: 5px) {
-moz-border-radius: @radius;
border-radius: @radius;
}
.border-radius(@top-left: 5px, @top-right: 5px, @bottom-left: 5px, @bottom-right: 5px) {
-webkit-border-top-left-radius: @top-left;
-webkit-border-top-right-radius: @top-right;
-webkit-border-bottom-left-radius: @bottom-left;
-webkit-border-bottom-right-radius: @bottom-right;
-moz-border-radius-topleft: @top-left;
-moz-border-radius-topright: @top-right;
-moz-border-radius-bottomleft: @bottom-left;
-moz-border-radius-bottomright: @bottom-right;
border-top-left-radius: @top-left;
border-top-right-radius: @top-right;
border-bottom-left-radius: @bottom-left;
border-bottom-right-radius: @bottom-right;
.border-radius(@radius:5px) {
-webkit-border-radius: @arguments;
-moz-border-radius: @arguments;
border-radius: @arguments;
}
.box-sizing(@type: border-box) {