J'ai le code suivant:
@color : #d14836;
.stripes span {
-webkit-background-size: 30px 30px;
-moz-background-size: 30px 30px;
background-size: 30px 30px;
background-image: -webkit-gradient(linear, left top, right bottom,
color-stop(.25, rgba(209, 72, 54, 1)), color-stop(.25, transparent),
color-stop(.5, transparent), color-stop(.5, rgba(209, 72, 54, 1)),
color-stop(.75, rgba(209, 72, 54, 1)), color-stop(.75, transparent),
to(transparent));
Je dois convertir @colorà rgba(209, 72, 54, 1).
J'ai donc besoin de remplacer rgba(209, 72, 54, 1)dans mon code par une fonction Less qui génère une rgba()valeur à partir de ma @colorvariable.
Comment puis-je faire cela avec Less?