Home > Back-end >  Why _utilities.scss overwrites styles.scss and local scss
Why _utilities.scss overwrites styles.scss and local scss

Time:08-13

I defined mt-5 class in component's .scss and the root styles.scss, but both got overwritten by _utilities.scss. Wondering why.

enter image description here enter image description here

Angular v14, bootstrap 5.1.3

CodePudding user response:

margin-top in _utilities.scss has !important property.

More info: https://www.w3schools.com/css/css_important.asp

  • Related