carto/lib/less/tree/alpha.js

12 lines
292 B
JavaScript
Raw Normal View History

if (typeof(require) !== 'undefined') { var tree = require('less/tree') }
tree.Alpha = function Alpha(val) {
2010-02-26 11:32:34 +08:00
this.value = val;
};
tree.Alpha.prototype = {
2010-02-26 11:32:34 +08:00
toCSS: function () {
return "alpha(opacity=" + this.value.toCSS() + ")";
},
eval: function () { return this }
2010-02-26 11:32:34 +08:00
};