Archived
1
0

First commit

This commit is contained in:
Sean Edmunds
2021-12-13 17:00:40 -06:00
commit 0584430b5c
36617 changed files with 4676695 additions and 0 deletions

26
node_modules/postcss-focus-within/index.es.mjs generated vendored Normal file
View File

@@ -0,0 +1,26 @@
import postcss from 'postcss';
const selectorRegExp = /:focus-within([^\w-]|$)/gi;
var index = postcss.plugin('postcss-focus-within', opts => {
const replaceWith = String(Object(opts).replaceWith || '[focus-within]');
const preserve = Boolean('preserve' in Object(opts) ? opts.preserve : true);
return root => {
root.walkRules(selectorRegExp, rule => {
const selector = rule.selector.replace(selectorRegExp, ($0, $1) => {
return `${replaceWith}${$1}`;
});
const clone = rule.clone({
selector
});
if (preserve) {
rule.before(clone);
} else {
rule.replaceWith(clone);
}
});
};
});
export default index;
//# sourceMappingURL=index.es.mjs.map