No that is exactly what i tried. <button>On</button> <button disabled>Off</button>
Gave me 2 buttons, bootstrap style, the second one disabled.. Does your less code compile correctly, with the css from .btn? On Sat, Apr 14, 2012 at 20:55, Nils Kilden-Pedersen <[email protected]>wrote: > On Sat, Apr 14, 2012 at 1:46 PM, Barry vd. Heuvel <[email protected]>wrote: > >> To give (for example) all buttons, the button look, you can do something >> like this in your LESS code; >> >> button { >> .btn; >> } >> button[disabled] { >> .btn.disabled; >> } >> > > If you read my first post, you'll that this is exactly what I was trying > to do, and it doesn't work. Although my syntax is slightly different (using > the :disabled selector), but that should not matter. I don't even get the > .btn styling, which has the same syntax. Have you actually tried this or > are you making the same assumption I did? > >
