d11 theme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
415 B

'use strict';
const _ = require('lodash');
/** @typedef {import('postcss').AtRule} AtRule */
/**
* @param {AtRule} atRule
* @param {string} params
* @returns {AtRule} The atRulearation that was passed in.
*/
module.exports = function setAtRuleParams(atRule, params) {
if (_.has(atRule, 'raws.params')) {
_.set(atRule, 'raws.params.raw', params);
} else {
atRule.params = params;
}
return atRule;
};