Answer the question
In order to leave comments, you need to log in
Less: how to implement multiple selectors in a variable?
We have:
select, textarea, input[type="text"], input[type="password"] {
color: #000;
}
.error {
select, textarea, input[type="text"], input[type="password"] {
color: red;
}
}
@input-selector: ~'select, textarea, input[type="text"], input[type="password"]';
@{input-selector} {
color: #000;
}
.error {
@{input-selector} {
color: red;
}
}
select, textarea, input[type="text"], input[type="password"] {
color: #000;
}
.error select, textarea, input[type="text"], input[type="password"] {
color: red;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question