@media (max-width: @xf-publicNavCollapseWidth)
{
.has-js
{
.p-nav .p-nav-menuTrigger
{
display: none;
}
.p-nav-smallLogo
{
margin-left:3px
}
.p-nav-scroller
{display:block;
}
}
//optional to make visitor menu narrower
.p-navgroup-link
{padding:8px 2px}
}
What needs to be done to keep the navbar always in desktop mode (worst case, but accepted: partly hidden by the right side's user elements) and to prevent the switch to hamburger button / folding menu at small viewports below responsive width / in mobile mode without losing all other still wanted responsive features?
@media (max-width: 250px)
.has-js .p-nav-inner {
min-height: 45px;
}
@media (max-width: @xf-publicNavCollapseWidth)
{
.has-js
{
.p-nav .p-nav-menuTrigger
{
display: none;
}
.p-nav-smallLogo
{
margin-left:3px
}
.p-nav-scroller
{display:block;
}
}
//optional to make visitor menu narrower
.p-navgroup-link
{padding:8px 2px}
}
work perfect thank you very muchThis seems to work for me (in extra.less}
Code:@media (max-width: @xf-publicNavCollapseWidth) { .has-js { .p-nav .p-nav-menuTrigger { display: none; } .p-nav-smallLogo { margin-left:3px } .p-nav-scroller {display:block; } } //optional to make visitor menu narrower .p-navgroup-link {padding:8px 2px} }
I'm sorry it is not working for meTry this in your extra.less template:
CSS:@media (max-width: 250px) .has-js .p-nav-inner { min-height: 45px; }
We use essential cookies to make this site work, and optional cookies to enhance your experience.