[Resolved] Color space between sidebar and footer

Home Forums Support [Resolved] Color space between sidebar and footer

Home Forums Support Color space between sidebar and footer

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1296674
    Sandro

    Hi
    and sorry for my English
    I’m using GeneratePress Premium

    I would like to change the color between the (short) right sidebar and the footer.
    I would like that space would be white (like the content space) and not grey (like the background)

    Is that possible?

    #1296930
    Leo
    Staff
    Customer Support
    #1297048
    Sandro

    Yes, that would be what I was looking for…
    But I have 2 problems with this CSS

    1) Conflict with previous CSS I added, to fix the right sidebar:

    @media
    (min-width: 769px) {
    #right-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 6%;
    }
    }
    Unfortunately this CSS (to fix the sidebar) doesn’t work anymore in combination with the new CSS (to change color)

    2) With the CSS you suggested, the sidebar doesn’t go down in small screen, as you can see in this image sidebar bigger than content

    #1297102
    Leo
    Staff
    Customer Support

    Can you keep my CSS in there so I can see the issue?

    #1297117
    Sandro

    Ok, done

    You can see the homepage in a mobile device (the sidebar doesn’t go down)

    And you can see in a page with long content (like this one ) that the sidebar doesn’t stay sticky anymore

    #1297120
    Sandro

    …the link of the page with long content:
    http://squarci.info/effetto-serra-faq/

    #1297128
    Leo
    Staff
    Customer Support

    We would need to wrap my CSS in desktop media query only like this:

    @media (min-width: 769px) {
        .site-content, #right-sidebar {
            display: flex;
        }
        #right-sidebar .inside-right-sidebar {
            display: flex;
            flex-direction: column;
        }
        #right-sidebar .widget:last-child {
            flex: 1;
        }
    }

    As for the sticky issue, unfortunately I don’t see a solution to have both as my CSS simply extend the sidebar to the length of the content. The workaround would be to target my CSS to the short content pages only if that works for you?

    #1297687
    Sandro

    Ok, now it works!
    So I have to decide between extended or sticky sidebar.
    I will make my decision
    Thank you

    #1298251
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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