style(list): see details

- Align list TOC wrapper with single TOC wrapper
- Adjust margin
This commit is contained in:
ZhenShuo Leo committed 2026-01-08 00:40:24 +08:00
1 parent 8c8a914fa9
commit 1d275134ad
3 files changed
+13 -18

No files matched your search

+2 -4
View File
@@ -36,11 +36,9 @@
{{ $showToc := and $enableToc (in .TableOfContents "<ul") }}
{{ $topClass := cond (hasPrefix site.Params.header.layout "fixed") "lg:top-[140px]" "lg:top-10" }}
{{ if $showToc }}
<div class="order-first lg:ml-auto px-0 lg:order-last lg:ps-8 lg:max-w-2xs">
<div class="order-first lg:ms-auto px-0 lg:order-last lg:ps-8 lg:max-w-2xs">
<div class="toc ps-5 print:hidden lg:sticky {{ $topClass }}">
{{ if $showToc }}
{{ partial "toc.html" . }}
{{ end }}
{{ partial "toc.html" . }}
</div>
</div>
{{ end }}