@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.
@@ -0,0 +1,355 @@
1
+ /*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
2
+
3
+ /*
4
+ Document
5
+ ========
6
+ */
7
+
8
+ /**
9
+ Use a better box model (opinionated).
10
+ */
11
+
12
+ /* #ifdef H5 */
13
+ *,
14
+ ::before,
15
+ ::after {
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ html {
20
+ /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
21
+ font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
22
+ line-height: 1.15; /* 1. Correct the line height in all browsers. */
23
+ -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
24
+ -moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
25
+ tab-size: 4; /* 3 */
26
+ }
27
+ /* #endif */
28
+ /* #ifndef H5 */
29
+ page,
30
+ cover-image,
31
+ cover-view,
32
+ grid-view,
33
+ list-view,
34
+ match-media,
35
+ movable-area,
36
+ movable-view,
37
+ page-container,
38
+ root-portal,
39
+ scroll-view,
40
+ share-element,
41
+ snapshot,
42
+ span,
43
+ sticky-header,
44
+ sticky-section,
45
+ swiper,
46
+ swiper-item,
47
+ view,
48
+ icon,
49
+ progress,
50
+ rich-text,
51
+ text,
52
+ button,
53
+ checkbox,
54
+ checkbox-group,
55
+ editor,
56
+ form,
57
+ input,
58
+ keyboard-accessory,
59
+ label,
60
+ picker,
61
+ picker-view,
62
+ picker-view-column,
63
+ radio,
64
+ radio-group,
65
+ slider,
66
+ switch,
67
+ textarea,
68
+ functional-page-navigator,
69
+ navigator,
70
+ ::before,
71
+ ::after {
72
+ box-sizing: border-box;
73
+ }
74
+
75
+ page {
76
+ /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
77
+ font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
78
+ line-height: 1.15; /* 1. Correct the line height in all browsers. */
79
+ -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
80
+ -moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
81
+ tab-size: 4; /* 3 */
82
+ }
83
+ /* #endif */
84
+
85
+ /*
86
+ Sections
87
+ ========
88
+ */
89
+
90
+ /* #ifdef H5 */
91
+ body {
92
+ margin: 0; /* Remove the margin in all browsers. */
93
+ }
94
+ /* #endif */
95
+ /* #ifndef H5 */
96
+ page {
97
+ margin: 0; /* Remove the margin in all browsers. */
98
+ }
99
+ /* #endif */
100
+
101
+ /*
102
+ Grouping content
103
+ ================
104
+ */
105
+
106
+ /**
107
+ 1. Add the correct height in Firefox.
108
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
109
+ */
110
+
111
+ /* #ifdef H5 */
112
+ hr {
113
+ height: 0; /* 1 */
114
+ color: inherit; /* 2 */
115
+ }
116
+ /* #endif */
117
+
118
+ /*
119
+ Text-level semantics
120
+ ====================
121
+ */
122
+
123
+ /**
124
+ Add the correct text decoration in Chrome, Edge, and Safari.
125
+ */
126
+
127
+ /* #ifdef H5 */
128
+ abbr[title] {
129
+ text-decoration: underline dotted;
130
+ }
131
+ /* #endif */
132
+
133
+ /**
134
+ Add the correct font weight in Edge and Safari.
135
+ */
136
+
137
+ /* #ifdef H5 */
138
+ b,
139
+ strong {
140
+ font-weight: bolder;
141
+ }
142
+ /* #endif */
143
+
144
+ /**
145
+ 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
146
+ 2. Correct the odd 'em' font sizing in all browsers.
147
+ */
148
+
149
+ /* #ifdef H5 */
150
+ code,
151
+ kbd,
152
+ samp,
153
+ pre {
154
+ font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; /* 1 */
155
+ font-size: 1em; /* 2 */
156
+ }
157
+ /* #endif */
158
+
159
+ /**
160
+ Add the correct font size in all browsers.
161
+ */
162
+
163
+ /* #ifdef H5 */
164
+ small {
165
+ font-size: 80%;
166
+ }
167
+ /* #endif */
168
+
169
+ /**
170
+ Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
171
+ */
172
+
173
+ /* #ifdef H5 */
174
+ sub,
175
+ sup {
176
+ font-size: 75%;
177
+ line-height: 0;
178
+ position: relative;
179
+ vertical-align: baseline;
180
+ }
181
+
182
+ sub {
183
+ bottom: -0.25em;
184
+ }
185
+
186
+ sup {
187
+ top: -0.5em;
188
+ }
189
+ /* #endif */
190
+
191
+ /*
192
+ Tabular data
193
+ ============
194
+ */
195
+
196
+ /**
197
+ 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)
198
+ 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
199
+ */
200
+
201
+ /* #ifdef H5 */
202
+ table {
203
+ text-indent: 0; /* 1 */
204
+ border-color: inherit; /* 2 */
205
+ }
206
+ /* #endif */
207
+
208
+ /*
209
+ Forms
210
+ =====
211
+ */
212
+
213
+ /**
214
+ 1. Change the font styles in all browsers.
215
+ 2. Remove the margin in Firefox and Safari.
216
+ */
217
+
218
+ /* #ifdef H5 */
219
+ button,
220
+ input,
221
+ optgroup,
222
+ select,
223
+ textarea {
224
+ font-family: inherit; /* 1 */
225
+ font-size: 100%; /* 1 */
226
+ line-height: 1.15; /* 1 */
227
+ margin: 0; /* 2 */
228
+ }
229
+ /* #endif */
230
+ /* #ifndef H5 */
231
+ button,
232
+ input,
233
+ textarea {
234
+ font-family: inherit; /* 1 */
235
+ font-size: 100%; /* 1 */
236
+ line-height: 1.15; /* 1 */
237
+ margin: 0; /* 2 */
238
+ }
239
+ /* #endif */
240
+
241
+ /**
242
+ Remove the inheritance of text transform in Edge and Firefox.
243
+ */
244
+
245
+ button,
246
+ select {
247
+ text-transform: none;
248
+ }
249
+
250
+ /**
251
+ Correct the inability to style clickable types in iOS and Safari.
252
+ */
253
+
254
+ button,
255
+ [type='button'],
256
+ [type='reset'],
257
+ [type='submit'] {
258
+ -webkit-appearance: button;
259
+ }
260
+
261
+ /**
262
+ Remove the inner border and padding in Firefox.
263
+ */
264
+
265
+ ::-moz-focus-inner {
266
+ border-style: none;
267
+ padding: 0;
268
+ }
269
+
270
+ /**
271
+ Restore the focus styles unset by the previous rule.
272
+ */
273
+
274
+ :-moz-focusring {
275
+ outline: 1px dotted ButtonText;
276
+ }
277
+
278
+ /**
279
+ Remove the additional ':invalid' styles in Firefox.
280
+ See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
281
+ */
282
+
283
+ :-moz-ui-invalid {
284
+ box-shadow: none;
285
+ }
286
+
287
+ /**
288
+ Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
289
+ */
290
+
291
+ /* #ifdef H5 */
292
+ legend {
293
+ padding: 0;
294
+ }
295
+ /* #endif */
296
+
297
+ /**
298
+ Add the correct vertical alignment in Chrome and Firefox.
299
+ */
300
+
301
+ progress {
302
+ vertical-align: baseline;
303
+ }
304
+
305
+ /**
306
+ Correct the cursor style of increment and decrement buttons in Safari.
307
+ */
308
+
309
+ ::-webkit-inner-spin-button,
310
+ ::-webkit-outer-spin-button {
311
+ height: auto;
312
+ }
313
+
314
+ /**
315
+ 1. Correct the odd appearance in Chrome and Safari.
316
+ 2. Correct the outline style in Safari.
317
+ */
318
+
319
+ [type='search'] {
320
+ -webkit-appearance: textfield; /* 1 */
321
+ outline-offset: -2px; /* 2 */
322
+ }
323
+
324
+ /**
325
+ Remove the inner padding in Chrome and Safari on macOS.
326
+ */
327
+
328
+ ::-webkit-search-decoration {
329
+ -webkit-appearance: none;
330
+ }
331
+
332
+ /**
333
+ 1. Correct the inability to style clickable types in iOS and Safari.
334
+ 2. Change font properties to 'inherit' in Safari.
335
+ */
336
+
337
+ ::-webkit-file-upload-button {
338
+ -webkit-appearance: button; /* 1 */
339
+ font: inherit; /* 2 */
340
+ }
341
+
342
+ /*
343
+ Interactive
344
+ ===========
345
+ */
346
+
347
+ /*
348
+ Add the correct display in Chrome and Safari.
349
+ */
350
+
351
+ /* #ifdef H5 */
352
+ summary {
353
+ display: list-item;
354
+ }
355
+ /* #endif */
@@ -0,0 +1,300 @@
1
+ /* Document
2
+ * ========================================================================== */
3
+
4
+ /**
5
+ * 1. Correct the line height in all browsers.
6
+ */
7
+
8
+ /* #ifdef H5 */
9
+ :where(html) {
10
+ line-height: 1.15; /* 1 */
11
+ }
12
+ /* #endif */
13
+ /* #ifndef H5 */
14
+ :where(page) {
15
+ line-height: 1.15; /* 1 */
16
+ }
17
+ /* #endif */
18
+
19
+ /* Sections
20
+ * ========================================================================== */
21
+
22
+ /**
23
+ * Correct the font size and margin on `h1` elements within `section` and
24
+ * `article` contexts in Chrome, Edge, Firefox, and Safari.
25
+ */
26
+
27
+ /* #ifdef H5 */
28
+ :where(h1) {
29
+ font-size: 2em;
30
+ margin-block-end: 0.67em;
31
+ margin-block-start: 0.67em;
32
+ }
33
+ /* #endif */
34
+
35
+ /* Grouping content
36
+ * ========================================================================== */
37
+
38
+ /**
39
+ * Remove the margin on nested lists in Chrome, Edge, and Safari.
40
+ */
41
+
42
+ /* #ifdef H5 */
43
+ :where(dl, ol, ul) :where(dl, ol, ul) {
44
+ margin-block-end: 0;
45
+ margin-block-start: 0;
46
+ }
47
+ /* #endif */
48
+
49
+ /**
50
+ * 1. Add the correct box sizing in Firefox.
51
+ * 2. Correct the inheritance of border color in Firefox.
52
+ */
53
+
54
+ :where(hr) {
55
+ box-sizing: content-box; /* 1 */
56
+ color: inherit; /* 2 */
57
+ height: 0; /* 1 */
58
+ }
59
+
60
+ /**
61
+ * 1. Correct the inheritance and scaling of font size in all browsers.
62
+ * 2. Correct the odd `em` font sizing in all browsers.
63
+ */
64
+
65
+ /* #ifdef H5 */
66
+ :where(pre) {
67
+ font-family: monospace, monospace; /* 1 */
68
+ font-size: 1em; /* 2 */
69
+ }
70
+ /* #endif */
71
+
72
+ /* Text-level semantics
73
+ * ========================================================================== */
74
+
75
+ /**
76
+ * Add the correct text decoration in Safari.
77
+ */
78
+
79
+ /* #ifdef H5 */
80
+ :where(abbr[title]) {
81
+ text-decoration: underline;
82
+ text-decoration: underline dotted;
83
+ }
84
+ /* #endif */
85
+
86
+ /**
87
+ * Add the correct font weight in Chrome, Edge, and Safari.
88
+ */
89
+
90
+ /* #ifdef H5 */
91
+ :where(b, strong) {
92
+ font-weight: bolder;
93
+ }
94
+ /* #endif */
95
+
96
+ /**
97
+ * 1. Correct the inheritance and scaling of font size in all browsers.
98
+ * 2. Correct the odd `em` font sizing in all browsers.
99
+ */
100
+
101
+ /* #ifdef H5 */
102
+ :where(code, kbd, samp) {
103
+ font-family: monospace, monospace; /* 1 */
104
+ font-size: 1em; /* 2 */
105
+ }
106
+ /* #endif */
107
+
108
+ /**
109
+ * Add the correct font size in all browsers.
110
+ */
111
+
112
+ /* #ifdef H5 */
113
+ :where(small) {
114
+ font-size: 80%;
115
+ }
116
+ /* #endif */
117
+
118
+ /* Tabular data
119
+ * ========================================================================== */
120
+
121
+ /**
122
+ * 1. Correct table border color in Chrome, Edge, and Safari.
123
+ * 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
124
+ */
125
+
126
+ /* #ifdef H5 */
127
+ :where(table) {
128
+ border-color: currentColor; /* 1 */
129
+ text-indent: 0; /* 2 */
130
+ }
131
+ /* #endif */
132
+
133
+ /* Forms
134
+ * ========================================================================== */
135
+
136
+ /**
137
+ * Remove the margin on controls in Safari.
138
+ */
139
+
140
+ /* #ifdef H5 */
141
+ :where(button, input, select) {
142
+ margin: 0;
143
+ }
144
+ /* #endif */
145
+ /* #ifndef H5 */
146
+ :where(button, input) {
147
+ margin: 0;
148
+ }
149
+ /* #endif */
150
+
151
+ /**
152
+ * Remove the inheritance of text transform in Firefox.
153
+ */
154
+
155
+ :where(button) {
156
+ text-transform: none;
157
+ }
158
+
159
+ /**
160
+ * Correct the inability to style buttons in iOS and Safari.
161
+ */
162
+
163
+ :where(button, input:is([type='button' i], [type='reset' i], [type='submit' i])) {
164
+ -webkit-appearance: button;
165
+ }
166
+
167
+ /**
168
+ * Add the correct vertical alignment in Chrome, Edge, and Firefox.
169
+ */
170
+
171
+ :where(progress) {
172
+ vertical-align: baseline;
173
+ }
174
+
175
+ /**
176
+ * Remove the inheritance of text transform in Firefox.
177
+ */
178
+
179
+ /* #ifdef H5 */
180
+ :where(select) {
181
+ text-transform: none;
182
+ }
183
+ /* #endif */
184
+
185
+ /**
186
+ * Remove the margin in Firefox and Safari.
187
+ */
188
+
189
+ :where(textarea) {
190
+ margin: 0;
191
+ }
192
+
193
+ /**
194
+ * 1. Correct the odd appearance in Chrome, Edge, and Safari.
195
+ * 2. Correct the outline style in Safari.
196
+ */
197
+
198
+ :where(input[type='search' i]) {
199
+ -webkit-appearance: textfield; /* 1 */
200
+ outline-offset: -2px; /* 2 */
201
+ }
202
+
203
+ /**
204
+ * Correct the cursor style of increment and decrement buttons in Safari.
205
+ */
206
+
207
+ ::-webkit-inner-spin-button,
208
+ ::-webkit-outer-spin-button {
209
+ height: auto;
210
+ }
211
+
212
+ /**
213
+ * Correct the text style of placeholders in Chrome, Edge, and Safari.
214
+ */
215
+
216
+ ::-webkit-input-placeholder {
217
+ color: inherit;
218
+ opacity: 0.54;
219
+ }
220
+
221
+ /**
222
+ * Remove the inner padding in Chrome, Edge, and Safari on macOS.
223
+ */
224
+
225
+ ::-webkit-search-decoration {
226
+ -webkit-appearance: none;
227
+ }
228
+
229
+ /**
230
+ * 1. Correct the inability to style upload buttons in iOS and Safari.
231
+ * 2. Change font properties to `inherit` in Safari.
232
+ */
233
+
234
+ ::-webkit-file-upload-button {
235
+ -webkit-appearance: button; /* 1 */
236
+ font: inherit; /* 2 */
237
+ }
238
+
239
+ /**
240
+ * Remove the inner border and padding of focus outlines in Firefox.
241
+ */
242
+
243
+ :where(button, input:is([type='button' i], [type='color' i], [type='reset' i], [type='submit' i]))::-moz-focus-inner {
244
+ border-style: none;
245
+ padding: 0;
246
+ }
247
+
248
+ /**
249
+ * Restore the focus outline styles unset by the previous rule in Firefox.
250
+ */
251
+
252
+ :where(button, input:is([type='button' i], [type='color' i], [type='reset' i], [type='submit' i]))::-moz-focusring {
253
+ outline: 1px dotted ButtonText;
254
+ }
255
+
256
+ /**
257
+ * Remove the additional :invalid styles in Firefox.
258
+ */
259
+
260
+ :where(:-moz-ui-invalid) {
261
+ box-shadow: none;
262
+ }
263
+
264
+ /* Interactive
265
+ * ========================================================================== */
266
+
267
+ /*
268
+ * Add the correct styles in Safari.
269
+ */
270
+
271
+ /* #ifdef H5 */
272
+ :where(dialog) {
273
+ background-color: white;
274
+ border: solid;
275
+ color: black;
276
+ height: -moz-fit-content;
277
+ height: fit-content;
278
+ left: 0;
279
+ margin: auto;
280
+ padding: 1em;
281
+ position: absolute;
282
+ right: 0;
283
+ width: -moz-fit-content;
284
+ width: fit-content;
285
+ }
286
+
287
+ :where(dialog:not([open])) {
288
+ display: none;
289
+ }
290
+ /* #endif */
291
+
292
+ /*
293
+ * Add the correct display in all browsers.
294
+ */
295
+
296
+ /* #ifdef H5 */
297
+ :where(summary) {
298
+ display: list-item;
299
+ }
300
+ /* #endif */
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Restrict sizing to the page width in all browsers (opinionated).
3
+ */
4
+
5
+ /* #ifdef H5 */
6
+ :where(iframe, img, input, video, select, textarea) {
7
+ height: auto;
8
+ max-width: 100%;
9
+ }
10
+ /* #endif */
11
+ /* #ifndef H5 */
12
+ :where(image, input, video, textarea) {
13
+ height: auto;
14
+ max-width: 100%;
15
+ }
16
+ /* #endif */