@neatui/css 4.9.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/media.scss +2 -360
- package/core/query.scss +361 -0
- package/package.json +3 -2
package/core/media.scss
CHANGED
|
@@ -1,364 +1,6 @@
|
|
|
1
|
+
@forward './query.scss';
|
|
2
|
+
@use './query.scss' as *;
|
|
1
3
|
@use 'sass:list';
|
|
2
|
-
@use 'sass:string';
|
|
3
|
-
|
|
4
|
-
$level: (
|
|
5
|
-
mob-s: 320px,
|
|
6
|
-
mob-m: 480px,
|
|
7
|
-
mob-l: 640px,
|
|
8
|
-
pad-s: 800px,
|
|
9
|
-
pad-m: 960px,
|
|
10
|
-
pad-l: 1120px,
|
|
11
|
-
dpc-s: 1280px,
|
|
12
|
-
dpc-m: 1440px,
|
|
13
|
-
dpc-l: 1600px
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
// 移动
|
|
17
|
-
@mixin mob() {
|
|
18
|
-
$this: #{list.nth(&, 1)};
|
|
19
|
-
@media screen and (max-width: 799px) {
|
|
20
|
-
@if ($this == '') {
|
|
21
|
-
@content;
|
|
22
|
-
} @else {
|
|
23
|
-
& {
|
|
24
|
-
@content;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
// 平板
|
|
30
|
-
@mixin pad() {
|
|
31
|
-
$this: #{list.nth(&, 1)};
|
|
32
|
-
@media screen and (min-width: 800px) and (max-width: 1279px) {
|
|
33
|
-
@if ($this == '') {
|
|
34
|
-
@content;
|
|
35
|
-
} @else {
|
|
36
|
-
& {
|
|
37
|
-
@content;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// 桌面
|
|
43
|
-
@mixin dpc() {
|
|
44
|
-
$this: #{list.nth(&, 1)};
|
|
45
|
-
@media screen and (min-width: 1280px) {
|
|
46
|
-
@if ($this == '') {
|
|
47
|
-
@content;
|
|
48
|
-
} @else {
|
|
49
|
-
& {
|
|
50
|
-
@content;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// 设备
|
|
57
|
-
@mixin med($p) {
|
|
58
|
-
$this: #{list.nth(&, 1)};
|
|
59
|
-
|
|
60
|
-
$r: string.slice($p, 1, 1);
|
|
61
|
-
$_n: string.slice($p, 2, -1);
|
|
62
|
-
|
|
63
|
-
// 大于某节点时
|
|
64
|
-
@if ($r == '>') {
|
|
65
|
-
@if ($p == '>mob' or $p == '>mob-l') {
|
|
66
|
-
@media screen and (min-width: 800px) {
|
|
67
|
-
@if ($this == '') {
|
|
68
|
-
@content;
|
|
69
|
-
} @else {
|
|
70
|
-
& {
|
|
71
|
-
@content;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
} @else if ($p == '>mob-s') {
|
|
76
|
-
@media screen and (min-width: 480px) {
|
|
77
|
-
@if ($this == '') {
|
|
78
|
-
@content;
|
|
79
|
-
} @else {
|
|
80
|
-
& {
|
|
81
|
-
@content;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
} @else if ($p == '>mob-m') {
|
|
86
|
-
@media screen and (min-width: 640px) {
|
|
87
|
-
@if ($this == '') {
|
|
88
|
-
@content;
|
|
89
|
-
} @else {
|
|
90
|
-
& {
|
|
91
|
-
@content;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
} @else if ($p == '>pad') {
|
|
96
|
-
@media screen and (min-width: 1280px) {
|
|
97
|
-
@if ($this == '') {
|
|
98
|
-
@content;
|
|
99
|
-
} @else {
|
|
100
|
-
& {
|
|
101
|
-
@content;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
} @else if ($p == '>pad-s') {
|
|
106
|
-
@media screen and (min-width: 960px) {
|
|
107
|
-
@if ($this == '') {
|
|
108
|
-
@content;
|
|
109
|
-
} @else {
|
|
110
|
-
& {
|
|
111
|
-
@content;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
} @else if ($p == '>pad-m') {
|
|
116
|
-
@media screen and (min-width: 1120px) {
|
|
117
|
-
@if ($this == '') {
|
|
118
|
-
@content;
|
|
119
|
-
} @else {
|
|
120
|
-
& {
|
|
121
|
-
@content;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
} @else if ($p == '>dpc-s') {
|
|
126
|
-
@media screen and (min-width: 1440px) {
|
|
127
|
-
@if ($this == '') {
|
|
128
|
-
@content;
|
|
129
|
-
} @else {
|
|
130
|
-
& {
|
|
131
|
-
@content;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
} @else if ($p == '>dpc-m') {
|
|
136
|
-
@media screen and (min-width: 1600px) {
|
|
137
|
-
@if ($this == '') {
|
|
138
|
-
@content;
|
|
139
|
-
} @else {
|
|
140
|
-
& {
|
|
141
|
-
@content;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
} @else if ($p == '>pad-l') {
|
|
146
|
-
@media screen and (min-width: 1280px) {
|
|
147
|
-
@if ($this == '') {
|
|
148
|
-
@content;
|
|
149
|
-
} @else {
|
|
150
|
-
& {
|
|
151
|
-
@content;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
} @else if ($r == '<') {
|
|
157
|
-
@if ($p == '<dpc-l') {
|
|
158
|
-
@media screen and (max-width: 1599px) {
|
|
159
|
-
@if ($this == '') {
|
|
160
|
-
@content;
|
|
161
|
-
} @else {
|
|
162
|
-
& {
|
|
163
|
-
@content;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
} @else if ($p == '<dpc-m') {
|
|
168
|
-
@media screen and (max-width: 1439px) {
|
|
169
|
-
@if ($this == '') {
|
|
170
|
-
@content;
|
|
171
|
-
} @else {
|
|
172
|
-
& {
|
|
173
|
-
@content;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
} @else if ($p == '<dpc-s' or $p == '<dpc') {
|
|
178
|
-
@media screen and (max-width: 1279px) {
|
|
179
|
-
@if ($this == '') {
|
|
180
|
-
@content;
|
|
181
|
-
} @else {
|
|
182
|
-
& {
|
|
183
|
-
@content;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
} @else if ($p == '<pad-l') {
|
|
188
|
-
@media screen and (max-width: 1119px) {
|
|
189
|
-
@if ($this == '') {
|
|
190
|
-
@content;
|
|
191
|
-
} @else {
|
|
192
|
-
& {
|
|
193
|
-
@content;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
} @else if ($p == '<pad-m') {
|
|
198
|
-
@media screen and (max-width: 959px) {
|
|
199
|
-
@if ($this == '') {
|
|
200
|
-
@content;
|
|
201
|
-
} @else {
|
|
202
|
-
& {
|
|
203
|
-
@content;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
} @else if ($p == '<pad-s' or $p == '<pad') {
|
|
208
|
-
@media screen and (max-width: 799px) {
|
|
209
|
-
@if ($this == '') {
|
|
210
|
-
@content;
|
|
211
|
-
} @else {
|
|
212
|
-
& {
|
|
213
|
-
@content;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
} @else if ($p == '<mob-l') {
|
|
218
|
-
@media screen and (max-width: 639px) {
|
|
219
|
-
@if ($this == '') {
|
|
220
|
-
@content;
|
|
221
|
-
} @else {
|
|
222
|
-
& {
|
|
223
|
-
@content;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
} @else if ($p == '<mob-m') {
|
|
228
|
-
@media screen and (max-width: 479px) {
|
|
229
|
-
@if ($this == '') {
|
|
230
|
-
@content;
|
|
231
|
-
} @else {
|
|
232
|
-
& {
|
|
233
|
-
@content;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
} @else if ($r == '=') {
|
|
239
|
-
@if ($p == '=dpc') {
|
|
240
|
-
@media screen and (min-width: 1280px) {
|
|
241
|
-
@if ($this == '') {
|
|
242
|
-
@content;
|
|
243
|
-
} @else {
|
|
244
|
-
& {
|
|
245
|
-
@content;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
} @else if ($p == '=dpc-l') {
|
|
250
|
-
@media screen and (min-width: 1600px) {
|
|
251
|
-
@if ($this == '') {
|
|
252
|
-
@content;
|
|
253
|
-
} @else {
|
|
254
|
-
& {
|
|
255
|
-
@content;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
} @else if ($p == '=dpc-m') {
|
|
260
|
-
@media screen and (min-width: 1440px) and (max-width: 1599px) {
|
|
261
|
-
@if ($this == '') {
|
|
262
|
-
@content;
|
|
263
|
-
} @else {
|
|
264
|
-
& {
|
|
265
|
-
@content;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
} @else if ($p == '=dpc-s') {
|
|
270
|
-
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
|
271
|
-
@if ($this == '') {
|
|
272
|
-
@content;
|
|
273
|
-
} @else {
|
|
274
|
-
& {
|
|
275
|
-
@content;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} @else if ($p == '=pad') {
|
|
280
|
-
@media screen and (min-width: 800px) and (max-width: 1279px) {
|
|
281
|
-
@if ($this == '') {
|
|
282
|
-
@content;
|
|
283
|
-
} @else {
|
|
284
|
-
& {
|
|
285
|
-
@content;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
} @else if ($p == '=pad-l') {
|
|
290
|
-
@media screen and (min-width: 1120px) and (max-width: 1279px) {
|
|
291
|
-
@if ($this == '') {
|
|
292
|
-
@content;
|
|
293
|
-
} @else {
|
|
294
|
-
& {
|
|
295
|
-
@content;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
} @else if ($p == '=pad-m') {
|
|
300
|
-
@media screen and (min-width: 960px) and (max-width: 1119px) {
|
|
301
|
-
@if ($this == '') {
|
|
302
|
-
@content;
|
|
303
|
-
} @else {
|
|
304
|
-
& {
|
|
305
|
-
@content;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
} @else if ($p == '=pad-s') {
|
|
310
|
-
@media screen and (min-width: 800px) and (max-width: 959px) {
|
|
311
|
-
@if ($this == '') {
|
|
312
|
-
@content;
|
|
313
|
-
} @else {
|
|
314
|
-
& {
|
|
315
|
-
@content;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
} @else if ($p == '=mob') {
|
|
320
|
-
@media screen and (max-width: 799px) {
|
|
321
|
-
@if ($this == '') {
|
|
322
|
-
@content;
|
|
323
|
-
} @else {
|
|
324
|
-
& {
|
|
325
|
-
@content;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
} @else if ($p == '=mob-l') {
|
|
330
|
-
@media screen and (min-width: 640px) and (max-width: 799px) {
|
|
331
|
-
@if ($this == '') {
|
|
332
|
-
@content;
|
|
333
|
-
} @else {
|
|
334
|
-
& {
|
|
335
|
-
@content;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
} @else if ($p == '=mob-m') {
|
|
340
|
-
@media screen and (min-width: 480px) and (max-width: 639px) {
|
|
341
|
-
@if ($this == '') {
|
|
342
|
-
@content;
|
|
343
|
-
} @else {
|
|
344
|
-
& {
|
|
345
|
-
@content;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
} @else if ($p == '=mob-s') {
|
|
350
|
-
@media screen and (max-width: 479px) {
|
|
351
|
-
@if ($this == '') {
|
|
352
|
-
@content;
|
|
353
|
-
} @else {
|
|
354
|
-
& {
|
|
355
|
-
@content;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
4
|
|
|
363
5
|
// 大于某节点时
|
|
364
6
|
@each $sz in $level {
|
package/core/query.scss
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
$level: (
|
|
5
|
+
mob-s: 320px,
|
|
6
|
+
mob-m: 480px,
|
|
7
|
+
mob-l: 640px,
|
|
8
|
+
pad-s: 800px,
|
|
9
|
+
pad-m: 960px,
|
|
10
|
+
pad-l: 1120px,
|
|
11
|
+
dpc-s: 1280px,
|
|
12
|
+
dpc-m: 1440px,
|
|
13
|
+
dpc-l: 1600px
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
// 移动
|
|
17
|
+
@mixin mob() {
|
|
18
|
+
$this: #{list.nth(&, 1)};
|
|
19
|
+
@media screen and (max-width: 799px) {
|
|
20
|
+
@if ($this == '') {
|
|
21
|
+
@content;
|
|
22
|
+
} @else {
|
|
23
|
+
& {
|
|
24
|
+
@content;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
// 平板
|
|
30
|
+
@mixin pad() {
|
|
31
|
+
$this: #{list.nth(&, 1)};
|
|
32
|
+
@media screen and (min-width: 800px) and (max-width: 1279px) {
|
|
33
|
+
@if ($this == '') {
|
|
34
|
+
@content;
|
|
35
|
+
} @else {
|
|
36
|
+
& {
|
|
37
|
+
@content;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// 桌面
|
|
43
|
+
@mixin dpc() {
|
|
44
|
+
$this: #{list.nth(&, 1)};
|
|
45
|
+
@media screen and (min-width: 1280px) {
|
|
46
|
+
@if ($this == '') {
|
|
47
|
+
@content;
|
|
48
|
+
} @else {
|
|
49
|
+
& {
|
|
50
|
+
@content;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// 设备
|
|
57
|
+
@mixin med($p) {
|
|
58
|
+
$this: #{list.nth(&, 1)};
|
|
59
|
+
|
|
60
|
+
$r: string.slice($p, 1, 1);
|
|
61
|
+
$_n: string.slice($p, 2, -1);
|
|
62
|
+
|
|
63
|
+
// 大于某节点时
|
|
64
|
+
@if ($r == '>') {
|
|
65
|
+
@if ($p == '>mob' or $p == '>mob-l') {
|
|
66
|
+
@media screen and (min-width: 800px) {
|
|
67
|
+
@if ($this == '') {
|
|
68
|
+
@content;
|
|
69
|
+
} @else {
|
|
70
|
+
& {
|
|
71
|
+
@content;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
} @else if ($p == '>mob-s') {
|
|
76
|
+
@media screen and (min-width: 480px) {
|
|
77
|
+
@if ($this == '') {
|
|
78
|
+
@content;
|
|
79
|
+
} @else {
|
|
80
|
+
& {
|
|
81
|
+
@content;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
} @else if ($p == '>mob-m') {
|
|
86
|
+
@media screen and (min-width: 640px) {
|
|
87
|
+
@if ($this == '') {
|
|
88
|
+
@content;
|
|
89
|
+
} @else {
|
|
90
|
+
& {
|
|
91
|
+
@content;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
} @else if ($p == '>pad') {
|
|
96
|
+
@media screen and (min-width: 1280px) {
|
|
97
|
+
@if ($this == '') {
|
|
98
|
+
@content;
|
|
99
|
+
} @else {
|
|
100
|
+
& {
|
|
101
|
+
@content;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
} @else if ($p == '>pad-s') {
|
|
106
|
+
@media screen and (min-width: 960px) {
|
|
107
|
+
@if ($this == '') {
|
|
108
|
+
@content;
|
|
109
|
+
} @else {
|
|
110
|
+
& {
|
|
111
|
+
@content;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
} @else if ($p == '>pad-m') {
|
|
116
|
+
@media screen and (min-width: 1120px) {
|
|
117
|
+
@if ($this == '') {
|
|
118
|
+
@content;
|
|
119
|
+
} @else {
|
|
120
|
+
& {
|
|
121
|
+
@content;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
} @else if ($p == '>dpc-s') {
|
|
126
|
+
@media screen and (min-width: 1440px) {
|
|
127
|
+
@if ($this == '') {
|
|
128
|
+
@content;
|
|
129
|
+
} @else {
|
|
130
|
+
& {
|
|
131
|
+
@content;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
} @else if ($p == '>dpc-m') {
|
|
136
|
+
@media screen and (min-width: 1600px) {
|
|
137
|
+
@if ($this == '') {
|
|
138
|
+
@content;
|
|
139
|
+
} @else {
|
|
140
|
+
& {
|
|
141
|
+
@content;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
} @else if ($p == '>pad-l') {
|
|
146
|
+
@media screen and (min-width: 1280px) {
|
|
147
|
+
@if ($this == '') {
|
|
148
|
+
@content;
|
|
149
|
+
} @else {
|
|
150
|
+
& {
|
|
151
|
+
@content;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
} @else if ($r == '<') {
|
|
157
|
+
@if ($p == '<dpc-l') {
|
|
158
|
+
@media screen and (max-width: 1599px) {
|
|
159
|
+
@if ($this == '') {
|
|
160
|
+
@content;
|
|
161
|
+
} @else {
|
|
162
|
+
& {
|
|
163
|
+
@content;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
} @else if ($p == '<dpc-m') {
|
|
168
|
+
@media screen and (max-width: 1439px) {
|
|
169
|
+
@if ($this == '') {
|
|
170
|
+
@content;
|
|
171
|
+
} @else {
|
|
172
|
+
& {
|
|
173
|
+
@content;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
} @else if ($p == '<dpc-s' or $p == '<dpc') {
|
|
178
|
+
@media screen and (max-width: 1279px) {
|
|
179
|
+
@if ($this == '') {
|
|
180
|
+
@content;
|
|
181
|
+
} @else {
|
|
182
|
+
& {
|
|
183
|
+
@content;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
} @else if ($p == '<pad-l') {
|
|
188
|
+
@media screen and (max-width: 1119px) {
|
|
189
|
+
@if ($this == '') {
|
|
190
|
+
@content;
|
|
191
|
+
} @else {
|
|
192
|
+
& {
|
|
193
|
+
@content;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
} @else if ($p == '<pad-m') {
|
|
198
|
+
@media screen and (max-width: 959px) {
|
|
199
|
+
@if ($this == '') {
|
|
200
|
+
@content;
|
|
201
|
+
} @else {
|
|
202
|
+
& {
|
|
203
|
+
@content;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
} @else if ($p == '<pad-s' or $p == '<pad') {
|
|
208
|
+
@media screen and (max-width: 799px) {
|
|
209
|
+
@if ($this == '') {
|
|
210
|
+
@content;
|
|
211
|
+
} @else {
|
|
212
|
+
& {
|
|
213
|
+
@content;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
} @else if ($p == '<mob-l') {
|
|
218
|
+
@media screen and (max-width: 639px) {
|
|
219
|
+
@if ($this == '') {
|
|
220
|
+
@content;
|
|
221
|
+
} @else {
|
|
222
|
+
& {
|
|
223
|
+
@content;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
} @else if ($p == '<mob-m') {
|
|
228
|
+
@media screen and (max-width: 479px) {
|
|
229
|
+
@if ($this == '') {
|
|
230
|
+
@content;
|
|
231
|
+
} @else {
|
|
232
|
+
& {
|
|
233
|
+
@content;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
} @else if ($r == '=') {
|
|
239
|
+
@if ($p == '=dpc') {
|
|
240
|
+
@media screen and (min-width: 1280px) {
|
|
241
|
+
@if ($this == '') {
|
|
242
|
+
@content;
|
|
243
|
+
} @else {
|
|
244
|
+
& {
|
|
245
|
+
@content;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
} @else if ($p == '=dpc-l') {
|
|
250
|
+
@media screen and (min-width: 1600px) {
|
|
251
|
+
@if ($this == '') {
|
|
252
|
+
@content;
|
|
253
|
+
} @else {
|
|
254
|
+
& {
|
|
255
|
+
@content;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
} @else if ($p == '=dpc-m') {
|
|
260
|
+
@media screen and (min-width: 1440px) and (max-width: 1599px) {
|
|
261
|
+
@if ($this == '') {
|
|
262
|
+
@content;
|
|
263
|
+
} @else {
|
|
264
|
+
& {
|
|
265
|
+
@content;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
} @else if ($p == '=dpc-s') {
|
|
270
|
+
@media screen and (min-width: 1280px) and (max-width: 1439px) {
|
|
271
|
+
@if ($this == '') {
|
|
272
|
+
@content;
|
|
273
|
+
} @else {
|
|
274
|
+
& {
|
|
275
|
+
@content;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
} @else if ($p == '=pad') {
|
|
280
|
+
@media screen and (min-width: 800px) and (max-width: 1279px) {
|
|
281
|
+
@if ($this == '') {
|
|
282
|
+
@content;
|
|
283
|
+
} @else {
|
|
284
|
+
& {
|
|
285
|
+
@content;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
} @else if ($p == '=pad-l') {
|
|
290
|
+
@media screen and (min-width: 1120px) and (max-width: 1279px) {
|
|
291
|
+
@if ($this == '') {
|
|
292
|
+
@content;
|
|
293
|
+
} @else {
|
|
294
|
+
& {
|
|
295
|
+
@content;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} @else if ($p == '=pad-m') {
|
|
300
|
+
@media screen and (min-width: 960px) and (max-width: 1119px) {
|
|
301
|
+
@if ($this == '') {
|
|
302
|
+
@content;
|
|
303
|
+
} @else {
|
|
304
|
+
& {
|
|
305
|
+
@content;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
} @else if ($p == '=pad-s') {
|
|
310
|
+
@media screen and (min-width: 800px) and (max-width: 959px) {
|
|
311
|
+
@if ($this == '') {
|
|
312
|
+
@content;
|
|
313
|
+
} @else {
|
|
314
|
+
& {
|
|
315
|
+
@content;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
} @else if ($p == '=mob') {
|
|
320
|
+
@media screen and (max-width: 799px) {
|
|
321
|
+
@if ($this == '') {
|
|
322
|
+
@content;
|
|
323
|
+
} @else {
|
|
324
|
+
& {
|
|
325
|
+
@content;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
} @else if ($p == '=mob-l') {
|
|
330
|
+
@media screen and (min-width: 640px) and (max-width: 799px) {
|
|
331
|
+
@if ($this == '') {
|
|
332
|
+
@content;
|
|
333
|
+
} @else {
|
|
334
|
+
& {
|
|
335
|
+
@content;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
} @else if ($p == '=mob-m') {
|
|
340
|
+
@media screen and (min-width: 480px) and (max-width: 639px) {
|
|
341
|
+
@if ($this == '') {
|
|
342
|
+
@content;
|
|
343
|
+
} @else {
|
|
344
|
+
& {
|
|
345
|
+
@content;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
} @else if ($p == '=mob-s') {
|
|
350
|
+
@media screen and (max-width: 479px) {
|
|
351
|
+
@if ($this == '') {
|
|
352
|
+
@content;
|
|
353
|
+
} @else {
|
|
354
|
+
& {
|
|
355
|
+
@content;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neatui/css",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "NeatUI constrained atomic design system
|
|
3
|
+
"version": "5.1.0",
|
|
4
|
+
"description": "NeatUI constrained atomic design system — SCSS source for production themes, plus preview CSS with default light/dark",
|
|
5
5
|
"main": "./neatui.scss",
|
|
6
6
|
"sass": "./neatui.scss",
|
|
7
7
|
"style": "./dist/neatui.preview.min.css",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"default": "./neatui.scss"
|
|
50
50
|
},
|
|
51
51
|
"./neatui.scss": "./neatui.scss",
|
|
52
|
+
"./query": "./core/query.scss",
|
|
52
53
|
"./preview.scss": "./preview.scss",
|
|
53
54
|
"./preview": "./dist/neatui.preview.min.css",
|
|
54
55
|
"./dist/*": "./dist/*",
|