Warchamp7 Active member Mar 8, 2021 #1 In XenForo 1, we had {xen:helper rgba, <color>, <opacity>} for adjusting a color to be a different opacity Is there a similar helper in XenForo 2?
In XenForo 1, we had {xen:helper rgba, <color>, <opacity>} for adjusting a color to be a different opacity Is there a similar helper in XenForo 2?
Solution Russ Mar 8, 2021 This should work fine: Code: fade(@xf-paletteAccent2, 20%) The above example, paletteAccent2 rgb value is: rgb(242, 147, 13) Using that LESS function, it turns it into rgba(242,147,13,0.2)
This should work fine: Code: fade(@xf-paletteAccent2, 20%) The above example, paletteAccent2 rgb value is: rgb(242, 147, 13) Using that LESS function, it turns it into rgba(242,147,13,0.2)
Russ Well-known member Mar 8, 2021 #2 This should work fine: Code: fade(@xf-paletteAccent2, 20%) The above example, paletteAccent2 rgb value is: rgb(242, 147, 13) Using that LESS function, it turns it into rgba(242,147,13,0.2) Upvote 1 Downvote Solution
This should work fine: Code: fade(@xf-paletteAccent2, 20%) The above example, paletteAccent2 rgb value is: rgb(242, 147, 13) Using that LESS function, it turns it into rgba(242,147,13,0.2)