forked from limchaeman/project_study-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Color Functions
BY Kim edited this page Jun 10, 2016
·
1 revision
ex>
.box.darken {
background-color: @color;
border: 3px solid **darken(@color, 20%)**;
}
ex>
.box.lighten {
border: 3px solid **lighten(@color, 20%)**;
}
ex>
.box.hue {
background-color: **spin(@color, 123)**;
}
The color will be changed another color
ex>
.box.desaturate {
background-color: desaturate(spin(@color, 123), 50%);
}
ex>
.box.mix {
background-color: mix(@blue, @yellow, 50%);
}
0% will result in the first color you stated (@blue) while 100% will do the opposite(@yellow).