The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nesting LESS Reply To: Nesting LESS


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;