XF 2.3 Gradient background in logo area

Hi,

I'd like to have a gradient background in the logo area, just like it is in the footer area of this forum. Ideally with exactly the same colours - but how do I do this?

Any assistance would be greatly appreciated - I'm not at all experienced in modifying styles, but I'd really like a gradient background for the logo area with the dark variation of the default style.

1723924008221.webp
 
Basically it's this kind of code:
Less:
background: linear-gradient(0deg, @xf-contentAccentBg, xf-diminish(@xf-contentAccentBg, 5%));
You can change 0deg to change the direction of the gradient (ex: 180deg) and you can change @xf-contentAccentBg by another XF colour variable or by a HTML colour code like rgb(0,0,22)

Add the code to the Extra field.

Capture d'écran 2024-08-17 195802.webp
 
Thank you very much, @Old Nick. It looks really awesome! For anyone else interested in the subject, this is what I did, and what it looks like under both style variations:

Dark theme:
1723933642153.webp

Light theme:
1723933823829.webp

Under Appearance > Styles and Templates > Style Properties > Default style - Style Properties > Header and Navigation, scroll down:
1723933943166.webp
 
Last edited:
Back
Top Bottom