diff options
| author | Eltrac <hi@guhub.cn> | 2025-08-23 22:02:24 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-08-23 22:02:24 +0800 |
| commit | a5862fe0d7236fc35f80343a9c31b201f73577fc (patch) | |
| tree | bb865580fcf5eb748167747981228fd048a16b95 /layouts/_partials/posts | |
| parent | d1f4f5a90747ce9b38ce7d95b9c9189ab7224185 (diff) | |
refactor: move table of content to the right
Former-commit-id: efc36b044e2c86956a1f57fa7aca9a5949c15637
Diffstat (limited to 'layouts/_partials/posts')
| -rw-r--r-- | layouts/_partials/posts/toc.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_partials/posts/toc.html b/layouts/_partials/posts/toc.html index 7a4a63cf..ea87bb26 100644 --- a/layouts/_partials/posts/toc.html +++ b/layouts/_partials/posts/toc.html @@ -1,9 +1,9 @@ {{ if .Params.toc }} <div id="toc-container" - class="absolute bottom-0 right-[calc(50%_+_var(--page-width)_/_2)] left-auto - h-full top-[12rem] hidden xl:block"> + class="absolute bottom-0 left-[calc(50%_+_var(--page-width)_/_2)] right-auto + h-full w-[calc(50%_-_var(--page-width)_/_2)] top-[19rem] hidden lg:block"> <div id="toc" - class="sticky top-12 text-size-sm 2xl:text-size-base px-8" + class="sticky top-12 text-size-xs xl:text-size-sm 2xl:text-size-base w-full" >{{ .TableOfContents }}</div> </div> {{ end }} |
