Home › Forums › CSS › Nesting LESS › Reply To: Nesting LESS
November 8, 2013 at 10:07 am
#155451
Josh
Participant
In your last example, your Less is targeting an element with a class of .wrap-up
inside of the body
element ( so, body .wrap-up
instead of body.wrap-up
). What you’re after there is the parent selector:
body {
&.wrap-up {
background: @lightblue;
}
}