willl
Well-known member
- Affected version
- 2.3 RC4
Got 2 new ones with color functions here.
When nesting color functions, it can cause errors when compiling the LESS. Got a couple examples:
If I remove - for example - the shade function, it'll end up coming out fine.
@xf-pageBg is just #fafbff - also tested with an rgb value, same issue.
Additionally, this also applies to inheritance from multiple style properties.
In this case, the border color is..
@xf-contentHighlightBg is just referencing @xf-paletteColor3, which.. Ok, bear with me, is..
PC2 is
..and PC1 is #313742.
It's a rather extreme case, but has been a part of our iO styles for a long time with no issues before.
EDIT: Turns out this also just applies to the shade function itself; Same "The first argument to mix must be a color index" error.
When nesting color functions, it can cause errors when compiling the LESS. Got a couple examples:
Less:
box-shadow: 0 4px 15px 0 fade(shade(darken(@xf-pageBg, 20%), 40%), 20%);
If I remove - for example - the shade function, it'll end up coming out fine.
@xf-pageBg is just #fafbff - also tested with an rgb value, same issue.
Additionally, this also applies to inheritance from multiple style properties.
In this case, the border color is..
Less:
xf-intensify(@xf-contentHighlightBg, 6%)
Less:
tint(@xf-paletteColor2, 2%)
Less:
tint(@xf-paletteColor1, 5%)
..and PC1 is #313742.
It's a rather extreme case, but has been a part of our iO styles for a long time with no issues before.
EDIT: Turns out this also just applies to the shade function itself; Same "The first argument to mix must be a color index" error.