Created
June 23, 2013 16:28
-
-
Save zachshallbetter/5845600 to your computer and use it in GitHub Desktop.
An SCSS mixin for semi-transparent one-pixel lines placed above and below an element to give the illusion it’s embossed inside of its parent.
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
// SCSS mixin for element embossing. | |
// A semi-transparent one-pixel lines placed above and below an element to give the illusion it’s embossed in its parent. | |
// | |
// @include box-emboss(0.8, 0.05); | |
@mixin box-emboss($opacity, $opacity2){ | |
box-shadow:white($opacity) 0 1px 0, inset black($opacity2) 0 1px 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment