Created
September 5, 2012 15:25
-
-
Save ganglio/3638373 to your computer and use it in GitHub Desktop.
SCSS: Tassels Mixin
This file contains hidden or 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
@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