Skip to content

Apply minimal changes/tweaks to restore a responsive narrow view. #15

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

Merged
merged 1 commit into from
Jul 4, 2024
Merged
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
66 changes: 53 additions & 13 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,64 @@
a {
color: #679c5b;
}

body {
font-family: "Open Sans",Helvetica,Arial,sans-serif
}
/* Custom theming for screens width 1100px and up */

@media screen and (max-width: 1100px) {
.wy-nav-content-wrap {
margin-left: 0;
}

.wy-nav-side {
left: -300px;
}

.wy-nav-side.shift {
left: 0px;
width: 300px;
background: unset;
}

.wy-nav-content-wrap.shift {
position: fixed;
min-width: 100%;
left: 300px;
top: 0;
height: 100%;
overflow: hidden;
}

.wy-menu.wy-menu-vertical, .wy-side-nav-search, .wy-side-scroll {
width: 300px;
}

.wy-nav-top {
display: block;
background: #c9c9c9;
}

[data-toggle="wy-nav-top"] {
color: #404040;
}

nav.wy-nav-top a {
color: #404040;
font-family: Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;
font-size: 200%;
}
}

@media screen and (min-width: 1100px) {
.wy-grid-for-nav nav {
background: white;
}
}

/* Distinguishing images from text content */
.rst-content img.with-border {
border-color: lightgrey;
.rst-content img.with-border {
border-color: lightgrey;
border-width: 2px;
border-style: solid;
}
Expand Down Expand Up @@ -126,19 +175,11 @@ details {
}

/* Left section and menu */
.wy-nav-side, .wy-grid-for-nav {
margin-left: calc(((100vw - 1100px) / 2));
}

.wy-menu-vertical header, .wy-menu-vertical p.caption {
color: #000;
font-size: 95%;
}

.wy-grid-for-nav nav {
background: white
}


.wy-nav-content-wrap {
background: none;
}
Expand Down Expand Up @@ -180,4 +221,3 @@ details {
{
margin-bottom: 4px;
}
}