From 90c3f08d8d1f4ff7e2f3708055457ade3a6ad6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bryan=20Gald=C3=A1mez?= Date: Tue, 10 Jun 2025 06:57:21 -0600 Subject: [PATCH] refactor: migrate tailwind 3 to tailwind 4 --- src/components/Button.astro | 19 +- src/components/Features.astro | 4 +- src/components/ModsList.astro | 20 +- src/components/NavBar.astro | 30 +-- src/components/ReleaseNoteItem.astro | 50 +---- src/components/download/ButtonCard.astro | 16 +- src/layouts/Layout.astro | 71 +----- src/pages/[...locale]/download.astro | 50 ++--- src/pages/[...locale]/index.astro | 15 -- src/pages/[...locale]/mods/[...slug].astro | 12 +- .../[...locale]/release-notes/index.astro | 18 +- src/styles/global.css | 210 ++++++++++++++++++ 12 files changed, 271 insertions(+), 244 deletions(-) create mode 100644 src/styles/global.css diff --git a/src/components/Button.astro b/src/components/Button.astro index 9967220..c35cb93 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -28,10 +28,10 @@ const { isPrimary ? 'border-dark bg-dark text-paper shadow-lg' : isAlert - ? 'bg-red-300 text-dark' + ? 'text-dark bg-red-300' : !isBordered ? 'bg-subtle' - : '!transition-bg border-2 border-dark hover:bg-dark hover:text-paper hover:shadow-sm', + : '!transition-bg border-dark hover:bg-dark hover:text-paper border-2 hover:shadow-xs', ]} {...props} > @@ -47,10 +47,10 @@ const { isPrimary ? 'border-dark bg-dark text-paper shadow-md' : isAlert - ? 'bg-red-300 text-dark' + ? 'text-dark bg-red-300' : !isBordered ? '' - : '!transition-bg border-2 border-dark hover:bg-dark hover:text-paper hover:shadow-sm', + : '!transition-bg border-dark hover:bg-dark hover:text-paper border-2 hover:shadow-xs', ]} {...props} > @@ -58,14 +58,3 @@ const { ) } - diff --git a/src/components/Features.astro b/src/components/Features.astro index 76efc5b..beccc34 100644 --- a/src/components/Features.astro +++ b/src/components/Features.astro @@ -242,7 +242,7 @@ const descriptions = Object.values(features.featureTabs).map(tab => tab.descript - diff --git a/src/components/ReleaseNoteItem.astro b/src/components/ReleaseNoteItem.astro index 6643be7..d5a9e3a 100644 --- a/src/components/ReleaseNoteItem.astro +++ b/src/components/ReleaseNoteItem.astro @@ -115,7 +115,7 @@ generateItems(props.knownIssues, 'known') { isTwilight ? ( {releaseNoteItem.twilight} @@ -142,7 +142,7 @@ generateItems(props.knownIssues, 'known') {releaseNoteItem.githubRelease} @@ -181,7 +181,7 @@ generateItems(props.knownIssues, 'known') @@ -230,44 +230,4 @@ generateItems(props.knownIssues, 'known') } - diff --git a/src/components/download/ButtonCard.astro b/src/components/download/ButtonCard.astro index 15b59df..ae90b36 100644 --- a/src/components/download/ButtonCard.astro +++ b/src/components/download/ButtonCard.astro @@ -21,7 +21,7 @@ const { label, href, checksum } = Astro.props
@@ -32,7 +32,7 @@ const { label, href, checksum } = Astro.props