This is purposefully ambitious and aspirational. Some concepts that are worth understanding in addition to the principles outlined here include:
Here’s a CodePen I’ll periodically update with the compiled CSS to use as a testing playground.
This is purposefully ambitious and aspirational. Some concepts that are worth understanding in addition to the principles outlined here include:
Here’s a CodePen I’ll periodically update with the compiled CSS to use as a testing playground.
// Disable smooth scrolling for users who have set `prefers-reduced-motion` in their operating system | |
// 1. Place this snippet before the end of the <body> tag; | |
// NOT in the <head> tag! | |
// 2.Make sure it's inside $(function() {})! | |
$(function() { | |
const mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)'); | |
if (mediaQuery.matches) $(document).off('click.wf-scroll'); | |
}) |
/* | |
This is not meant to be a final CSSWG proposal, | |
but reflects my immediate thoughts after reading | |
[David Baron's](https://github.com/dbaron/container-queries-implementability) promising draft. | |
This gist was created to demonstrate my idea for removing selectors from his query syntax. | |
More of my thoughts & notes are online at css.oddbird.net/rwd/ | |
*/ | |
main, |