Pinned
Adam Argyle
21.4K posts
@Shopify design-engineer; prior @GoogleChrome, @GoogleCloud, CSSWG, and CSS Podcast. Host on @whiskeywebfm, maker of @OpenProps, gradient.style and more
- 4 layouts for the price of 1, thanks flex 👍 css` form { display: flex; flex-wrap: wrap; & > input { flex: 1 1 10ch; margin: .5rem; &[type="email"] { flex: 3 1 30ch; } } } ` view source on Codepen 👇 codepen.io/argyleink/pen/…
00:00 - #CSS :is() selector 🎉 the successor to :any() and :matches() sneak peak into our talk, here's a neat gif I made with XD showing what the :is() selector syntax can do. be excited for Chrome Dev Summit y'all! developer.chrome.com/devsummit/
GIF - make taps 300ms faster with 1 line of CSS: ```#css touch-action: manipulation; ``` means: element doesn't want double-tap to zoom result: browser *immediately* responds to taps instead of waiting 300ms for a "potential" 2nd tap 🤓 caniuse (YES!) caniuse.com/mdn-css_proper…
- G̶o̶o̶g̶l̶e̶r̶… ex-Googler.
- Can you believe these slides are full page loads to completely new HTML pages‽ #smashingconf smashing-transitions.netlify.app ^ try it with Canary and enable the flag chrome://flags/#view-transition-on-navigation what. rad. tech. 🤯
00:00 - make focus a little more engaging ```css @Media (prefers-reduced-motion: no-preference) { :focus { transition: outline-offset .25s ease; outline-offset: 5px; } } ``` try it codepen.io/argyleink/pen/…
00:00 - How slick :is(this CSS!?) 😏 removes the margins on all headers with a `.tight` class h1.tight, h2.tight....... 🤢 :is(h1,h2).tight { 🤓 }
- .logo { display: flex; place-items: center; gap: .5ch; font-size: 20vmin; } .logo > img { max-block-size: 1.25em; } 🤩 logo img height is 125% of a responsive font-size (20vmin) letter M.. relative units are so cool! codepen.io/argyleink/pen/…
00:00 - 🎉 flex that gap in the latest release of Chrome Canary 🎉 ```css display: flex; 🦾 gap: 1ch; 🔥 ``` early adopters: help us test it out won't ya!? note: requires web experiments enabled, visit chrome://flags/#enable-experimental-web-platform-features in Canary to enable
00:00 - I can't stop seeing #CSS View Transitions! here I'm animating new `node.textContent`, letting the browser handle the morph while bringing in custom animations (and stagger) for stage enter and stage exit 🥲 try it codepen.io/argyleink/pen/…
00:00 - media-queries-4 making confusing queries much simpler 😍 caniuse (Firefox only atm) caniuse.com/mdn-css_at-rul… CSS spec w3.org/TR/mediaquerie… PostCSS plugin github.com/postcss/postcs… ⭐️ to show Chromium you want it bugs.chromium.org/p/chromium/iss…
00:00 - PREVIOUSLY: separate rulesets for light and dark NOW: one ruleset with `light-dark()`
00:00New article got published: CSS `color-scheme`-dependent colors with `light-dark()` 🔗 web.dev/articles/light…







