Created
September 30, 2014 02:10
-
-
Save eyeboah/907bab869c971e05b6f2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
// variables.scss | |
$darkgrey: #242628; | |
$grey: #35393b; | |
$midgrey: #7d878a; | |
$lightgrey: #e2edf2; | |
// variables.scss | |
$list-colours: | |
('darkgrey' $darkgrey) | |
('grey' $grey) | |
('midgrey' $midgrey) | |
('lightgrey' $lightgrey); | |
// base.scss | |
@each $colour in $list-colours { | |
.#{nth($colour, 1)}-bg { | |
background: nth($colour, 2); | |
} | |
.#{nth($colour, 1)} { | |
color: nth($colour, 2); | |
} | |
} |
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
.darkgrey-bg { | |
background: #242628; | |
} | |
.darkgrey { | |
color: #242628; | |
} | |
.grey-bg { | |
background: #35393b; | |
} | |
.grey { | |
color: #35393b; | |
} | |
.midgrey-bg { | |
background: #7d878a; | |
} | |
.midgrey { | |
color: #7d878a; | |
} | |
.lightgrey-bg { | |
background: #e2edf2; | |
} | |
.lightgrey { | |
color: #e2edf2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment