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

0
node_modules/rework-visit/Makefile generated vendored Normal file
View File

8
node_modules/rework-visit/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# rework-visit
Rework declaration visitor for plugins (and rework core).
# License
MIT

9
node_modules/rework-visit/component.json generated vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"name": "rework-visit",
"repo": "visionmedia/rework-visit",
"version": "1.0.0",
"description": "Rework declaration visitor utility",
"keywords": ["css", "rework"],
"license": "MIT",
"scripts": ["index.js"]
}

38
node_modules/rework-visit/index.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
/**
* Expose `visit()`.
*/
module.exports = visit;
/**
* Visit `node`'s declarations recursively and
* invoke `fn(declarations, node)`.
*
* @param {Object} node
* @param {Function} fn
* @api private
*/
function visit(node, fn){
node.rules.forEach(function(rule){
// @media etc
if (rule.rules) {
visit(rule, fn);
return;
}
// keyframes
if (rule.keyframes) {
rule.keyframes.forEach(function(keyframe){
fn(keyframe.declarations, rule);
});
return;
}
// @charset, @import etc
if (!rule.declarations) return;
fn(rule.declarations, node);
});
};

7
node_modules/rework-visit/package.json generated vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"name": "rework-visit",
"version": "1.0.0",
"description": "Rework declaration visitor utility",
"keywords": ["css", "rework"],
"license": "MIT"
}