Media Queries
Media queries provide more power and allow you to style cross-platform apps with pixel-perfect accuracy.
Basic usage
To use media queries, you need to import the mq
utility and convert your value to an object
:
The mq
utility provides Intellisense for quickly building your media queries.
Advanced usage
You can also combine width
media queries with height
media queries:
Or use only height
media queries:
You can also reuse your defined breakpoints:
Reference
You can mix media queries with breakpoints, but media queries will always have higher priority:
Breakpoints
and Media Queries
will be auto converted to Web CSS media queries. Learn more about Web Media Queries.