Forums

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

Home Forums Other Mixin LESS not working Reply To: Mixin LESS not working

#175940
Paulie_D
Member

It doesn’t matter AFAIK.

If the class is not added to the element it won’t be affected by the CSS.

I still disagree with the GITanswer


// all do the same thing
#outer > .inner;
#outer > .inner();
#outer  .inner;
#outer  .inner();

refer to an element with a class of .inner inside an element with an ID of #outer


#outer.inner;
#outer.inner();

refers to an element with an ID of #outer that also has a class of .inner

As I said, perhaps this is something special in LESS.