During Bootstrap tutorials, many individuals implementing their own Sass variables in a customized style.scss tend to utilize trailing !important
.
If you'd like to observe an example of this practice, check out the video starting 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;
}
}
Interestingly, other segments of code within the .scss file do not require the use of !important
. The reasoning behind this remains unclear.
Any suggestions or insights on this matter?