Open bjuppa opened 7 years ago
It'd be interesting to extend this to handle vmin and vmax too... Can one use or-logic in media-queries?
Yes, or-logic can be used in media-queries through comma-separation: https://css-tricks.com/logic-in-media-queries/
This example can be used to create a responsive mixin that takes a viewport-based value along with a min and max for the attribute, then it calculates the breakpoints automatically: https://css-tricks.com/snippets/sass/viewport-sized-typography-minimum-maximum-sizes/
The mixins we already have in boilerplate-pattern-library/resources/assets/sass/modules/_responsive-locks.scss are based on fixed media-query min and max values along with min and max for the attribute.