Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit d9fd2a8

Browse files
committed
feat(media query): The media function has been deprecated and replaced with a method for writing queries directly.
1 parent 5787ff0 commit d9fd2a8

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/core/breakpoint.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export const min_sm = '@media screen and (min-width: 640px)';
2+
export const min_md = '@media screen and (min-width: 768px)';
3+
export const min_lg = '@media screen and (min-width: 1024px)';
4+
export const min_xl = '@media screen and (min-width: 1280px)';
5+
export const min_2xl = '@media screen and (min-width: 1536px)';
6+
7+
export const max_sm = '@media screen and (max-width: 640px)';
8+
export const max_md = '@media screen and (max-width: 768px)';
9+
export const max_lg = '@media screen and (max-width: 1024px)';
10+
export const max_xl = '@media screen and (max-width: 1280px)';
11+
export const max_2xl = '@media screen and (max-width: 1536px)';

src/core/media-query.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)