From 5ac5e22d9c39c4770e0b65da25025b1bebd6bb34 Mon Sep 17 00:00:00 2001 From: Unknown <53575465+EndofTimee@users.noreply.github.com> Date: Mon, 24 Feb 2025 21:22:52 -0700 Subject: [PATCH] Revert "css updates" This reverts commit 4080ef4f183c1348e8fa0fe7e17a5da2ce05332b. --- src/styles/base.css | 183 +++++++++++++++++++-------------------- src/styles/utilities.css | 30 +++++++ tailwind.config.js | 7 +- 3 files changed, 123 insertions(+), 97 deletions(-) diff --git a/src/styles/base.css b/src/styles/base.css index 2e045f5..f503d67 100644 --- a/src/styles/base.css +++ b/src/styles/base.css @@ -2,110 +2,101 @@ @tailwind components; @tailwind utilities; -/* Base styles */ -:root { - --background-primary: #1a0b2e; - --background-secondary: #2f1c54; - --accent-primary: #9d4edd; - --accent-neon: #b249f8; - --text-glow: #e0aaff; - --text-primary: #ffffff; - --dark-accent: #240046; - --fox-pink: #ffc6e5; - --fox-pink-glow: #ffadd6; - --fox-orange: #ff9466; - --fox-white: #fff5f9; -} +@layer base { + :root { + --background-primary: #1a0b2e; + --background-secondary: #2f1c54; + --accent-primary: #9d4edd; + --accent-neon: #b249f8; + --text-glow: #e0aaff; + --text-primary: #ffffff; + --dark-accent: #240046; + --fox-pink: #ffc6e5; + --fox-pink-glow: #ffadd6; + --fox-orange: #ff9466; + --fox-white: #fff5f9; + } -/* Utility classes */ -.text-glow { - text-shadow: 0 0 10px var(--text-glow); -} - -.section-spacing > * + * { - margin-top: 3rem; -} - -.card-spacing > * + * { - margin-top: 2rem; -} - -.element-spacing > * + * { - margin-top: 1rem; -} - -/* Component classes */ -.content-wrapper { - max-width: 80rem; - margin-left: auto; - margin-right: auto; - padding: 2rem 1rem; -} - -.nav-link { - display: flex; - align-items: center; - gap: 0.75rem; - padding: 0.5rem 1rem; - border-radius: 0.5rem; - transition: all 0.2s ease; -} - -.nav-link:hover { - background-color: rgba(157, 78, 221, 0.05); - color: var(--accent-neon); -} - -.nav-link.active { - background-color: rgba(157, 78, 221, 0.1); - color: var(--accent-neon); -} - -.fox-card { - position: relative; - border-radius: 0.75rem; - padding: 2rem; - transition: all 0.2s ease; - border: 1px solid rgba(157, 78, 221, 0.1); - background: linear-gradient(135deg, rgba(47, 28, 84, 0.2) 0%, rgba(157, 78, 221, 0.05) 100%); -} - -.fox-card:hover { - border-color: rgba(157, 78, 221, 0.2); - box-shadow: 0 2px 8px rgba(157, 78, 221, 0.05); -} - -.content-grid { - display: grid; - gap: 2rem; - grid-template-columns: repeat(1, minmax(0, 1fr)); -} - -@media (min-width: 768px) { - .content-grid { - grid-template-columns: repeat(2, minmax(0, 1fr)); + body { + background-color: var(--background-primary); + color: var(--text-primary); } } -@media (min-width: 1024px) { - .content-grid { - grid-template-columns: repeat(3, minmax(0, 1fr)); +@layer utilities { + .text-glow { + text-shadow: 0 0 10px var(--text-glow); + } + + .section-spacing > * + * { + margin-top: 1.5rem; + } + + .card-spacing > * + * { + margin-top: 1rem; + } + + .element-spacing > * + * { + margin-top: 0.75rem; } } -/* Additional utilities */ -.bg-gradient-card { - background: linear-gradient(135deg, rgba(47, 28, 84, 0.3) 0%, rgba(157, 78, 221, 0.1) 100%); -} +@layer components { + .content-wrapper { + max-width: 80rem; + margin-left: auto; + margin-right: auto; + padding: 1.5rem 1rem; + } -.border-accent { - border-color: var(--accent-primary); -} + .nav-link { + display: flex; + align-items: center; + gap: 0.75rem; + padding: 0.5rem 1rem; + border-radius: 0.5rem; + transition: all 0.2s ease; + } -.text-accent { - color: var(--accent-primary); -} + .nav-link:hover { + background-color: rgba(157, 78, 221, 0.05); + color: var(--accent-neon); + } -.text-primary { - color: var(--text-primary); + .nav-link.active { + background-color: rgba(157, 78, 221, 0.1); + color: var(--accent-neon); + } + + .fox-card { + position: relative; + border-radius: 0.75rem; + padding: 1.5rem; + transition: all 0.2s ease; + border: 1px solid rgba(157, 78, 221, 0.1); + background: linear-gradient(135deg, rgba(47, 28, 84, 0.2) 0%, rgba(157, 78, 221, 0.05) 100%); + } + + .fox-card:hover { + border-color: rgba(157, 78, 221, 0.2); + box-shadow: 0 2px 8px rgba(157, 78, 221, 0.05); + } + + .content-grid { + display: grid; + gap: 1.5rem; + grid-template-columns: repeat(1, minmax(0, 1fr)); + } + + @media (min-width: 768px) { + .content-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + } + + @media (min-width: 1024px) { + .content-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } + } } \ No newline at end of file diff --git a/src/styles/utilities.css b/src/styles/utilities.css index ab78ad1..3a91ec8 100644 --- a/src/styles/utilities.css +++ b/src/styles/utilities.css @@ -1,4 +1,5 @@ @layer utilities { + /* Animated background */ .animated-bg { position: relative; overflow: hidden; @@ -14,6 +15,7 @@ animation: gradientShift 15s ease infinite; } + /* Fox ear styling */ .fox-ear { position: absolute; width: 30px; @@ -36,6 +38,34 @@ transform: rotate(-45deg); border-radius: 0 0 15px 0; } + + /* Hover effects */ + .hover-glow { + transition: all 0.2s ease; + } + + .hover-glow:hover { + filter: drop-shadow(0 0 4px var(--fox-pink-glow)); + } + + /* Spacing utilities */ + .section-spacing { + margin-top: 2rem; + margin-bottom: 2rem; + } + + .section-spacing > * + * { + margin-top: 1.5rem; + } + + .content-spacing { + margin-top: 1rem; + margin-bottom: 1rem; + } + + .content-spacing > * + * { + margin-top: 1rem; + } } @keyframes gradientShift { diff --git a/tailwind.config.js b/tailwind.config.js index e9e2ba4..d194926 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -21,11 +21,16 @@ export default { }, backgroundImage: { 'gradient-primary': 'linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%)', - 'gradient-card': 'linear-gradient(135deg, rgba(47, 28, 84, 0.2) 0%, rgba(157, 78, 221, 0.05) 100%)', + 'gradient-card': 'linear-gradient(135deg, rgba(47, 28, 84, 0.3) 0%, rgba(157, 78, 221, 0.1) 100%)', + }, + spacing: { + 'ear': '30px', }, opacity: { '5': '0.05', '10': '0.1', + '15': '0.15', + '20': '0.2', }, }, },