Is there a way to take:
<button class="btn btn-primary btn-block">
And change it to:
<button class="btn btn-foo">
...with...
.btn-foo {
/* apply .btn-primary */
/* apply .btn-block */
}
Is there a way to take:
<button class="btn btn-primary btn-block">
And change it to:
<button class="btn btn-foo">
...with...
.btn-foo {
/* apply .btn-primary */
/* apply .btn-block */
}
You can easily do so with SASS pre-processor by using @extend.
someDiv { @extend .opacity; @extend.
.radius; }
Otherwise, you could use JavaScript (jQuery) as well:
$('someDiv').addClass('opacity radius')