LESS Flashcards

1
Q

How do you declare and use a variable?

A

@color: #fe33ac;

div {
color: @color;
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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();
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly