1

I have a <div> in my application. It is set to have a class of "enumPanel" and dynamically I add the class "current".

How can I wire this up in less so that my properties will come into effect only when both classes are present on the div ?

.enumPanel .current {
   // this does not seem to work
}

2 Answers2

2

CSS

.enumPanel.current {}

LESS

.enumPanel {
   &.current {

   }
}
m4n0
  • 27,411
  • 26
  • 71
  • 84
Curtis
  • 98,395
  • 62
  • 265
  • 345
1
.enumPanel.current {
    // this will work
}
Alessio Cantarella
  • 4,800
  • 3
  • 26
  • 31