UNPKG

postcss-utilities

Version:

PostCSS plugin to add a collection of mixins, shortcuts, helpers and tools for your CSS

21 lines (17 loc) 411 B
/** * Padding */ var directionalValues = require('./directional-values'); module.exports = function (decl, args) { args.shift(); var decls = directionalValues('padding', '', args); var aux = decl; decls.forEach( function (i) { aux.append({ prop: i.prop, value: i.value, source: decl.source }); }); decl.replaceWith(aux.nodes); };