0

I am trying to make some mixins for less, but i have not luck.

This is what i have in less

@brand : #30AEE3;

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

But in the end i need to add opacity to that color and some other properties, this is what i need to be in CSS

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

Is it possible to finaly have good mixins that i can just chnage color and got final css as i make as simple css over?

Miomir Dancevic
  • 6,726
  • 15
  • 74
  • 142

1 Answers1

2

You don't need a mixin:

@brand : #30AEE3;

.preloader-window {
    background: none repeat scroll 0 0 fadeout(@brand, 50%);
}
KittMedia
  • 7,368
  • 13
  • 34
  • 38