/
Separate concerns with CSS rules
Separate concerns with CSS rules
I think this is another key design concept to apply. Rather than mixing concerns with CSS I think it’s worth exploring the idea of separating classes based on what concern we are targeting. These are what I think of as separate concerns:
Layout
Positioning of elements
Appearance
Color
Shadow and curved corner effects
Borders
It’s also key to keep CSS rules very flat - avoid using nested CSS rules etc. since it makes it difficult to manage them.
, multiple selections available,
Related content
CSS Selectors
CSS Selectors
Read with this
Problems that CSS preprocessors tried to solve that can be done using plain CSS
Problems that CSS preprocessors tried to solve that can be done using plain CSS
More like this
How SASS CSS preprocessors can make for complex CSS
How SASS CSS preprocessors can make for complex CSS
More like this
Flat CSS hierarchy
Flat CSS hierarchy
More like this
How can we find simplicity in CSS?
How can we find simplicity in CSS?
More like this
Simple CSS selectors - keep it flat and target classes only
Simple CSS selectors - keep it flat and target classes only
More like this