diff options
Diffstat (limited to 'node_modules/postcss-gap-properties/dist/index.cjs')
| -rw-r--r-- | node_modules/postcss-gap-properties/dist/index.cjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/postcss-gap-properties/dist/index.cjs b/node_modules/postcss-gap-properties/dist/index.cjs index 7af188d7..9e3db031 100644 --- a/node_modules/postcss-gap-properties/dist/index.cjs +++ b/node_modules/postcss-gap-properties/dist/index.cjs @@ -1 +1 @@ -"use strict";const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){var s,p;if(!e.includes(o.prop.toLowerCase()))return;if(!(null!=(s=o.parent)&&s.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase())))))return;const t=`grid-${o.prop.toLowerCase()}`;(null==(p=o.parent)?void 0:p.some((e=>"decl"===e.type&&e.prop.toLowerCase()===t)))||(o.cloneBefore({prop:t}),r.preserve||o.remove())}}};creator.postcss=!0,module.exports=creator; +"use strict";const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){if(!e.includes(o.prop.toLowerCase()))return;if(!o.parent?.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase()))))return;const s=`grid-${o.prop.toLowerCase()}`,p=o.parent?.some((e=>"decl"===e.type&&e.prop.toLowerCase()===s));p||(o.cloneBefore({prop:s}),r.preserve||o.remove())}}};creator.postcss=!0,module.exports=creator; |
