[Resolved] Exact size of sidebar with flexbox

Home Forums Support Exact size of sidebar with flexbox

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1498977
    Diogenes

    Hi.

    In the previous version of generatepress I had made my right sidebar exactly 390px with this CSS:

    @media (min-width: 1025px) {
    .sidebar.grid-30 {
        width: 390px;
    }
    .right-sidebar .content-area.grid-70 {
        width: calc(100% - 390px);
    }
    }

    With flexbox what would be the CSS?

    Thanks in advance.

    #1498990
    Diogenes

    I got the solution, I’ll leave it here in case someone is interested:

    @media (min-width: 1025px) {
    .is-right-sidebar {
        width: 390px;
    }
    .site-content .content-area {
        width: calc(100% - 390px);
    }
    }

    Greetings.

    #1498996
    Elvin
    Staff
    Customer Support

    Thank you for sharing this.

    Have a great day. 🙂

    A wise man once said:
    "Have you cleared your cache?"

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