Skip to content

Instantly share code, notes, and snippets.

@jaicab
Created June 20, 2014 08:48
Show Gist options
  • Save jaicab/fd3ffceba44274cfddc4 to your computer and use it in GitHub Desktop.
Save jaicab/fd3ffceba44274cfddc4 to your computer and use it in GitHub Desktop.
Transparent outlines
/*
Creates a transparent outline with two colored borders around it.
@param $transparent-width Thickness of the transparent border.
@param $color-width Thickness of the coloured borders.
@param $color Color of the colored borders.
*/
@mixin transparent-outline($transparent-width, $color-width, $color){
border: $transparent-width solid transparent;
box-shadow: 0 0 0 $color-width $color inset,
0 0 0 $color-width $color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment