P Patrity Member Feb 16, 2021 #1 I'm using an html block and looking to do some styling. I'm adding my styles to the extra css file, however how do I reference colors that are chosen in the pallet from the ACP? Thanks in advance,
I'm using an html block and looking to do some styling. I'm adding my styles to the extra css file, however how do I reference colors that are chosen in the pallet from the ACP? Thanks in advance,
Solution P P Paul B Feb 16, 2021 You can call a style property in a less template using @xf-propertyName. For example: Less: .p-pageWrapper { background: @xf-paletteColor2; }
You can call a style property in a less template using @xf-propertyName. For example: Less: .p-pageWrapper { background: @xf-paletteColor2; }
P Paul B XenForo moderator Staff member Feb 16, 2021 #2 You can call a style property in a less template using @xf-propertyName. For example: Less: .p-pageWrapper { background: @xf-paletteColor2; } Upvote 1 Downvote Solution
You can call a style property in a less template using @xf-propertyName. For example: Less: .p-pageWrapper { background: @xf-paletteColor2; }
P Patrity Member Feb 17, 2021 #3 Brogan said: You can call a style property in a less template using @xf-propertyName. For example: Less: .p-pageWrapper { background: @xf-paletteColor2; } Click to expand... Exactly what I was looking for! Thank you! Upvote 0 Downvote
Brogan said: You can call a style property in a less template using @xf-propertyName. For example: Less: .p-pageWrapper { background: @xf-paletteColor2; } Click to expand... Exactly what I was looking for! Thank you!