A Anacleto Active member Dec 4, 2022 #2 LukeWolf said: Is there any way to make the staff bar sticky? Click to expand... Adding to the question. Is there a way to stick the staff bar when scrolling? thanks. Upvote 0 Downvote
LukeWolf said: Is there any way to make the staff bar sticky? Click to expand... Adding to the question. Is there a way to stick the staff bar when scrolling? thanks.
O Old Nick Well-known member Dec 4, 2022 #3 Add this code to you extra.less template : Less: .p-staffBar { position: sticky; top: 0; z-index:400; } .p-navSticky { top: 35px !important; } Upvote 0 Downvote
Add this code to you extra.less template : Less: .p-staffBar { position: sticky; top: 0; z-index:400; } .p-navSticky { top: 35px !important; }
A Anacleto Active member Dec 4, 2022 #4 Thanks! i find this solution for better application. Inside Appearence -> template -> Page container Code: <xf:if is="$xf.visitor.is_moderator"> <xf:css> .p-navSticky {top: 34px !important;} .p-staffBar {position: sticky;top: 0;z-index:900;} </xf:css> </xf:if> Upvote 0 Downvote
Thanks! i find this solution for better application. Inside Appearence -> template -> Page container Code: <xf:if is="$xf.visitor.is_moderator"> <xf:css> .p-navSticky {top: 34px !important;} .p-staffBar {position: sticky;top: 0;z-index:900;} </xf:css> </xf:if>
A Anacleto Active member Dec 4, 2022 #6 Nicolas FR said: What's the difference in public view ? Click to expand... Whit your solution, all regular users will see the navbar under a transparent space above (34px of transparent space). Whit this solution, instead, the css will apply only to moderating group. so regular user will not see that irregular behaviour. Upvote 0 Downvote
Nicolas FR said: What's the difference in public view ? Click to expand... Whit your solution, all regular users will see the navbar under a transparent space above (34px of transparent space). Whit this solution, instead, the css will apply only to moderating group. so regular user will not see that irregular behaviour.