Let's improve the below with some modern stuff 😎 Demo: codepen.io/t_afif/pen/J... via @codepen.io The perfect use case to illustrate why we need all the new improvements. To make the code more readable and less hacky. cc @ishadeed.com @nerdy.dev
Great CSS trick documented by @ishadeed.com for showing conditional border radius (border radius on desktop, none on mobile) border-radius: max(0px, min(8px, calc((100vw - 4px - 100%) * 9999))) / 8px; (via @nerdy.dev at #CSSDay) ishadeed.com/article/cond...
7 reposts32 likes