This commit is contained in:
Barrett Ruth 2025-11-29 00:54:06 -05:00
parent 27b778896d
commit 24d6d2a757
5 changed files with 69 additions and 77 deletions

View file

@ -201,7 +201,7 @@ body {
header, header,
footer { footer {
padding: 20px; padding: 30px 20px;
font-size: 1.5em; font-size: 1.5em;
display: flex; display: flex;
align-items: center; align-items: center;
@ -270,14 +270,18 @@ pre {
"calt" 0; "calt" 0;
} }
@media (max-width: 768px) { @media (max-width: 1024px) {
header { header,
font-size: 0.9em;
padding: 15px;
}
footer { footer {
font-size: 0.9em; font-size: 1.2em;
padding: 15px; padding: 20px 15px;
}
}
@media (max-width: 640px) {
header,
footer {
font-size: 1em;
padding: 15px 10px;
} }
} }

View file

@ -1,31 +1,26 @@
html { /* List pages only - no scroll */
height: 100vh; body:has(.content) {
overflow: hidden;
}
body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
} }
/* Fixed header and footer for list pages */ body:has(.content) > header {
body:has(.content) header { flex: 0 0 auto;
flex-shrink: 0;
} }
body:has(.content) footer { body:has(.content) > .main {
flex-shrink: 0; flex: 1 1 auto;
} min-height: 0;
.main {
flex: 1;
overflow: hidden;
display: flex; display: flex;
align-items: center; align-items: center;
} }
body:has(.content) > footer {
flex: 0 0 auto;
}
.content { .content {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -35,29 +30,17 @@ body:has(.content) footer {
gap: 80px; gap: 80px;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
overflow: hidden;
} }
.topics { .topics {
font-size: 3em; font-size: clamp(1.5em, 4vw, 3em);
max-height: calc(100vh - 200px); max-height: 100%;
column-count: 2; column-width: 300px;
column-gap: 80px; column-gap: clamp(20px, 4vw, 60px);
column-fill: auto; column-fill: auto;
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
overflow-y: auto;
overflow-x: hidden;
}
.topics::-webkit-scrollbar {
display: none;
}
.topics {
-ms-overflow-style: none;
scrollbar-width: none;
} }
.topics li:first-child { .topics li:first-child {
@ -69,7 +52,7 @@ body:has(.content) footer {
} }
.posts { .posts {
font-size: 2.2em; font-size: clamp(1.2em, 3vw, 2.2em);
text-align: right; text-align: right;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -128,21 +111,35 @@ body:has(.topics:only-child) .content {
} }
body:has(.topics:only-child) .topics { body:has(.topics:only-child) .topics {
column-count: 2; column-width: 300px;
column-fill: auto; column-fill: auto;
max-width: 1200px;
} }
@media (max-width: 768px) { @media (max-width: 1024px) {
body:has(.content) {
height: 100vh;
}
.content {
flex-direction: column;
padding: 20px;
gap: 40px;
justify-content: flex-start;
overflow-y: auto;
}
.topics { .topics {
font-size: 2em; font-size: 2em;
padding: 0 20px; column-width: unset;
column-count: 1; column-count: 1;
max-height: unset;
width: 100%;
} }
.posts { .posts {
font-size: 1.47em; font-size: 1.5em;
padding: 0 20px; text-align: left;
width: 100%;
} }
.topic a { .topic a {

View file

@ -1,28 +1,3 @@
body:has(.post-container) {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
body:has(.post-container) > header {
flex-shrink: 0;
position: sticky;
top: 0;
z-index: 100;
background: var(--background);
}
body:has(.post-container) .main {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
}
body:has(.post-container) > footer {
flex-shrink: 0;
}
li { li {
margin: 5px 0; margin: 5px 0;
} }

View file

@ -29,11 +29,23 @@
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
} }
@media (max-width: 768px) { @media (max-width: 1024px) {
footer {
flex-direction: column;
gap: 15px;
}
.footer-links-left,
.footer-links-right {
gap: 15px;
}
}
@media (max-width: 640px) {
.footer-links-left, .footer-links-left,
.footer-links-right { .footer-links-right {
flex-direction: column; flex-direction: column;
gap: 5px; gap: 10px;
align-items: center;
} }
} }
</style> </style>

View file

@ -29,18 +29,22 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
} }
@media (max-width: 768px) { @media (max-width: 640px) {
header { header {
flex-direction: row; flex-direction: row;
flex-wrap: wrap; justify-content: space-between;
gap: 10px; gap: 10px;
} }
.terminal-container { .terminal-container {
flex: 1 1 auto; flex: 1 1 auto;
min-width: 0; min-width: 0;
} }
.terminal-prompt {
font-size: 0.9em;
}
#theme-toggle { #theme-toggle {
flex: 0 0 auto; flex: 0 0 auto;
font-size: 1.2em;
} }
} }
</style> </style>