mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2026-01-05 20:42:55 +00:00
- Fixed compilation errors in menubar, combobox, and drawer packages - Updated to tailwind-rs-core v0.4.0 and tailwind-rs-wasm v0.4.0 for WASM compatibility - Cleaned up unused variable warnings across packages - Updated release documentation with WASM integration details - Demo working with dynamic color API and Tailwind CSS generation - All 25+ core components ready for crates.io publication Key features: ✅ WASM compatibility (no more tokio/mio dependencies) ✅ Dynamic Tailwind CSS class generation ✅ Type-safe color utilities ✅ Production-ready component library
1487 lines
27 KiB
CSS
1487 lines
27 KiB
CSS
/* CSS Variables for Theme Support */
|
|
:root {
|
|
--card-bg: #ffffff;
|
|
--border-color: #e2e8f0;
|
|
--text-primary: #1e293b;
|
|
--text-secondary: #64748b;
|
|
--accent-color: #3b82f6;
|
|
--accent-bg: #dbeafe;
|
|
--accent-hover: #2563eb;
|
|
--muted-bg: #f8fafc;
|
|
--muted-color: #9ca3af;
|
|
--success-color: #059669;
|
|
--success-bg: #f0fdf4;
|
|
--error-color: #dc2626;
|
|
--error-bg: #fef2f2;
|
|
--error-hover: #b91c1c;
|
|
--warning-color: #d97706;
|
|
--warning-bg: #fef3c7;
|
|
}
|
|
|
|
/* Dark mode support */
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--card-bg: #1e293b;
|
|
--border-color: #334155;
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #94a3b8;
|
|
--accent-color: #60a5fa;
|
|
--accent-bg: #1e3a8a;
|
|
--accent-hover: #3b82f6;
|
|
--muted-bg: #0f172a;
|
|
--muted-color: #64748b;
|
|
--success-color: #10b981;
|
|
--success-bg: #064e3b;
|
|
--error-color: #f87171;
|
|
--error-bg: #7f1d1d;
|
|
--error-hover: #dc2626;
|
|
--warning-color: #fbbf24;
|
|
--warning-bg: #78350f;
|
|
}
|
|
}
|
|
|
|
/* Bundle Optimization & Lazy Loading Styles */
|
|
|
|
.app-container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
}
|
|
|
|
.app-header {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
padding: 30px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.app-header h1 {
|
|
margin: 0 0 10px 0;
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.app-header p {
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.main-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 40px;
|
|
}
|
|
|
|
.optimization-panels {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 30px;
|
|
}
|
|
|
|
.panel {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.panel h3 {
|
|
margin: 0 0 20px 0;
|
|
color: #1f2937;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.component-showcase {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 40px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.showcase-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.showcase-header h2 {
|
|
margin: 0 0 20px 0;
|
|
color: #1f2937;
|
|
font-size: 1.8rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.search-filter-section {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.search-bar {
|
|
position: relative;
|
|
flex: 1;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
padding: 12px 45px 12px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
transition: all 0.2s ease;
|
|
background: white;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
right: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 1.2rem;
|
|
color: #9ca3af;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.filter-controls {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.category-filter {
|
|
padding: 10px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
font-size: 0.95rem;
|
|
background: white;
|
|
color: #374151;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.category-filter:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.favorites-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
background: white;
|
|
color: #6b7280;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.favorites-btn:hover {
|
|
border-color: #fbbf24;
|
|
color: #f59e0b;
|
|
background: #fef3c7;
|
|
}
|
|
|
|
.favorites-btn.active {
|
|
border-color: #fbbf24;
|
|
background: #fef3c7;
|
|
color: #d97706;
|
|
}
|
|
|
|
.theme-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.theme-btn {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.theme-btn:hover {
|
|
background: #2563eb;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.essential-components {
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.essential-components h3 {
|
|
color: #1f2937;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #10b981;
|
|
}
|
|
|
|
.component-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.component-item {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.component-item:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.component-item h4 {
|
|
margin: 0 0 15px 0;
|
|
color: #374151;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.component-btn {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.component-btn:hover {
|
|
background: #2563eb;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.component-input {
|
|
width: 100%;
|
|
padding: 10px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
font-size: 0.95rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.component-input:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.component-label {
|
|
display: block;
|
|
color: #374151;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.component-card {
|
|
background: #f8fafc;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
color: #374151;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.component-separator {
|
|
height: 2px;
|
|
background: linear-gradient(90deg, #e5e7eb, #9ca3af, #e5e7eb);
|
|
border-radius: 1px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.lazy-components {
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.lazy-components h3 {
|
|
color: #1f2937;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #f59e0b;
|
|
}
|
|
|
|
.lazy-description {
|
|
color: #6b7280;
|
|
margin-bottom: 25px;
|
|
font-size: 1.1rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.lazy-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
/* Component Categories */
|
|
.component-categories {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 30px;
|
|
}
|
|
|
|
.category {
|
|
background: #f8fafc;
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.category h4 {
|
|
margin: 0 0 20px 0;
|
|
color: #1e293b;
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
padding-bottom: 12px;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.category:nth-child(1) h4 {
|
|
border-bottom-color: #3b82f6;
|
|
}
|
|
|
|
.category:nth-child(1) h4::before {
|
|
content: "📝";
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.category:nth-child(2) h4 {
|
|
border-bottom-color: #10b981;
|
|
}
|
|
|
|
.category:nth-child(2) h4::before {
|
|
content: "🧭";
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.category:nth-child(3) h4 {
|
|
border-bottom-color: #f59e0b;
|
|
}
|
|
|
|
.category:nth-child(3) h4::before {
|
|
content: "🪟";
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.category:nth-child(4) h4 {
|
|
border-bottom-color: #8b5cf6;
|
|
}
|
|
|
|
.category:nth-child(4) h4::before {
|
|
content: "📊";
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.category .lazy-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
/* Lazy Component Wrapper */
|
|
.lazy-component-wrapper {
|
|
background: white;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.lazy-component-wrapper:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.component-header {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.component-title-section {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.component-title-section h4 {
|
|
margin: 0;
|
|
color: #1e293b;
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.favorite-toggle {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.2rem;
|
|
color: #9ca3af;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.favorite-toggle:hover {
|
|
color: #fbbf24;
|
|
background: #fef3c7;
|
|
}
|
|
|
|
.favorite-toggle.active {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.component-meta {
|
|
display: flex;
|
|
gap: 12px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.component-category {
|
|
background: #3b82f6;
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.component-size {
|
|
background: #10b981;
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Favorite Component Styling */
|
|
.lazy-component-wrapper.favorite {
|
|
border-color: #fbbf24;
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
|
box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
|
|
}
|
|
|
|
.lazy-component-wrapper.favorite:hover {
|
|
box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.lazy-component-wrapper.favorite .component-header h4 {
|
|
color: #d97706;
|
|
}
|
|
|
|
.lazy-component-wrapper.favorite .component-category {
|
|
background: #f59e0b;
|
|
}
|
|
|
|
.lazy-component-wrapper.favorite .component-size {
|
|
background: #d97706;
|
|
}
|
|
|
|
.component-content {
|
|
position: relative;
|
|
min-height: 120px;
|
|
}
|
|
|
|
/* Component Loading State */
|
|
.component-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.loading-content {
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid #e2e8f0;
|
|
border-top: 3px solid #3b82f6;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 15px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.loading-content p {
|
|
margin: 0 0 15px 0;
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 8px;
|
|
background: #e2e8f0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #3b82f6, #1d4ed8);
|
|
transition: width 0.1s ease;
|
|
}
|
|
|
|
.progress-text {
|
|
font-size: 0.9rem;
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Component Success State */
|
|
.component-success {
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.success-icon {
|
|
font-size: 2rem;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.success-text {
|
|
margin: 0 0 15px 0;
|
|
color: #059669;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.component-demo {
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.component-demo span {
|
|
color: #166534;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.component-details {
|
|
text-align: left;
|
|
background: #f8fafc;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.component-description {
|
|
margin: 0 0 12px 0;
|
|
color: #475569;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.component-dependencies {
|
|
font-size: 0.9rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.component-dependencies strong {
|
|
color: #475569;
|
|
}
|
|
|
|
/* Component Placeholder State */
|
|
.component-placeholder {
|
|
padding: 20px;
|
|
}
|
|
|
|
.placeholder-content {
|
|
text-align: center;
|
|
}
|
|
|
|
.placeholder-text {
|
|
margin: 0 0 20px 0;
|
|
color: #64748b;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.component-preview {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
text-align: left;
|
|
}
|
|
|
|
.preview-description {
|
|
margin: 0 0 12px 0;
|
|
color: #475569;
|
|
line-height: 1.5;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.preview-meta {
|
|
display: flex;
|
|
gap: 15px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.preview-size, .preview-category {
|
|
background: #e2e8f0;
|
|
color: #475569;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.load-btn {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.load-btn:hover {
|
|
background: #2563eb;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.load-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Bundle Analysis Display */
|
|
.bundle-analysis-display {
|
|
color: #1f2937;
|
|
}
|
|
|
|
.analysis-summary {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.summary-item {
|
|
background: #f8fafc;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.summary-item strong {
|
|
color: #475569;
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.bundle-metrics {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.metric-item {
|
|
background: #f8fafc;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.metric-item strong {
|
|
color: #475569;
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.metric-value {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.metric-value.savings {
|
|
color: #059669;
|
|
}
|
|
|
|
.details-btn {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.details-btn:hover {
|
|
background: #2563eb;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.analysis-details {
|
|
background: #f8fafc;
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.analysis-details h4 {
|
|
margin: 0 0 20px 0;
|
|
color: #1e293b;
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.component-categories {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 25px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.category h5 {
|
|
margin: 0 0 15px 0;
|
|
color: #374151;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
padding-bottom: 8px;
|
|
border-bottom: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.category.essential h5 {
|
|
border-bottom-color: #10b981;
|
|
}
|
|
|
|
.category.lazy h5 {
|
|
border-bottom-color: #f59e0b;
|
|
}
|
|
|
|
.component-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.component-item {
|
|
background: white;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 6px;
|
|
padding: 8px 12px;
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
color: #374151;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.component-item:hover {
|
|
border-color: #9ca3af;
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.optimization-tips {
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.optimization-tips h5 {
|
|
margin: 0 0 15px 0;
|
|
color: #166534;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.optimization-tips ul {
|
|
margin: 0;
|
|
padding-left: 20px;
|
|
color: #166534;
|
|
}
|
|
|
|
.optimization-tips li {
|
|
margin-bottom: 8px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Bundle Status Display */
|
|
.bundle-status-display {
|
|
color: #1f2937;
|
|
}
|
|
|
|
.bundles-btn {
|
|
background: #10b981;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.bundles-btn:hover {
|
|
background: #059669;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.bundle-list {
|
|
background: #f8fafc;
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.bundle-list h4 {
|
|
margin: 0 0 20px 0;
|
|
color: #1e293b;
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bundle-progress {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.bundle-progress h5 {
|
|
margin: 0 0 10px 0;
|
|
color: #374151;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.progress-container {
|
|
width: 100%;
|
|
height: 12px;
|
|
background: #e5e7eb;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #10b981, #059669);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.bundle-stats {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.bundle-stat {
|
|
background: white;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e2e8f0;
|
|
text-align: center;
|
|
}
|
|
|
|
.bundle-stat strong {
|
|
display: block;
|
|
color: #475569;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.bundle-stat .stat-value {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.hidden-placeholder {
|
|
display: none;
|
|
}
|
|
|
|
.placeholder-content {
|
|
display: none;
|
|
}
|
|
|
|
/* Dynamic Components Section */
|
|
.dynamic-components {
|
|
margin-top: 3rem;
|
|
padding: 2rem;
|
|
background: var(--card-bg);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.dynamic-description {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.dynamic-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* Dynamic Component Wrapper */
|
|
.dynamic-component-wrapper {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dynamic-component-wrapper:hover {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-header h4 {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-meta {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-category {
|
|
background: var(--accent-bg);
|
|
color: var(--accent-color);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-size {
|
|
background: var(--muted-bg);
|
|
color: var(--text-secondary);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Dynamic Component Content States */
|
|
.dynamic-component-wrapper .component-content {
|
|
min-height: 120px;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-placeholder {
|
|
text-align: center;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .placeholder-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .placeholder-text {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-preview {
|
|
background: var(--muted-bg);
|
|
padding: 1rem;
|
|
border-radius: 6px;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.dynamic-component-wrapper .preview-description {
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
margin: 0 0 0.5rem 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .preview-meta {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.dynamic-component-wrapper .load-component-btn {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.dynamic-component-wrapper .load-component-btn:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-success {
|
|
text-align: center;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .success-icon {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .success-text {
|
|
color: var(--success-color);
|
|
font-weight: 500;
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-demo {
|
|
background: var(--success-bg);
|
|
color: var(--success-color);
|
|
padding: 0.75rem;
|
|
border-radius: 6px;
|
|
margin: 1rem 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-details {
|
|
text-align: left;
|
|
background: var(--muted-bg);
|
|
padding: 1rem;
|
|
border-radius: 6px;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-description {
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
margin: 0 0 0.75rem 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-status {
|
|
color: var(--text-secondary);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .component-error {
|
|
text-align: center;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .error-icon {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .error-text {
|
|
color: var(--error-color);
|
|
font-weight: 500;
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
.dynamic-component-wrapper .error-details {
|
|
background: var(--error-bg);
|
|
color: var(--error-color);
|
|
padding: 1rem;
|
|
border-radius: 6px;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.dynamic-component-wrapper .retry-btn {
|
|
background: var(--error-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
margin-top: 0.5rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.dynamic-component-wrapper .retry-btn:hover {
|
|
background: var(--error-hover);
|
|
}
|
|
|
|
/* Dynamic Loader Display */
|
|
.dynamic-loader-display {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.loader-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.loader-header h3 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.toggle-btn {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.loader-status {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.status-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.status-value {
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-value.loading {
|
|
color: var(--accent-color);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.loader-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.load-btn {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.load-btn:hover:not(:disabled) {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.load-btn:disabled {
|
|
background: var(--muted-color);
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.error-display {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
background: var(--error-bg);
|
|
color: var(--error-color);
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.clear-error-btn {
|
|
background: var(--error-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.clear-error-btn:hover {
|
|
background: var(--error-hover);
|
|
}
|
|
|
|
.loader-details {
|
|
background: var(--muted-bg);
|
|
border-radius: 6px;
|
|
padding: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.loader-details h4 {
|
|
margin: 0 0 1rem 0;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.details-content p {
|
|
color: var(--text-primary);
|
|
margin: 0 0 1rem 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.details-content ul {
|
|
color: var(--text-primary);
|
|
margin: 0 0 1rem 0;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.details-content li {
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.implementation-note {
|
|
background: var(--warning-bg);
|
|
color: var(--warning-color);
|
|
padding: 1rem;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
border-left: 4px solid var(--warning-color);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 1200px) {
|
|
.optimization-panels {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.app-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.app-header {
|
|
padding: 20px;
|
|
}
|
|
|
|
.app-header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.component-showcase {
|
|
padding: 25px;
|
|
}
|
|
|
|
.showcase-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header-controls {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 15px;
|
|
}
|
|
|
|
.search-filter-section {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.search-bar {
|
|
max-width: none;
|
|
}
|
|
|
|
.filter-controls {
|
|
justify-content: center;
|
|
}
|
|
|
|
.filter-controls {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.category-filter,
|
|
.favorites-btn {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.component-categories {
|
|
gap: 20px;
|
|
}
|
|
|
|
.category {
|
|
padding: 20px;
|
|
}
|
|
|
|
.category .lazy-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.lazy-component-wrapper {
|
|
padding: 15px;
|
|
}
|
|
|
|
.component-meta {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.preview-meta {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.component-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.bundle-metrics,
|
|
.bundle-stats {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.dynamic-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.dynamic-component-wrapper {
|
|
padding: 15px;
|
|
}
|
|
|
|
.loader-status {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.loader-actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.load-btn {
|
|
width: 100%;
|
|
}
|
|
}
|