Skip to content

Commit

Permalink
Also add landscape and portrait media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jun 29, 2023
1 parent b560fef commit 9a321db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/stores/matchMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ export const print = matchMedia(`print`);
export const darkColorScheme = matchMedia(`(prefers-color-scheme: dark)`);
export const lightColorScheme = matchMedia(`(prefers-color-scheme: light)`);
export const motionReduce = matchMedia(`(prefers-reduced-motion: reduce)`);
export const landscape = matchMedia(`(orientation: landscape)`);
export const portrait = matchMedia(`(orientation: portrait)`);

1 comment on commit 9a321db

@vercel
Copy link

@vercel vercel bot commented on 9a321db Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.