@weapp-tailwindcss/reset 0.0.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/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/index.cjs +295 -0
- package/dist/index.d.mts +50 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.mjs +260 -0
- package/package.json +62 -0
- package/taro/button-after.css +3 -0
- package/taro/eric-meyer.css +184 -0
- package/taro/modern-normalize.css +355 -0
- package/taro/normalize.css +300 -0
- package/taro/sanitize/assets.css +16 -0
- package/taro/sanitize/sanitize.css +459 -0
- package/taro/tailwind-compat.css +539 -0
- package/taro/tailwind.css +537 -0
- package/uni-app/button-after.css +3 -0
- package/uni-app/eric-meyer.css +184 -0
- package/uni-app/modern-normalize.css +355 -0
- package/uni-app/normalize.css +300 -0
- package/uni-app/sanitize/assets.css +16 -0
- package/uni-app/sanitize/sanitize.css +459 -0
- package/uni-app/tailwind-compat.css +539 -0
- package/uni-app/tailwind.css +537 -0
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
/*
|
|
2
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
3
|
+
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
4
|
+
2. [UnoCSS]: allow to override the default border color with css var `--un-default-border-color`
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* #ifdef h5 */
|
|
8
|
+
*,
|
|
9
|
+
::before,
|
|
10
|
+
::after {
|
|
11
|
+
box-sizing: border-box; /* 1 */
|
|
12
|
+
border-width: 0; /* 2 */
|
|
13
|
+
border-style: solid; /* 2 */
|
|
14
|
+
border-color: var(--un-default-border-color, #e5e7eb); /* 2 */
|
|
15
|
+
}
|
|
16
|
+
/* #endif */
|
|
17
|
+
/* #ifndef h5 */
|
|
18
|
+
page,
|
|
19
|
+
cover-image,
|
|
20
|
+
cover-view,
|
|
21
|
+
grid-view,
|
|
22
|
+
list-view,
|
|
23
|
+
match-media,
|
|
24
|
+
movable-area,
|
|
25
|
+
movable-view,
|
|
26
|
+
page-container,
|
|
27
|
+
root-portal,
|
|
28
|
+
scroll-view,
|
|
29
|
+
share-element,
|
|
30
|
+
snapshot,
|
|
31
|
+
span,
|
|
32
|
+
sticky-header,
|
|
33
|
+
sticky-section,
|
|
34
|
+
swiper,
|
|
35
|
+
swiper-item,
|
|
36
|
+
view,
|
|
37
|
+
icon,
|
|
38
|
+
progress,
|
|
39
|
+
rich-text,
|
|
40
|
+
text,
|
|
41
|
+
button,
|
|
42
|
+
checkbox,
|
|
43
|
+
checkbox-group,
|
|
44
|
+
editor,
|
|
45
|
+
form,
|
|
46
|
+
input,
|
|
47
|
+
keyboard-accessory,
|
|
48
|
+
label,
|
|
49
|
+
picker,
|
|
50
|
+
picker-view,
|
|
51
|
+
picker-view-column,
|
|
52
|
+
radio,
|
|
53
|
+
radio-group,
|
|
54
|
+
slider,
|
|
55
|
+
switch,
|
|
56
|
+
textarea,
|
|
57
|
+
functional-page-navigator,
|
|
58
|
+
navigator,
|
|
59
|
+
::before,
|
|
60
|
+
::after {
|
|
61
|
+
box-sizing: border-box; /* 1 */
|
|
62
|
+
border-width: 0; /* 2 */
|
|
63
|
+
border-style: solid; /* 2 */
|
|
64
|
+
border-color: var(--un-default-border-color, #e5e7eb); /* 2 */
|
|
65
|
+
}
|
|
66
|
+
/* #endif */
|
|
67
|
+
|
|
68
|
+
::before,
|
|
69
|
+
::after {
|
|
70
|
+
--un-content: '';
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
75
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
76
|
+
3. Use a more readable tab size.
|
|
77
|
+
4. Use the user's configured `sans` font-family by default.
|
|
78
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
|
79
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
|
80
|
+
7. Disable tap highlights on iOS.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/* #ifdef h5 */
|
|
84
|
+
html,
|
|
85
|
+
:host {
|
|
86
|
+
line-height: 1.5; /* 1 */
|
|
87
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
88
|
+
-moz-tab-size: 4; /* 3 */
|
|
89
|
+
tab-size: 4; /* 3 */
|
|
90
|
+
font-family:
|
|
91
|
+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* 4 */
|
|
92
|
+
font-feature-settings: normal; /* 5 */
|
|
93
|
+
font-variation-settings: normal; /* 6 */
|
|
94
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
95
|
+
}
|
|
96
|
+
/* #endif */
|
|
97
|
+
/* #ifndef h5 */
|
|
98
|
+
page,
|
|
99
|
+
:host {
|
|
100
|
+
line-height: 1.5; /* 1 */
|
|
101
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
102
|
+
-moz-tab-size: 4; /* 3 */
|
|
103
|
+
tab-size: 4; /* 3 */
|
|
104
|
+
font-family:
|
|
105
|
+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* 4 */
|
|
106
|
+
font-feature-settings: normal; /* 5 */
|
|
107
|
+
font-variation-settings: normal; /* 6 */
|
|
108
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
109
|
+
}
|
|
110
|
+
/* #endif */
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
1. Remove the margin in all browsers.
|
|
114
|
+
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
/* #ifdef h5 */
|
|
118
|
+
body {
|
|
119
|
+
margin: 0; /* 1 */
|
|
120
|
+
line-height: inherit; /* 2 */
|
|
121
|
+
}
|
|
122
|
+
/* #endif */
|
|
123
|
+
/* #ifndef h5 */
|
|
124
|
+
page {
|
|
125
|
+
margin: 0; /* 1 */
|
|
126
|
+
line-height: inherit; /* 2 */
|
|
127
|
+
}
|
|
128
|
+
/* #endif */
|
|
129
|
+
|
|
130
|
+
/*
|
|
131
|
+
1. Add the correct height in Firefox.
|
|
132
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
133
|
+
3. Ensure horizontal rules are visible by default.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/* #ifdef h5 */
|
|
137
|
+
hr {
|
|
138
|
+
height: 0; /* 1 */
|
|
139
|
+
color: inherit; /* 2 */
|
|
140
|
+
border-top-width: 1px; /* 3 */
|
|
141
|
+
}
|
|
142
|
+
/* #endif */
|
|
143
|
+
|
|
144
|
+
/*
|
|
145
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
/* #ifdef h5 */
|
|
149
|
+
abbr:where([title]) {
|
|
150
|
+
text-decoration: underline dotted;
|
|
151
|
+
}
|
|
152
|
+
/* #endif */
|
|
153
|
+
|
|
154
|
+
/*
|
|
155
|
+
Remove the default font size and weight for headings.
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
/* #ifdef h5 */
|
|
159
|
+
h1,
|
|
160
|
+
h2,
|
|
161
|
+
h3,
|
|
162
|
+
h4,
|
|
163
|
+
h5,
|
|
164
|
+
h6 {
|
|
165
|
+
font-size: inherit;
|
|
166
|
+
font-weight: inherit;
|
|
167
|
+
}
|
|
168
|
+
/* #endif */
|
|
169
|
+
|
|
170
|
+
/*
|
|
171
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
/* #ifdef h5 */
|
|
175
|
+
a {
|
|
176
|
+
color: inherit;
|
|
177
|
+
text-decoration: inherit;
|
|
178
|
+
}
|
|
179
|
+
/* #endif */
|
|
180
|
+
/* #ifndef h5 */
|
|
181
|
+
functional-page-navigator,
|
|
182
|
+
navigator {
|
|
183
|
+
color: inherit;
|
|
184
|
+
text-decoration: inherit;
|
|
185
|
+
}
|
|
186
|
+
/* #endif */
|
|
187
|
+
|
|
188
|
+
/*
|
|
189
|
+
Add the correct font weight in Edge and Safari.
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/* #ifdef h5 */
|
|
193
|
+
b,
|
|
194
|
+
strong {
|
|
195
|
+
font-weight: bolder;
|
|
196
|
+
}
|
|
197
|
+
/* #endif */
|
|
198
|
+
|
|
199
|
+
/*
|
|
200
|
+
1. Use the user's configured `mono` font-family by default.
|
|
201
|
+
2. Use the user's configured `mono` font-feature-settings by default.
|
|
202
|
+
3. Use the user's configured `mono` font-variation-settings by default.
|
|
203
|
+
4. Correct the odd `em` font sizing in all browsers.
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
/* #ifdef h5 */
|
|
207
|
+
code,
|
|
208
|
+
kbd,
|
|
209
|
+
samp,
|
|
210
|
+
pre {
|
|
211
|
+
font-family:
|
|
212
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; /* 1 */
|
|
213
|
+
font-feature-settings: normal; /* 2 */
|
|
214
|
+
font-variation-settings: normal; /* 3 */
|
|
215
|
+
font-size: 1em; /* 4 */
|
|
216
|
+
}
|
|
217
|
+
/* #endif */
|
|
218
|
+
|
|
219
|
+
/*
|
|
220
|
+
Add the correct font size in all browsers.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
/* #ifdef h5 */
|
|
224
|
+
small {
|
|
225
|
+
font-size: 80%;
|
|
226
|
+
}
|
|
227
|
+
/* #endif */
|
|
228
|
+
|
|
229
|
+
/*
|
|
230
|
+
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
/* #ifdef h5 */
|
|
234
|
+
sub,
|
|
235
|
+
sup {
|
|
236
|
+
font-size: 75%;
|
|
237
|
+
line-height: 0;
|
|
238
|
+
position: relative;
|
|
239
|
+
vertical-align: baseline;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
sub {
|
|
243
|
+
bottom: -0.25em;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
sup {
|
|
247
|
+
top: -0.5em;
|
|
248
|
+
}
|
|
249
|
+
/* #endif */
|
|
250
|
+
|
|
251
|
+
/*
|
|
252
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
253
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
254
|
+
3. Remove gaps between table borders by default.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
/* #ifdef h5 */
|
|
258
|
+
table {
|
|
259
|
+
text-indent: 0; /* 1 */
|
|
260
|
+
border-color: inherit; /* 2 */
|
|
261
|
+
border-collapse: collapse; /* 3 */
|
|
262
|
+
}
|
|
263
|
+
/* #endif */
|
|
264
|
+
|
|
265
|
+
/*
|
|
266
|
+
1. Change the font styles in all browsers.
|
|
267
|
+
2. Remove the margin in Firefox and Safari.
|
|
268
|
+
3. Remove default padding in all browsers.
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
/* #ifdef h5 */
|
|
272
|
+
button,
|
|
273
|
+
input,
|
|
274
|
+
optgroup,
|
|
275
|
+
select,
|
|
276
|
+
textarea {
|
|
277
|
+
font-family: inherit; /* 1 */
|
|
278
|
+
font-feature-settings: inherit; /* 1 */
|
|
279
|
+
font-variation-settings: inherit; /* 1 */
|
|
280
|
+
font-size: 100%; /* 1 */
|
|
281
|
+
font-weight: inherit; /* 1 */
|
|
282
|
+
line-height: inherit; /* 1 */
|
|
283
|
+
color: inherit; /* 1 */
|
|
284
|
+
margin: 0; /* 2 */
|
|
285
|
+
padding: 0; /* 3 */
|
|
286
|
+
}
|
|
287
|
+
/* #endif */
|
|
288
|
+
/* #ifndef h5 */
|
|
289
|
+
button,
|
|
290
|
+
input,
|
|
291
|
+
textarea {
|
|
292
|
+
font-family: inherit; /* 1 */
|
|
293
|
+
font-feature-settings: inherit; /* 1 */
|
|
294
|
+
font-variation-settings: inherit; /* 1 */
|
|
295
|
+
font-size: 100%; /* 1 */
|
|
296
|
+
font-weight: inherit; /* 1 */
|
|
297
|
+
line-height: inherit; /* 1 */
|
|
298
|
+
color: inherit; /* 1 */
|
|
299
|
+
margin: 0; /* 2 */
|
|
300
|
+
padding: 0; /* 3 */
|
|
301
|
+
}
|
|
302
|
+
/* #endif */
|
|
303
|
+
|
|
304
|
+
/*
|
|
305
|
+
Remove the inheritance of text transform in Edge and Firefox.
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
/* #ifdef h5 */
|
|
309
|
+
button,
|
|
310
|
+
select {
|
|
311
|
+
text-transform: none;
|
|
312
|
+
}
|
|
313
|
+
/* #endif */
|
|
314
|
+
/* #ifdef h5 */
|
|
315
|
+
button {
|
|
316
|
+
text-transform: none;
|
|
317
|
+
}
|
|
318
|
+
/* #endif */
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
322
|
+
2. Remove default button styles.
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
button,
|
|
326
|
+
[type='button'],
|
|
327
|
+
[type='reset'],
|
|
328
|
+
[type='submit'] {
|
|
329
|
+
-webkit-appearance: button; /* 1 */
|
|
330
|
+
background-color: transparent; /* 2 */
|
|
331
|
+
background-image: none; /* 2 */
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/*
|
|
335
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
:-moz-focusring {
|
|
339
|
+
outline: auto;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/*
|
|
343
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
:-moz-ui-invalid {
|
|
347
|
+
box-shadow: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/*
|
|
351
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
progress {
|
|
355
|
+
vertical-align: baseline;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/*
|
|
359
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
360
|
+
*/
|
|
361
|
+
|
|
362
|
+
::-webkit-inner-spin-button,
|
|
363
|
+
::-webkit-outer-spin-button {
|
|
364
|
+
height: auto;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/*
|
|
368
|
+
1. Correct the odd appearance in Chrome and Safari.
|
|
369
|
+
2. Correct the outline style in Safari.
|
|
370
|
+
*/
|
|
371
|
+
|
|
372
|
+
[type='search'] {
|
|
373
|
+
-webkit-appearance: textfield; /* 1 */
|
|
374
|
+
outline-offset: -2px; /* 2 */
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/*
|
|
378
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
::-webkit-search-decoration {
|
|
382
|
+
-webkit-appearance: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/*
|
|
386
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
387
|
+
2. Change font properties to `inherit` in Safari.
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
::-webkit-file-upload-button {
|
|
391
|
+
-webkit-appearance: button; /* 1 */
|
|
392
|
+
font: inherit; /* 2 */
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/*
|
|
396
|
+
Add the correct display in Chrome and Safari.
|
|
397
|
+
*/
|
|
398
|
+
|
|
399
|
+
/* #ifdef h5 */
|
|
400
|
+
summary {
|
|
401
|
+
display: list-item;
|
|
402
|
+
}
|
|
403
|
+
/* #endif */
|
|
404
|
+
|
|
405
|
+
/*
|
|
406
|
+
Removes the default spacing for appropriate elements.
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
/* #ifdef h5 */
|
|
410
|
+
blockquote,
|
|
411
|
+
dl,
|
|
412
|
+
dd,
|
|
413
|
+
h1,
|
|
414
|
+
h2,
|
|
415
|
+
h3,
|
|
416
|
+
h4,
|
|
417
|
+
h5,
|
|
418
|
+
h6,
|
|
419
|
+
hr,
|
|
420
|
+
figure,
|
|
421
|
+
p,
|
|
422
|
+
pre {
|
|
423
|
+
margin: 0;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
fieldset {
|
|
427
|
+
margin: 0;
|
|
428
|
+
padding: 0;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
legend {
|
|
432
|
+
padding: 0;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
ol,
|
|
436
|
+
ul,
|
|
437
|
+
menu {
|
|
438
|
+
list-style: none;
|
|
439
|
+
margin: 0;
|
|
440
|
+
padding: 0;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
dialog {
|
|
444
|
+
padding: 0;
|
|
445
|
+
}
|
|
446
|
+
/* #endif */
|
|
447
|
+
|
|
448
|
+
/*
|
|
449
|
+
Prevent resizing textareas horizontally by default.
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
textarea {
|
|
453
|
+
resize: vertical;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/*
|
|
457
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
458
|
+
2. Set the default placeholder color to the user's configured gray 400 color.
|
|
459
|
+
*/
|
|
460
|
+
|
|
461
|
+
input::placeholder,
|
|
462
|
+
textarea::placeholder {
|
|
463
|
+
opacity: 1; /* 1 */
|
|
464
|
+
color: #9ca3af; /* 2 */
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/*
|
|
468
|
+
Set the default cursor for buttons.
|
|
469
|
+
*/
|
|
470
|
+
|
|
471
|
+
button,
|
|
472
|
+
[role='button'] {
|
|
473
|
+
cursor: pointer;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/*
|
|
477
|
+
Make sure disabled buttons don't get the pointer cursor.
|
|
478
|
+
*/
|
|
479
|
+
|
|
480
|
+
:disabled {
|
|
481
|
+
cursor: default;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/*
|
|
485
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
486
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
487
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
488
|
+
*/
|
|
489
|
+
|
|
490
|
+
/* #ifdef h5 */
|
|
491
|
+
img,
|
|
492
|
+
svg,
|
|
493
|
+
video,
|
|
494
|
+
canvas,
|
|
495
|
+
audio,
|
|
496
|
+
iframe,
|
|
497
|
+
embed,
|
|
498
|
+
object {
|
|
499
|
+
display: block; /* 1 */
|
|
500
|
+
vertical-align: middle; /* 2 */
|
|
501
|
+
}
|
|
502
|
+
/* #endif */
|
|
503
|
+
/* #ifndef h5 */
|
|
504
|
+
image,
|
|
505
|
+
video,
|
|
506
|
+
canvas,
|
|
507
|
+
audio {
|
|
508
|
+
display: block; /* 1 */
|
|
509
|
+
vertical-align: middle; /* 2 */
|
|
510
|
+
}
|
|
511
|
+
/* #endif */
|
|
512
|
+
|
|
513
|
+
/*
|
|
514
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
515
|
+
*/
|
|
516
|
+
|
|
517
|
+
/* #ifdef h5 */
|
|
518
|
+
img,
|
|
519
|
+
video {
|
|
520
|
+
max-width: 100%;
|
|
521
|
+
height: auto;
|
|
522
|
+
}
|
|
523
|
+
/* #endif */
|
|
524
|
+
/* #ifndef h5 */
|
|
525
|
+
image,
|
|
526
|
+
video {
|
|
527
|
+
max-width: 100%;
|
|
528
|
+
height: auto;
|
|
529
|
+
}
|
|
530
|
+
/* #endif */
|
|
531
|
+
|
|
532
|
+
/*
|
|
533
|
+
Make elements with the HTML hidden attribute stay hidden by default.
|
|
534
|
+
*/
|
|
535
|
+
[hidden] {
|
|
536
|
+
display: none;
|
|
537
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
2
|
+
v2.0 | 20110126
|
|
3
|
+
License: none (public domain)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* #ifdef H5 */
|
|
7
|
+
html,
|
|
8
|
+
body,
|
|
9
|
+
div,
|
|
10
|
+
span,
|
|
11
|
+
applet,
|
|
12
|
+
object,
|
|
13
|
+
iframe,
|
|
14
|
+
h1,
|
|
15
|
+
h2,
|
|
16
|
+
h3,
|
|
17
|
+
h4,
|
|
18
|
+
h5,
|
|
19
|
+
h6,
|
|
20
|
+
p,
|
|
21
|
+
blockquote,
|
|
22
|
+
pre,
|
|
23
|
+
a,
|
|
24
|
+
abbr,
|
|
25
|
+
acronym,
|
|
26
|
+
address,
|
|
27
|
+
big,
|
|
28
|
+
cite,
|
|
29
|
+
code,
|
|
30
|
+
del,
|
|
31
|
+
dfn,
|
|
32
|
+
em,
|
|
33
|
+
img,
|
|
34
|
+
ins,
|
|
35
|
+
kbd,
|
|
36
|
+
q,
|
|
37
|
+
s,
|
|
38
|
+
samp,
|
|
39
|
+
small,
|
|
40
|
+
strike,
|
|
41
|
+
strong,
|
|
42
|
+
sub,
|
|
43
|
+
sup,
|
|
44
|
+
tt,
|
|
45
|
+
var,
|
|
46
|
+
b,
|
|
47
|
+
u,
|
|
48
|
+
i,
|
|
49
|
+
center,
|
|
50
|
+
dl,
|
|
51
|
+
dt,
|
|
52
|
+
dd,
|
|
53
|
+
ol,
|
|
54
|
+
ul,
|
|
55
|
+
li,
|
|
56
|
+
fieldset,
|
|
57
|
+
form,
|
|
58
|
+
label,
|
|
59
|
+
legend,
|
|
60
|
+
table,
|
|
61
|
+
caption,
|
|
62
|
+
tbody,
|
|
63
|
+
tfoot,
|
|
64
|
+
thead,
|
|
65
|
+
tr,
|
|
66
|
+
th,
|
|
67
|
+
td,
|
|
68
|
+
article,
|
|
69
|
+
aside,
|
|
70
|
+
canvas,
|
|
71
|
+
details,
|
|
72
|
+
embed,
|
|
73
|
+
figure,
|
|
74
|
+
figcaption,
|
|
75
|
+
footer,
|
|
76
|
+
header,
|
|
77
|
+
hgroup,
|
|
78
|
+
menu,
|
|
79
|
+
nav,
|
|
80
|
+
output,
|
|
81
|
+
ruby,
|
|
82
|
+
section,
|
|
83
|
+
summary,
|
|
84
|
+
time,
|
|
85
|
+
mark,
|
|
86
|
+
audio,
|
|
87
|
+
video {
|
|
88
|
+
margin: 0;
|
|
89
|
+
padding: 0;
|
|
90
|
+
border: 0;
|
|
91
|
+
font-size: 100%;
|
|
92
|
+
font: inherit;
|
|
93
|
+
vertical-align: baseline;
|
|
94
|
+
}
|
|
95
|
+
/* HTML5 display-role reset for older browsers */
|
|
96
|
+
article,
|
|
97
|
+
aside,
|
|
98
|
+
details,
|
|
99
|
+
figcaption,
|
|
100
|
+
figure,
|
|
101
|
+
footer,
|
|
102
|
+
header,
|
|
103
|
+
hgroup,
|
|
104
|
+
menu,
|
|
105
|
+
nav,
|
|
106
|
+
section {
|
|
107
|
+
display: block;
|
|
108
|
+
}
|
|
109
|
+
body {
|
|
110
|
+
line-height: 1;
|
|
111
|
+
}
|
|
112
|
+
ol,
|
|
113
|
+
ul {
|
|
114
|
+
list-style: none;
|
|
115
|
+
}
|
|
116
|
+
blockquote,
|
|
117
|
+
q {
|
|
118
|
+
quotes: none;
|
|
119
|
+
}
|
|
120
|
+
blockquote:before,
|
|
121
|
+
blockquote:after,
|
|
122
|
+
q:before,
|
|
123
|
+
q:after {
|
|
124
|
+
content: '';
|
|
125
|
+
content: none;
|
|
126
|
+
}
|
|
127
|
+
table {
|
|
128
|
+
border-collapse: collapse;
|
|
129
|
+
border-spacing: 0;
|
|
130
|
+
}
|
|
131
|
+
/* #endif */
|
|
132
|
+
/* #ifndef H5 */
|
|
133
|
+
page,
|
|
134
|
+
cover-image,
|
|
135
|
+
cover-view,
|
|
136
|
+
grid-view,
|
|
137
|
+
list-view,
|
|
138
|
+
match-media,
|
|
139
|
+
movable-area,
|
|
140
|
+
movable-view,
|
|
141
|
+
page-container,
|
|
142
|
+
root-portal,
|
|
143
|
+
scroll-view,
|
|
144
|
+
share-element,
|
|
145
|
+
snapshot,
|
|
146
|
+
span,
|
|
147
|
+
sticky-header,
|
|
148
|
+
sticky-section,
|
|
149
|
+
swiper,
|
|
150
|
+
swiper-item,
|
|
151
|
+
view,
|
|
152
|
+
icon,
|
|
153
|
+
progress,
|
|
154
|
+
rich-text,
|
|
155
|
+
text,
|
|
156
|
+
button,
|
|
157
|
+
checkbox,
|
|
158
|
+
checkbox-group,
|
|
159
|
+
editor,
|
|
160
|
+
form,
|
|
161
|
+
input,
|
|
162
|
+
keyboard-accessory,
|
|
163
|
+
label,
|
|
164
|
+
picker,
|
|
165
|
+
picker-view,
|
|
166
|
+
picker-view-column,
|
|
167
|
+
radio,
|
|
168
|
+
radio-group,
|
|
169
|
+
slider,
|
|
170
|
+
switch,
|
|
171
|
+
textarea,
|
|
172
|
+
functional-page-navigator,
|
|
173
|
+
navigator {
|
|
174
|
+
margin: 0;
|
|
175
|
+
padding: 0;
|
|
176
|
+
border: 0;
|
|
177
|
+
font-size: 100%;
|
|
178
|
+
font: inherit;
|
|
179
|
+
vertical-align: baseline;
|
|
180
|
+
}
|
|
181
|
+
page {
|
|
182
|
+
line-height: 1;
|
|
183
|
+
}
|
|
184
|
+
/* #endif */
|