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

Fix darkfish responsiveness issue on screens between 1024px and ~1650px #1148

Merged
merged 3 commits into from
Aug 8, 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
23 changes: 12 additions & 11 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
/* vim: ft=css et sw=2 ts=2 sts=2 */
/* Base Green is: #6C8C22 */

:root {
--sidebar-width: 300px;
}

.hide { display: none !important; }

* { padding: 0; margin: 0; }
Expand Down Expand Up @@ -209,21 +213,15 @@ nav {
z-index: 10;

/* Layout */
width: 300px;
width: var(--sidebar-width);
min-height: 100vh;
background: white;
}

@media (min-width: 1024px) {
nav {
min-height: unset;
height: calc(100vh - 100px); /* reduce the footer height */
}
}

main {
display: block;
margin: 3em 1em 1em;
margin: 3em auto 1em;
padding: 0 1em; /* Add padding to keep space between main content and sidebar/right side of the screen */
min-width: 340px;
font-size: 16px;
width: 100%;
Expand All @@ -232,8 +230,7 @@ main {

@media (min-width: 1024px) {
main {
margin-left: auto;
margin-right: auto;
margin-left: var(--sidebar-width);
}
}

Expand Down Expand Up @@ -731,4 +728,8 @@ pre {
font-family: "Source Code Pro", Monaco, monospace;
}

footer {
z-index: 20;
}

/* @end */