docs: design updates (#3098)

Update colors, spacing and fix the toc animation.
This commit is contained in:
Marvin Hagemeister
2025-07-16 14:01:30 +02:00
committed by GitHub
parent 713c85c12d
commit 776a275b5d
7 changed files with 44 additions and 24 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ export function SidebarCategory(props: {
<li class="my-2 block">
<a
href={href}
class="text-foreground-secondary hover:text-gray-600 aria-[current]:text-fresh-green aria-[current]:hover:underline font-bold"
class="text-foreground-secondary hover:text-gray-600 dark:hover:text-green-300 aria-[current]:text-fresh-green dark:aria-[current]:text-green-300 aria-[current]:hover:underline font-bold"
>
{title}
</a>
@@ -36,7 +36,7 @@ export function SidebarEntry(props: {
<li class="py-[1px]">
<a
href={href}
class="aria-[current]:text-fresh-green aria-[current]:border-green-600 aria-[current]:bg-fresh-green/5 border-l-4 border-transparent px-4 py-0.5 transition-colors hover:text-fresh-green/80 font-normal block"
class="aria-[current]:text-fresh-green aria-[current]:border-green-600 dark:aria-[current]:text-green-300 aria-[current]:bg-fresh-green/5 dark:hover:text-green-300 border-l-4 border-transparent px-4 py-0.5 transition-colors hover:text-fresh-green/80 font-normal block"
>
{title}
</a>
+1 -1
View File
@@ -20,7 +20,7 @@ export default function Footer(props: JSX.HTMLAttributes<HTMLElement>) {
<footer
class={`border-t-2 border-foreground-secondary/20 md:h-16 flex mt-16 justify-center md:mx-16 ${props.class}`}
>
<div class="flex flex-col sm:flex-row gap-4 justify-between items-center max-w-screen-xl mx-auto w-full sm:px-6 md:px-8 p-4">
<div class="flex flex-col sm:flex-row gap-4 justify-between items-center max-w-screen-xl mx-auto w-full sm:px-6 md:px-8 p-4 text-base">
<div class="text-foreground-secondary text-center">
<span>© {new Date().getFullYear()} the Fresh authors</span>
</div>