Created
October 5, 2012 04:28
-
-
Save snowman-repos/3838095 to your computer and use it in GitHub Desktop.
SASS: Emboss Text
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 box-emboss($outerOpacity, $innerOpacity) { | |
box-shadow: | |
rgba(white, $outerOpacity) 0 1px 0, | |
rgba(black, $innerOpacity) 0 1px 0 inset; | |
} | |
.module, header[role="banner"] { | |
@include box-emboss(0.3, 0.6); | |
} | |
%box-emboss { | |
@include box-emboss(0.3, 0.6); | |
} | |
header[role="banner"] { | |
@extend %box-emboss; | |
} | |
... | |
.module { | |
@extend %box-emboss; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment