…et notamment la fonction fade
.
Source SASS: Mixins for semi-transparent colors.
Source LESS (notre exemple ci-dessous) : la doc de LESS à propos des Color Operation Functions, I do not want to inherit the child opacity from the parent in CSS et Modify alpha opacity of LESS variable.
1 2 3 4 5 |
@veil-color: mix(@brand-tertiary, @text-color, 40%, 60%); .rating{ background: fade(@veil-color,10%); } |