docs: design updates (#3098)
Update colors, spacing and fix the toc animation.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user