lix-website/themes/lix/assets/bootstrap/node_modules/postcss-sass/stringifier.js

43 lines
3.5 KiB
JavaScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
"use strict";
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
var Stringifier = require('postcss/lib/stringifier');
module.exports =
/*#__PURE__*/
function (_Stringifier) {
_inheritsLoose(SassStringifier, _Stringifier);
function SassStringifier() {
return _Stringifier.apply(this, arguments) || this;
}
var _proto = SassStringifier.prototype;
_proto.block = function block(node, start) {
this.builder(start, node, 'start');
if (node.nodes && node.nodes.length) {
this.body(node);
}
};
_proto.decl = function decl(node) {
_Stringifier.prototype.decl.call(this, node, false);
};
_proto.comment = function comment(node) {
var left = this.raw(node, 'left', 'commentLeft');
var right = this.raw(node, 'right', 'commentRight');
if (node.raws.inline) {
this.builder('//' + left + node.text + right, node);
} else {
this.builder('/*' + left + node.text + right + '*/', node);
}
};
return SassStringifier;
}(Stringifier);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0cmluZ2lmaWVyLmVzNiJdLCJuYW1lcyI6WyJTdHJpbmdpZmllciIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiYmxvY2siLCJub2RlIiwic3RhcnQiLCJidWlsZGVyIiwibm9kZXMiLCJsZW5ndGgiLCJib2R5IiwiZGVjbCIsImNvbW1lbnQiLCJsZWZ0IiwicmF3IiwicmlnaHQiLCJyYXdzIiwiaW5saW5lIiwidGV4dCJdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQU1BLFdBQVcsR0FBR0MsT0FBTyxDQUFDLHlCQUFELENBQTNCOztBQUVBQyxNQUFNLENBQUNDLE9BQVA7QUFBQTtBQUFBO0FBQUE7O0FBQUE7QUFBQTtBQUFBOztBQUFBOztBQUFBLFNBQ0VDLEtBREYsR0FDRSxlQUFPQyxJQUFQLEV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