From 018bfc8d9e2fb7f89cb49fd893e906f745724e00 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Thu, 21 Aug 2025 15:15:43 -0500 Subject: [PATCH] Consolidate App.css and complete CSS architecture refactoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move app-root, app-main, app-header base layout to application.css - Move selected-theme classes to CreationActions.css where they're used - Update AppHeader to use utility classes from application.css - Clean up App.css to only contain essential imports - Add responsive design utilities to application.css - Reduce CSS duplication across components 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/App.css | 164 +----------------- src/components/AppHeader.tsx | 8 +- .../presentations/CreationActions.css | 46 ++++- .../presentations/CreationActions.tsx | 2 +- src/styles/application.css | 77 +++++++- 5 files changed, 127 insertions(+), 170 deletions(-) diff --git a/src/App.css b/src/App.css index 02fd906..6882255 100644 --- a/src/App.css +++ b/src/App.css @@ -1,165 +1,7 @@ /* Import aspect ratio system for theme engine */ @import './styles/aspectRatios.css'; -/* App Layout */ -.app-root { - width: 100%; - margin: 0; - padding: 0; - text-align: left; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; - min-height: 100vh; -} +/* Import application-wide styles */ +@import './styles/application.css'; -.app-header { - border-bottom: 1px solid var(--border-primary); - background: var(--bg-secondary); - width: 100%; - box-sizing: border-box; -} - -.app-nav { - display: flex; - justify-content: space-between; - align-items: center; - padding: 1rem 2rem; - border-bottom: 1px solid var(--border-primary); -} - -.app-logo { - font-size: 1.25rem; - font-weight: 700; - color: var(--text-primary); - text-decoration: none; - transition: color 0.2s ease; -} - -.app-logo:hover { - color: var(--text-accent); -} - -.nav-actions { - display: flex; - align-items: center; - gap: 1rem; -} - -.nav-button { - padding: 0.5rem 1rem; - border-radius: 0.375rem; - font-weight: 500; - font-size: 0.875rem; - text-decoration: none; - transition: all 0.2s ease; - border: none; - cursor: pointer; -} - -.nav-button.primary { - background: var(--btn-primary-bg); - color: var(--btn-primary-text); -} - -.nav-button.primary:hover { - background: var(--btn-primary-bg-hover); -} - -.nav-link { - color: var(--text-secondary); - text-decoration: none; - font-weight: 500; - font-size: 0.875rem; - transition: color 0.2s ease; -} - -.nav-link:hover { - color: var(--text-primary); -} - -.page-title-section { - padding: 2rem; - text-align: center; -} - -.app-header h1 { - margin: 0; - color: var(--text-primary); - font-size: 2rem; - font-weight: 600; -} - -.app-header p { - margin: 0.5rem 0 0 0; - color: var(--text-tertiary); - font-size: 1rem; -} - -.app-main { - padding: 2rem; - max-width: 1400px; - margin: 0 auto; - width: 100%; - box-sizing: border-box; -} - -.selected-theme-section { - margin-top: 2rem; - padding: 1.5rem; - border: 1px solid var(--border-secondary); - border-radius: 0.5rem; - background: var(--bg-muted); -} - -.selected-theme-title { - margin: 0 0 1rem 0; - color: var(--text-primary); - font-size: 1.25rem; - font-weight: 600; -} - -.selected-theme-grid { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 1rem; - font-size: 0.875rem; -} - -.selected-theme-item { - color: var(--text-secondary); -} - -.selected-theme-item strong { - color: var(--text-primary); - font-weight: 600; -} - -/* Responsive Design */ -@media (max-width: 768px) { - .app-main { - padding: 1rem; - } - - .selected-theme-grid { - grid-template-columns: 1fr; - gap: 0.75rem; - } - - .app-nav { - padding: 1rem; - flex-direction: column; - gap: 1rem; - align-items: stretch; - } - - .nav-actions { - justify-content: center; - } - - .page-title-section { - padding: 1.5rem 1rem; - } - - .app-header h1 { - font-size: 1.5rem; - } -} +/* App.tsx specific styles can go here if needed */ \ No newline at end of file diff --git a/src/components/AppHeader.tsx b/src/components/AppHeader.tsx index be05d94..fa80f71 100644 --- a/src/components/AppHeader.tsx +++ b/src/components/AppHeader.tsx @@ -4,15 +4,15 @@ import { Link } from 'react-router-dom'; export const AppHeader: React.FC = () => { return (
-