html - Bootstrap - Do I have to add that class to every element? -


in css i'm used define styles globally elements button { /* style stuff */ }

is there way set buttons bootstraps btn btn-sm btn-default without explicitly setting class every element?

for example like

button {   btn btn-sm btn-default } 

if familiar less, edit bootstrap core , prepend each .btn button, .btn, button, , recompile less. buttons.less file want looking at.

alternatively, search , replace ".btn {" , replace ".btn, button {" in compiled css of bootstrap. although have multiple times , quite careful, since there lot of subclasses in bootstrap (.btn-default, .btn-primary , on).


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -