Last active
December 26, 2015 00:09
-
-
Save chasewoodford/7062103 to your computer and use it in GitHub Desktop.
Simple Sass @for loop to build color classes for gradient text. Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// ---- | |
@for $i from 1 through 5 { | |
.color-#{($i)} { | |
color: (adjust-hue(#ff0000,($i*10))); | |
} | |
} |
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
.color-1 { | |
color: #ff2b00; | |
} | |
.color-2 { | |
color: #ff5500; | |
} | |
.color-3 { | |
color: #ff8000; | |
} | |
.color-4 { | |
color: #ffaa00; | |
} | |
.color-5 { | |
color: #ffd500; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment