#specificity

[ follow ]
#css
fromManuel Matuzovic
1 week ago
Web development

Lowering the specificity of multiple rules at once - Manuel Matuzovic

Anonymous @layer groups reset rules so normal unlayered author rules override them, preserving low specificity and improving readability.
fromAaadaaam
5 months ago
Web development

There's no such thing as a CSS reset | Adam Stoddard

CSS resets do not restore objective defaults, but instead define subjective styles for web elements.
fromSmashing Magazine
4 months ago

Integrating CSS Cascade Layers To An Existing Project - Smashing Magazine

The idea behind this is to share a full, unfiltered look at integrating CSS Cascade Layers into an existing legacy codebase. In practice, it's about refactoring existing CSS to use cascade layers without breaking anything. You can always get a fantastic overview of things in Stephenie Eckles' article, " Getting Started With CSS Cascade Layers ". But let's talk about the experience of integrating cascade layers into real-world code, the good, the bad, and the spaghetti.
Web development
[ Load more ]