slideshare/src/components/presentations/shared/SlideThumbnail.css
Michael Mainguy 04d9487501 Implement global color system and optimize CSS architecture
- Create comprehensive global color system with semantic variables in src/styles/colors.css
- Replace all hardcoded colors across components with CSS custom properties
- Establish semantic color mappings for consistent theming (--text-primary, --bg-secondary, etc.)
- Add complete color scales for gray, slate, blue, red, green, yellow, purple, pink
- Include dark mode color overrides for automatic theme switching
- Update PresentationEditor.css to use global color variables throughout
- Consolidate SlideThumbnail.css styles and optimize using CSS cascades
- Move SlideThumbnail-specific styles from PresentationEditor.css to component file
- Update all UI button components (Button, ActionButton, BackButton) to use color variables
- Modernize Modal, AlertDialog, and ConfirmDialog components with global colors
- Optimize App.css, index.css, and PresentationsList.css color usage
- Reduce CSS bundle size through consolidation and elimination of duplicate styles

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-21 13:06:34 -05:00

117 lines
2.4 KiB
CSS

/* Slide Thumbnail Component */
.slide-thumbnail {
display: flex;
flex-direction: column;
border: 2px solid var(--border-primary);
border-radius: 0.5rem;
cursor: pointer;
transition: all 0.2s ease;
background: var(--bg-secondary);
overflow: hidden;
position: relative;
}
/* Interactive States - shared box-shadow */
.slide-thumbnail:hover,
.slide-thumbnail.active {
border-color: var(--border-accent);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.slide-thumbnail.active {
background: var(--bg-accent);
}
/* Thumbnail Number Badge */
.thumbnail-number {
position: absolute;
top: 0.5rem;
left: 0.5rem;
background: var(--color-gray-700);
color: var(--color-white);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
z-index: 10;
}
.slide-thumbnail.active .thumbnail-number {
background: var(--color-blue-500);
}
/* Preview Area */
.thumbnail-preview {
padding: 2rem 1rem 1rem;
min-height: 80px;
background: var(--bg-muted);
display: flex;
align-items: center;
justify-content: center;
}
.thumbnail-content {
text-align: center;
}
/* Content Labels - shared text styling */
.thumbnail-content span {
display: block;
font-size: 0.75rem;
}
.layout-name {
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 0.25rem;
}
.content-count {
font-size: 0.625rem; /* Override smaller size */
color: var(--text-tertiary);
}
/* Action Bar */
.thumbnail-actions {
display: flex;
justify-content: center;
gap: 0.25rem;
padding: 0.5rem;
background: var(--bg-secondary);
border-top: 1px solid var(--border-primary);
}
/* Action Buttons - consolidated common properties */
.thumbnail-action {
background: none;
border: none;
padding: 0.25rem;
border-radius: 0.25rem;
cursor: pointer;
font-size: 0.875rem;
transition: background-color 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
}
/* Button States - cascading hover effects */
.thumbnail-action:hover:not(:disabled) {
background: var(--bg-hover);
}
.thumbnail-action:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Specific Action Types - override general hover */
.thumbnail-action.edit:hover:not(:disabled) {
background: var(--color-blue-100);
}
.thumbnail-action.delete:hover:not(:disabled) {
background: var(--color-red-100);
}