-
Notifications
You must be signed in to change notification settings - Fork 0
/
media.css
81 lines (73 loc) · 1.49 KB
/
media.css
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
body:after {
content: "Media: wtf, dude?";
display: block;
position: fixed;
bottom: 0;
left: 0;
background: #666;
color: #fff;
z-index: 999;
padding: 5px 20px;
}
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
body:after {
content: "Media: Smartphone";
}
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
body:after {
content: "Media: Smartphone Landscape";
}
}
/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
body:after {
content: "Media: Smartphone Portrait";
}
}
/* Pads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
body:after {
content: "Media: Pad";
}
}
/* Pads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
body:after {
content: "Media: Pad Landscape";
}
}
/* Pads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
body:after {
content: "Media: iPad Portrait";
}
}
/* Desktops and laptops ----------- */
@media only screen
and (min-width : 1224px) {
body:after {
content: "Media: Desktop/Laptop";
}
}
/* Large screens ----------- */
@media only screen
and (min-width : 1824px) {
body:after {
content: "Media: Large Screen";
}
}