From 4d9c1a3e8cf06525ea8a43b71ff5c67e94d1632e Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 9 Jun 2025 23:03:04 -0500 Subject: [PATCH] changes for v4 tailwind --- postcss.config.mjs | 1 - src/components/Navigation.astro | 6 +++--- src/components/ShareButtons.astro | 2 +- src/components/ThemeToggle.astro | 6 +++--- src/layouts/Layout.astro | 4 ++-- src/pages/404.astro | 4 ++-- src/pages/blog/[...slug].astro | 2 +- src/pages/blog/index.astro | 2 +- src/pages/index.astro | 2 +- src/pages/topics/[tag].astro | 6 +++--- src/pages/topics/index.astro | 12 ++++++------ 11 files changed, 23 insertions(+), 24 deletions(-) diff --git a/postcss.config.mjs b/postcss.config.mjs index 991a98a..9d42973 100644 --- a/postcss.config.mjs +++ b/postcss.config.mjs @@ -2,7 +2,6 @@ const config = { plugins: { '@tailwindcss/postcss': {}, - autoprefixer: {}, 'postcss-preset-env': { features: { 'nesting-rules': false, diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index b77ffa8..45eb856 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -200,9 +200,9 @@ const currentPath = pathname.slice(1); // Add shadow on scroll if (currentScrollY > 10) { - header.classList.add('shadow-sm'); + header.classList.add('shadow-xs'); } else { - header.classList.remove('shadow-sm'); + header.classList.remove('shadow-xs'); } // Update last scroll position @@ -240,6 +240,6 @@ const currentPath = pathname.slice(1); /* Mobile menu transition */ #mobile-menu { transition: opacity 0.3s ease; - backdrop-filter: blur(4px); + backdrop-filter: blur-sm(4px); } diff --git a/src/components/ShareButtons.astro b/src/components/ShareButtons.astro index db9c0f1..e7481a2 100644 --- a/src/components/ShareButtons.astro +++ b/src/components/ShareButtons.astro @@ -94,7 +94,7 @@ const encodedUrl = encodeURIComponent(url); > Copied! diff --git a/src/components/ThemeToggle.astro b/src/components/ThemeToggle.astro index 30f7cbc..252bcdc 100644 --- a/src/components/ThemeToggle.astro +++ b/src/components/ThemeToggle.astro @@ -5,7 +5,7 @@