LESS Flashcards
1
Q
How do you declare and use a variable?
A
@color: #fe33ac;
div {
color: @color;
}
2
Q
What is a mixin?
A
It’s like a function that can encapsulate a number of CSS rules, and when called in the selector, will insert those rules.
.remove_margins() {
margin: 0;
}
div {
.remove_margins();
}