Thanks again for the heads up here! We audited this and found a few more places we needed to update, so the following applies to the next patch.
We’ve reduced all max-width
media queries by .02
, and set the min-width
to the next whole number. We picked up this technique from some things Bootstrap started doing years ago. Previously, it was 1px difference, but there were many cases where a screen size could be exactly on that width at which point no styles would be applied.
Here is what you’ll see moving forward in the theme’s CSS output.
@media (max-width: 479.98px)
@media (min-width: 480px) and (max-width: 766.98px)
@media (min-width: 767px) and (max-width: 978.98px)
@media (min-width: 979px) and (max-width: 1199.98px)
@media (min-width: 1200px)
This did include a 1px shift the inner breakpoints because we wanted to keep min-width
for the whole numbers since that will come into play more in the responsive styling update.
As for the preview switcher labels, great catch on some being 1px off. We’ve made all this consistent in the next patch. They are intentionally overlapped them because 479.98px
is closer to 480px
than 479px
. It feels a little more comfortable as you mouse over them to see the same numbers repeated rather than introducing 1px offsets. Also, eventually you’ll be able to replace 480
, 767
, 979
, and 1200
with your own numbers, and we don’t want to show offsets on user inputted numbers.
Hopefully this clears things up! Thanks again for bringing this up as it helped us get some final polish on the changes.