style: update animation duration and delay, fix transition issues on mobile

This commit is contained in:
radishzzz 2025-05-19 12:05:34 +01:00
parent 9edc1fc325
commit 120ebbbb3f
7 changed files with 110 additions and 88 deletions

View file

@ -96,7 +96,7 @@ const filteredHeadings = headings.filter(heading =>
--at-apply: 'font-semibold ml-4 2xl:hidden';
}
.toc-list {
--at-apply: 'list-none pb-3.3 pl-0 space-y-2 mt-1 mb-4 2xl:space-y-1.2';
--at-apply: 'mb-4 mt-1 list-none pl-0 space-y-2 2xl:(pb-3.3 space-y-1.2)';
}
.toc-link-h2, .toc-link-h3, .toc-link-h4 {
--at-apply: 'text-sm no-underline font-normal text-balance 2xl:(text-3.2 c-secondary/60 transition-colors transition-font-weight duration-300 ease-out hover:(c-secondary font-medium))';