较少的颜色混合

时间:2015-07-17 12:04:14

标签: css less

我正在努力减少一些mixins,但我没有运气。

这就是我所拥有的

@brand : #30AEE3;

.preloader-window {
    background: none repeat scroll 0 0 @brand;
}

但最后我需要为该颜色和其他一些属性添加不透明度,这就是我需要在CSS中

.preloader-window {
    background: none repeat scroll 0 0 rgba(42, 171, 226, 0.5);
}

是否有可能最终拥有良好的mixin,我可以只是颜色并获得最终的css,因为我做了简单的CSS?

1 个答案:

答案 0 :(得分:2)

您不需要mixin:

@brand : #30AEE3;

.preloader-window {
    background: none repeat scroll 0 0 fadeout(@brand, 50%);
}