source: frontend/node_modules/postcss-merge-longhand/src/lib/insertCloned.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 387 bytes
Line 
1'use strict';
2/**
3 * @param {import('postcss').Rule} rule
4 * @param {import('postcss').Declaration} decl
5 * @param {Partial<import('postcss').DeclarationProps>=} props
6 * @return {import('postcss').Declaration}
7 */
8module.exports = function insertCloned(rule, decl, props) {
9 const newNode = Object.assign(decl.clone(), props);
10
11 rule.insertAfter(decl, newNode);
12
13 return newNode;
14};
Note: See TracBrowser for help on using the repository browser.