Menu

#SpecifiCity

12 posts

Feed·
12 of 12 posts
How I Tamed a Bloated CSS File with a Small Refactor
📰
0Read More

How I Tamed a Bloated CSS File with a Small Refactor

DEV Community: css·Ntty·about 24 hours ago
#HaCunMxd
#devtocss#devto#dev#maincontent#sidebar

A step‑by‑step look at reducing CSS specificity and making styles easier to maintain without rewriting the whole stylesheet.

15s
Use @layer + low-specificity selectors so site overrides don’t turn into selector wars
📰
0Read More

Use @layer + low-specificity selectors so site overrides don’t turn into selector wars

DEV Community: css·Chris Rodriguez·5 days ago
#DIs316TT
#devtocss#devto#dev#id#ids

Use cascade layers to keep a component library in one named layer and site overrides in a later layer, then keep selectors low-specificity with :where() so normal overrides stay simple and testable.

15s
I asked a chat app for a CSS specificity cheat sheet, then checked every row against MDN
📰
0Read More

I asked a chat app for a CSS specificity cheat sheet, then checked every row against MDN

DEV Community: beginners·Kai Mercer·7 days ago
#rGyRUZPU
#devtobeginners#devto#dev#header#selector

I do marketing for HelloAI (https://tryhello.app), the app in this test. Insider test, not a neutral...

15s
You're Still Writing CSS Like It's 2015: The Modern Architecture Guide That Fixes Specificity Forever
🖼️
0Read More

You're Still Writing CSS Like It's 2015: The Modern Architecture Guide That Fixes Specificity Forever

DEV Community: css·S M Tahosin·13 days ago
#ACKZImd5
#devtocss#devto#dev#app#special

A visual, 10-minute deep dive into modern CSS architecture. Learn how browsers execute the layout and composite pipeline, how Cascade Layers eliminate specificity wars forever, how container queries replace media queries, and how content-visibility yields…

15s
Cascade Layers (@layer) in CSS: how to solve the specificity problem once and for all
🖼️
0Read More

Cascade Layers (@layer) in CSS: how to solve the specificity problem once and for all

DEV Community·Nick Benksim·7 months ago
#y2OoNJin
#css#webdev#frontend#layer#specificity

From Dev.to - webdev: Cascade Layers (@layer) in CSS: how to solve the specificity problem once and for all

15s
Why I spent years trying to make CSS states predictable
🖼️
0Read More

Why I spent years trying to make CSS states predictable

DEV Community·Andrey Yamanov·7 months ago
#q2PmuEiO
#primary#css#webdev#surface#frontend

Have you ever changed the order of two CSS rules and broken a component without changing the logic? .btn:hover { background: dodgerblue; } .btn[disabled] { background: gray; } Both selectors have specificity (0, 1, 1).…

15s
0Read More

Alternatives to the !important Keyword

CSS-Tricks·Saleh Mubashar·7 months ago
#4ZBcJS0Z
#css-tricks#header#sidebar#some_id#code

Cascade layers, specificity tricks, smarter ordering, and even some clever selector hacks can often replace !important with something cleaner, more predictable, and far less embarrassing to explain to your future self.…

15s