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