Created
August 28, 2012 15:21
-
-
Save ganglio/3499039 to your computer and use it in GitHub Desktop.
SCSS: Background Stripes 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 stripes($color, $darken:3%,$pixelratio:1) { | |
@include background-image(linear-gradient(left,$color 0px,$color 2px * $pixelratio,darken($color,$darken) 2px * $pixelratio,darken($color,$darken) 7px * $pixelratio)); | |
@include background-size(7px * $pixelratio 20px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment