From 61d052fc620ed5642e3db4e7fff8b3e2ba59ec26 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Mon, 7 Oct 2024 14:24:57 -0400 Subject: [PATCH] update how the links in the sidebar look Took 40 minutes --- src/components/docs-footer.tsx | 2 +- src/components/sidebar/sidebar-links.tsx | 18 ++++++++++-------- src/components/sidebar/sidebar.tsx | 2 +- tailwind.config.ts | 4 ++++ 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/docs-footer.tsx b/src/components/docs-footer.tsx index b8bd96b..c2f9415 100644 --- a/src/components/docs-footer.tsx +++ b/src/components/docs-footer.tsx @@ -53,7 +53,7 @@ const DocsFooter = ({ {/* Pages */} - +
{/* Previous */} {previous && ( diff --git a/src/components/sidebar/sidebar-links.tsx b/src/components/sidebar/sidebar-links.tsx index 37e13f1..84966c3 100644 --- a/src/components/sidebar/sidebar-links.tsx +++ b/src/components/sidebar/sidebar-links.tsx @@ -51,14 +51,15 @@ const CategoryItem = ({ const hasChildren = Object.keys(node.children).length > 0; return ( -
0 ? "ml-2.5" : ""} select-none`}> +
0 && "ml-2.5")}> {/* Indentation */} {depth > 0 && (
)} @@ -71,9 +72,10 @@ const CategoryItem = ({ >
diff --git a/tailwind.config.ts b/tailwind.config.ts index 750f8ca..2a0b5f0 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -63,6 +63,10 @@ const config: Config = { md: "calc(var(--radius) - 2px)", sm: "calc(var(--radius) - 4px)", }, + backgroundImage: { + "separator-gradient": + "linear-gradient(90deg, #161619, hsl(var(--muted)), #161619)", + }, }, }, plugins: [require("tailwindcss-animate")],