Just learn without words and use the bootstrap on twitter in my project.
If I want a green button to submit the form, I need to write:
<input type="submit" value="submit" class="btn btn-success" />
But I can skip the class attribute in the input tag.
I will not modify the twitter bootstrap file. I will overload them in the default.less file as follows:
button, input[type="submit"]{ .btn; .btn-success; }
But then I do not get the hang state and the active state of the button, and I get errors if I try to do it like this:
button, input[type="submit"]{/* previus code... */ &:hover{ .btn:hover; }}
You may notice what I'm trying to accomplish. I know that I can do this in jquery or javascript, but I can do this in my unlimited file without touching the original boot files.
aross source
share