Skip to content

Instantly share code, notes, and snippets.

@ttamminen
Created August 22, 2013 06:30
Show Gist options
  • Save ttamminen/6303852 to your computer and use it in GitHub Desktop.
Save ttamminen/6303852 to your computer and use it in GitHub Desktop.
Sass mixins for common radius cases like rounded top
@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