import { root } from "@lynx-js/react";
import "./index.scss";
function MediaQueryDemo() {
return (
CSS MEDIA QUERY
Portrait breakpoints
Use viewport width and height to apply responsive styles without rotating the device.
Narrow portrait: under 360px
Regular portrait: 360px to 399px
Large portrait: 400px or wider
Tall viewport: 700px or taller
High-density display: 2dppx or higher
Color scheme: prefers-color-scheme: light
Color scheme: prefers-color-scheme: dark
Width range
Use a Level 4 range query to target common portrait widths.
Viewport height
Use min-height to reserve more space on taller screens.
);
}
root.render();
if (import.meta.webpackHot) {
import.meta.webpackHot.accept();
}