- 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>
430 lines
6.9 KiB
CSS
430 lines
6.9 KiB
CSS
.presentations-list {
|
|
min-height: 100vh;
|
|
background: var(--bg-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Header */
|
|
.list-header {
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-primary);
|
|
padding: 2rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.header-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.header-content h1 {
|
|
margin: 0;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.header-content p {
|
|
margin: 0.5rem 0 0 0;
|
|
color: var(--text-secondary);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.action-button.primary {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.action-button.primary:hover {
|
|
background: #2563eb;
|
|
}
|
|
|
|
.action-button.secondary {
|
|
background: #f8fafc;
|
|
color: #64748b;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.action-button.secondary:hover {
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
}
|
|
|
|
.action-button.large {
|
|
padding: 1rem 2rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Main Content */
|
|
.list-content {
|
|
flex: 1;
|
|
padding: 2rem;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 400px;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-content h2 {
|
|
margin: 0 0 0.5rem 0;
|
|
color: var(--text-secondary);
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.empty-content p {
|
|
margin: 0 0 2rem 0;
|
|
color: var(--text-tertiary);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Presentations Grid */
|
|
.presentations-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.presentation-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 0.75rem;
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.presentation-card:hover {
|
|
border-color: var(--border-hover);
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Card Header */
|
|
.card-header {
|
|
padding: 1.5rem 1.5rem 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.presentation-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.presentation-name {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.presentation-description {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.presentation-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.action-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 1px solid var(--border-primary);
|
|
background: var(--bg-secondary);
|
|
border-radius: 0.375rem;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.action-icon:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.action-icon.delete:hover:not(:disabled) {
|
|
background: var(--bg-error);
|
|
border-color: var(--border-error);
|
|
}
|
|
|
|
.action-icon:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Card Content */
|
|
.card-content {
|
|
padding: 0 1.5rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.presentation-stats {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.theme-name {
|
|
background: var(--color-blue-100);
|
|
color: var(--color-blue-800);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
font-size: 0.75rem;
|
|
display: inline-block;
|
|
}
|
|
|
|
.slides-count {
|
|
color: var(--color-emerald-600);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.presentation-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
padding: 1rem 0;
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.meta-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.meta-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.meta-value {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Card Footer */
|
|
.card-footer {
|
|
padding: 1rem 1.5rem;
|
|
border-top: 1px solid var(--border-primary);
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.card-action {
|
|
flex: 1;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 0.375rem;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-align: center;
|
|
}
|
|
|
|
.card-action.primary {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.card-action.primary:hover {
|
|
background: #2563eb;
|
|
}
|
|
|
|
.card-action.secondary {
|
|
background: #f8fafc;
|
|
color: #64748b;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.card-action.secondary:hover {
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
}
|
|
|
|
/* List Footer */
|
|
.list-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 2rem 0;
|
|
border-top: 1px solid var(--border-primary);
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.summary-stats p {
|
|
margin: 0;
|
|
color: var(--text-tertiary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.footer-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Loading and Error States */
|
|
.loading-content,
|
|
.error-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 50vh;
|
|
text-align: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.loading-spinner {
|
|
color: var(--text-secondary);
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.error-content h2 {
|
|
color: var(--text-error);
|
|
margin: 0;
|
|
}
|
|
|
|
.error-content p {
|
|
color: var(--text-secondary);
|
|
margin: 0.5rem 0 1.5rem 0;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.list-header {
|
|
padding: 1rem;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.header-actions {
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.action-button {
|
|
flex: 1;
|
|
}
|
|
|
|
.list-content {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.presentations-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 1rem 1rem 0.5rem;
|
|
}
|
|
|
|
.presentation-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.presentation-stats {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.list-footer {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer-actions {
|
|
justify-content: stretch;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.presentations-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.card-footer {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.card-action {
|
|
padding: 0.75rem;
|
|
}
|
|
} |