UNPKG

postcss-utilities

Version:

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

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