UNPKG

@jlalmes/goober

Version:

A less than 1KB css-in-js solution

2 lines (1 loc) 606 B
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("style-vendorizer")):"function"==typeof define&&define.amd?define(["exports","style-vendorizer"],o):o((e=e||self).gooberPrefixer={},e.styleVendorizer)}(this,function(e,o){e.prefix=function(e,t){let r="";const s=o.cssPropertyAlias(e);s&&(r+=`${s}:${t};`);const i=o.cssPropertyPrefixFlags(e);1&i&&(r+=`-webkit-${e}:${t};`),2&i&&(r+=`-moz-${e}:${t};`),4&i&&(r+=`-ms-${e}:${t};`);const n=o.cssValuePrefixFlags(e,t);return 1&n?r+=`${e}:-webkit-${t};`:2&n?r+=`${e}:-moz-${t};`:4&n&&(r+=`${e}:-ms-${t};`),r+=`${e}:${t};`,r}});