tailwindcss 3.0.3 → 3.0.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.
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
- Nothing yet!
|
|
11
11
|
|
|
12
|
+
## [3.0.4] - 2021-12-15
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Insert always on defaults layer in correct spot ([#6526](https://github.com/tailwindlabs/tailwindcss/pull/6526))
|
|
17
|
+
|
|
12
18
|
## [3.0.3] - 2021-12-15
|
|
13
19
|
|
|
14
20
|
### Added
|
|
@@ -1710,7 +1716,8 @@ No release notes
|
|
|
1710
1716
|
|
|
1711
1717
|
- Everything!
|
|
1712
1718
|
|
|
1713
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.
|
|
1719
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.4...HEAD
|
|
1720
|
+
[3.0.4]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.3...v3.0.4
|
|
1714
1721
|
[3.0.3]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.2...v3.0.3
|
|
1715
1722
|
[3.0.2]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.1...v3.0.2
|
|
1716
1723
|
[3.0.1]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0...v3.0.1
|
|
@@ -210,18 +210,26 @@ function expandTailwindAtRules(context) {
|
|
|
210
210
|
let { defaults: defaultNodes , base: baseNodes , components: componentNodes , utilities: utilityNodes , variants: screenNodes , } = context.stylesheetCache;
|
|
211
211
|
// ---
|
|
212
212
|
// Replace any Tailwind directives with generated CSS
|
|
213
|
+
if (layerNodes.base) {
|
|
214
|
+
layerNodes.base.before((0, _cloneNodes).default([
|
|
215
|
+
...baseNodes
|
|
216
|
+
], layerNodes.base.source));
|
|
217
|
+
}
|
|
213
218
|
// @defaults rules are unconditionally added first to ensure that
|
|
214
219
|
// using any utility that relies on defaults will work even when
|
|
215
220
|
// compiled in an isolated environment like CSS modules
|
|
216
221
|
if (context.tailwindConfig[DEFAULTS_LAYER] !== false) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
if (layerNodes.base) {
|
|
223
|
+
layerNodes.base.after((0, _cloneNodes).default([
|
|
224
|
+
...defaultNodes
|
|
225
|
+
], root.source));
|
|
226
|
+
} else {
|
|
227
|
+
root.prepend((0, _cloneNodes).default([
|
|
228
|
+
...defaultNodes
|
|
229
|
+
], root.source));
|
|
230
|
+
}
|
|
220
231
|
}
|
|
221
232
|
if (layerNodes.base) {
|
|
222
|
-
layerNodes.base.before((0, _cloneNodes).default([
|
|
223
|
-
...baseNodes
|
|
224
|
-
], layerNodes.base.source));
|
|
225
233
|
layerNodes.base.remove();
|
|
226
234
|
}
|
|
227
235
|
if (layerNodes.components) {
|
package/package.json
CHANGED
|
@@ -221,15 +221,22 @@ export default function expandTailwindAtRules(context) {
|
|
|
221
221
|
|
|
222
222
|
// Replace any Tailwind directives with generated CSS
|
|
223
223
|
|
|
224
|
+
if (layerNodes.base) {
|
|
225
|
+
layerNodes.base.before(cloneNodes([...baseNodes], layerNodes.base.source))
|
|
226
|
+
}
|
|
227
|
+
|
|
224
228
|
// @defaults rules are unconditionally added first to ensure that
|
|
225
229
|
// using any utility that relies on defaults will work even when
|
|
226
230
|
// compiled in an isolated environment like CSS modules
|
|
227
231
|
if (context.tailwindConfig[DEFAULTS_LAYER] !== false) {
|
|
228
|
-
|
|
232
|
+
if (layerNodes.base) {
|
|
233
|
+
layerNodes.base.after(cloneNodes([...defaultNodes], root.source))
|
|
234
|
+
} else {
|
|
235
|
+
root.prepend(cloneNodes([...defaultNodes], root.source))
|
|
236
|
+
}
|
|
229
237
|
}
|
|
230
238
|
|
|
231
239
|
if (layerNodes.base) {
|
|
232
|
-
layerNodes.base.before(cloneNodes([...baseNodes], layerNodes.base.source))
|
|
233
240
|
layerNodes.base.remove()
|
|
234
241
|
}
|
|
235
242
|
|