themes
This commit is contained in:
parent
27b778896d
commit
24d6d2a757
5 changed files with 69 additions and 77 deletions
|
|
@ -1,31 +1,26 @@
|
|||
html {
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
/* List pages only - no scroll */
|
||||
body:has(.content) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Fixed header and footer for list pages */
|
||||
body:has(.content) header {
|
||||
flex-shrink: 0;
|
||||
body:has(.content) > header {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
body:has(.content) footer {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
body:has(.content) > .main {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
body:has(.content) > footer {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
@ -35,29 +30,17 @@ body:has(.content) footer {
|
|||
gap: 80px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.topics {
|
||||
font-size: 3em;
|
||||
max-height: calc(100vh - 200px);
|
||||
column-count: 2;
|
||||
column-gap: 80px;
|
||||
font-size: clamp(1.5em, 4vw, 3em);
|
||||
max-height: 100%;
|
||||
column-width: 300px;
|
||||
column-gap: clamp(20px, 4vw, 60px);
|
||||
column-fill: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
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 {
|
||||
|
|
@ -69,7 +52,7 @@ body:has(.content) footer {
|
|||
}
|
||||
|
||||
.posts {
|
||||
font-size: 2.2em;
|
||||
font-size: clamp(1.2em, 3vw, 2.2em);
|
||||
text-align: right;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -128,21 +111,35 @@ body:has(.topics:only-child) .content {
|
|||
}
|
||||
|
||||
body:has(.topics:only-child) .topics {
|
||||
column-count: 2;
|
||||
column-width: 300px;
|
||||
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 {
|
||||
font-size: 2em;
|
||||
padding: 0 20px;
|
||||
column-width: unset;
|
||||
column-count: 1;
|
||||
max-height: unset;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.posts {
|
||||
font-size: 1.47em;
|
||||
padding: 0 20px;
|
||||
font-size: 1.5em;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.topic a {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue