Skip to content

Instantly share code, notes, and snippets.

@zachshallbetter
Created June 23, 2013 16:28
Show Gist options
  • Save zachshallbetter/5845600 to your computer and use it in GitHub Desktop.
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.
// 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