Last active
September 22, 2016 15:49
-
-
Save treetop1500/39577ef556de22a9acfe934cbc108a4e to your computer and use it in GitHub Desktop.
For generating classes with alpha using rgb
This file contains 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 alphaColor ($name,$color) { | |
@for $i from 1 through 10 { | |
.c-#{$name}-#{$i} { | |
color: rgba($color,$i/10); | |
} | |
} | |
} | |
@include alphaColor("blue",blue); | |
@include alphaColor("red",#ed1414); | |
@include alphaColor("absurd",rgb(20,237,20)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment