diff --git a/src/pages/blog/Home.tsx b/src/pages/blog/Home.tsx index 82c743d..c9e6d84 100644 --- a/src/pages/blog/Home.tsx +++ b/src/pages/blog/Home.tsx @@ -100,17 +100,21 @@ const BlogHome: React.FC = () => { } } - & > aside { - transition: all 800ms; + & > aside, + & > aside .blog-list { + transition: all 300ms; } &:is(.aside-closed) { - aside { + & aside { overflow: hidden; - transform: translateX(-1000%); min-width: 0; max-width: 0; } + + & aside .blog-list { + transform: translateX(-1000%); + } } `, )}> @@ -163,23 +167,25 @@ const BlogHome: React.FC = () => { width: 100%; flex: 2; max-width: 45rem; + overflow-y: auto; `}>
+ @media screen and (max-width: 50rem) { + padding-block-start: 4rem; + padding-block-end: 6rem; + } + `, + )}>
{articles.map(article => {