Skip to content

Instantly share code, notes, and snippets.

@fotan
Created March 30, 2016 14:52
Show Gist options
  • Save fotan/615e3a3dc5976d46c74982682b863601 to your computer and use it in GitHub Desktop.
Save fotan/615e3a3dc5976d46c74982682b863601 to your computer and use it in GitHub Desktop.
SCSS - Emboss Text
/// Embossing text shadow
/// @access public
/// @param {Float} $value - Opacity value
/// @example scss - Usage
/// .foo {
/// @include text-shadow(0.5);
/// }
/// @example css - Result
/// .foo {
/// text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;
/// }
@mixin text-shadow($value) {
text-shadow: rgba(255, 255, 255, $value) 0 1px 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment