Suppose I have the following setting below:
.box { border: 1px solid #333; &.error { background-color: Red; } }
And I wanted to declare another class that applied the full style of .box.error, for example .error-box , what is the correct syntax?
If I use:
.error-box { .box.error; }
All I get is a red background, no frame. I tried many different combinations, but always get a syntax error.
less
mattdwen
source share