@unocss/reset 0.32.1 → 0.32.7

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.
Files changed (3) hide show
  1. package/README.md +6 -0
  2. package/antfu.css +164 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -22,4 +22,10 @@ import '@unocss/reset/eric-meyer.css'
22
22
 
23
23
  // preflights from tailwind
24
24
  import '@unocss/reset/tailwind.css'
25
+
26
+ // opinionated reset by Anthony Fu
27
+ // https://github.com/unocss/unocss/blob/main/packages/reset/antfu.md
28
+ import '@unocss/reset/antfu.css'
25
29
  ```
30
+
31
+
package/antfu.css ADDED
@@ -0,0 +1,164 @@
1
+ *, ::before, ::after {
2
+ box-sizing: border-box;
3
+ border-width: 0;
4
+ border-style: solid;
5
+ border-color: currentColor;
6
+ }
7
+ html {
8
+ line-height: 1.5;
9
+ -webkit-text-size-adjust: 100%;
10
+ -moz-tab-size: 4;
11
+ tab-size: 4;
12
+ 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";
13
+ scrollbar-gutter: stable;
14
+ }
15
+ body {
16
+ margin: 0;
17
+ line-height: inherit;
18
+ }
19
+ hr {
20
+ height: 0;
21
+ color: inherit;
22
+ border-top-width: 1px;
23
+ }
24
+ abbr:where([title]) {
25
+ text-decoration: underline dotted;
26
+ }
27
+ h1, h2, h3, h4, h5, h6 {
28
+ font-size: inherit;
29
+ font-weight: inherit;
30
+ }
31
+ a {
32
+ color: inherit;
33
+ text-decoration: inherit;
34
+ }
35
+ b, strong {
36
+ font-weight: bolder;
37
+ }
38
+ code, kbd, samp, pre {
39
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
40
+ font-size: 1em;
41
+ }
42
+ small {
43
+ font-size: 80%;
44
+ }
45
+ sub, sup {
46
+ font-size: 75%;
47
+ line-height: 0;
48
+ position: relative;
49
+ vertical-align: baseline;
50
+ }
51
+ sub {
52
+ bottom: -0.25em;
53
+ }
54
+ sup {
55
+ top: -0.5em;
56
+ }
57
+ table {
58
+ text-indent: 0;
59
+ border-color: inherit;
60
+ border-collapse: collapse;
61
+ }
62
+ button, input, optgroup, select, textarea {
63
+ font-family: inherit;
64
+ font-size: 100%;
65
+ line-height: inherit;
66
+ color: inherit;
67
+ margin: 0;
68
+ padding: 0;
69
+ }
70
+ button, select {
71
+ text-transform: none;
72
+ }
73
+ button, [type='button'], [type='reset'], [type='submit'] {
74
+ -webkit-appearance: button;
75
+ background-color: transparent;
76
+ background-image: none;
77
+ }
78
+ :-moz-focusring {
79
+ outline: auto;
80
+ }
81
+ :-moz-ui-invalid {
82
+ box-shadow: none;
83
+ }
84
+ progress {
85
+ vertical-align: baseline;
86
+ }
87
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
88
+ height: auto;
89
+ }
90
+ [type='search'] {
91
+ -webkit-appearance: textfield;
92
+ outline-offset: -2px;
93
+ }
94
+ ::-webkit-search-decoration {
95
+ -webkit-appearance: none;
96
+ }
97
+ ::-webkit-file-upload-button {
98
+ -webkit-appearance: button;
99
+ font: inherit;
100
+ }
101
+ summary {
102
+ display: list-item;
103
+ }
104
+ blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
105
+ margin: 0;
106
+ }
107
+ fieldset {
108
+ margin: 0;
109
+ padding: 0;
110
+ }
111
+ legend {
112
+ padding: 0;
113
+ }
114
+ ol, ul, menu {
115
+ list-style: none;
116
+ margin: 0;
117
+ padding: 0;
118
+ }
119
+ textarea {
120
+ resize: vertical;
121
+ }
122
+ input::placeholder, textarea::placeholder {
123
+ opacity: 1;
124
+ color: #9ca3af;
125
+ }
126
+ button, [role="button"] {
127
+ cursor: pointer;
128
+ }
129
+ :disabled {
130
+ cursor: default;
131
+ }
132
+ img, svg, video, canvas, audio, iframe, embed, object {
133
+ display: block;
134
+ vertical-align: middle;
135
+ }
136
+ img, video {
137
+ max-width: 100%;
138
+ height: auto;
139
+ }
140
+ [hidden] {
141
+ display: none;
142
+ }
143
+ /* Anthony's addition */
144
+ .dark {
145
+ color-scheme: dark;
146
+ }
147
+ .dark ::-moz-selection {
148
+ background: #444;
149
+ }
150
+ .dark ::selection {
151
+ background: #444;
152
+ }
153
+ div {
154
+ display: flex;
155
+ flex-direction: column;
156
+ }
157
+ div[row=""] {
158
+ display: flex;
159
+ flex-direction: row;
160
+ }
161
+ div[block=""] {
162
+ display: block;
163
+ }
164
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/reset",
3
- "version": "0.32.1",
3
+ "version": "0.32.7",
4
4
  "description": "Collection of CSS reseting",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/unocss/unocss#readme",
@@ -27,5 +27,5 @@
27
27
  "scripts": {
28
28
  "build": "esno scripts/copy.ts"
29
29
  },
30
- "readme": "# @unocss/reset\n\nCollection of standard reset CSS stylesheets.\n\n```bash\nnpm i @unocss/reset\n```\n\n```ts\n// main.js\n// pick one of the following\n\n// normalize.css https://necolas.github.io/normalize.css/\nimport '@unocss/reset/normalize.css'\n\n// sanitize.css https://github.com/csstools/sanitize.css#usage\nimport '@unocss/reset/sanitize/sanitize.css'\nimport '@unocss/reset/sanitize/assets.css'\n\n// reset.css by Eric Meyer https://meyerweb.com/eric/tools/css/reset/index.html\nimport '@unocss/reset/eric-meyer.css'\n\n// preflights from tailwind\nimport '@unocss/reset/tailwind.css'\n```\n"
30
+ "readme": "# @unocss/reset\n\nCollection of standard reset CSS stylesheets.\n\n```bash\nnpm i @unocss/reset\n```\n\n```ts\n// main.js\n// pick one of the following\n\n// normalize.css https://necolas.github.io/normalize.css/\nimport '@unocss/reset/normalize.css'\n\n// sanitize.css https://github.com/csstools/sanitize.css#usage\nimport '@unocss/reset/sanitize/sanitize.css'\nimport '@unocss/reset/sanitize/assets.css'\n\n// reset.css by Eric Meyer https://meyerweb.com/eric/tools/css/reset/index.html\nimport '@unocss/reset/eric-meyer.css'\n\n// preflights from tailwind\nimport '@unocss/reset/tailwind.css'\n\n// opinionated reset by Anthony Fu\n// https://github.com/unocss/unocss/blob/main/packages/reset/antfu.md\nimport '@unocss/reset/antfu.css'\n```\n\n\n"
31
31
  }