CSS

1304 bookmarks
Custom sorting
Using mask as clip-path
Using mask as clip-path
When I first learned that the path() function is supported in the clip-path attribute, I was quite excited because it allows clipping with complex shapes other than ellipse or polygons.
·yuanchuan.dev·
Using mask as clip-path
How Flexbox Works
How Flexbox Works
Flexbox can be difficult to understand just by using it. In this post, I explain what the browser does when you use display: flex to trigger a flex formatting context.
·tiffanybbrown.com·
How Flexbox Works
CSS in 2022
CSS in 2022
With 2021 coming to an end, let's take a look at which CSS language features we can expect to land in browsers in 2022.
·bram.us·
CSS in 2022
Responsive iframes with the CSS aspect-ratio property
Responsive iframes with the CSS aspect-ratio property
Today, I want to show you can use a few lines of CSS to make your embedded iframes fully responsive. Let’s dig in! The challenge with iframes and responsive layouts Unlike images and the native HTML5 video element, iframes do not scale responsively by default. /** * This does NOT work */ iframe { max-width: 100%; height: auto; } Years back, Dave Rupert put together a great video showing the challenge with responsive iframe videos.
·gomakethings.com·
Responsive iframes with the CSS aspect-ratio property
"Dark Mode" vs "Inverted"
"Dark Mode" vs "Inverted"
One thing we run into a fair amount in our design system work is the need to clarify the difference between "dark mode" and "components rendered on a dark background". What is actual dark mode? prefers-color-scheme is a CSS media feature that listens to a user's preference for dark or light
·bradfrost.com·
"Dark Mode" vs "Inverted"