You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
635 B

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