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

A few CSS overrides to make the documentation useful on small screens, such as phones #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion docs/docs-assets/Navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,39 @@ nav[role="navigation"] h1 {
nav[role="navigation"] {
display: none;
}
}
}

/* A few overrides to make the documentation useful on small screens, such as phones */

@media (max-width: 700px) {
/* tighten up the margins and allow putting the nav menu at the end of the page */
body {
display: flex;
flex-direction: column;
margin: 5px 0 !important;
}
/* nav menu at the end of the page, not a floating sidebar over the top of the content */
nav[role="navigation"] {
position: static;
overflow: auto;
order: 2;
}
/* full-width main without big indent to leave space for the nav menu */
main {
width: 100%;
margin: 0;
padding-left: 5px;
padding-right: 5px;
box-sizing: border-box;
}
/* constrain to screen width on narrow screens, rather than explicitly overflowing */
main p.commentary, main p.purpose {
width: auto;
}
div.breadcrumbs {
position: static;
}
div.contentspage .chapterlist .sectionlist li {
padding-left: 1.5em;
}
}