by djstein · 2y ago · 0 comments
I haven’t found a world where minmax or calc fixes this. hope someone has answers!
Then you can update the value of just that variable from JS, and the grid will reflect it.
Here's a very simple example: https://codepen.io/trescenzi/pen/vYqpjvL.
But I thought that using screen size media queries is an anti-pattern, and that we should be aiming for fluid design without arbitrary breakpoints.