Skip to content

Instantly share code, notes, and snippets.

@rpearce
Created April 27, 2012 07:07
Show Gist options
  • Save rpearce/2506767 to your computer and use it in GitHub Desktop.
Save rpearce/2506767 to your computer and use it in GitHub Desktop.
SASS mixin example1
@mixin border-radius($amount) {
-webkit-border-radius: $amount;
-moz-border-radius : $amount;
-o-border-radius : $amount;
-ms-border-radius : $amount;
border-radius : $amount; }
.container {
@include border-radius(4px);
text-align: center;
position: relative; }
.content {
@include border-radius(8px);
color: #fff; }
.main { @include border-radius(25px); }
.main-content { @include border-radius(16px); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment