Skip to content

Commit

Permalink
[fix] toc
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 committed Mar 10, 2024
1 parent 3fc6d84 commit 62b91fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
10 changes: 0 additions & 10 deletions src/components/@layout/tableOfContents/table-contents.module.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
.wrapper {
margin-bottom: 44px;
display: none;
/* position: absolute;
height: 100%;
right: 0;
padding: 0 var(--spacing-4);
transform: translateX(100%); */

@media screen and (min-width: 1300px) {
display: block;
}
}

.inner {
Expand Down
4 changes: 4 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ a:focus {
padding: 64px 0 var(--spacing-10) 0;

position: relative;

@media screen and (max-width: 1300px) {
padding: 0 0 var(--spacing-5) 0;
}
}

/* .global-header {
Expand Down
10 changes: 9 additions & 1 deletion src/templates/blog-post.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,16 @@
margin-right: 22px;
}
}
display: block;
}
}

@media screen and (max-width: 1300px) {
.wrapper .left {
display: none;
}
margin: 16px;
}
}

.main-article {
Expand Down Expand Up @@ -172,7 +180,7 @@ header small {
text-overflow: ellipsis;
}
}
.left-box {
-box {
/* box-shadow: -6px 6px 0px -1px var(--color-neutral-01); */

&:hover {
Expand Down

0 comments on commit 62b91fe

Please sign in to comment.