Created
January 6, 2014 19:16
-
-
Save eendeego/8288109 to your computer and use it in GitHub Desktop.
A Pen by Luis Reis.
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
<div class="block c1"></div> | |
<div class="block c2"></div> | |
<div class="block c3"></div> | |
<div class="block c4"></div> |
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
@import "compass"; | |
$color: red; | |
$inverse: hsl(120deg, 100%, 100%); | |
.block { | |
display: inline-block; | |
width: 20px; | |
height: 20px; | |
} | |
.c1 { background-color: $color; } | |
.c2 { background-color: adjust-hue($color, 0.33 * (hue($inverse) - hue($color))); } | |
.c3 { background-color: adjust-hue($color, 0.67 * (hue($inverse) - hue($color))); } | |
.c4 { background-color: adjust-hue($color, 1.00 * (hue($inverse) - hue($color))); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment