LESS extend() not working
问题 I want to write a class 'selected' for my app's buttons. When a button hasClass 'selected' its look and feel should be the same as Bootstrap's 'btn-primary'. Bootstrap css defines (for example): .btn-primary { background-color:#00F; color:#FFF; } I wrote my class as follows: button.selected:extend(.btn-primary) {}; 1) Is it supposed to work like that? 2) If 1) is yes, then my css is not working. The selected class does not inherit color and background-color from btn-primary. UPDATE Some of my