sketch/media
Define media queries directly with functions. Refer to the sketch module to get more details on the usage.
Advanced usage
Media queries can be rather complex, and the module tries to give all
features in a usable way. A media query takes form (property: value) and
can be combined, like (orientation: landscape) or (min-width: 1000px).
Those media queries can be created by using the corresponding and
,
or
or not
functions.
Types
Functions
pub fn dark_theme() -> Query
pub fn light_theme() -> Query
pub fn max_height(size: Size) -> Query
pub fn min_height(size: Size) -> Query