Last active
August 29, 2015 14:03
-
-
Save gayanvirajith/69dbd9b2fd11fd26a543 to your computer and use it in GitHub Desktop.
Sass border radius mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
-ms-border-radius: $radius; | |
border-radius: $radius; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
.some-class { @include border-radius(4px); }
.some-class { @include border-radius(4px 2px 4px 2px); }
.some-class { @include border-radius(0); }