Syllabus/themes/piratecare/node_modules/tailwindcss/lib/util/wrapWithVariants.js

19 lines
556 B
JavaScript
Raw Normal View History

2020-03-05 04:10:52 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = wrapWithVariants;
var _postcss = _interopRequireDefault(require("postcss"));
var _cloneNodes = _interopRequireDefault(require("./cloneNodes"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function wrapWithVariants(rules, variants) {
return _postcss.default.atRule({
name: 'variants',
params: variants.join(', ')
}).append((0, _cloneNodes.default)(Array.isArray(rules) ? rules : [rules]));
}