Skip to content

Conversation

@ntno
Copy link
Owner

@ntno ntno commented Aug 20, 2024

possible solution for #140
can be implemented without a change to the theme. use the "Extra CSS" mkdocs.yml block:

mkdocs.yml

extra_css:
  - overrides/extra.css

docs/overrides/extra.css


/* sticky side panel - https://github.com/ntno/mkdocs-terminal/issues/140 */

#terminal-mkdocs-side-panel {
    top: calc(var(--global-space) * 2);
    position: sticky;
    overflow-y: scroll;
    max-height: 90vh;
}


/* Hide scrollbar for Chrome, Safari and Opera */

#terminal-mkdocs-side-panel::-webkit-scrollbar {
    display: none;
}


/* Hide scrollbar for IE, Edge and Firefox */

#terminal-mkdocs-side-panel {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

@ntno ntno mentioned this pull request Aug 20, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants