Closed variations.less is not as efficient as it could be

Kirby

Well-known member
Licensed customer
Affected version
2.3.3 / xenforo.com
variations.less ouputs every color property / component 3 times (default, for prefers-color-scheme and for explicit override) - including colors / components that are identical.

For example --xf-contentBg--h, -xf-borderColor--s and --xf-borderColor--a are identical for XenForo default style light and dark variations.

Suggested Fix
Only output colors / components that actually are different between variations.
 
Automated triage: Design issue

Thank you for reporting this issue. Colors that are identical between variations are already left out. However, the hue, saturation, lightness and alpha parts of each color that differs are always written out in full, even when some of them match. The resulting CSS is correct, so we're treating this as a design limitation rather than a bug.

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom