tailwindcss 0.0.0-insiders.bbafc8e → 0.0.0-insiders.bbc2f3f
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/README.md +16 -13
- package/dist/chunk-5C7JPVMO.mjs +10 -0
- package/dist/chunk-AZANAYY2.mjs +1 -0
- package/dist/chunk-V2K3XTS4.mjs +1 -0
- package/dist/colors-b_6i0Oi7.d.ts +295 -0
- package/dist/colors.d.mts +295 -0
- package/dist/colors.d.ts +5 -0
- package/dist/colors.js +1 -0
- package/dist/colors.mjs +1 -0
- package/dist/default-theme.d.mts +1147 -0
- package/dist/default-theme.d.ts +1147 -0
- package/dist/default-theme.js +1 -0
- package/dist/default-theme.mjs +1 -0
- package/dist/flatten-color-palette.d.mts +6 -0
- package/dist/flatten-color-palette.d.ts +6 -0
- package/dist/flatten-color-palette.js +1 -0
- package/dist/flatten-color-palette.mjs +1 -0
- package/dist/lib.d.mts +260 -0
- package/dist/lib.d.ts +3 -0
- package/dist/lib.js +33 -0
- package/dist/lib.mjs +24 -0
- package/dist/plugin.d.mts +11 -0
- package/dist/plugin.d.ts +104 -0
- package/dist/plugin.js +1 -0
- package/dist/plugin.mjs +1 -0
- package/dist/resolve-config-BIFUA2FY.d.ts +29 -0
- package/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
- package/dist/types-B254mqw1.d.mts +98 -0
- package/index.css +865 -0
- package/package.json +73 -95
- package/preflight.css +383 -0
- package/theme.css +453 -0
- package/CHANGELOG.md +0 -2084
- package/base.css +0 -1
- package/colors.js +0 -2
- package/components.css +0 -1
- package/defaultConfig.js +0 -2
- package/defaultTheme.js +0 -2
- package/lib/cli-peer-dependencies.js +0 -15
- package/lib/cli.js +0 -741
- package/lib/constants.js +0 -37
- package/lib/corePluginList.js +0 -178
- package/lib/corePlugins.js +0 -3587
- package/lib/css/LICENSE +0 -25
- package/lib/css/preflight.css +0 -367
- package/lib/featureFlags.js +0 -59
- package/lib/index.js +0 -41
- package/lib/lib/cacheInvalidation.js +0 -69
- package/lib/lib/collapseAdjacentRules.js +0 -54
- package/lib/lib/collapseDuplicateDeclarations.js +0 -80
- package/lib/lib/defaultExtractor.js +0 -44
- package/lib/lib/detectNesting.js +0 -34
- package/lib/lib/evaluateTailwindFunctions.js +0 -171
- package/lib/lib/expandApplyAtRules.js +0 -433
- package/lib/lib/expandTailwindAtRules.js +0 -262
- package/lib/lib/generateRules.js +0 -631
- package/lib/lib/getModuleDependencies.js +0 -48
- package/lib/lib/normalizeTailwindDirectives.js +0 -84
- package/lib/lib/partitionApplyAtRules.js +0 -53
- package/lib/lib/resolveDefaultsAtRules.js +0 -143
- package/lib/lib/setupContextUtils.js +0 -859
- package/lib/lib/setupTrackingContext.js +0 -171
- package/lib/lib/sharedState.js +0 -52
- package/lib/lib/substituteScreenAtRules.js +0 -27
- package/lib/postcss-plugins/nesting/README.md +0 -42
- package/lib/postcss-plugins/nesting/index.js +0 -17
- package/lib/postcss-plugins/nesting/plugin.js +0 -85
- package/lib/processTailwindFeatures.js +0 -59
- package/lib/public/colors.js +0 -329
- package/lib/public/create-plugin.js +0 -13
- package/lib/public/default-config.js +0 -14
- package/lib/public/default-theme.js +0 -14
- package/lib/public/resolve-config.js +0 -19
- package/lib/util/bigSign.js +0 -8
- package/lib/util/buildMediaQuery.js +0 -20
- package/lib/util/cloneDeep.js +0 -19
- package/lib/util/cloneNodes.js +0 -25
- package/lib/util/color.js +0 -99
- package/lib/util/configurePlugins.js +0 -18
- package/lib/util/createPlugin.js +0 -29
- package/lib/util/createUtilityPlugin.js +0 -49
- package/lib/util/dataTypes.js +0 -233
- package/lib/util/defaults.js +0 -22
- package/lib/util/escapeClassName.js +0 -19
- package/lib/util/escapeCommas.js +0 -8
- package/lib/util/flattenColorPalette.js +0 -17
- package/lib/util/formatVariantSelector.js +0 -186
- package/lib/util/getAllConfigs.js +0 -29
- package/lib/util/hashConfig.js +0 -16
- package/lib/util/isKeyframeRule.js +0 -8
- package/lib/util/isPlainObject.js +0 -12
- package/lib/util/isValidArbitraryValue.js +0 -64
- package/lib/util/log.js +0 -51
- package/lib/util/nameClass.js +0 -32
- package/lib/util/negateValue.js +0 -19
- package/lib/util/normalizeConfig.js +0 -240
- package/lib/util/normalizeScreens.js +0 -59
- package/lib/util/parseAnimationValue.js +0 -89
- package/lib/util/parseBoxShadowValue.js +0 -117
- package/lib/util/parseDependency.js +0 -63
- package/lib/util/parseObjectStyles.js +0 -31
- package/lib/util/pluginUtils.js +0 -179
- package/lib/util/prefixSelector.js +0 -20
- package/lib/util/resolveConfig.js +0 -255
- package/lib/util/resolveConfigPath.js +0 -51
- package/lib/util/responsive.js +0 -19
- package/lib/util/tap.js +0 -9
- package/lib/util/toColorValue.js +0 -8
- package/lib/util/toPath.js +0 -14
- package/lib/util/transformThemeValue.js +0 -59
- package/lib/util/withAlphaVariable.js +0 -67
- package/nesting/index.js +0 -2
- package/peers/index.js +0 -75077
- package/plugin.js +0 -2
- package/prettier.config.js +0 -19
- package/resolveConfig.js +0 -2
- package/screens.css +0 -1
- package/scripts/create-plugin-list.js +0 -10
- package/scripts/install-integrations.js +0 -27
- package/scripts/rebuildFixtures.js +0 -68
- package/src/cli-peer-dependencies.js +0 -9
- package/src/cli.js +0 -815
- package/src/constants.js +0 -17
- package/src/corePluginList.js +0 -1
- package/src/corePlugins.js +0 -2365
- package/src/css/LICENSE +0 -25
- package/src/css/preflight.css +0 -367
- package/src/featureFlags.js +0 -54
- package/src/index.js +0 -42
- package/src/lib/cacheInvalidation.js +0 -52
- package/src/lib/collapseAdjacentRules.js +0 -54
- package/src/lib/collapseDuplicateDeclarations.js +0 -93
- package/src/lib/defaultExtractor.js +0 -50
- package/src/lib/detectNesting.js +0 -39
- package/src/lib/evaluateTailwindFunctions.js +0 -198
- package/src/lib/expandApplyAtRules.js +0 -480
- package/src/lib/expandTailwindAtRules.js +0 -292
- package/src/lib/generateRules.js +0 -623
- package/src/lib/getModuleDependencies.js +0 -39
- package/src/lib/normalizeTailwindDirectives.js +0 -84
- package/src/lib/partitionApplyAtRules.js +0 -52
- package/src/lib/resolveDefaultsAtRules.js +0 -146
- package/src/lib/setupContextUtils.js +0 -883
- package/src/lib/setupTrackingContext.js +0 -183
- package/src/lib/sharedState.js +0 -48
- package/src/lib/substituteScreenAtRules.js +0 -19
- package/src/postcss-plugins/nesting/README.md +0 -42
- package/src/postcss-plugins/nesting/index.js +0 -13
- package/src/postcss-plugins/nesting/plugin.js +0 -80
- package/src/processTailwindFeatures.js +0 -58
- package/src/public/colors.js +0 -300
- package/src/public/create-plugin.js +0 -2
- package/src/public/default-config.js +0 -4
- package/src/public/default-theme.js +0 -4
- package/src/public/resolve-config.js +0 -7
- package/src/util/bigSign.js +0 -3
- package/src/util/buildMediaQuery.js +0 -20
- package/src/util/cloneDeep.js +0 -11
- package/src/util/cloneNodes.js +0 -24
- package/src/util/color.js +0 -69
- package/src/util/configurePlugins.js +0 -23
- package/src/util/createPlugin.js +0 -27
- package/src/util/createUtilityPlugin.js +0 -37
- package/src/util/dataTypes.js +0 -248
- package/src/util/defaults.js +0 -17
- package/src/util/escapeClassName.js +0 -8
- package/src/util/escapeCommas.js +0 -3
- package/src/util/flattenColorPalette.js +0 -13
- package/src/util/formatVariantSelector.js +0 -196
- package/src/util/getAllConfigs.js +0 -19
- package/src/util/hashConfig.js +0 -5
- package/src/util/isKeyframeRule.js +0 -3
- package/src/util/isPlainObject.js +0 -8
- package/src/util/isValidArbitraryValue.js +0 -61
- package/src/util/log.js +0 -29
- package/src/util/nameClass.js +0 -26
- package/src/util/negateValue.js +0 -16
- package/src/util/normalizeConfig.js +0 -270
- package/src/util/normalizeScreens.js +0 -45
- package/src/util/parseAnimationValue.js +0 -68
- package/src/util/parseBoxShadowValue.js +0 -119
- package/src/util/parseDependency.js +0 -49
- package/src/util/parseObjectStyles.js +0 -19
- package/src/util/pluginUtils.js +0 -192
- package/src/util/prefixSelector.js +0 -14
- package/src/util/resolveConfig.js +0 -269
- package/src/util/resolveConfigPath.js +0 -55
- package/src/util/responsive.js +0 -10
- package/src/util/tap.js +0 -4
- package/src/util/toColorValue.js +0 -3
- package/src/util/toPath.js +0 -26
- package/src/util/transformThemeValue.js +0 -52
- package/src/util/withAlphaVariable.js +0 -49
- package/stubs/defaultConfig.stub.js +0 -950
- package/stubs/defaultPostCssConfig.stub.js +0 -6
- package/stubs/simpleConfig.stub.js +0 -7
- package/tailwind.css +0 -5
- package/variants.css +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
exports.default = normalizeTailwindDirectives;
|
|
6
|
-
var _log = _interopRequireDefault(require("../util/log"));
|
|
7
|
-
function _interopRequireDefault(obj) {
|
|
8
|
-
return obj && obj.__esModule ? obj : {
|
|
9
|
-
default: obj
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function normalizeTailwindDirectives(root) {
|
|
13
|
-
let tailwindDirectives = new Set();
|
|
14
|
-
let layerDirectives = new Set();
|
|
15
|
-
let applyDirectives = new Set();
|
|
16
|
-
root.walkAtRules((atRule)=>{
|
|
17
|
-
if (atRule.name === 'apply') {
|
|
18
|
-
applyDirectives.add(atRule);
|
|
19
|
-
}
|
|
20
|
-
if (atRule.name === 'import') {
|
|
21
|
-
if (atRule.params === '"tailwindcss/base"' || atRule.params === "'tailwindcss/base'") {
|
|
22
|
-
atRule.name = 'tailwind';
|
|
23
|
-
atRule.params = 'base';
|
|
24
|
-
} else if (atRule.params === '"tailwindcss/components"' || atRule.params === "'tailwindcss/components'") {
|
|
25
|
-
atRule.name = 'tailwind';
|
|
26
|
-
atRule.params = 'components';
|
|
27
|
-
} else if (atRule.params === '"tailwindcss/utilities"' || atRule.params === "'tailwindcss/utilities'") {
|
|
28
|
-
atRule.name = 'tailwind';
|
|
29
|
-
atRule.params = 'utilities';
|
|
30
|
-
} else if (atRule.params === '"tailwindcss/screens"' || atRule.params === "'tailwindcss/screens'" || atRule.params === '"tailwindcss/variants"' || atRule.params === "'tailwindcss/variants'") {
|
|
31
|
-
atRule.name = 'tailwind';
|
|
32
|
-
atRule.params = 'variants';
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (atRule.name === 'tailwind') {
|
|
36
|
-
if (atRule.params === 'screens') {
|
|
37
|
-
atRule.params = 'variants';
|
|
38
|
-
}
|
|
39
|
-
tailwindDirectives.add(atRule.params);
|
|
40
|
-
}
|
|
41
|
-
if ([
|
|
42
|
-
'layer',
|
|
43
|
-
'responsive',
|
|
44
|
-
'variants'
|
|
45
|
-
].includes(atRule.name)) {
|
|
46
|
-
if ([
|
|
47
|
-
'responsive',
|
|
48
|
-
'variants'
|
|
49
|
-
].includes(atRule.name)) {
|
|
50
|
-
_log.default.warn(`${atRule.name}-at-rule-deprecated`, [
|
|
51
|
-
`The \`@${atRule.name}\` directive has been deprecated in Tailwind CSS v3.0.`,
|
|
52
|
-
`Use \`@layer utilities\` or \`@layer components\` instead.`,
|
|
53
|
-
'https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer',
|
|
54
|
-
]);
|
|
55
|
-
}
|
|
56
|
-
layerDirectives.add(atRule);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (!tailwindDirectives.has('base') || !tailwindDirectives.has('components') || !tailwindDirectives.has('utilities')) {
|
|
60
|
-
for (let rule of layerDirectives){
|
|
61
|
-
if (rule.name === 'layer' && [
|
|
62
|
-
'base',
|
|
63
|
-
'components',
|
|
64
|
-
'utilities'
|
|
65
|
-
].includes(rule.params)) {
|
|
66
|
-
if (!tailwindDirectives.has(rule.params)) {
|
|
67
|
-
throw rule.error(`\`@layer ${rule.params}\` is used but no matching \`@tailwind ${rule.params}\` directive is present.`);
|
|
68
|
-
}
|
|
69
|
-
} else if (rule.name === 'responsive') {
|
|
70
|
-
if (!tailwindDirectives.has('utilities')) {
|
|
71
|
-
throw rule.error('`@responsive` is used but `@tailwind utilities` is missing.');
|
|
72
|
-
}
|
|
73
|
-
} else if (rule.name === 'variants') {
|
|
74
|
-
if (!tailwindDirectives.has('utilities')) {
|
|
75
|
-
throw rule.error('`@variants` is used but `@tailwind utilities` is missing.');
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
tailwindDirectives,
|
|
82
|
-
applyDirectives
|
|
83
|
-
};
|
|
84
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
exports.default = expandApplyAtRules;
|
|
6
|
-
function partitionRules(root) {
|
|
7
|
-
if (!root.walkAtRules) return;
|
|
8
|
-
let applyParents = new Set();
|
|
9
|
-
root.walkAtRules('apply', (rule)=>{
|
|
10
|
-
applyParents.add(rule.parent);
|
|
11
|
-
});
|
|
12
|
-
if (applyParents.size === 0) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
for (let rule1 of applyParents){
|
|
16
|
-
let nodeGroups = [];
|
|
17
|
-
let lastGroup = [];
|
|
18
|
-
for (let node of rule1.nodes){
|
|
19
|
-
if (node.type === 'atrule' && node.name === 'apply') {
|
|
20
|
-
if (lastGroup.length > 0) {
|
|
21
|
-
nodeGroups.push(lastGroup);
|
|
22
|
-
lastGroup = [];
|
|
23
|
-
}
|
|
24
|
-
nodeGroups.push([
|
|
25
|
-
node
|
|
26
|
-
]);
|
|
27
|
-
} else {
|
|
28
|
-
lastGroup.push(node);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
if (lastGroup.length > 0) {
|
|
32
|
-
nodeGroups.push(lastGroup);
|
|
33
|
-
}
|
|
34
|
-
if (nodeGroups.length === 1) {
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
for (let group of [
|
|
38
|
-
...nodeGroups
|
|
39
|
-
].reverse()){
|
|
40
|
-
let clone = rule1.clone({
|
|
41
|
-
nodes: []
|
|
42
|
-
});
|
|
43
|
-
clone.append(group);
|
|
44
|
-
rule1.after(clone);
|
|
45
|
-
}
|
|
46
|
-
rule1.remove();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function expandApplyAtRules() {
|
|
50
|
-
return (root)=>{
|
|
51
|
-
partitionRules(root);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
exports.default = resolveDefaultsAtRules;
|
|
6
|
-
exports.elementSelectorParser = void 0;
|
|
7
|
-
var _postcss = _interopRequireDefault(require("postcss"));
|
|
8
|
-
var _postcssSelectorParser = _interopRequireDefault(require("postcss-selector-parser"));
|
|
9
|
-
var _featureFlags = require("../featureFlags");
|
|
10
|
-
function _interopRequireDefault(obj) {
|
|
11
|
-
return obj && obj.__esModule ? obj : {
|
|
12
|
-
default: obj
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
let getNode = {
|
|
16
|
-
id (node) {
|
|
17
|
-
return _postcssSelectorParser.default.attribute({
|
|
18
|
-
attribute: 'id',
|
|
19
|
-
operator: '=',
|
|
20
|
-
value: node.value,
|
|
21
|
-
quoteMark: '"'
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
function minimumImpactSelector(nodes) {
|
|
26
|
-
let rest = nodes.filter((node)=>{
|
|
27
|
-
// Keep non-pseudo nodes
|
|
28
|
-
if (node.type !== 'pseudo') return true;
|
|
29
|
-
// Keep pseudo nodes that have subnodes
|
|
30
|
-
// E.g.: `:not()` contains subnodes inside the parentheses
|
|
31
|
-
if (node.nodes.length > 0) return true;
|
|
32
|
-
// Keep pseudo `elements`
|
|
33
|
-
// This implicitly means that we ignore pseudo `classes`
|
|
34
|
-
return node.value.startsWith('::') || [
|
|
35
|
-
':before',
|
|
36
|
-
':after',
|
|
37
|
-
':first-line',
|
|
38
|
-
':first-letter'
|
|
39
|
-
].includes(node.value);
|
|
40
|
-
}).reverse();
|
|
41
|
-
let searchFor = new Set([
|
|
42
|
-
'tag',
|
|
43
|
-
'class',
|
|
44
|
-
'id',
|
|
45
|
-
'attribute'
|
|
46
|
-
]);
|
|
47
|
-
let splitPointIdx = rest.findIndex((n)=>searchFor.has(n.type)
|
|
48
|
-
);
|
|
49
|
-
if (splitPointIdx === -1) return rest.reverse().join('').trim();
|
|
50
|
-
let node1 = rest[splitPointIdx];
|
|
51
|
-
let bestNode = getNode[node1.type] ? getNode[node1.type](node1) : node1;
|
|
52
|
-
rest = rest.slice(0, splitPointIdx);
|
|
53
|
-
let combinatorIdx = rest.findIndex((n)=>n.type === 'combinator' && n.value === '>'
|
|
54
|
-
);
|
|
55
|
-
if (combinatorIdx !== -1) {
|
|
56
|
-
rest.splice(0, combinatorIdx);
|
|
57
|
-
rest.unshift(_postcssSelectorParser.default.universal());
|
|
58
|
-
}
|
|
59
|
-
return [
|
|
60
|
-
bestNode,
|
|
61
|
-
...rest.reverse()
|
|
62
|
-
].join('').trim();
|
|
63
|
-
}
|
|
64
|
-
let elementSelectorParser = (0, _postcssSelectorParser).default((selectors)=>{
|
|
65
|
-
return selectors.map((s)=>{
|
|
66
|
-
let nodes = s.split((n)=>n.type === 'combinator' && n.value === ' '
|
|
67
|
-
).pop();
|
|
68
|
-
return minimumImpactSelector(nodes);
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
exports.elementSelectorParser = elementSelectorParser;
|
|
72
|
-
let cache = new Map();
|
|
73
|
-
function extractElementSelector(selector) {
|
|
74
|
-
if (!cache.has(selector)) {
|
|
75
|
-
cache.set(selector, elementSelectorParser.transformSync(selector));
|
|
76
|
-
}
|
|
77
|
-
return cache.get(selector);
|
|
78
|
-
}
|
|
79
|
-
function resolveDefaultsAtRules({ tailwindConfig }) {
|
|
80
|
-
return (root)=>{
|
|
81
|
-
let variableNodeMap = new Map();
|
|
82
|
-
/** @type {Set<import('postcss').AtRule>} */ let universals = new Set();
|
|
83
|
-
root.walkAtRules('defaults', (rule)=>{
|
|
84
|
-
if (rule.nodes && rule.nodes.length > 0) {
|
|
85
|
-
universals.add(rule);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
let variable = rule.params;
|
|
89
|
-
if (!variableNodeMap.has(variable)) {
|
|
90
|
-
variableNodeMap.set(variable, new Set());
|
|
91
|
-
}
|
|
92
|
-
variableNodeMap.get(variable).add(rule.parent);
|
|
93
|
-
rule.remove();
|
|
94
|
-
});
|
|
95
|
-
for (let universal of universals){
|
|
96
|
-
/** @type {Map<string, Set<string>>} */ let selectorGroups = new Map();
|
|
97
|
-
var ref;
|
|
98
|
-
let rules = (ref = variableNodeMap.get(universal.params)) !== null && ref !== void 0 ? ref : [];
|
|
99
|
-
for (let rule of rules){
|
|
100
|
-
for (let selector of extractElementSelector(rule.selector)){
|
|
101
|
-
// If selector contains a vendor prefix after a pseudo element or class,
|
|
102
|
-
// we consider them separately because merging the declarations into
|
|
103
|
-
// a single rule will cause browsers that do not understand the
|
|
104
|
-
// vendor prefix to throw out the whole rule
|
|
105
|
-
let selectorGroupName = selector.includes(':-') || selector.includes('::-') ? selector : '__DEFAULT__';
|
|
106
|
-
var ref1;
|
|
107
|
-
let selectors = (ref1 = selectorGroups.get(selectorGroupName)) !== null && ref1 !== void 0 ? ref1 : new Set();
|
|
108
|
-
selectorGroups.set(selectorGroupName, selectors);
|
|
109
|
-
selectors.add(selector);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
if ((0, _featureFlags).flagEnabled(tailwindConfig, 'optimizeUniversalDefaults')) {
|
|
113
|
-
if (selectorGroups.size === 0) {
|
|
114
|
-
universal.remove();
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
for (let [, selectors] of selectorGroups){
|
|
118
|
-
let universalRule = _postcss.default.rule({
|
|
119
|
-
source: universal.source
|
|
120
|
-
});
|
|
121
|
-
universalRule.selectors = [
|
|
122
|
-
...selectors
|
|
123
|
-
];
|
|
124
|
-
universalRule.append(universal.nodes.map((node)=>node.clone()
|
|
125
|
-
));
|
|
126
|
-
universal.before(universalRule);
|
|
127
|
-
}
|
|
128
|
-
} else {
|
|
129
|
-
let universalRule = _postcss.default.rule({
|
|
130
|
-
source: universal.source
|
|
131
|
-
});
|
|
132
|
-
universalRule.selectors = [
|
|
133
|
-
'*',
|
|
134
|
-
'::before',
|
|
135
|
-
'::after'
|
|
136
|
-
];
|
|
137
|
-
universalRule.append(universal.nodes);
|
|
138
|
-
universal.before(universalRule);
|
|
139
|
-
}
|
|
140
|
-
universal.remove();
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
}
|