You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I use the Bulma css framework from which I use the the button class. I want to use that class on my element but also modify it a bit. However, I get into the problem of class application order.
To overwrite some property I have to use the !important modifier as shown below:
This way we could set specific order how classes are applied. The class names prefixed with the dot (like .button) would not be verified the same way as the usual Mint styles.
The text was updated successfully, but these errors were encountered:
Hi! I use the Bulma css framework from which I use the the
button
class. I want to use that class on my element but also modify it a bit. However, I get into the problem of class application order.To overwrite some property I have to use the
!important
modifier as shown below:It is because the order of application would be like this:
btn-save
class written in Mint codebutton
class from the Bulma frameworkTo avoid the
!important
modifier I can alternatively create the style in a CSS file instead of in mint code and use it in the specified order:button
classbtn-save
class written in CSS fileThis is not ideal because:
!important
modifier breaks priorities of applying property valuesSolution?
I would propose a solution like this:
This way we could set specific order how classes are applied. The class names prefixed with the dot (like
.button
) would not be verified the same way as the usual Mint styles.The text was updated successfully, but these errors were encountered: