Here's the code snippet I'm working with:
@shade : #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));
I am looking to replace rgba(209, 72, 54, 1)
in my code with a function in Less that will dynamically generate an rgba()
value based on my @shade
variable.
Any suggestions on how I can achieve this using Less?