Skip to content

Commit

Permalink
style: post 미디어 쿼리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wish0ne committed Dec 9, 2023
1 parent 5286c72 commit 2421048
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const Toc = ({ tableOfContents }: Props) => {
position: sticky;
top: 10rem;
align-self: flex-start;
@media (max-width: 768px) {
display: none;
}
`}
>
{getSubItems(tableOfContents?.items, 0)}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/posts/{mdx.frontmatter__slug}.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ const BlogPost = ({ data, children }: PageProps<DataProps>) => {
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 2rem;
@media (max-width: 768px) {
width: 100%;
}
`}
>
<h1
Expand Down

0 comments on commit 2421048

Please sign in to comment.