Created
August 22, 2013 06:30
-
-
Save ttamminen/6303852 to your computer and use it in GitHub Desktop.
Sass mixins for common radius cases like rounded top
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-top($radius: 5px) { | |
-webkit-border-top-left-radius: $radius; | |
-webkit-border-top-right-radius: $radius; | |
-moz-border-radius-topleft: $radius; | |
-moz-border-radius-topright: $radius; | |
border-top-left-radius: $radius; | |
border-top-right-radius: $radius; | |
} | |
@mixin border-radius-bottom($radius: 5px) { | |
-webkit-border-bottom-left-radius: $radius; | |
-webkit-border-bottom-right-radius: $radius; | |
-moz-border-radius-bottomleft: $radius; | |
-moz-border-radius-bottomright: $radius; | |
border-bottom-left-radius: $radius; | |
border-bottom-right-radius: $radius; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment