Skip to content

Commit

Permalink
Fix less compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jan 3, 2017
1 parent 4db6d3b commit d4993ce
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions site/theme/static/colors.less
Expand Up @@ -99,11 +99,13 @@
.make-palatte(@color, (@index + 1)); // next iteration
}

.make-palatte(blue);
.make-palatte(purple);
.make-palatte(cyan);
.make-palatte(green);
.make-palatte(pink);
.make-palatte(red);
.make-palatte(orange);
.make-palatte(yellow);
.main-color {
.make-palatte(blue);
.make-palatte(purple);
.make-palatte(cyan);
.make-palatte(green);
.make-palatte(pink);
.make-palatte(red);
.make-palatte(orange);
.make-palatte(yellow);
}

1 comment on commit d4993ce

@afc163
Copy link
Member Author

@afc163 afc163 commented on d4993ce Jan 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原因是不在 scope 内的 mixin 会比 @import 里的代码早执行,导致编译出错。

Please sign in to comment.