mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 03:55:32 +00:00
19 lines
362 B
JavaScript
19 lines
362 B
JavaScript
/** @typedef {import('postcss').AtRule} AtRule */
|
|
|
|
/**
|
|
* @param {AtRule} atRule
|
|
* @param {string} params
|
|
* @returns {AtRule} The atRulearation that was passed in.
|
|
*/
|
|
export default function setAtRuleParams(atRule, params) {
|
|
const raws = atRule.raws;
|
|
|
|
if (raws.params) {
|
|
raws.params.raw = params;
|
|
} else {
|
|
atRule.params = params;
|
|
}
|
|
|
|
return atRule;
|
|
}
|