-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
s.css
184 lines (173 loc) · 3.9 KB
/
s.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
div {
font-size: 2em;
}
.media-min-width:after {
content: 'Min width (for mobile first)';
}
@media (min-width: 20em) {
.media-min-width:after {
content: 'Min width 20em';
}
}
@media (min-width: 40em) {
.media-min-width:after {
content: 'Min width 40em';
}
}
@media (min-width: 60em) {
.media-min-width:after {
content: 'Min width 60em';
}
}
.media-gap-width:after {
content: 'Gap width (for precision)';
}
@media (min-width: 20em) and (max-width: 40em) {
.media-gap-width:after {
content: 'Gap width 20em -> 40em';
}
}
@media (min-width: 40em) and (max-width: 60em) {
.media-gap-width:after {
content: 'Gap width 40em -> 60em';
}
}
.media-max-width:after {
content: 'Max width (for desktop first)';
}
@media (max-width: 60em) {
.media-max-width:after {
content: 'Max width 60em';
}
}
@media (max-width: 40em) {
.media-max-width:after {
content: 'Max width 40em';
}
}
@media (max-width: 20em) {
.media-max-width:after {
content: 'Max width 20em';
}
}
.media-min-height:after {
content: 'Min height';
}
@media (min-height: 10em) {
.media-min-height:after {
content: 'Min height 10em';
}
}
@media (min-height: 20em) {
.media-min-height:after {
content: 'Min height 20em';
}
}
@media (min-height: 30em) {
.media-min-height:after {
content: 'Min height 30em';
}
}
.media-gap-height:after {
content: 'Gap height (for precision)';
}
@media (min-width: 10em) and (max-width: 20em) {
.media-gap-height:after {
content: 'Gap height 10em -> 20em';
}
}
@media (min-width: 20em) and (max-width: 30em) {
.media-gap-height:after {
content: 'Gap height 20em -> 30em';
}
}
.media-max-height:after {
content: 'Max width (for desktop first)';
}
@media (max-height: 30em) {
.media-max-height:after {
content: 'Max width 30em';
}
}
@media (max-height: 20em) {
.media-max-height:after {
content: 'Max width 20em';
}
}
@media (max-height: 10em) {
.media-max-height:after {
content: 'Max width 10em';
}
}
.media-orientation:after {
content: 'No orientation defined';
}
@media (orientation: portrait) {
.media-orientation:after {
content: 'Orientation: portrait';
}
}
@media (orientation: landscape) {
.media-orientation:after {
content: 'Orientation: landscape';
}
}
.media-resolution:after {
content: 'Default resolution 1dppx';
}
@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) {
.media-resolution:after {
content: 'Resolution 1dppx';
}
}
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
.media-resolution:after {
content: 'Resolution 1.5dppx';
}
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.media-resolution:after {
content: 'Resolution 2dppx';
}
}
.media-pixel-ratio:after {
content: 'Default pixel ratio';
}
@media (-webkit-min-device-pixel-ratio: 1), (-moz-min-device-pixel-ratio: 1), (-o-min-device-pixel-ratio: 2 / 2), (min-device-pixel-ratio: 1) {
.media-pixel-ratio:after {
content: 'Pixel ratio: 1';
}
}
@media (-webkit-min-device-pixel-ratio: 1.5), (-moz-min-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3 / 2), (min-device-pixel-ratio: 1.5) {
.media-pixel-ratio:after {
content: 'Pixel ratio: 1.5';
}
}
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 4 / 2), (min-device-pixel-ratio: 2) {
.media-pixel-ratio:after {
content: 'Pixel ratio: 2';
}
}
@media (-webkit-min-device-pixel-ratio: 1.5), (-moz-min-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3 / 2), (min-device-pixel-ratio: 1.5) {
.media-highres-shortcut:after {
content: 'High res (shortcut)';
}
}
@media (max-width: 40em) {
body:after {
content: "small";
display: none;
}
}
@media (min-width: 40em) {
body:after {
content: "medium";
display: none;
}
}
@media (min-width: 60em) {
body:after {
content: "large";
display: none;
}
}