You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// the following code uses string interpolation to embed arguments from the mixin into a linear-gradient:
.linear-gradient (@start-color: #ffffff, @end-color: #cccccc, @start: 0%, @EnD: 100%) {
-pie-background: ~"linear-gradient(top, @{start-color} @{start}, @{end-color} @{end})";
}
// and it yields the following in less.js:
-pie-background: linear-gradient(top, #ffffff 0%, #cccccc 100);
Note that there is no percent sign (%) after the "100" value... I tried this with a number of different values and it only seems to be able to parse 0%. Its kind of a mute point for me, as I realized that I didn't need the string interpolation after all, but I thought I would submit it as it may have other implications.
The text was updated successfully, but these errors were encountered:
// the following code uses string interpolation to embed arguments from the mixin into a linear-gradient:
.linear-gradient (@start-color: #ffffff, @end-color: #cccccc, @start: 0%, @EnD: 100%) {
-pie-background: ~"linear-gradient(top, @{start-color} @{start}, @{end-color} @{end})";
}
// and it yields the following in less.js:
-pie-background: linear-gradient(top, #ffffff 0%, #cccccc 100);
Note that there is no percent sign (%) after the "100" value... I tried this with a number of different values and it only seems to be able to parse 0%. Its kind of a mute point for me, as I realized that I didn't need the string interpolation after all, but I thought I would submit it as it may have other implications.
The text was updated successfully, but these errors were encountered: