Avoid unnecessary CSS nesting
March 6, 2022
Why?
The more selector we include in styling the element, the higher the CSS-specificity will be, and itâs harder to override in the future.
So when youâre styling your code, if itâs not a must, just keep your css nesting as light as possible so later you donât have to use !important everywhere.