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

Commit 9b29dd2

Browse files
update breakpoint values
1 parent b2bd745 commit 9b29dd2

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

README.md

+10-12
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,16 @@ We can associate breakpoints with mediaQuery definitions using breakpoint **alia
3636

3737
| breakpoint | mediaQuery |
3838
|--------|--------|
39-
| "" | `screen` |
40-
| xs | `screen and (max-width: 479px)` |
41-
| gt-xs | `screen and (min-width: 480px)` |
42-
| sm | `screen and (max-width: 599px)` |
43-
| gt-sm | `screen and (min-width: 600px)` |
44-
| md | `screen and (min-width: 600px) and (max-width: 959px)` |
45-
| gt-md | `screen and (min-width: 960px)` |
46-
| lg | `screen and (min-width: 960px) and (max-width: 1279px)` |
47-
| gt-lg | `screen and (min-width: 1280px)` |
48-
| xl | `screen and (min-width: 1280px) and (max-width: 1919px)`|
49-
| gt-xl | `screen and (min-width: 1920px)` |
50-
39+
| "" | 'screen' |
40+
| xs | 'screen and (max-width: 599px)' |
41+
| gt-xs | 'screen and (min-width: 600px)' |
42+
| sm | 'screen and (min-width: 600px) and (max-width: 959px)' |
43+
| gt-sm | 'screen and (min-width: 960px)' |
44+
| md | 'screen and (min-width: 960px) and (max-width: 1279px)' |
45+
| gt-md | 'screen and (min-width: 1280px)' |
46+
| lg | 'screen and (min-width: 1280px) and (max-width: 1919px)'|
47+
| gt-lg | 'screen and (min-width: 1920px)' |
48+
| xl | 'screen and (min-width: 1920px)' |
5149
<br/>
5250

5351
If we combine the breakpoint `alias` with the Layout API we can easily support Responsive breakpoints with a simple markup convention: the `alias` is used as suffix extensions to the Layout API.:

src/mediaQuery/services/BreakPointsService.es6.js

+10-11
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ class BreakPointsService {
33

44
constructor() {
55
this.breakpoints = [
6-
new BreakPoint('' ,'' ,'screen' ),
7-
new BreakPoint('xs' ,'Xs' ,'screen and (max-width: 479px)' ),
8-
new BreakPoint('gt-xs' ,'GtXs' ,'screen and (min-width: 480px)' ),
9-
new BreakPoint('sm' ,'Sm' ,'screen and (max-width: 599px)' ),
10-
new BreakPoint('gt-sm' ,'GtSm' ,'screen and (min-width: 600px)' ),
11-
new BreakPoint('md' ,'Md' ,'screen and (min-width: 600px) and (max-width: 959px)' ),
12-
new BreakPoint('gt-md' ,'GtMd' ,'screen and (min-width: 960px)' ),
13-
new BreakPoint('lg' ,'Lg' ,'screen and (min-width: 960px) and (max-width: 1279px)' ),
14-
new BreakPoint('gt-lg' ,'GtLg' ,'screen and (min-width: 1280px)' ),
15-
new BreakPoint('xl' ,'Xl' ,'screen and (min-width: 1280px) and (max-width: 1919px)'),
16-
new BreakPoint('gt-xl' ,'GtXl' ,'screen and (min-width: 1920px)' )
6+
new BreakPoint('' , '' , 'screen' ),
7+
new BreakPoint('xs' , 'Xs' , 'screen and (max-width: 599px)' ),
8+
new BreakPoint('gt-xs', 'GtXs', 'screen and (min-width: 600px)' ),
9+
new BreakPoint('sm' , 'Sm' , 'screen and (min-width: 600px) and (max-width: 959px)' ),
10+
new BreakPoint('gt-sm', 'GtSm', 'screen and (min-width: 960px)' ),
11+
new BreakPoint('md' , 'Md' , 'screen and (min-width: 960px) and (max-width: 1279px)' ),
12+
new BreakPoint('gt-md', 'GtMd', 'screen and (min-width: 1280px)' ),
13+
new BreakPoint('lg' , 'Lg' , 'screen and (min-width: 1280px) and (max-width: 1919px)'),
14+
new BreakPoint('gt-lg', 'GtLg', 'screen and (min-width: 1920px)' ),
15+
new BreakPoint('xl' , 'Xl' , 'screen and (min-width: 1920px)' )
1716
];
1817
}
1918

0 commit comments

Comments
 (0)