Skip to content

Fixed sidebar for posts #461

Answered by razonyang
LITUATUI asked this question in Q&A
Mar 21, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There are two options to do that.

1. Stick one widget on the sidebar

See also #404.

2. Stick the whole sidebar

Append the following CSS to assets/main/scss/_custom.scss.

.sidebar {
    @include media-breakpoint-up(lg) {
        height: calc(100vh - 84px);
        overflow: scroll;
        position: sticky;
        top: 84px;
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LITUATUI
Comment options

Answer selected by LITUATUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants