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
  • 29,823
  • 27
  • 76
  • 89
Curtis
  • 101,612
  • 66
  • 270
  • 352
1
.enumPanel.current {
    // this will work
}
Alessio Cantarella
  • 5,077
  • 3
  • 27
  • 34