Created
April 27, 2012 07:07
-
-
Save rpearce/2506767 to your computer and use it in GitHub Desktop.
SASS mixin example1
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($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