mirror of
https://github.com/clearleft/clearless.git
synced 2026-01-08 21:28:05 -05:00
Clean up border-radius helper
Simplified mixins after suggestion from @aron
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user