mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-06 05:07:36 -05:00
76 lines
998 B
CSS
76 lines
998 B
CSS
.container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.containerWithSideNav {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
}
|
|
|
|
.mainWrapper {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sideNavStack {
|
|
--side-nav-count: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: sticky;
|
|
left: 0;
|
|
top: var(--sticky-top);
|
|
height: fit-content;
|
|
margin: var(--s-2-5);
|
|
gap: var(--s-2);
|
|
|
|
&:has(> :nth-child(2)) {
|
|
--side-nav-count: 2;
|
|
}
|
|
|
|
&:has(> :nth-child(3)) {
|
|
--side-nav-count: 3;
|
|
}
|
|
|
|
&:has(> :nth-child(4)) {
|
|
--side-nav-count: 4;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.sideNavStack {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.main {
|
|
padding-block: var(--s-4) var(--s-32);
|
|
}
|
|
|
|
.normal {
|
|
width: 100%;
|
|
max-width: 48rem;
|
|
margin: 0 auto;
|
|
padding-inline: var(--s-3);
|
|
min-height: 75vh;
|
|
}
|
|
|
|
.narrow {
|
|
width: 100%;
|
|
max-width: 24rem;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.wide {
|
|
width: 100%;
|
|
max-width: 72rem;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
@media screen and (display-mode: standalone) {
|
|
.main {
|
|
padding-block-start: env(safe-area-inset-top);
|
|
}
|
|
}
|