mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 00:59:29 +08:00
14 lines
382 B
Text
14 lines
382 B
Text
'use strict';
|
|
/**
|
|
* @param {import('postcss').Rule} rule
|
|
* @param {string[]} properties
|
|
* @return {import('postcss').Declaration[]}
|
|
*/
|
|
module.exports = function getDecls(rule, properties) {
|
|
return /** @type {import('postcss').Declaration[]} */ (
|
|
rule.nodes.filter(
|
|
(node) =>
|
|
node.type === 'decl' && properties.includes(node.prop.toLowerCase())
|
|
)
|
|
);
|
|
};
|