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
Post a Comment