less is compiled to css and you apply css to html...no reinvention required.
On Fri, Apr 13, 2012 at 7:00 PM, nilskp <[email protected]> wrote: > I've just started looking at Bootstrap, but there's a couple of things I > don't get. It appears I have to apply specific Bootstrap classes to get any > functionality, and those classes cannot be applied through LESS. An example: > > On my trial page, I had a disabled button, simply this: > > <button disabled>Click me</button> > > To have this render, I naturally tried this: > > button { > .btn; > &:disabled { > .disabled; > } > } > > This does not work. It appears I MUST apply those classes manually, > describing to Bootstrap what is already obvious in the HTML > > <button class="btn disabled">Click me</button> > > Any reason for Bootstrap to reinvent HTML or am I missing some obvious > switch somewhere? > > Thanks! > >
