Slide 84
Slide 84 text
ADVANCED
.buttons (@color, @type) when (@type == "flat") {
background-color: @color;
}
.buttons (@color, @type) when (@type == "gradient") {
background: linear-gradient(@color, darken(@color, 20%));
}
.buttons (@color, @type) when (@type == "glossy") {
background: linear-gradient(@color 50%, darken(@color, 20%) 50%);
}
!
.button {
.buttons(green, glossy);
}
when (if, else) – Less