Menu

#SpecifiCity

14 posts

Feed·
14 of 14 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·21 days 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·25 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·27 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
Modern CSS Might Make Your Front-End More Complex — Smashing Magazine
🖼️
0Read More

Replacing JavaScript with a modern CSS feature can simplify a piece of code while making the wider application harder to reason about. Gabriel Shoyombo explores what happens when logic is split between CSS and JavaScript, sharing practical guidance to…

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·about 1 month 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
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·8 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·8 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