source: trip-planner-front/node_modules/postcss-gap-properties/index.cjs.js.map@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[6a3a178]1{"version":3,"file":"index.cjs.js","sources":["index.js"],"sourcesContent":["import postcss from 'postcss';\n\n// gap shorthand property matcher\nconst gapPropertyRegExp = /^(column-gap|gap|row-gap)$/i;\n\nexport default postcss.plugin('postcss-gap-properties', opts => {\n\tconst preserve = 'preserve' in Object(opts) ? Boolean(opts.preserve) : true;\n\n\treturn root => {\n\t\t// for each shorthand gap, column-gap, or row-gap declaration\n\t\troot.walkDecls(gapPropertyRegExp, decl => {\n\t\t\t// insert a grid-* fallback declaration\n\t\t\tdecl.cloneBefore({\n\t\t\t\tprop: `grid-${decl.prop}`\n\t\t\t});\n\n\t\t\t// conditionally remove the original declaration\n\t\t\tif (!preserve) {\n\t\t\t\tdecl.remove();\n\t\t\t}\n\t\t})\n\t};\n});\n"],"names":["gapPropertyRegExp","postcss","plugin","opts","preserve","Object","Boolean","root","walkDecls","decl","cloneBefore","prop","remove"],"mappings":";;;;;;AAGA,MAAMA,iBAAiB,GAAG,6BAA1B;AAEA,YAAeC,OAAO,CAACC,MAAR,CAAe,wBAAf,EAAyCC,IAAI,IAAI;QACzDC,QAAQ,GAAG,cAAcC,MAAM,CAACF,IAAD,CAApB,GAA6BG,OAAO,CAACH,IAAI,CAACC,QAAN,CAApC,GAAsD,IAAvE;SAEOG,IAAI,IAAI;;IAEdA,IAAI,CAACC,SAAL,CAAeR,iBAAf,EAAkCS,IAAI,IAAI;;MAEzCA,IAAI,CAACC,WAAL,CAAiB;QAChBC,IAAI,EAAG,QAAOF,IAAI,CAACE,IAAK;OADzB,EAFyC;;UAOrC,CAACP,QAAL,EAAe;QACdK,IAAI,CAACG,MAAL;;KARF;GAFD;CAHc,CAAf;;;;"}
Note: See TracBrowser for help on using the repository browser.