In Bootstrap tutorials, when people create their own Sass variables in a custom style.scss, I see lots of them using trailing !important
.
If you want to see an example of what I mean, start at 13:45 here: https://www.youtube.com/watch?v=MDSkqQft92o&time_continue=24&app=desktop
.navbar {
width: 100%;
background none !important;
@media(max-width: 34em) {
background: black !important;
}
}
But then other code in the .scss file doesn't use !important
. No explanation of why that is.
Anyone have some suggestions?