Created
November 22, 2016 19:27
-
-
Save ryanve/5dcb6975d52755d4e502545c971ce3cc 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($corner: null) { | |
#{if($corner, border-#{$corner}-radius, border-radius)}: $border-radius; | |
} |
.example {
@include border-radius(top-left);
@include border-radius(top-right);
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where
$border-radius
is defined from a variables file