slideshare/src/components/themes/ThemeDetailPage.css
Michael Mainguy 6e6c09b5ba Add comprehensive theme routing and browsing system
- Add React Router with theme browser, theme detail, and layout detail pages
- Implement manifest-based theme discovery for better performance
- Add Welcome component as home page with feature overview
- Fix layout and styling issues with proper CSS centering
- Implement introspective theme browsing (dynamically discover colors/variables)
- Add layout preview system with iframe scaling
- Create comprehensive theme detail page with color palette display
- Fix TypeScript errors and build issues
- Remove hardcoded theme assumptions in favor of dynamic discovery

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-20 10:17:55 -05:00

314 lines
5.0 KiB
CSS

.theme-detail-page {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}
.theme-detail-header {
margin-bottom: 2rem;
}
.back-link {
display: inline-block;
margin-bottom: 1rem;
color: #3b82f6;
text-decoration: none;
font-size: 0.9rem;
}
.back-link:hover {
text-decoration: underline;
}
.theme-info h1 {
margin: 0 0 0.5rem 0;
font-size: 2rem;
color: #1f2937;
}
.theme-info p {
margin: 0 0 1rem 0;
color: #6b7280;
font-size: 1.1rem;
}
.theme-meta {
display: flex;
gap: 1rem;
}
.theme-author,
.theme-version {
font-size: 0.875rem;
padding: 0.25rem 0.75rem;
border-radius: 0.5rem;
}
.theme-author {
background: #f3f4f6;
color: #374151;
}
.theme-version {
background: #dbeafe;
color: #1e40af;
}
/* Color Palette Section */
.theme-colors {
margin-bottom: 3rem;
}
.theme-colors h2 {
margin: 0 0 1.5rem 0;
font-size: 1.5rem;
color: #1f2937;
}
.color-palette-large {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
}
.color-swatch-large {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
background: white;
}
.color-preview {
width: 3rem;
height: 3rem;
border-radius: 0.5rem;
border: 1px solid rgba(0, 0, 0, 0.1);
flex-shrink: 0;
}
.color-details {
flex: 1;
min-width: 0;
}
.color-name {
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
font-size: 0.875rem;
font-weight: 600;
color: #7c3aed;
margin-bottom: 0.25rem;
}
.color-value {
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
font-size: 0.75rem;
color: #6b7280;
word-break: break-all;
}
/* Layouts Section */
.theme-layouts {
margin-bottom: 3rem;
}
.theme-layouts h2 {
margin: 0 0 1.5rem 0;
font-size: 1.5rem;
color: #1f2937;
}
.layouts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 1.5rem;
}
.layout-card {
border: 1px solid #e5e7eb;
border-radius: 0.75rem;
overflow: hidden;
background: white;
transition: all 0.2s ease;
}
.layout-card:hover {
border-color: #3b82f6;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.layout-header {
padding: 1rem;
border-bottom: 1px solid #e5e7eb;
background: #f9fafb;
display: flex;
justify-content: space-between;
align-items: center;
}
.layout-name {
margin: 0;
font-size: 1rem;
font-weight: 600;
color: #1f2937;
}
.layout-slots {
font-size: 0.75rem;
color: #6b7280;
background: #e5e7eb;
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
}
.layout-detail-link {
color: #3b82f6;
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
}
.layout-detail-link:hover {
text-decoration: underline;
}
.layout-preview-container {
height: 200px;
}
/* Variables Section */
.theme-variables {
margin-bottom: 3rem;
}
.theme-variables h2 {
margin: 0 0 1.5rem 0;
font-size: 1.5rem;
color: #1f2937;
}
.variables-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 0.5rem;
}
.variable-card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem;
border: 1px solid #e5e7eb;
border-radius: 0.25rem;
background: white;
font-size: 0.875rem;
}
.variable-name {
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
color: #7c3aed;
background: #f5f3ff;
padding: 0.125rem 0.25rem;
border-radius: 0.125rem;
font-size: 0.75rem;
}
.variable-value {
color: #374151;
font-weight: 500;
word-break: break-all;
margin-left: 1rem;
}
/* Technical Details Section */
.theme-technical {
margin-bottom: 2rem;
}
.theme-technical h2 {
margin: 0 0 1rem 0;
font-size: 1.5rem;
color: #1f2937;
}
.tech-details {
display: grid;
gap: 0.5rem;
}
.tech-item {
display: flex;
align-items: center;
padding: 0.75rem;
border: 1px solid #e5e7eb;
border-radius: 0.25rem;
background: white;
font-size: 0.875rem;
}
.tech-item strong {
color: #374151;
margin-right: 0.5rem;
min-width: 100px;
}
.tech-item code {
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
background: #f1f5f9;
padding: 0.125rem 0.25rem;
border-radius: 0.125rem;
color: #475569;
}
/* Error States */
.error-message,
.not-found {
text-align: center;
padding: 2rem;
}
.error-message h2,
.not-found h2 {
color: #ef4444;
margin-bottom: 1rem;
}
.loading-spinner {
text-align: center;
padding: 2rem;
color: #6b7280;
}
/* Responsive */
@media (max-width: 768px) {
.theme-detail-page {
padding: 1rem;
}
.color-palette-large {
grid-template-columns: 1fr;
}
.layouts-grid {
grid-template-columns: 1fr;
}
.variables-grid {
grid-template-columns: 1fr;
}
.color-swatch-large {
flex-direction: column;
text-align: center;
}
.variable-card,
.tech-item {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
}