Either with bold text or a different background color?
/*STICKY SEPARATOR*/
/*the sticky background*/
.structItemContainer-group.structItemContainer-group--sticky
{
border:3px solid @xf-paletteColor2 ;
border-radius:10px;
margin:0px 0px 10px 0px;}
.structItemContainer-group.structItemContainer-group--sticky:before
{content: " Sticky Threads: ";
line-height:2em;
font-style:normal;
font-size:20px;
padding-left:10px; }
Thank You!I use this in extra.less template
Code:/*STICKY SEPARATOR*/ /*the sticky background*/ .structItemContainer-group.structItemContainer-group--sticky { border:3px solid @xf-paletteColor2 ; border-radius:10px; margin:0px 0px 10px 0px;} .structItemContainer-group.structItemContainer-group--sticky:before {content: " Sticky Threads: "; line-height:2em; font-style:normal; font-size:20px; padding-left:10px; }
Thankyou for sharing your sticky thread highlight code, it works perfectly on XF 2.3 in both the light and dark modes.I use this in extra.less template
Code:/*STICKY SEPARATOR*/ /*the sticky background*/ .structItemContainer-group.structItemContainer-group--sticky { border:3px solid @xf-paletteColor2 ; border-radius:10px; margin:0px 0px 10px 0px;} .structItemContainer-group.structItemContainer-group--sticky:before {content: " Sticky Threads: "; line-height:2em; font-style:normal; font-size:20px; padding-left:10px; }
I quite like this one, thanks!I use this in extra.less template
Code:/*STICKY SEPARATOR*/ /*the sticky background*/ .structItemContainer-group.structItemContainer-group--sticky { border:3px solid @xf-paletteColor2 ; border-radius:10px; margin:0px 0px 10px 0px;} .structItemContainer-group.structItemContainer-group--sticky:before {content: " Sticky Threads: "; line-height:2em; font-style:normal; font-size:20px; padding-left:10px; }
How to define different colors for light and dark mode?border:3px solid @xf-paletteColor2 ;
Post in thread 'Custom prefixes'How to define different background colors for light and dark mode?
We use essential cookies to make this site work, and optional cookies to enhance your experience.