Last active
August 29, 2015 14:26
-
-
Save seven-phases-max/65235eaf56a90271de64 to your computer and use it in GitHub Desktop.
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
// see also http://codepen.io/seven-phases-max/pen/GJeKBz?editors=110 | |
@alt-color: extract( | |
lighten(@color, 25%) darken(@color, 25%), | |
round(1 + lightness(@color) / 100)); | |
a { | |
@color: red; | |
color: @alt-color; | |
} | |
b { | |
@color: blue; | |
color: @alt-color; | |
} | |
c { | |
@color: darkgreen; | |
color: @alt-color; | |
} | |
d { | |
@color: black; | |
color: @alt-color; | |
} | |
e { | |
@color: white; | |
color: @alt-color; | |
} | |
// etc. | |
// unused variable, it's required for lazy-evaluation in rulesets above | |
// don't bother about it, it is used only to make the example shorter | |
@color: #123; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment