#css-custom-properties

[ follow ]
Web development
fromPiccalilli
1 week ago

A workaround for using custom properties in media queries

Use container style queries plus @property and vi units to emulate media queries using custom properties and computed length comparisons.
Web design
fromPiccalilli
2 months ago

A revisit of the Every Layout sidebar with :has() and selector performance

The Sidebar layout provides adaptability without requiring @media queries.
UX design
fromAlways Twisted
5 months ago

CSS Custom Properties vs. Sass Variables: A Pragmatic Guide Always Twisted

Sass variables are for compile-time constants; CSS custom properties offer runtime flexibility for theming.
[ Load more ]