mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-12 20:04:57 +02:00
15 lines
387 B
JavaScript
15 lines
387 B
JavaScript
'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;
|
|
};
|