mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 20:19:30 +08:00
14 lines
387 B
Text
14 lines
387 B
Text
'use strict';
|
|
/**
|
|
* @param {import('postcss').Rule} rule
|
|
* @param {import('postcss').Declaration} decl
|
|
* @param {Partial<import('postcss').DeclarationProps>=} props
|
|
* @return {import('postcss').Declaration}
|
|
*/
|
|
module.exports = function insertCloned(rule, decl, props) {
|
|
const newNode = Object.assign(decl.clone(), props);
|
|
|
|
rule.insertAfter(decl, newNode);
|
|
|
|
return newNode;
|
|
};
|