Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

off panel – widht and smooth slide

  • Hi 🙂

    i hae same issus about the off-panel.

    1.
    i want to have a fixed width on desktop, i use this:
    nav#generate-slideout-menu.main-navigation.offside {
    width: 670px;
    }
    it looks good so far.
    when i close the panel on clicking on the body, it dosn´t close smooth.
    how can i change this?

    2.
    on mobile i use
    nav#generate-slideout-menu.main-navigation.offside {
    width: 100%;
    }
    when i got a page off 390px viewport, the panel has 407px.
    but i want the same width.

    here ist the current site: https://wordpress-1092774-4848975.cloudwaysapps.com

    can you help me, please

    Thx

  • Hi there,

    remove whatever CSS you have already added for the off canvas width.
    And try this:

    
    body {
        --gp-slideout-width: 670px;
    }
    @media(max-width: 670px) {
        body {
            --gp-slideout-width: 100%;
        }
    }
    
  • yeah 😀
    smooooth (y)

    now one thing:
    the mobile navigation is wider than the body.
    viewport 390px then the open panel is 407.

    can´t fine something..

  • The width of the slideout navigation has no issue, the issue is that your site body, since it has an element that overflows:
    https://app.screencast.com/8e7CLjQ9lKMCP

    The CSS adds 35px margin to a button, which makes the entire site wider.

    You will need to remove the margin on mobile.

    Try this CSS to override it:

    @media(max-width: 768px) { 
    #content .btn-gold:first-of-type {
        margin-right: 0;
    }
    }
  • aaaaah 😀

    ok, thank you very much (y)
    thx 🙂

    solved!

  • You are welcome   🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.