Skip to content

Commit

Permalink
fix toc styles on blog post page
Browse files Browse the repository at this point in the history
  • Loading branch information
noghartt committed Dec 8, 2024
1 parent 064de6f commit 98f6921
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/blog/[slug]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const readingTime = remarkPluginFrontmatter.readingTime;
? (
<details class="toc--wrapper" open>
<summary>
<h2>Table of Contents</h2>
Table of Contents
</summary>
<section class="toc">
<ul>
Expand Down Expand Up @@ -157,10 +157,11 @@ const readingTime = remarkPluginFrontmatter.readingTime;
@media screen and (min-width: 425px) {
.toc--wrapper {
background: #f5f5f5;
/* position: absolute; */
position: absolute;
top: 5px;
left: -300px;
max-width: 270px;
width: 270px;
padding: var(--spacing);
}
}

Expand Down

0 comments on commit 98f6921

Please sign in to comment.