mirror of
https://github.com/less/less.js.git
synced 2026-02-04 12:05:06 -05:00
12 lines
292 B
JavaScript
12 lines
292 B
JavaScript
if (typeof(require) !== 'undefined') { var tree = require('less/tree') }
|
|
|
|
tree.Alpha = function Alpha(val) {
|
|
this.value = val;
|
|
};
|
|
tree.Alpha.prototype = {
|
|
toCSS: function () {
|
|
return "alpha(opacity=" + this.value.toCSS() + ")";
|
|
},
|
|
eval: function () { return this }
|
|
};
|