responsive.js 672 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. Object.defineProperty(exports, "default", {
  6. enumerable: true,
  7. get: function() {
  8. return responsive;
  9. }
  10. });
  11. const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
  12. const _cloneNodes = /*#__PURE__*/ _interop_require_default(require("./cloneNodes"));
  13. function _interop_require_default(obj) {
  14. return obj && obj.__esModule ? obj : {
  15. default: obj
  16. };
  17. }
  18. function responsive(rules) {
  19. return _postcss.default.atRule({
  20. name: "responsive"
  21. }).append((0, _cloneNodes.default)(Array.isArray(rules) ? rules : [
  22. rules
  23. ]));
  24. }