From 548cb4f1465d3894954e9e806e853c146594ab58 Mon Sep 17 00:00:00 2001 From: DefectingCat Date: Sun, 25 Jun 2023 14:52:26 +0800 Subject: [PATCH] update toc styles --- components/post/post-toc.tsx | 27 ++++++++++++--------------- styles/rua.css | 1 - 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/components/post/post-toc.tsx b/components/post/post-toc.tsx index 9bdb38c..7fe123b 100644 --- a/components/post/post-toc.tsx +++ b/components/post/post-toc.tsx @@ -14,7 +14,7 @@ interface Props { const TocItem = ({ item }: { item: SingleToc }) => { return ( -
  • +
  • {item.head} @@ -30,27 +30,24 @@ const PostToc = ({ toc, tocLength }: Props) => { <>
    -

    - What's inside? + TABLE OF CONTENTS { 'transition-all duration-500' )} /> -

    +
    -
    +
      {toc?.map((h) => ( diff --git a/styles/rua.css b/styles/rua.css index 7c8d4b1..fa19b16 100644 --- a/styles/rua.css +++ b/styles/rua.css @@ -93,7 +93,6 @@ } #article .toc { - padding-left: 0.8em; @apply my-4; }