'How to apply previous substyle into other style?
How can add input properties to select also? Something wrong with this syntax.
.nestedContainerForContactForm {
div {
input {
width: 100%;
}
&select {
outline: none;
-webkit-appearance: menulist-button;
}
}
}
Solution 1:[1]
The most efficient way to write it would be like this:
.nestedContainerForContactForm {
div {
input,
select {
width: 100%;
}
select {
outline: none;
-webkit-appearance: menulist-button;
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sean |
