@unocss/reset 0.57.7 → 0.58.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/reset",
3
3
  "type": "module",
4
- "version": "0.57.7",
4
+ "version": "0.58.0",
5
5
  "description": "Collection of CSS resetting",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -22,15 +22,21 @@ Please read: https://github.com/unocss/unocss/blob/main/packages/reset/tailwind-
22
22
  2. Prevent adjustments of font size after orientation changes in iOS.
23
23
  3. Use a more readable tab size.
24
24
  4. Use the user's configured `sans` font-family by default.
25
+ 5. Use the user's configured `sans` font-feature-settings by default.
26
+ 6. Use the user's configured `sans` font-variation-settings by default.
27
+ 7. Disable tap highlights on iOS.
25
28
  */
26
29
 
27
- html {
30
+ html,
31
+ :host {
28
32
  line-height: 1.5; /* 1 */
29
33
  -webkit-text-size-adjust: 100%; /* 2 */
30
- text-size-adjust: 100%; /* 2 */
31
34
  -moz-tab-size: 4; /* 3 */
32
35
  tab-size: 4; /* 3 */
33
- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
36
+ font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
37
+ font-feature-settings: normal; /* 5 */
38
+ font-variation-settings: normal; /* 6 */
39
+ -webkit-tap-highlight-color: transparent; /* 7 */
34
40
  }
35
41
 
36
42
  /*
@@ -96,8 +102,10 @@ strong {
96
102
  }
97
103
 
98
104
  /*
99
- 1. Use the user's configured `mono` font family by default.
100
- 2. Correct the odd `em` font sizing in all browsers.
105
+ 1. Use the user's configured `mono` font-family by default.
106
+ 2. Use the user's configured `mono` font-feature-settings by default.
107
+ 3. Use the user's configured `mono` font-variation-settings by default.
108
+ 4. Correct the odd `em` font sizing in all browsers.
101
109
  */
102
110
 
103
111
  code,
@@ -105,7 +113,9 @@ kbd,
105
113
  samp,
106
114
  pre {
107
115
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
108
- font-size: 1em; /* 2 */
116
+ font-feature-settings: normal; /* 2 */
117
+ font-variation-settings: normal; /* 3 */
118
+ font-size: 1em; /* 4 */
109
119
  }
110
120
 
111
121
  /*
@@ -189,9 +199,9 @@ button,
189
199
  [type='reset'],
190
200
  [type='submit'] {
191
201
  -webkit-appearance: button; /* 1 */
192
- /*will affect the button style of most component libraries, so disable it*/
193
- /*https://github.com/unocss/unocss/issues/2127*/
194
- /*background-color: transparent; !* 2 *!*/
202
+ /* Will affect the button style of most component libraries, so disable it */
203
+ /* https://github.com/unocss/unocss/issues/2127 */
204
+ /* background-color: transparent; !* 2 *! */
195
205
  background-image: none; /* 2 */
196
206
  }
197
207
 
@@ -265,7 +275,7 @@ summary {
265
275
  }
266
276
 
267
277
  /*
268
- Removes the default spacing and border for appropriate elements.
278
+ Removes the default spacing for appropriate elements.
269
279
  */
270
280
 
271
281
  blockquote,
@@ -301,6 +311,10 @@ menu {
301
311
  padding: 0;
302
312
  }
303
313
 
314
+ dialog {
315
+ padding: 0;
316
+ }
317
+
304
318
  /*
305
319
  Prevent resizing textareas horizontally by default.
306
320
  */
@@ -332,6 +346,7 @@ button,
332
346
  /*
333
347
  Make sure disabled buttons don't get the pointer cursor.
334
348
  */
349
+
335
350
  :disabled {
336
351
  cursor: default;
337
352
  }
@@ -364,8 +379,10 @@ video {
364
379
  height: auto;
365
380
  }
366
381
 
367
- /* Make elements with the HTML hidden attribute stay hidden by default */
382
+ /*
383
+ Make elements with the HTML hidden attribute stay hidden by default.
384
+ */
385
+
368
386
  [hidden] {
369
387
  display: none;
370
- }
371
-
388
+ }
package/tailwind.css CHANGED
@@ -13,20 +13,31 @@
13
13
  border-color: var(--un-default-border-color, #e5e7eb); /* 2 */
14
14
  }
15
15
 
16
+ ::before,
17
+ ::after {
18
+ --un-content: '';
19
+ }
20
+
16
21
  /*
17
22
  1. Use a consistent sensible line-height in all browsers.
18
23
  2. Prevent adjustments of font size after orientation changes in iOS.
19
24
  3. Use a more readable tab size.
20
25
  4. Use the user's configured `sans` font-family by default.
26
+ 5. Use the user's configured `sans` font-feature-settings by default.
27
+ 6. Use the user's configured `sans` font-variation-settings by default.
28
+ 7. Disable tap highlights on iOS.
21
29
  */
22
30
 
23
- html {
31
+ html,
32
+ :host {
24
33
  line-height: 1.5; /* 1 */
25
34
  -webkit-text-size-adjust: 100%; /* 2 */
26
- text-size-adjust: 100%; /* 2 */
27
35
  -moz-tab-size: 4; /* 3 */
28
36
  tab-size: 4; /* 3 */
29
- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
37
+ font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
38
+ font-feature-settings: normal; /* 5 */
39
+ font-variation-settings: normal; /* 6 */
40
+ -webkit-tap-highlight-color: transparent; /* 7 */
30
41
  }
31
42
 
32
43
  /*
@@ -92,8 +103,10 @@ strong {
92
103
  }
93
104
 
94
105
  /*
95
- 1. Use the user's configured `mono` font family by default.
96
- 2. Correct the odd `em` font sizing in all browsers.
106
+ 1. Use the user's configured `mono` font-family by default.
107
+ 2. Use the user's configured `mono` font-feature-settings by default.
108
+ 3. Use the user's configured `mono` font-variation-settings by default.
109
+ 4. Correct the odd `em` font sizing in all browsers.
97
110
  */
98
111
 
99
112
  code,
@@ -101,7 +114,9 @@ kbd,
101
114
  samp,
102
115
  pre {
103
116
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
104
- font-size: 1em; /* 2 */
117
+ font-feature-settings: normal; /* 2 */
118
+ font-variation-settings: normal; /* 3 */
119
+ font-size: 1em; /* 4 */
105
120
  }
106
121
 
107
122
  /*
@@ -259,7 +274,7 @@ summary {
259
274
  }
260
275
 
261
276
  /*
262
- Removes the default spacing and border for appropriate elements.
277
+ Removes the default spacing for appropriate elements.
263
278
  */
264
279
 
265
280
  blockquote,
@@ -295,6 +310,10 @@ menu {
295
310
  padding: 0;
296
311
  }
297
312
 
313
+ dialog {
314
+ padding: 0;
315
+ }
316
+
298
317
  /*
299
318
  Prevent resizing textareas horizontally by default.
300
319
  */
@@ -326,6 +345,7 @@ button,
326
345
  /*
327
346
  Make sure disabled buttons don't get the pointer cursor.
328
347
  */
348
+
329
349
  :disabled {
330
350
  cursor: default;
331
351
  }
@@ -358,8 +378,10 @@ video {
358
378
  height: auto;
359
379
  }
360
380
 
361
- /* Make elements with the HTML hidden attribute stay hidden by default */
381
+ /*
382
+ Make elements with the HTML hidden attribute stay hidden by default.
383
+ */
384
+
362
385
  [hidden] {
363
386
  display: none;
364
- }
365
-
387
+ }