Fix SlideEditor CSS specificity conflicts and complete global color system integration

- Increase CSS specificity for layout components in SlideEditor.css to prevent style overrides
- Add .slide-editor parent selector to .layout-preview, .layout-card, .layout-info, .layout-meta, and .layout-rendered
- Replace local color variables with global color system references
- Ensure SlideEditor layout styles are properly applied without conflicts from other stylesheets

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Michael Mainguy 2025-08-21 13:23:16 -05:00
parent 04d9487501
commit e7f8650ff4
3 changed files with 45 additions and 40 deletions

View File

@ -12,5 +12,5 @@
"hasMasterSlide": true
}
},
"generated": "2025-08-21T18:05:29.649Z"
"generated": "2025-08-21T18:19:19.993Z"
}

View File

@ -6,16 +6,16 @@
* Version: 0.1.0
*/
:root {
--theme-primary: #2563eb;
--theme-secondary: #64748b;
--theme-accent: #0ea5e9;
--theme-background: #000000;
--theme-primary: #9563eb;
--theme-secondary: #94748b;
--theme-accent: #eea5e9;
--theme-background: #001112;
--theme-text: #ffffff;
--theme-text-secondary: #64748b;
--theme-text-secondary: #94a4ab;
--theme-font-heading: 'Inter', system-ui, sans-serif;
--theme-font-body: 'Inter', system-ui, sans-serif;
--theme-font-code: 'JetBrains Mono', 'Consolas', monospace;
--theme-font-code: 'Consolas', monospace;
--slide-padding: 5%;
--content-max-width: 90%;

View File

@ -1,30 +1,30 @@
/* =========================
CSS VARIABLES & BASE THEME
CSS VARIABLES & COMPONENT THEME
========================= */
.slide-editor {
/* Color Palette */
--color-bg-primary: #f8fafc;
--color-bg-secondary: #ffffff;
--color-bg-tertiary: #f1f5f9;
--color-bg-accent: #eff6ff;
--color-bg-error: #fef2f2;
/* Use global color system - map local names to global variables */
--color-bg-primary: var(--bg-primary);
--color-bg-secondary: var(--bg-secondary);
--color-bg-tertiary: var(--bg-tertiary);
--color-bg-accent: var(--bg-accent);
--color-bg-error: var(--bg-error);
--color-border-primary: #e2e8f0;
--color-border-secondary: #d1d5db;
--color-border-accent: #3b82f6;
--color-border-hover: #cbd5e1;
--color-border-error: #fecaca;
--color-border-primary: var(--border-primary);
--color-border-secondary: var(--border-secondary);
--color-border-accent: var(--border-accent);
--color-border-hover: var(--border-hover);
--color-border-error: var(--border-error);
--color-text-primary: #1e293b;
--color-text-secondary: #64748b;
--color-text-tertiary: #6b7280;
--color-text-accent: #3b82f6;
--color-text-error: #dc2626;
--color-text-muted: #9ca3af;
--color-text-primary: var(--text-primary);
--color-text-secondary: var(--text-secondary);
--color-text-tertiary: var(--text-tertiary);
--color-text-accent: var(--text-accent);
--color-text-error: var(--text-error);
--color-text-muted: var(--text-muted);
--color-button-primary: #3b82f6;
--color-button-primary-hover: #2563eb;
--color-button-secondary: #f8fafc;
--color-button-primary: var(--btn-primary-bg);
--color-button-primary-hover: var(--btn-primary-bg-hover);
--color-button-secondary: var(--btn-secondary-bg);
/* Spacing */
--space-xs: 0.25rem;
@ -231,7 +231,8 @@
/* =========================
CARD COMPONENTS
========================= */
.layout-card {
/* Layout Card - increase specificity */
.slide-editor .layout-card {
background: var(--color-bg-secondary);
border: 2px solid var(--color-border-primary);
border-radius: var(--radius-xl);
@ -240,17 +241,18 @@
transition: all 0.2s ease;
}
.layout-card:hover {
.slide-editor .layout-card:hover {
border-color: var(--color-border-hover);
box-shadow: var(--shadow-lg);
}
.layout-card.selected {
.slide-editor .layout-card.selected {
border-color: var(--color-border-accent);
box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}
.layout-preview {
/* Layout Preview - increase specificity to prevent overrides */
.slide-editor .layout-preview {
height: 300px;
background: var(--color-bg-primary);
border-bottom: 1px solid var(--color-border-primary);
@ -261,10 +263,11 @@
justify-content: center;
}
.layout-rendered {
/* Layout Rendered Content - increase specificity */
.slide-editor .layout-rendered {
width: 100%;
height: 100%;
transform: scale(0.3);
transform: scale(0.95);
transform-origin: center;
background: var(--color-bg-secondary);
border-radius: var(--radius-lg);
@ -272,18 +275,19 @@
overflow: hidden;
}
.layout-info {
/* Layout Info - increase specificity */
.slide-editor .layout-info {
padding: var(--space-xl);
}
.layout-info h3 {
.slide-editor .layout-info h3 {
margin: 0 0 var(--space-sm) 0;
font-size: 1.125rem;
font-weight: 600;
color: var(--color-text-primary);
}
.layout-info p {
.slide-editor .layout-info p {
margin: 0 0 var(--space-lg) 0;
color: var(--color-text-secondary);
font-size: 0.875rem;
@ -440,7 +444,8 @@
/* =========================
BADGE & METADATA COMPONENTS
========================= */
.layout-meta {
/* Layout Meta - increase specificity */
.slide-editor .layout-meta {
display: flex;
justify-content: space-between;
align-items: center;
@ -588,7 +593,7 @@
left: 50%;
transform: translateX(-50%);
background: rgba(255, 255, 255, 0.9);
color: var(--text-primary);
color: var(--color-text-primary);
padding: var(--space-md) var(--space-xl);
border-radius: var(--radius-lg);
font-size: 0.875rem;
@ -608,7 +613,7 @@
height: 44px;
border-radius: 50%;
font-size: 1.25rem;
color: var(--text-secondary);
color: var(--color-text-secondary);
cursor: pointer;
display: flex;
align-items: center;