|
@ -91,27 +91,24 @@ const BlogHome: React.FC = () => { |
|
|
aside { |
|
|
aside { |
|
|
min-width: 100vw; |
|
|
min-width: 100vw; |
|
|
} |
|
|
} |
|
|
main { |
|
|
|
|
|
max-width: 0; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
&:is(.article-open) { |
|
|
&:is(.article-open) { |
|
|
aside { |
|
|
aside { |
|
|
min-width: 0; |
|
|
min-width: 0; |
|
|
max-width: 0; |
|
|
max-width: 0; |
|
|
} |
|
|
} |
|
|
main { |
|
|
|
|
|
max-width: 0; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
& > aside { |
|
|
& > aside { |
|
|
transition: all 250ms; |
|
|
transition: all 350ms; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&:is(.aside-closed) { |
|
|
&:is(.aside-closed) { |
|
|
aside { |
|
|
aside { |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
transform: translateX(-500%); |
|
|
|
|
|
min-width: 0; |
|
|
max-width: 0; |
|
|
max-width: 0; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -175,7 +172,7 @@ const BlogHome: React.FC = () => { |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
gap: 1rem; |
|
|
gap: 1rem; |
|
|
padding: 8vw; |
|
|
padding: 8vw; |
|
|
min-width: 30rem; |
|
|
min-width: min(30rem, 100vw); |
|
|
|
|
|
|
|
|
@media screen and (max-width: 50rem) { |
|
|
@media screen and (max-width: 50rem) { |
|
|
padding-block-start: 4rem; |
|
|
padding-block-start: 4rem; |
|
@ -189,8 +186,8 @@ const BlogHome: React.FC = () => { |
|
|
const path = getBlogPath(article); |
|
|
const path = getBlogPath(article); |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div key={path}> |
|
|
|
|
|
<Link |
|
|
<Link |
|
|
|
|
|
key={path} |
|
|
to={path} |
|
|
to={path} |
|
|
className={css` |
|
|
className={css` |
|
|
display: flex; |
|
|
display: flex; |
|
@ -218,7 +215,6 @@ const BlogHome: React.FC = () => { |
|
|
<Spacer /> |
|
|
<Spacer /> |
|
|
<p>{snippet}</p> |
|
|
<p>{snippet}</p> |
|
|
</Link> |
|
|
</Link> |
|
|
</div> |
|
|
|
|
|
); |
|
|
); |
|
|
})} |
|
|
})} |
|
|
</div> |
|
|
</div> |
|
|