Skip to content

Commit

Permalink
fix(docs): fix docs deployment (#3218)
Browse files Browse the repository at this point in the history
  • Loading branch information
denStrigo authored Oct 28, 2023
1 parent 5807d49 commit 96968a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/gulp/docs/sass-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,32 @@ class SassExportFunction {
get_value(a) {
let value, i;
switch (a.constructor.name) {
case 'SassList':
case 'sass.types.List':
value = [];
for (i = 0; i < a.getLength(); i++) {
value.push(this.get_value(a.getValue(i)));
}
break;
case 'SassMap':
case 'sass.types.Map':
value = {};
for (i = 0; i < a.getLength(); i++) {
value[a.getKey(i).getValue()] = this.get_value(a.getValue(i));
}
break;
case 'SassColor':
case 'sass.types.Color':
if (1 === a.getA()) {
value = Colors.rgb2hex(a.getR(), a.getG(), a.getB());
} else {
value = 'rgba(' + a.getR() + ', ' + a.getG() + ', ' + a.getB() + ', ' + a.getA() + ')';
}
break;
case 'SassNumber':
case 'sass.types.Number':
value = a.getValue();
if (a.getUnit()) {
value += a.getUnit();
}
break;
case 'SassNull':
case '_SassNull0':
value = null;
break;
default:
Expand Down

0 comments on commit 96968a6

Please sign in to comment.