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.
2 lines
336 B
2 lines
336 B
2 years ago
|
const e=/^(column-gap|gap|row-gap)$/i,p=e=>"display"===e.prop&&"grid"===e.value;function o(o){const r=!("preserve"in Object(o))||Boolean(o.preserve);return{postcssPlugin:"postcss-gap-properties",Declaration(o){e.test(o.prop)&&o.parent.some(p)&&(o.cloneBefore({prop:`grid-${o.prop}`}),r||o.remove())}}}o.postcss=!0;export{o as default};
|