tailwindcss 0.0.0-oxide.3 → 0.0.0-oxide.4

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.
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
9
9
  });
10
10
 
11
11
  // package.json
12
- var version = "0.0.0-oxide.3";
12
+ var version = "0.0.0-oxide.4";
13
13
 
14
14
  // src/ast.ts
15
15
  function rule(selector, nodes) {
package/dist/cli.js CHANGED
@@ -103,7 +103,7 @@ function convertString(value) {
103
103
  }
104
104
 
105
105
  // package.json
106
- var version = "0.0.0-oxide.3";
106
+ var version = "0.0.0-oxide.4";
107
107
 
108
108
  // src/ast.ts
109
109
  function rule(selector, nodes) {
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { __require, optimizeCss, compile, version } from './chunk-YL27VW7G.mjs';
2
+ import { __require, optimizeCss, compile, version } from './chunk-BU3RKWVW.mjs';
3
3
  import parse from 'mri';
4
4
  import watcher from '@parcel/watcher';
5
5
  import { scanDir, clearCache, scanFiles, IO, Parsing } from '@tailwindcss/oxide';
package/dist/lib.js CHANGED
@@ -5,7 +5,7 @@ var lightningcss = require('lightningcss');
5
5
  // src/index.ts
6
6
 
7
7
  // package.json
8
- var version = "0.0.0-oxide.3";
8
+ var version = "0.0.0-oxide.4";
9
9
 
10
10
  // src/ast.ts
11
11
  function rule(selector, nodes) {
package/dist/lib.mjs CHANGED
@@ -1 +1 @@
1
- export { __unstable__loadDesignSystem, compile, optimizeCss } from './chunk-YL27VW7G.mjs';
1
+ export { __unstable__loadDesignSystem, compile, optimizeCss } from './chunk-BU3RKWVW.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-oxide.3",
3
+ "version": "0.0.0-oxide.4",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/tailwindlabs/tailwindcss.git",
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@types/node": "^20.10.8",
43
43
  "@types/postcss-import": "^14.0.3",
44
- "@tailwindcss/oxide": "0.0.0-oxide.3"
44
+ "@tailwindcss/oxide": "0.0.0-oxide.4"
45
45
  },
46
46
  "scripts": {
47
47
  "lint": "tsc --noEmit",
package/preflight.css CHANGED
@@ -1,16 +1,21 @@
1
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)
2
+ Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
4
3
  */
5
4
 
6
5
  *,
7
- ::before,
8
6
  ::after,
7
+ ::before,
9
8
  ::backdrop,
10
- ::first-letter,
11
9
  ::file-selector-button {
12
- box-sizing: border-box; /* 1 */
13
- border: 0 solid; /* 2 */
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ /*
14
+ Remove any default margins.
15
+ */
16
+
17
+ * {
18
+ margin: 0;
14
19
  }
15
20
 
16
21
  /*
@@ -27,7 +32,6 @@ html,
27
32
  :host {
28
33
  line-height: 1.5; /* 1 */
29
34
  -webkit-text-size-adjust: 100%; /* 2 */
30
- -moz-tab-size: 4; /* 3 */
31
35
  tab-size: 4; /* 3 */
32
36
  font-family: var(
33
37
  --default-font-family,
@@ -45,24 +49,23 @@ html,
45
49
  }
46
50
 
47
51
  /*
48
- 1. Remove the margin in all browsers.
49
- 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
52
+ Inherit line-height from `html` so users can set them as a class directly on the `html` element.
50
53
  */
51
54
 
52
55
  body {
53
- margin: 0; /* 1 */
54
- line-height: inherit; /* 2 */
56
+ line-height: inherit;
55
57
  }
56
58
 
57
59
  /*
58
60
  1. Add the correct height in Firefox.
59
61
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
60
- 3. Ensure horizontal rules are visible by default.
62
+ 3. Reset the default border style to a 1px solid border.
61
63
  */
62
64
 
63
65
  hr {
64
66
  height: 0; /* 1 */
65
67
  color: inherit; /* 2 */
68
+ border: 0 solid; /* 3 */
66
69
  border-top-width: 1px; /* 3 */
67
70
  }
68
71
 
@@ -176,48 +179,36 @@ table {
176
179
  }
177
180
 
178
181
  /*
179
- 1. Change the font styles in all browsers.
180
- 2. Remove the margin in Firefox and Safari.
181
- 3. Remove default padding in all browsers.
182
+ 1. Inherit the font styles in all browsers.
183
+ 2. Reset the default inset border style to solid.
184
+ 3. Remove the default background color.
185
+ 4. Remove default padding.
182
186
  */
183
187
 
184
188
  button,
185
189
  input,
186
190
  optgroup,
187
191
  select,
188
- textarea {
189
- font-family: inherit; /* 1 */
192
+ textarea,
193
+ ::file-selector-button {
194
+ font: inherit; /* 1 */
190
195
  font-feature-settings: inherit; /* 1 */
191
196
  font-variation-settings: inherit; /* 1 */
192
- font-size: 100%; /* 1 */
193
- font-weight: inherit; /* 1 */
194
- line-height: inherit; /* 1 */
195
197
  color: inherit; /* 1 */
196
- margin: 0; /* 2 */
197
- padding: 0; /* 3 */
198
- }
199
-
200
- /*
201
- Remove the inheritance of text transform in Edge and Firefox.
202
- */
203
-
204
- button,
205
- select {
206
- text-transform: none;
198
+ border: 1px solid; /* 2 */
199
+ background: transparent; /* 3 */
200
+ padding: 0; /* 4 */
207
201
  }
208
202
 
209
203
  /*
210
- 1. Correct the inability to style clickable types in iOS and Safari.
211
- 2. Remove default button styles.
204
+ 1. Correct the inability to style the border radius in iOS Safari.
205
+ 2. Make borders opt-in.
212
206
  */
213
-
214
207
  button,
215
- input:where([type='button']),
216
- input:where([type='reset']),
217
- input:where([type='submit']) {
218
- -webkit-appearance: button; /* 1 */
219
- background-color: transparent; /* 2 */
220
- background-image: none; /* 2 */
208
+ input:where([type='button'], [type='reset'], [type='submit']),
209
+ ::file-selector-button {
210
+ appearance: button; /* 1 */
211
+ border: 0; /* 2 */
221
212
  }
222
213
 
223
214
  /*
@@ -230,7 +221,7 @@ input:where([type='submit']) {
230
221
 
231
222
  /*
232
223
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
233
- */
224
+ */
234
225
 
235
226
  :-moz-ui-invalid {
236
227
  box-shadow: none;
@@ -253,16 +244,6 @@ progress {
253
244
  height: auto;
254
245
  }
255
246
 
256
- /*
257
- 1. Correct the odd appearance in Chrome and Safari.
258
- 2. Correct the outline style in Safari.
259
- */
260
-
261
- [type='search'] {
262
- -webkit-appearance: textfield; /* 1 */
263
- outline-offset: -2px; /* 2 */
264
- }
265
-
266
247
  /*
267
248
  Remove the inner padding in Chrome and Safari on macOS.
268
249
  */
@@ -271,16 +252,6 @@ progress {
271
252
  -webkit-appearance: none;
272
253
  }
273
254
 
274
- /*
275
- 1. Correct the inability to style clickable types in iOS and Safari.
276
- 2. Change font properties to `inherit` in Safari.
277
- */
278
-
279
- ::-webkit-file-upload-button {
280
- -webkit-appearance: button; /* 1 */
281
- font: inherit; /* 2 */
282
- }
283
-
284
255
  /*
285
256
  Add the correct display in Chrome and Safari.
286
257
  */
@@ -290,27 +261,11 @@ summary {
290
261
  }
291
262
 
292
263
  /*
293
- Removes the default spacing for appropriate elements.
264
+ Remove the default border and spacing for fieldset and legend elements.
294
265
  */
295
266
 
296
- blockquote,
297
- dl,
298
- dd,
299
- h1,
300
- h2,
301
- h3,
302
- h4,
303
- h5,
304
- h6,
305
- hr,
306
- figure,
307
- p,
308
- pre {
309
- margin: 0;
310
- }
311
-
312
267
  fieldset {
313
- margin: 0;
268
+ border: 0;
314
269
  padding: 0;
315
270
  }
316
271
 
@@ -318,14 +273,21 @@ legend {
318
273
  padding: 0;
319
274
  }
320
275
 
276
+ /*
277
+ Make lists unstyled by default.
278
+ */
279
+
321
280
  ol,
322
281
  ul,
323
282
  menu {
324
283
  list-style: none;
325
- margin: 0;
326
284
  padding: 0;
327
285
  }
328
286
 
287
+ /*
288
+ Remove the default padding from dialog elements.
289
+ */
290
+
329
291
  dialog {
330
292
  padding: 0;
331
293
  }
@@ -348,15 +310,6 @@ textarea {
348
310
  color: color-mix(in srgb, currentColor 50%, transparent); /* 2 */
349
311
  }
350
312
 
351
- /*
352
- Set the default cursor for buttons.
353
- */
354
-
355
- button,
356
- [role='button'] {
357
- cursor: pointer;
358
- }
359
-
360
313
  /*
361
314
  Make sure disabled buttons don't get the pointer cursor.
362
315
  */
@@ -398,5 +351,5 @@ video {
398
351
  */
399
352
 
400
353
  [hidden] {
401
- display: none;
354
+ display: none !important;
402
355
  }