Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
In order to be able to write CSS/SCSS media queries in an easy and maintainable way with a natural and simplistic syntax, we are using the include-media library.
The library comes with a list of default breakpoints that we changed for our needs:
Those value are already overrided for some apps, Mail and Calendar as I'm writing this line.
$breakpoints is a map variable specific to include-media.
im-to-em, standing for include media to em unit, is a specific helper for converting pixel values into em values. This way, these values are kept as reachable as possible.
Due to the wide variety of devices, and their diversity in size, we no longer mention any device in the naming. From now on, it will be graduated sizes from xsmall to xlarge, leaving us the possibility to extend the list as needed.
<=) and exclusive value for min width (>).Some elements require additional rules on intermediate breakpoints, so you can create media queries that use both global breakpoints and case-specific values.
Here, we need to convert the pixel value 640 into an em value, so we are using the em function with the 16 base font size, which is the browser default.
em… or use an em value directly. This makes the breapoint browser zooming compatible.Media types and static expressions are optional and automatically deferred. The list of media types is declared by $media-expressions.
All expressions result in a min-width or max-width expression by default, but you can explicitly use any breakpoint with min-height and max-height instead.
For further features, check the include-media full documentation.