-
Notifications
You must be signed in to change notification settings - Fork 3.4k
more strong convert function #2379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can do this already: .test {
@color: rgba(207,10,60,0.5);
@msColor: argb(@color);
background-color: @color;
filter: ~"progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr='@{msColor}', endColorstr='@{msColor}')";
} --output: .test {
background-color: rgba(207, 10, 60, 0.5);
filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr='#80cf0a3c', endColorstr='#80cf0a3c');
} |
Just in case all those quotes are not really necessary there, the following syntax should work just fine: .test {
@c: argb(rgba(207, 10, 60, 0.5));
filter: progid:DXImageTransform.Microsoft.gradient(
enabled=true, startColorstr=@c, endColorstr=@c
);
} |
@ALL
so, i was wrong. |
@seven-phases-max Ah, I didn't realize escaping was no longer necessary for MS's filter:progid: format. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to solve the
rgba
for old ie, the code maybe:startColorstr=#7F...
,7F
is from opacity(0.5). In less, no function convert. Can you supply more strong function in less?Maybe the function called like:
LESS:
CSS
just a example. that is all.
i'm so sorry, my english is so poor, thanks!
The text was updated successfully, but these errors were encountered: