Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: Sticky Side Panel CSS Override #152

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

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.

1 participant