Last active
August 29, 2015 14:26
-
-
Save sepal/24c010a153b7d1ec741f 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
<ul> | |
<li class="red"> | |
test1 | |
</li> | |
<li class="blue"> | |
test2 | |
</li> | |
<li class="green"> | |
test2 | |
</li> | |
</ul> |
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.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
$colors: ( | |
"blue": #000080, | |
"red": #A00000, | |
"green": #00A000, | |
); | |
@each $i, $value in $colors { | |
li.#{$i} { | |
cursor: pointer; | |
color: $value; | |
&:hover { | |
color: lighten($value, 20%); | |
} | |
} | |
} |
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
li.blue { | |
cursor: pointer; | |
color: #000080; | |
} | |
li.blue:hover { | |
color: #0000e6; | |
} | |
li.red { | |
cursor: pointer; | |
color: #A00000; | |
} | |
li.red:hover { | |
color: #ff0707; | |
} | |
li.green { | |
cursor: pointer; | |
color: #00A000; | |
} | |
li.green:hover { | |
color: #07ff07; | |
} |
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
<ul> | |
<li class="red"> | |
test1 | |
</li> | |
<li class="blue"> | |
test2 | |
</li> | |
<li class="green"> | |
test2 | |
</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment