Sha256: 08d7626cdae4f800cf12093d7dd5b4750fc7d05ed5ae91c9e17042bc65f3272a
Contents?: true
Size: 832 Bytes
Versions: 6
Compression:
Stored size: 832 Bytes
Contents
(function (tree) { tree.Element = function (combinator, value) { this.combinator = combinator instanceof tree.Combinator ? combinator : new(tree.Combinator)(combinator); this.value = value.trim(); }; tree.Element.prototype.toCSS = function (env) { return this.combinator.toCSS(env || {}) + this.value; }; tree.Combinator = function (value) { if (value === ' ') { this.value = ' '; } else { this.value = value ? value.trim() : ""; } }; tree.Combinator.prototype.toCSS = function (env) { return { '' : '', ' ' : ' ', '&' : '', ':' : ' :', '::': '::', '+' : env.compress ? '+' : ' + ', '~' : env.compress ? '~' : ' ~ ', '>' : env.compress ? '>' : ' > ' }[this.value]; }; })(require('less/tree'));
Version data entries
6 entries across 6 versions & 1 rubygems