PHPnews.io

Conditional border-radius and three future CSS features

Written by Bram.us / Original link on Oct. 17, 2021

FBrvCdcWEAEoAYw.jpeg

Stefan Judis has reworked Ahmad Shadeed‘s Conditional border-radius, using these three (future) CSS additions:

  1. Media query ranges
  2. Container Queries
  3. CSS @when + @else

The result definitely is a very nice and readable piece of code, that doesn’t feel hacky at all.

Conditional border-radius and three future CSS features →

bram bram bram link tutorialzine bram

« How I built a modern website in 2021 - ★ Using Factory sequences in Laravel »