/
_media.scss
59 lines (50 loc) · 1.05 KB
/
_media.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@mixin mobile {
@media only screen and (min-width : 320px) and (max-width : 480px) {
@content;
}
}
@mixin mobile-portrait {
@media only screen and (max-width : 320px) {
@content;
}
}
@mixin mobile-landscape {
@media only screen and (max-width : 480px) {
@content;
}
}
@mixin tablet {
@media only screen and (min-width : 768px) and (max-width : 1024px) {
@content;
}
}
@mixin max-tablet {
@media only screen and (max-width : 1024px) {
@content;
}
}
@mixin tablet-portrait {
@media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : portrait) {
@content;
}
}
@mixin tablet-landscape {
@media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : landscape) {
@content;
}
}
@mixin desktop {
@media only screen and (min-width : 1025px) {
@content;
}
}
@mixin wide-screen {
@media only screen and (min-width : 1824px) {
@content;
}
}
@mixin retina {
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
@content;
}
}