management/front/dkha-web-sz-main/node_modules/icss-utils/lib/replaceSymbols.js

22 lines
692 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _replaceValueSymbols = require('./replaceValueSymbols.js');
var _replaceValueSymbols2 = _interopRequireDefault(_replaceValueSymbols);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var replaceSymbols = function replaceSymbols(css, replacements) {
css.walkDecls(function (decl) {
return decl.value = (0, _replaceValueSymbols2.default)(decl.value, replacements);
});
css.walkAtRules('media', function (atRule) {
return atRule.params = (0, _replaceValueSymbols2.default)(atRule.params, replacements);
});
};
exports.default = replaceSymbols;