css - LESS: Applying a ruleset only when selector is in another selector -
say i've got:
.apple { color: red; }
now, let's i've got:
.big { .apple { font-size: 1.25em; } }
is there way can put .big
selector inside rule .apple
? in psuedocode, like:
.apple { color: red; &:[when inside `.big`] { font-size: 1.25em; } }
you place &
@ end:
.apple { color: red; .big & { font-size: 1.25em; } }
Comments
Post a Comment