XF 2.2 a condition for the nav bar (sticky or else)

Vade

New member
Hey! i'm basically in need of a contional expression for the navBar, How would i do so? what are the elements being used.
for example is p-navSticky.isSticky are both classes i suppose, because i've seen them beeing styled, however using that as a condition doesn't quite work.

EDIT: resolved the issue by adding this to my stickyNav.less, still someone explaining what the conditional elements are being used in the condition expression would be great, thanks!
Code:
    .p-header-logo.p-header-logo--image {
        visibility: hidden;
    }

    &.is-sticky
    {
        .p-header-logo.p-header-logo--image {
            visibility: visible;
        }

thanks!
 
Last edited:
Top