Skip to content

Instantly share code, notes, and snippets.

@ganglio
Created September 5, 2012 15:25
Show Gist options
  • Save ganglio/3638373 to your computer and use it in GitHub Desktop.
Save ganglio/3638373 to your computer and use it in GitHub Desktop.
SCSS: Tassels Mixin
@mixin tassels($color:#ffffff,$size:20px) {
position: relative;
&:before {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: $size;
background-size: $size $size*2;
background-repeat: repeat-x;
@include background-image(
linear-gradient(45deg, transparent 34%, $color 34%, $color 66%, transparent 66%),
linear-gradient(315deg, transparent 34%, $color 34%, $color 66%, transparent 66%)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment