File tree Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Original file line number Diff line number Diff line change 1- $screen-1 : 320px ;
2- $screen-2 : 800px ; // SVGA
3- $screen-3 : 1280px ; // HD +FHD/QHD
4- $screen-4 : 2048px ; // 2K +4K
1+ $screen-1 : 320px ; // mobile-portrait
2+ $screen-2 : 480px ; // mobile-landscape
3+ $screen-3 : 768px ; // tablet-portrait
4+ $screen-4 : 1024px ; // pc & tablet-landscape
5+ $screen-5 : 2048px ; // pc-wide
56
67// Media queries
8+ // Wearable devices
79@mixin mobile-xs {
8- @media only screen and (max- width: #{ $screen-1 } ) {
10+ @media only screen and (width < $screen- 1) {
911 @content ;
1012 }
1113}
1214
13- // "Mobile screen" is the base of css stylesheet
15+ // "Mobile portrait" is default
16+ // $screen-1 <= width < $screen-2
1417
18+ // Mobile-landscape
19+ @mixin mobile-wide {
20+ @media only screen and ($screen- 2 <= width ) {
21+ @content ;
22+ }
23+ }
24+
25+ // Tablet-portrait
1526@mixin tablet {
16- @media only screen and (min-width : #{ $screen-2 } ) {
27+ @media only screen and ($screen- 3 <= width ) {
1728 @content ;
1829 }
1930}
2031
32+ // PC & Tablet-landscape
2133@mixin pc {
22- @media only screen and (min-width : #{ $screen-3 } ) {
34+ @media only screen and ($screen- 4 <= width ) {
2335 @content ;
2436 }
2537}
2638
27- @mixin pc-xl {
28- @media only screen and (min-width : #{ $screen-4 } ) {
39+ @mixin pc-wide {
40+ @media only screen and ($screen- 5 <= width ) {
2941 @content ;
3042 }
3143}
You can’t perform that action at this time.
0 commit comments