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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -