[Resolved] Make Slideout Navigation appear from top instead from sides

Home Forums Support [Resolved] Make Slideout Navigation appear from top instead from sides

Home Forums Support Make Slideout Navigation appear from top instead from sides

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #667438
    David
    Staff
    Customer Support

    The latter oneL add the hide-on-desktop class to the menu item. Its a GP class so no additional CSS required.

    Hmmm….. safari causing a pain. In the code, where we have 150% and -150%, i added this for menus that may extend past the length of the screen. Reduce them down to 100%. And then we can have another look.

    #667440
    Ivan Cazorla

    thanks, just added the class and set all 150% to 100%. take a look.

    thanks,
    Ivan

    #667442
    David
    Staff
    Customer Support

    You see i knew i added it for a reason lol so put it back to 150% – might need a bit of a rethink lol

    #667443
    Ivan Cazorla

    Haha i know. By the way, I just made the background X on mobile black, but I’m having troubles with the hover change of color. How can I keep it black?

    Also, what does the calc(150%) exactly do? And why 150%?

    thanks,
    Ivan

    #667444
    David
    Staff
    Customer Support

    Then give this a shot:

    .main-navigation.offside {
    	height: 100% !important;
    }
    #667445
    David
    Staff
    Customer Support

    For the colors you will need to target these classes and set the background color and text color: .

    `custom-slideout-exit a:visited, .custom-slideout-exit a:hover’

    You can actually get rid of the calc( ) now and just add the 150% – its a CSS way of doing maths.

    #667447
    Ivan Cazorla

    It works like a champ!! You’re awesome. By the way, aren’t those two the same class?

    thanks,
    Ivan

    #667448
    David
    Staff
    Customer Support

    Haha yes – edited the code, for hover.
    You’re welcome – nice looking nav ๐Ÿ™‚

    #667449
    Ivan Cazorla

    Thanks!! Hope this website can be showcased on “made with Generatepress” when its finished. Just one more thing, why isn’t this working?

    .custom-slideout-exit a:visited, .custom-slideout-exit a:hover {
        background: #000;
        color: #fff;
    }

    Is it also possible to block the scrolling when the menu is opened?

    thanks,
    Ivan

    #667590
    David
    Staff
    Customer Support

    If it is to be black and white the time then add the .custom-slideout-exit a to that rule.

    Sorry. I haven’t found a good solution for scroll blocking….. still looking

    #667597
    Ivan Cazorla

    thanks! it still becomes white background when hovering. i don’t know why. let me know.

    update
    Solved it adding !important to the colors. let me know if you find the scroll blocking and we’ll be done. thanks!!

    appreciate it,
    Ivan

    #667604
    David
    Staff
    Customer Support

    You’re welcome ๐Ÿ™‚

    #685988
    Ivan Cazorla

    thanks

Viewing 13 posts - 16 through 28 (of 28 total)
  • You must be logged in to reply to this topic.