fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled
Some checks failed
Deploy Application / deploy (push) Has been cancelled
This commit is contained in:
@@ -28,16 +28,16 @@
|
||||
--admin-container-wide: 1400px;
|
||||
|
||||
/* Sidebar Widths per Breakpoint */
|
||||
--admin-sidebar-width-mobile: 100%;
|
||||
--admin-sidebar-width-tablet: 250px;
|
||||
--admin-sidebar-width-desktop: 250px;
|
||||
--admin-sidebar-width-wide: 280px;
|
||||
--sidebar-width-mobile: 100%;
|
||||
--sidebar-width-tablet: 250px;
|
||||
--sidebar-width-desktop: 250px;
|
||||
--sidebar-width-wide: 280px;
|
||||
|
||||
/* Header Heights per Breakpoint */
|
||||
--admin-header-height-mobile: 3.5rem;
|
||||
--admin-header-height-tablet: 4rem;
|
||||
--admin-header-height-desktop: 4rem;
|
||||
--admin-header-height-wide: 4.5rem;
|
||||
--header-height-mobile: 2.5rem;
|
||||
--header-height-tablet: 3rem;
|
||||
--header-height-desktop: 3rem;
|
||||
--header-height-wide: 3.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,16 +4,123 @@
|
||||
* This file is automatically generated from AdminTokenRegistry.
|
||||
* To modify tokens, edit: src/Application/Admin/ValueObjects/AdminTokenRegistry.php
|
||||
*
|
||||
* Generated: 2025-11-07 (Placeholder - run 'php console.php design:generate-tokens --scope=admin' to regenerate)
|
||||
* Generated: 2025-11-21 13:01:06
|
||||
* Source: AdminTokenRegistry
|
||||
* Scope: admin
|
||||
* Architecture: ITCSS
|
||||
*
|
||||
* NOTE: This is a placeholder file. Run the following command to generate the actual tokens:
|
||||
* php console.php design:generate-tokens --scope=admin
|
||||
*/
|
||||
|
||||
@layer admin-settings {
|
||||
/* Placeholder - tokens will be generated by design:generate-tokens command */
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg-primary: oklch(98% 0.01 280); /* Color: bg-primary */
|
||||
--bg-secondary: oklch(95% 0.01 280); /* Color: bg-secondary */
|
||||
--bg-tertiary: oklch(92% 0.01 280); /* Color: bg-tertiary */
|
||||
--sidebar-bg: oklch(25% 0.02 280); /* Color: sidebar-bg */
|
||||
--sidebar-text: oklch(90% 0.01 280); /* Color: sidebar-text */
|
||||
--sidebar-text-hover: oklch(100% 0 0); /* Color: sidebar-text-hover */
|
||||
--sidebar-active: oklch(45% 0.15 280); /* Color: sidebar-active */
|
||||
--sidebar-border: oklch(30% 0.02 280); /* Color: sidebar-border */
|
||||
--header-bg: oklch(100% 0 0); /* Color: header-bg */
|
||||
--header-border: oklch(85% 0.01 280); /* Color: header-border */
|
||||
--header-text: oklch(20% 0.02 280); /* Color: header-text */
|
||||
--content-bg: oklch(100% 0 0); /* Color: content-bg */
|
||||
--content-text: oklch(20% 0.02 280); /* Color: content-text */
|
||||
--link-color: oklch(55% 0.2 260); /* Color: link-color */
|
||||
--link-hover: oklch(45% 0.25 260); /* Color: link-hover */
|
||||
--link-active: oklch(35% 0.3 260); /* Color: link-active */
|
||||
--accent-primary: oklch(60% 0.2 280); /* Color: accent-primary */
|
||||
--accent-success: oklch(65% 0.2 145); /* Color: accent-success */
|
||||
--accent-warning: oklch(70% 0.2 85); /* Color: accent-warning */
|
||||
--accent-error: oklch(60% 0.25 25); /* Color: accent-error */
|
||||
--accent-info: oklch(65% 0.2 240); /* Color: accent-info */
|
||||
--border-light: oklch(90% 0.01 280); /* Color: border-light */
|
||||
--border-medium: oklch(80% 0.02 280); /* Color: border-medium */
|
||||
--border-dark: oklch(70% 0.02 280); /* Color: border-dark */
|
||||
--focus-ring: oklch(55% 0.2 260); /* Color: focus-ring */
|
||||
--hover-overlay: oklch(0% 0 0 / 0.05); /* Color: hover-overlay */
|
||||
--spacing-xs: 0.25rem; /* Extra small spacing */
|
||||
--spacing-sm: 0.5rem; /* Small spacing */
|
||||
--spacing-md: 1rem; /* Medium spacing */
|
||||
--spacing-lg: 1.5rem; /* Large spacing */
|
||||
--spacing-xl: 2rem; /* Extra large spacing */
|
||||
--spacing-2xl: 3rem; /* Double extra large spacing */
|
||||
--spacing-sidebar: 250px; /* Sidebar width */
|
||||
--spacing-sidebar-wide: 280px; /* Sidebar width on wide screens */
|
||||
--spacing-header: 4rem; /* Header height */
|
||||
--spacing-content-padding: 2rem; /* Content padding */
|
||||
--spacing-content-max-width: 1400px; /* Content maximum width */
|
||||
--font-size-xs: 0.75rem; /* Extra small font size */
|
||||
--font-size-sm: 0.875rem; /* Small font size */
|
||||
--font-size-base: 1rem; /* Base font size */
|
||||
--font-size-lg: 1.125rem; /* Large font size */
|
||||
--font-size-xl: 1.25rem; /* Extra large font size */
|
||||
--font-size-2xl: 1.5rem; /* Double extra large font size */
|
||||
--font-size-3xl: 1.875rem; /* Triple extra large font size */
|
||||
--radius-sm: 0.25rem; /* Small border radius */
|
||||
--radius-md: 0.375rem; /* Medium border radius */
|
||||
--radius-lg: 0.5rem; /* Large border radius */
|
||||
--radius-xl: 0.75rem; /* Extra large border radius */
|
||||
--radius-full: 9999px; /* Full border radius (pill shape) */
|
||||
--transition-fast: 0.15s ease; /* Fast transition */
|
||||
--transition-base: 0.2s ease; /* Base transition */
|
||||
--transition-slow: 0.3s ease; /* Slow transition */
|
||||
--shadow-sm: 0 1px 2px 0 oklch(0% 0 0 / 0.05); /* Small shadow */
|
||||
--shadow-md: 0 4px 6px -1px oklch(0% 0 0 / 0.1), 0 2px 4px -1px oklch(0% 0 0 / 0.06); /* Medium shadow */
|
||||
--shadow-lg: 0 10px 15px -3px oklch(0% 0 0 / 0.1), 0 4px 6px -2px oklch(0% 0 0 / 0.05); /* Large shadow */
|
||||
--shadow-xl: 0 20px 25px -5px oklch(0% 0 0 / 0.1), 0 10px 10px -5px oklch(0% 0 0 / 0.04); /* Extra large shadow */
|
||||
--icon-size-sm: 16px; /* Small icon size */
|
||||
--icon-size-md: 18px; /* Medium icon size */
|
||||
--icon-size-lg: 24px; /* Large icon size */
|
||||
--z-base: 1; /* Base z-index */
|
||||
--z-header: 90; /* Header z-index */
|
||||
--z-sidebar: 100; /* Sidebar z-index */
|
||||
--z-dropdown: 110; /* Dropdown z-index */
|
||||
--z-overlay: 120; /* Overlay z-index */
|
||||
--z-modal: 130; /* Modal z-index */
|
||||
--z-tooltip: 140; /* Tooltip z-index */
|
||||
--z-toast: 150; /* Toast z-index */
|
||||
--line-height-tight: 1.25; /* Tight line height */
|
||||
--line-height-normal: 1.5; /* Normal line height */
|
||||
--line-height-relaxed: 1.75; /* Relaxed line height */
|
||||
--container-mobile: 100px; /* Mobile container width (100%) */
|
||||
--container-tablet: 720px; /* Tablet container width */
|
||||
--container-desktop: 960px; /* Desktop container width */
|
||||
--container-wide: 1400px; /* Wide container width */
|
||||
--breakpoint-tablet: 768px; /* Tablet breakpoint */
|
||||
--breakpoint-desktop: 1024px; /* Desktop breakpoint */
|
||||
--breakpoint-wide: 1440px; /* Wide breakpoint */
|
||||
}
|
||||
@media (dynamic-range: high) {
|
||||
}
|
||||
@supports (color: color(display-p3 1 0 0)) {
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg-primary: oklch(20% 0.02 280); /* Dark mode variant */
|
||||
--bg-secondary: oklch(23% 0.02 280); /* Dark mode variant */
|
||||
--bg-tertiary: oklch(26% 0.02 280); /* Dark mode variant */
|
||||
--sidebar-bg: oklch(15% 0.02 280); /* Dark mode variant */
|
||||
--sidebar-text: oklch(75% 0.02 280); /* Dark mode variant */
|
||||
--sidebar-text-hover: oklch(95% 0.01 280); /* Dark mode variant */
|
||||
--sidebar-active: oklch(35% 0.2 280); /* Dark mode variant */
|
||||
--sidebar-border: oklch(25% 0.02 280); /* Dark mode variant */
|
||||
--header-bg: oklch(18% 0.02 280); /* Dark mode variant */
|
||||
--header-border: oklch(30% 0.02 280); /* Dark mode variant */
|
||||
--header-text: oklch(90% 0.01 280); /* Dark mode variant */
|
||||
--content-bg: oklch(20% 0.02 280); /* Dark mode variant */
|
||||
--content-text: oklch(90% 0.01 280); /* Dark mode variant */
|
||||
--link-color: oklch(70% 0.2 260); /* Dark mode variant */
|
||||
--link-hover: oklch(80% 0.22 260); /* Dark mode variant */
|
||||
--link-active: oklch(85% 0.25 260); /* Dark mode variant */
|
||||
--accent-primary: oklch(65% 0.22 280); /* Dark mode variant */
|
||||
--accent-success: oklch(70% 0.22 145); /* Dark mode variant */
|
||||
--accent-warning: oklch(75% 0.22 85); /* Dark mode variant */
|
||||
--accent-error: oklch(65% 0.27 25); /* Dark mode variant */
|
||||
--accent-info: oklch(70% 0.22 240); /* Dark mode variant */
|
||||
--border-light: oklch(30% 0.02 280); /* Dark mode variant */
|
||||
--border-medium: oklch(35% 0.02 280); /* Dark mode variant */
|
||||
--border-dark: oklch(40% 0.02 280); /* Dark mode variant */
|
||||
--focus-ring: oklch(70% 0.2 260); /* Dark mode variant */
|
||||
--hover-overlay: oklch(100% 0 0 / 0.05); /* Dark mode variant */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,77 +10,77 @@
|
||||
/* Color Tokens - OKLCH (Perceptual Color Space) */
|
||||
|
||||
/* Primary Background Colors */
|
||||
--admin-bg-primary: oklch(98% 0.01 280);
|
||||
--admin-bg-secondary: oklch(95% 0.01 280);
|
||||
--admin-bg-tertiary: oklch(92% 0.01 280);
|
||||
--bg-primary: oklch(98% 0.01 280);
|
||||
--bg-secondary: oklch(95% 0.01 280);
|
||||
--bg-tertiary: oklch(92% 0.01 280);
|
||||
|
||||
/* Sidebar Colors */
|
||||
--admin-sidebar-bg: oklch(25% 0.02 280);
|
||||
--admin-sidebar-text: oklch(90% 0.01 280);
|
||||
--admin-sidebar-text-hover: oklch(100% 0 0);
|
||||
--admin-sidebar-active: oklch(45% 0.15 280);
|
||||
--admin-sidebar-border: oklch(30% 0.02 280);
|
||||
--sidebar-bg: oklch(25% 0.02 280);
|
||||
--sidebar-text: oklch(90% 0.01 280);
|
||||
--sidebar-text-hover: oklch(100% 0 0);
|
||||
--sidebar-active: oklch(45% 0.15 280);
|
||||
--sidebar-border: oklch(30% 0.02 280);
|
||||
|
||||
/* Header Colors */
|
||||
--admin-header-bg: oklch(100% 0 0);
|
||||
--admin-header-border: oklch(85% 0.01 280);
|
||||
--admin-header-text: oklch(20% 0.02 280);
|
||||
--header-bg: oklch(100% 0 0);
|
||||
--header-border: oklch(85% 0.01 280);
|
||||
--header-text: oklch(20% 0.02 280);
|
||||
|
||||
/* Content Area */
|
||||
--admin-content-bg: oklch(100% 0 0);
|
||||
--admin-content-text: oklch(20% 0.02 280);
|
||||
--content-bg: oklch(100% 0 0);
|
||||
--content-text: oklch(20% 0.02 280);
|
||||
|
||||
/* Interactive Elements */
|
||||
--admin-link-color: oklch(55% 0.2 260);
|
||||
--admin-link-hover: oklch(45% 0.25 260);
|
||||
--admin-link-active: oklch(35% 0.3 260);
|
||||
--link-color: oklch(55% 0.2 260);
|
||||
--link-hover: oklch(45% 0.25 260);
|
||||
--link-active: oklch(35% 0.3 260);
|
||||
|
||||
/* Accent Colors - WCAG AA Compliant (4.5:1 minimum) */
|
||||
--admin-accent-primary: oklch(60% 0.2 280);
|
||||
--admin-accent-success: oklch(58% 0.22 145); /* Fixed: 4.8:1 contrast */
|
||||
--admin-accent-warning: oklch(62% 0.22 85); /* Fixed: 4.6:1 contrast */
|
||||
--admin-accent-error: oklch(60% 0.25 25);
|
||||
--admin-accent-info: oklch(58% 0.22 240); /* Fixed: 5.1:1 contrast */
|
||||
--accent-primary: oklch(60% 0.2 280);
|
||||
--accent-success: oklch(58% 0.22 145); /* Fixed: 4.8:1 contrast */
|
||||
--accent-warning: oklch(62% 0.22 85); /* Fixed: 4.6:1 contrast */
|
||||
--accent-error: oklch(60% 0.25 25);
|
||||
--accent-info: oklch(58% 0.22 240); /* Fixed: 5.1:1 contrast */
|
||||
|
||||
/* Border Colors - WCAG AA Compliant (3:1 for UI components) */
|
||||
--admin-border-light: oklch(75% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--admin-border-medium: oklch(70% 0.02 280); /* Already compliant: 3.5:1 */
|
||||
--admin-border-dark: oklch(70% 0.02 280);
|
||||
--border-light: oklch(75% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--border-medium: oklch(70% 0.02 280); /* Already compliant: 3.5:1 */
|
||||
--border-dark: oklch(70% 0.02 280);
|
||||
|
||||
/* Focus/Hover States */
|
||||
--admin-focus-ring: oklch(55% 0.2 260);
|
||||
--admin-hover-overlay: oklch(0% 0 0 / 0.05);
|
||||
--focus-ring: oklch(55% 0.2 260);
|
||||
--hover-overlay: oklch(0% 0 0 / 0.05);
|
||||
|
||||
/* Spacing Tokens */
|
||||
|
||||
/* Layout Spacing */
|
||||
--admin-spacing-sidebar: 250px;
|
||||
--admin-spacing-header: 4rem;
|
||||
--admin-spacing-content-padding: 2rem;
|
||||
--admin-spacing-content-max-width: 1400px;
|
||||
--spacing-sidebar: 250px;
|
||||
--spacing-header: 4rem;
|
||||
--spacing-content-padding: 2rem;
|
||||
--spacing-content-max-width: 1400px;
|
||||
|
||||
/* Component Spacing */
|
||||
--admin-spacing-xs: 0.25rem;
|
||||
--admin-spacing-sm: 0.5rem;
|
||||
--admin-spacing-md: 1rem;
|
||||
--admin-spacing-lg: 1.5rem;
|
||||
--admin-spacing-xl: 2rem;
|
||||
--admin-spacing-2xl: 3rem;
|
||||
--spacing-xs: 0.25rem;
|
||||
--spacing-sm: 0.5rem;
|
||||
--spacing-md: 1rem;
|
||||
--spacing-lg: 1.5rem;
|
||||
--spacing-xl: 2rem;
|
||||
--spacing-2xl: 3rem;
|
||||
|
||||
/* Typography Tokens */
|
||||
|
||||
/* Font Families */
|
||||
--admin-font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--admin-font-family-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
|
||||
--font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--font-family-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
|
||||
|
||||
/* Font Sizes */
|
||||
--admin-font-size-xs: 0.75rem;
|
||||
--admin-font-size-sm: 0.875rem;
|
||||
--admin-font-size-base: 1rem;
|
||||
--admin-font-size-lg: 1.125rem;
|
||||
--admin-font-size-xl: 1.25rem;
|
||||
--admin-font-size-2xl: 1.5rem;
|
||||
--admin-font-size-3xl: 1.875rem;
|
||||
--font-size-xs: 0.75rem;
|
||||
--font-size-sm: 0.875rem;
|
||||
--font-size-base: 1rem;
|
||||
--font-size-lg: 1.125rem;
|
||||
--font-size-xl: 1.25rem;
|
||||
--font-size-2xl: 1.5rem;
|
||||
--font-size-3xl: 1.875rem;
|
||||
|
||||
/* Line Heights */
|
||||
--admin-line-height-tight: 1.25;
|
||||
@@ -88,129 +88,129 @@
|
||||
--admin-line-height-relaxed: 1.75;
|
||||
|
||||
/* Font Weights */
|
||||
--admin-font-weight-normal: 400;
|
||||
--admin-font-weight-medium: 500;
|
||||
--admin-font-weight-semibold: 600;
|
||||
--admin-font-weight-bold: 700;
|
||||
--font-weight-normal: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-semibold: 600;
|
||||
--font-weight-bold: 700;
|
||||
|
||||
/* Z-Index Hierarchy */
|
||||
--admin-z-base: 1;
|
||||
--admin-z-header: 90;
|
||||
--admin-z-sidebar: 100;
|
||||
--admin-z-mobile-menu: 110;
|
||||
--admin-z-overlay: 120;
|
||||
--admin-z-modal: 130;
|
||||
--admin-z-tooltip: 140;
|
||||
--admin-z-toast: 150;
|
||||
--z-base: 1;
|
||||
--z-header: 90;
|
||||
--z-sidebar: 100;
|
||||
--z-mobile-menu: 110;
|
||||
--z-overlay: 120;
|
||||
--z-modal: 130;
|
||||
--z-tooltip: 140;
|
||||
--z-toast: 150;
|
||||
|
||||
/* Animation/Transition Tokens */
|
||||
--admin-transition-fast: 0.15s ease;
|
||||
--admin-transition-base: 0.2s ease;
|
||||
--admin-transition-slow: 0.3s ease;
|
||||
--transition-fast: 0.15s ease;
|
||||
--transition-base: 0.2s ease;
|
||||
--transition-slow: 0.3s ease;
|
||||
|
||||
/* Border Radius */
|
||||
--admin-radius-sm: 0.25rem;
|
||||
--admin-radius-md: 0.375rem;
|
||||
--admin-radius-lg: 0.5rem;
|
||||
--admin-radius-xl: 0.75rem;
|
||||
--admin-radius-full: 9999px;
|
||||
--radius-sm: 0.25rem;
|
||||
--radius-md: 0.375rem;
|
||||
--radius-lg: 0.5rem;
|
||||
--radius-xl: 0.75rem;
|
||||
--radius-full: 9999px;
|
||||
|
||||
/* Shadow Tokens */
|
||||
--admin-shadow-sm: 0 1px 2px 0 oklch(0% 0 0 / 0.05);
|
||||
--admin-shadow-md: 0 4px 6px -1px oklch(0% 0 0 / 0.1), 0 2px 4px -1px oklch(0% 0 0 / 0.06);
|
||||
--admin-shadow-lg: 0 10px 15px -3px oklch(0% 0 0 / 0.1), 0 4px 6px -2px oklch(0% 0 0 / 0.05);
|
||||
--admin-shadow-xl: 0 20px 25px -5px oklch(0% 0 0 / 0.1), 0 10px 10px -5px oklch(0% 0 0 / 0.04);
|
||||
--shadow-sm: 0 1px 2px 0 oklch(0% 0 0 / 0.05);
|
||||
--shadow-md: 0 4px 6px -1px oklch(0% 0 0 / 0.1), 0 2px 4px -1px oklch(0% 0 0 / 0.06);
|
||||
--shadow-lg: 0 10px 15px -3px oklch(0% 0 0 / 0.1), 0 4px 6px -2px oklch(0% 0 0 / 0.05);
|
||||
--shadow-xl: 0 20px 25px -5px oklch(0% 0 0 / 0.1), 0 10px 10px -5px oklch(0% 0 0 / 0.04);
|
||||
}
|
||||
|
||||
/* Dark Mode Overrides */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
/* Primary Background Colors */
|
||||
--admin-bg-primary: oklch(20% 0.02 280);
|
||||
--admin-bg-secondary: oklch(23% 0.02 280);
|
||||
--admin-bg-tertiary: oklch(26% 0.02 280);
|
||||
--bg-primary: oklch(20% 0.02 280);
|
||||
--bg-secondary: oklch(23% 0.02 280);
|
||||
--bg-tertiary: oklch(26% 0.02 280);
|
||||
|
||||
/* Sidebar Colors */
|
||||
--admin-sidebar-bg: oklch(15% 0.02 280);
|
||||
--admin-sidebar-text: oklch(75% 0.02 280);
|
||||
--admin-sidebar-text-hover: oklch(95% 0.01 280);
|
||||
--admin-sidebar-active: oklch(35% 0.2 280);
|
||||
--admin-sidebar-border: oklch(25% 0.02 280);
|
||||
--sidebar-bg: oklch(15% 0.02 280);
|
||||
--sidebar-text: oklch(75% 0.02 280);
|
||||
--sidebar-text-hover: oklch(95% 0.01 280);
|
||||
--sidebar-active: oklch(35% 0.2 280);
|
||||
--sidebar-border: oklch(25% 0.02 280);
|
||||
|
||||
/* Header Colors */
|
||||
--admin-header-bg: oklch(18% 0.02 280);
|
||||
--admin-header-border: oklch(30% 0.02 280);
|
||||
--admin-header-text: oklch(90% 0.01 280);
|
||||
--header-bg: oklch(18% 0.02 280);
|
||||
--header-border: oklch(30% 0.02 280);
|
||||
--header-text: oklch(90% 0.01 280);
|
||||
|
||||
/* Content Area */
|
||||
--admin-content-bg: oklch(20% 0.02 280);
|
||||
--admin-content-text: oklch(90% 0.01 280);
|
||||
--content-bg: oklch(20% 0.02 280);
|
||||
--content-text: oklch(90% 0.01 280);
|
||||
|
||||
/* Interactive Elements */
|
||||
--admin-link-color: oklch(70% 0.2 260);
|
||||
--admin-link-hover: oklch(80% 0.22 260);
|
||||
--admin-link-active: oklch(85% 0.25 260);
|
||||
--link-color: oklch(70% 0.2 260);
|
||||
--link-hover: oklch(80% 0.22 260);
|
||||
--link-active: oklch(85% 0.25 260);
|
||||
|
||||
/* Border Colors - WCAG AA Compliant (3:1 for UI components) */
|
||||
--admin-border-light: oklch(42% 0.02 280); /* Fixed: 3.1:1 contrast */
|
||||
--admin-border-medium: oklch(48% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--admin-border-dark: oklch(55% 0.02 280); /* Fixed: 4.2:1 contrast */
|
||||
--border-light: oklch(42% 0.02 280); /* Fixed: 3.1:1 contrast */
|
||||
--border-medium: oklch(48% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--border-dark: oklch(55% 0.02 280); /* Fixed: 4.2:1 contrast */
|
||||
|
||||
/* Focus/Hover States */
|
||||
--admin-focus-ring: oklch(70% 0.2 260);
|
||||
--admin-hover-overlay: oklch(100% 0 0 / 0.05);
|
||||
--focus-ring: oklch(70% 0.2 260);
|
||||
--hover-overlay: oklch(100% 0 0 / 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
/* Manual Dark Mode via data-theme attribute */
|
||||
[data-theme="dark"] {
|
||||
/* Same as prefers-color-scheme: dark */
|
||||
--admin-bg-primary: oklch(20% 0.02 280);
|
||||
--admin-bg-secondary: oklch(23% 0.02 280);
|
||||
--admin-bg-tertiary: oklch(26% 0.02 280);
|
||||
--admin-sidebar-bg: oklch(15% 0.02 280);
|
||||
--admin-sidebar-text: oklch(75% 0.02 280);
|
||||
--admin-sidebar-text-hover: oklch(95% 0.01 280);
|
||||
--admin-sidebar-active: oklch(35% 0.2 280);
|
||||
--admin-sidebar-border: oklch(25% 0.02 280);
|
||||
--admin-header-bg: oklch(18% 0.02 280);
|
||||
--admin-header-border: oklch(30% 0.02 280);
|
||||
--admin-header-text: oklch(90% 0.01 280);
|
||||
--admin-content-bg: oklch(20% 0.02 280);
|
||||
--admin-content-text: oklch(90% 0.01 280);
|
||||
--admin-link-color: oklch(70% 0.2 260);
|
||||
--admin-link-hover: oklch(80% 0.22 260);
|
||||
--admin-link-active: oklch(85% 0.25 260);
|
||||
--admin-border-light: oklch(42% 0.02 280); /* Fixed: 3.1:1 contrast */
|
||||
--admin-border-medium: oklch(48% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--admin-border-dark: oklch(55% 0.02 280); /* Fixed: 4.2:1 contrast */
|
||||
--admin-focus-ring: oklch(70% 0.2 260);
|
||||
--admin-hover-overlay: oklch(100% 0 0 / 0.05);
|
||||
--bg-primary: oklch(20% 0.02 280);
|
||||
--bg-secondary: oklch(23% 0.02 280);
|
||||
--bg-tertiary: oklch(26% 0.02 280);
|
||||
--sidebar-bg: oklch(15% 0.02 280);
|
||||
--sidebar-text: oklch(75% 0.02 280);
|
||||
--sidebar-text-hover: oklch(95% 0.01 280);
|
||||
--sidebar-active: oklch(35% 0.2 280);
|
||||
--sidebar-border: oklch(25% 0.02 280);
|
||||
--header-bg: oklch(18% 0.02 280);
|
||||
--header-border: oklch(30% 0.02 280);
|
||||
--header-text: oklch(90% 0.01 280);
|
||||
--content-bg: oklch(20% 0.02 280);
|
||||
--content-text: oklch(90% 0.01 280);
|
||||
--link-color: oklch(70% 0.2 260);
|
||||
--link-hover: oklch(80% 0.22 260);
|
||||
--link-active: oklch(85% 0.25 260);
|
||||
--border-light: oklch(42% 0.02 280); /* Fixed: 3.1:1 contrast */
|
||||
--border-medium: oklch(48% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--border-dark: oklch(55% 0.02 280); /* Fixed: 4.2:1 contrast */
|
||||
--focus-ring: oklch(70% 0.2 260);
|
||||
--hover-overlay: oklch(100% 0 0 / 0.05);
|
||||
}
|
||||
|
||||
/* Light Mode Override */
|
||||
[data-theme="light"] {
|
||||
/* Explicit light mode tokens */
|
||||
--admin-bg-primary: oklch(98% 0.01 280);
|
||||
--admin-bg-secondary: oklch(95% 0.01 280);
|
||||
--admin-bg-tertiary: oklch(92% 0.01 280);
|
||||
--admin-sidebar-bg: oklch(25% 0.02 280);
|
||||
--admin-sidebar-text: oklch(90% 0.01 280);
|
||||
--admin-sidebar-text-hover: oklch(100% 0 0);
|
||||
--admin-sidebar-active: oklch(45% 0.15 280);
|
||||
--admin-sidebar-border: oklch(30% 0.02 280);
|
||||
--admin-header-bg: oklch(100% 0 0);
|
||||
--admin-header-border: oklch(85% 0.01 280);
|
||||
--admin-header-text: oklch(20% 0.02 280);
|
||||
--admin-content-bg: oklch(100% 0 0);
|
||||
--admin-content-text: oklch(20% 0.02 280);
|
||||
--admin-link-color: oklch(55% 0.2 260);
|
||||
--admin-link-hover: oklch(45% 0.25 260);
|
||||
--admin-link-active: oklch(35% 0.3 260);
|
||||
--admin-border-light: oklch(75% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--admin-border-medium: oklch(70% 0.02 280); /* Already compliant: 3.5:1 */
|
||||
--admin-border-dark: oklch(70% 0.02 280);
|
||||
--admin-focus-ring: oklch(55% 0.2 260);
|
||||
--admin-hover-overlay: oklch(0% 0 0 / 0.05);
|
||||
--bg-primary: oklch(98% 0.01 280);
|
||||
--bg-secondary: oklch(95% 0.01 280);
|
||||
--bg-tertiary: oklch(92% 0.01 280);
|
||||
--sidebar-bg: oklch(25% 0.02 280);
|
||||
--sidebar-text: oklch(90% 0.01 280);
|
||||
--sidebar-text-hover: oklch(100% 0 0);
|
||||
--sidebar-active: oklch(45% 0.15 280);
|
||||
--sidebar-border: oklch(30% 0.02 280);
|
||||
--header-bg: oklch(100% 0 0);
|
||||
--header-border: oklch(85% 0.01 280);
|
||||
--header-text: oklch(20% 0.02 280);
|
||||
--content-bg: oklch(100% 0 0);
|
||||
--content-text: oklch(20% 0.02 280);
|
||||
--link-color: oklch(55% 0.2 260);
|
||||
--link-hover: oklch(45% 0.25 260);
|
||||
--link-active: oklch(35% 0.3 260);
|
||||
--border-light: oklch(75% 0.02 280); /* Fixed: 3.5:1 contrast */
|
||||
--border-medium: oklch(70% 0.02 280); /* Already compliant: 3.5:1 */
|
||||
--border-dark: oklch(70% 0.02 280);
|
||||
--focus-ring: oklch(55% 0.2 260);
|
||||
--hover-overlay: oklch(0% 0 0 / 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
* Konsistenter Focus-Ring für Tastatur-Navigation.
|
||||
*/
|
||||
.admin-focus-ring {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
@media (--admin-reduced-motion) {
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.admin-smooth-scroll {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Minimal reset für Admin-Interface, baut auf Framework-Reset auf.
|
||||
*/
|
||||
|
||||
@layer admin-generic {
|
||||
@layer reset {
|
||||
/**
|
||||
* Box Sizing
|
||||
*/
|
||||
@@ -43,19 +43,19 @@
|
||||
* Links
|
||||
*/
|
||||
.admin-layout a {
|
||||
color: var(--admin-link-color);
|
||||
color: var(--link-color);
|
||||
text-decoration: none;
|
||||
transition: color var(--admin-transition-fast);
|
||||
transition: color var(--transition-fast);
|
||||
}
|
||||
|
||||
.admin-layout a:hover {
|
||||
color: var(--admin-link-hover);
|
||||
color: var(--link-hover);
|
||||
}
|
||||
|
||||
.admin-layout a:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
border-radius: var(--admin-radius-sm);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
* Grundlegende Styles für HTML-Elemente im Admin-Bereich.
|
||||
*/
|
||||
|
||||
@layer admin-elements {
|
||||
@layer base {
|
||||
/**
|
||||
* Root Admin Layout
|
||||
*/
|
||||
.admin-layout {
|
||||
font-family: var(--admin-font-family-base);
|
||||
font-size: var(--admin-font-size-base);
|
||||
line-height: var(--admin-line-height-normal);
|
||||
color: var(--admin-content-text);
|
||||
background-color: var(--admin-bg-primary);
|
||||
font-family: var(--font-family-base);
|
||||
font-size: var(--font-size-base);
|
||||
line-height: var(--line-height-normal);
|
||||
color: var(--content-text);
|
||||
background-color: var(--bg-primary);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
@@ -22,59 +22,59 @@
|
||||
* Typography
|
||||
*/
|
||||
.admin-layout h1 {
|
||||
font-size: var(--admin-font-size-3xl);
|
||||
font-weight: var(--admin-font-weight-bold);
|
||||
line-height: var(--admin-line-height-tight);
|
||||
margin-bottom: var(--admin-spacing-lg);
|
||||
font-size: var(--font-size-3xl);
|
||||
font-weight: var(--font-weight-bold);
|
||||
line-height: var(--line-height-tight);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-layout h2 {
|
||||
font-size: var(--admin-font-size-2xl);
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
line-height: var(--admin-line-height-tight);
|
||||
margin-bottom: var(--admin-spacing-md);
|
||||
font-size: var(--font-size-2xl);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
line-height: var(--line-height-tight);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.admin-layout h3 {
|
||||
font-size: var(--admin-font-size-xl);
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
line-height: var(--admin-line-height-tight);
|
||||
margin-bottom: var(--admin-spacing-md);
|
||||
font-size: var(--font-size-xl);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
line-height: var(--line-height-tight);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.admin-layout h4 {
|
||||
font-size: var(--admin-font-size-lg);
|
||||
font-weight: var(--admin-font-weight-medium);
|
||||
line-height: var(--admin-line-height-normal);
|
||||
margin-bottom: var(--admin-spacing-sm);
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: var(--line-height-normal);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.admin-layout p {
|
||||
margin-bottom: var(--admin-spacing-md);
|
||||
line-height: var(--admin-line-height-relaxed);
|
||||
margin-bottom: var(--spacing-md);
|
||||
line-height: var(--line-height-relaxed);
|
||||
}
|
||||
|
||||
.admin-layout small {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
color: oklch(from var(--admin-content-text) calc(l * 0.7) c h);
|
||||
font-size: var(--font-size-sm);
|
||||
color: oklch(from var(--content-text) calc(l * 0.7) c h);
|
||||
}
|
||||
|
||||
.admin-layout code {
|
||||
font-family: var(--admin-font-family-mono);
|
||||
font-family: var(--font-family-mono);
|
||||
font-size: 0.875em;
|
||||
background-color: var(--admin-bg-tertiary);
|
||||
background-color: var(--bg-tertiary);
|
||||
padding: 0.125rem 0.375rem;
|
||||
border-radius: var(--admin-radius-sm);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.admin-layout pre {
|
||||
font-family: var(--admin-font-family-mono);
|
||||
font-size: var(--admin-font-size-sm);
|
||||
background-color: var(--admin-bg-tertiary);
|
||||
padding: var(--admin-spacing-md);
|
||||
border-radius: var(--admin-radius-md);
|
||||
font-family: var(--font-family-mono);
|
||||
font-size: var(--font-size-sm);
|
||||
background-color: var(--bg-tertiary);
|
||||
padding: var(--spacing-md);
|
||||
border-radius: var(--radius-md);
|
||||
overflow-x: auto;
|
||||
margin-bottom: var(--admin-spacing-md);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.admin-layout pre code {
|
||||
@@ -87,12 +87,12 @@
|
||||
*/
|
||||
.admin-layout ul:not([role="list"]) {
|
||||
list-style: disc;
|
||||
padding-left: var(--admin-spacing-lg);
|
||||
padding-left: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-layout ol:not([role="list"]) {
|
||||
list-style: decimal;
|
||||
padding-left: var(--admin-spacing-lg);
|
||||
padding-left: var(--spacing-lg);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -101,24 +101,24 @@
|
||||
.admin-layout table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: var(--admin-spacing-lg);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-layout th {
|
||||
text-align: left;
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
border-bottom: 2px solid var(--admin-border-medium);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
background-color: var(--bg-secondary);
|
||||
border-bottom: 2px solid var(--border-medium);
|
||||
}
|
||||
|
||||
.admin-layout td {
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
border-bottom: 1px solid var(--admin-border-light);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.admin-layout tr:hover {
|
||||
background-color: var(--admin-hover-overlay);
|
||||
background-color: var(--hover-overlay);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -134,24 +134,24 @@
|
||||
.admin-layout textarea,
|
||||
.admin-layout select {
|
||||
width: 100%;
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
font-family: inherit;
|
||||
font-size: var(--admin-font-size-base);
|
||||
line-height: var(--admin-line-height-normal);
|
||||
color: var(--admin-content-text);
|
||||
background-color: var(--admin-content-bg);
|
||||
border: 1px solid var(--admin-border-medium);
|
||||
border-radius: var(--admin-radius-md);
|
||||
transition: border-color var(--admin-transition-fast),
|
||||
box-shadow var(--admin-transition-fast);
|
||||
font-size: var(--font-size-base);
|
||||
line-height: var(--line-height-normal);
|
||||
color: var(--content-text);
|
||||
background-color: var(--content-bg);
|
||||
border: 1px solid var(--border-medium);
|
||||
border-radius: var(--radius-md);
|
||||
transition: border-color var(--transition-fast),
|
||||
box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
.admin-layout input:focus,
|
||||
.admin-layout textarea:focus,
|
||||
.admin-layout select:focus {
|
||||
outline: none;
|
||||
border-color: var(--admin-focus-ring);
|
||||
box-shadow: 0 0 0 3px oklch(from var(--admin-focus-ring) l c h / 0.1);
|
||||
border-color: var(--focus-ring);
|
||||
box-shadow: 0 0 0 3px oklch(from var(--focus-ring) l c h / 0.1);
|
||||
}
|
||||
|
||||
.admin-layout textarea {
|
||||
@@ -164,7 +164,7 @@
|
||||
*/
|
||||
.admin-layout hr {
|
||||
border: none;
|
||||
border-top: 1px solid var(--admin-border-light);
|
||||
margin: var(--admin-spacing-xl) 0;
|
||||
border-top: 1px solid var(--border-light);
|
||||
margin: var(--spacing-xl) 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
* Flexible Grid-System für Content-Layouts.
|
||||
*/
|
||||
|
||||
@layer admin-objects {
|
||||
@layer layout {
|
||||
/**
|
||||
* Basic Grid
|
||||
*/
|
||||
.admin-grid {
|
||||
display: grid;
|
||||
gap: var(--admin-spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
|
||||
/* Default: 1 column (mobile) */
|
||||
grid-template-columns: 1fr;
|
||||
@@ -54,15 +54,15 @@
|
||||
* Gap Variants
|
||||
*/
|
||||
.admin-grid--gap-sm {
|
||||
gap: var(--admin-spacing-sm);
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.admin-grid--gap-lg {
|
||||
gap: var(--admin-spacing-lg);
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-grid--gap-xl {
|
||||
gap: var(--admin-spacing-xl);
|
||||
gap: var(--spacing-xl);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,14 +71,14 @@
|
||||
.admin-grid--sidebar {
|
||||
@media (min-width: 1024px) {
|
||||
grid-template-columns: 300px 1fr;
|
||||
gap: var(--admin-spacing-xl);
|
||||
gap: var(--spacing-xl);
|
||||
}
|
||||
}
|
||||
|
||||
.admin-grid--sidebar-right {
|
||||
@media (min-width: 1024px) {
|
||||
grid-template-columns: 1fr 300px;
|
||||
gap: var(--admin-spacing-xl);
|
||||
gap: var(--spacing-xl);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,19 +90,19 @@
|
||||
.admin-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--admin-spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.admin-stack--sm {
|
||||
gap: var(--admin-spacing-sm);
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.admin-stack--lg {
|
||||
gap: var(--admin-spacing-lg);
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-stack--xl {
|
||||
gap: var(--admin-spacing-xl);
|
||||
gap: var(--spacing-xl);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -113,16 +113,16 @@
|
||||
.admin-cluster {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--admin-spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.admin-cluster--sm {
|
||||
gap: var(--admin-spacing-sm);
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.admin-cluster--lg {
|
||||
gap: var(--admin-spacing-lg);
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-cluster--justify-between {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Mobile-First Grid Layout mit progressiver Verbesserung für Tablet/Desktop.
|
||||
*/
|
||||
|
||||
@layer admin-objects {
|
||||
@layer layout {
|
||||
/**
|
||||
* Main Admin Layout Grid
|
||||
*
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
/* Tablet+ Layout (768px+) */
|
||||
@media (min-width: 768px) {
|
||||
grid-template-columns: var(--admin-spacing-sidebar) 1fr;
|
||||
grid-template-columns: var(--sidebar-width, var(--spacing-sidebar)) 1fr;
|
||||
grid-template-rows: auto 1fr;
|
||||
grid-template-areas:
|
||||
"sidebar header"
|
||||
@@ -34,93 +34,39 @@
|
||||
|
||||
/* Wide Screen Layout (1440px+) */
|
||||
@media (min-width: 1440px) {
|
||||
grid-template-columns: var(--admin-sidebar-width-wide) 1fr;
|
||||
grid-template-columns: var(--sidebar-width, var(--spacing-sidebar-wide)) 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sidebar Area
|
||||
* Sidebar Area - Grid Positioning Only
|
||||
*
|
||||
* Note: Detailed sidebar styling is in _sidebar.css component file.
|
||||
* This only defines grid positioning for the layout system.
|
||||
*/
|
||||
.admin-sidebar {
|
||||
grid-area: sidebar;
|
||||
background-color: var(--admin-sidebar-bg);
|
||||
color: var(--admin-sidebar-text);
|
||||
|
||||
/* Mobile: Hidden by default, shown via toggle */
|
||||
@media (max-width: 767px) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: var(--admin-sidebar-width-mobile);
|
||||
max-width: 280px;
|
||||
transform: translateX(-100%);
|
||||
transition: transform var(--admin-transition-base);
|
||||
z-index: var(--admin-z-sidebar);
|
||||
overflow-y: auto;
|
||||
|
||||
/* Mobile Menu Open State */
|
||||
&[data-mobile-menu-open="true"] {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Tablet+: Always visible */
|
||||
@media (min-width: 768px) {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
border-right: 1px solid var(--admin-sidebar-border);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Header Area
|
||||
*
|
||||
* Note: Detailed header styling is in _header.css component file.
|
||||
* This only defines grid positioning and basic layout.
|
||||
*/
|
||||
.admin-header {
|
||||
grid-area: header;
|
||||
background-color: var(--admin-header-bg);
|
||||
color: var(--admin-header-text);
|
||||
border-bottom: 1px solid var(--admin-header-border);
|
||||
padding: var(--admin-spacing-md) var(--admin-spacing-content-padding);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--admin-spacing-md);
|
||||
|
||||
/* Mobile */
|
||||
min-height: var(--admin-header-height-mobile);
|
||||
|
||||
/* Tablet+ */
|
||||
@media (min-width: 768px) {
|
||||
min-height: var(--admin-header-height-tablet);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--admin-z-header);
|
||||
}
|
||||
|
||||
/* Wide */
|
||||
@media (min-width: 1440px) {
|
||||
min-height: var(--admin-header-height-wide);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Content Area
|
||||
*
|
||||
* Note: Detailed content styling is in _content.css component file.
|
||||
* This only defines grid positioning.
|
||||
*/
|
||||
.admin-content {
|
||||
grid-area: content;
|
||||
background-color: var(--admin-content-bg);
|
||||
padding: var(--admin-spacing-content-padding);
|
||||
overflow-x: hidden;
|
||||
|
||||
/* Wide: Center content with max-width */
|
||||
@media (min-width: 1440px) {
|
||||
max-width: var(--admin-spacing-content-max-width);
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -140,7 +86,7 @@
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: oklch(0% 0 0 / 0.5);
|
||||
z-index: calc(var(--admin-z-sidebar) - 1);
|
||||
z-index: calc(var(--z-sidebar) - 1);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
}
|
||||
@@ -153,16 +99,16 @@
|
||||
position: absolute;
|
||||
top: -999px;
|
||||
left: -999px;
|
||||
z-index: var(--admin-z-toast);
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
background-color: var(--admin-accent-primary);
|
||||
z-index: var(--z-toast);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
background-color: var(--accent-primary);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: var(--admin-radius-md);
|
||||
border-radius: var(--radius-md);
|
||||
|
||||
&:focus {
|
||||
top: var(--admin-spacing-sm);
|
||||
left: var(--admin-spacing-sm);
|
||||
top: var(--spacing-sm);
|
||||
left: var(--spacing-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,20 +117,20 @@
|
||||
*/
|
||||
.admin-container {
|
||||
width: 100%;
|
||||
max-width: var(--admin-container-mobile);
|
||||
max-width: var(--container-mobile);
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--admin-spacing-md);
|
||||
padding: 0 var(--spacing-md);
|
||||
|
||||
@media (min-width: 768px) {
|
||||
max-width: var(--admin-container-tablet);
|
||||
max-width: var(--container-tablet);
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
max-width: var(--admin-container-desktop);
|
||||
max-width: var(--container-desktop);
|
||||
}
|
||||
|
||||
@media (min-width: 1440px) {
|
||||
max-width: var(--admin-container-wide);
|
||||
max-width: var(--container-wide);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
/**
|
||||
* Badge Component
|
||||
*
|
||||
* Small status indicators and labels.
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
.admin-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
font-size: var(--admin-font-size-xs);
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
line-height: 1.5;
|
||||
border-radius: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Success badge */
|
||||
.admin-badge--success {
|
||||
background-color: var(--admin-accent-success);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Warning badge */
|
||||
.admin-badge--warning {
|
||||
background-color: var(--admin-accent-warning);
|
||||
color: oklch(20% 0.02 280); /* Dark text for better contrast */
|
||||
}
|
||||
|
||||
/* Error badge */
|
||||
.admin-badge--error {
|
||||
background-color: var(--admin-accent-error);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Info badge */
|
||||
.admin-badge--info {
|
||||
background-color: var(--admin-accent-info);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Default badge */
|
||||
.admin-badge--default {
|
||||
background-color: var(--admin-bg-tertiary);
|
||||
color: var(--admin-content-text);
|
||||
}
|
||||
}
|
||||
@@ -5,15 +5,15 @@
|
||||
* Responsive with overflow handling for long paths.
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
@layer components {
|
||||
/**
|
||||
* Breadcrumbs Container
|
||||
*/
|
||||
.admin-breadcrumbs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-xs);
|
||||
padding: var(--admin-spacing-sm) 0;
|
||||
gap: var(--spacing-xs);
|
||||
padding: var(--spacing-sm) 0;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: thin;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
.admin-breadcrumbs__list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-xs);
|
||||
gap: var(--spacing-xs);
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -48,7 +48,7 @@
|
||||
.admin-breadcrumbs__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-xs);
|
||||
gap: var(--spacing-xs);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
|
||||
@@ -65,20 +65,20 @@
|
||||
.admin-breadcrumbs__link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-xs);
|
||||
color: var(--admin-link-color);
|
||||
gap: var(--spacing-xs);
|
||||
color: var(--link-color);
|
||||
text-decoration: none;
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 500;
|
||||
transition: color var(--admin-transition-base);
|
||||
transition: color var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
color: var(--admin-link-hover);
|
||||
color: var(--link-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
@@ -88,8 +88,8 @@
|
||||
* Current Page (not a link)
|
||||
*/
|
||||
.admin-breadcrumbs__current {
|
||||
color: var(--admin-content-text);
|
||||
font-size: var(--admin-font-size-sm);
|
||||
color: var(--content-text);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 600;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -110,9 +110,9 @@
|
||||
.admin-breadcrumbs__separator {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--admin-content-text);
|
||||
color: var(--content-text);
|
||||
opacity: 0.4;
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
user-select: none;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -131,18 +131,18 @@
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
color: var(--admin-content-text);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
border-radius: var(--admin-radius-sm);
|
||||
color: var(--content-text);
|
||||
background-color: var(--bg-secondary);
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--admin-transition-base);
|
||||
transition: background-color var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--admin-bg-tertiary);
|
||||
background-color: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,109 +0,0 @@
|
||||
/**
|
||||
* Button Component
|
||||
*
|
||||
* Reusable button styles for actions and navigation.
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
.admin-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--admin-spacing-sm);
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
font-family: var(--admin-font-family-base);
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-weight: var(--admin-font-weight-medium);
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--admin-radius-md);
|
||||
cursor: pointer;
|
||||
transition: all var(--admin-transition-base);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-btn:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Primary button */
|
||||
.admin-btn--primary {
|
||||
background-color: var(--admin-accent-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-btn--primary:hover {
|
||||
background-color: oklch(from var(--admin-accent-primary) calc(l * 0.9) c h);
|
||||
}
|
||||
|
||||
/* Secondary button */
|
||||
.admin-btn--secondary {
|
||||
background-color: var(--admin-sidebar-bg);
|
||||
color: var(--admin-sidebar-text-hover);
|
||||
}
|
||||
|
||||
.admin-btn--secondary:hover {
|
||||
background-color: oklch(from var(--admin-sidebar-bg) calc(l * 1.1) c h);
|
||||
}
|
||||
|
||||
/* Accent button */
|
||||
.admin-btn--accent {
|
||||
background-color: var(--admin-accent-info);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-btn--accent:hover {
|
||||
background-color: oklch(from var(--admin-accent-info) calc(l * 0.9) c h);
|
||||
}
|
||||
|
||||
/* Success button */
|
||||
.admin-btn--success {
|
||||
background-color: var(--admin-accent-success);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-btn--success:hover {
|
||||
background-color: oklch(from var(--admin-accent-success) calc(l * 0.9) c h);
|
||||
}
|
||||
|
||||
/* Danger button */
|
||||
.admin-btn--danger {
|
||||
background-color: var(--admin-accent-error);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-btn--danger:hover {
|
||||
background-color: oklch(from var(--admin-accent-error) calc(l * 0.9) c h);
|
||||
}
|
||||
|
||||
/* Ghost button */
|
||||
.admin-btn--ghost {
|
||||
background-color: transparent;
|
||||
color: var(--admin-content-text);
|
||||
border-color: var(--admin-border-medium);
|
||||
}
|
||||
|
||||
.admin-btn--ghost:hover {
|
||||
background-color: var(--admin-bg-secondary);
|
||||
}
|
||||
|
||||
/* Size variants */
|
||||
.admin-btn--sm {
|
||||
padding: var(--admin-spacing-xs) var(--admin-spacing-sm);
|
||||
font-size: var(--admin-font-size-xs);
|
||||
}
|
||||
|
||||
.admin-btn--lg {
|
||||
padding: var(--admin-spacing-md) var(--admin-spacing-lg);
|
||||
font-size: var(--admin-font-size-base);
|
||||
}
|
||||
|
||||
/* Icon button */
|
||||
.admin-btn__icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
/**
|
||||
* Card Component
|
||||
*
|
||||
* Reusable card containers for dashboard widgets and content blocks.
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
.admin-card {
|
||||
background-color: var(--admin-content-bg);
|
||||
border: 1px solid var(--admin-border-light);
|
||||
border-radius: var(--admin-radius-lg);
|
||||
box-shadow: var(--admin-shadow-sm);
|
||||
overflow: hidden;
|
||||
transition: box-shadow var(--admin-transition-base);
|
||||
}
|
||||
|
||||
.admin-card:hover {
|
||||
box-shadow: var(--admin-shadow-md);
|
||||
}
|
||||
|
||||
.admin-card__header {
|
||||
padding: var(--admin-spacing-lg);
|
||||
border-bottom: 1px solid var(--admin-border-light);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
}
|
||||
|
||||
.admin-card__title {
|
||||
font-size: var(--admin-font-size-lg);
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
color: var(--admin-content-text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-card__content {
|
||||
padding: var(--admin-spacing-lg);
|
||||
}
|
||||
|
||||
.admin-card__footer {
|
||||
padding: var(--admin-spacing-md) var(--admin-spacing-lg);
|
||||
border-top: 1px solid var(--admin-border-light);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
}
|
||||
|
||||
/* Card variants */
|
||||
.admin-card--highlighted {
|
||||
border-color: var(--admin-accent-primary);
|
||||
box-shadow: 0 0 0 1px var(--admin-accent-primary), var(--admin-shadow-sm);
|
||||
}
|
||||
|
||||
.admin-card--success {
|
||||
border-color: var(--admin-accent-success);
|
||||
}
|
||||
|
||||
.admin-card--warning {
|
||||
border-color: var(--admin-accent-warning);
|
||||
}
|
||||
|
||||
.admin-card--error {
|
||||
border-color: var(--admin-accent-error);
|
||||
}
|
||||
}
|
||||
@@ -7,16 +7,16 @@
|
||||
|
||||
.confusion-matrix-card {
|
||||
padding: var(--space-md);
|
||||
border: 1px solid var(--admin-border-color);
|
||||
border-radius: var(--admin-border-radius);
|
||||
background: var(--admin-card-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--border-radius);
|
||||
background: var(--content-bg);
|
||||
}
|
||||
|
||||
.confusion-matrix-card__title {
|
||||
margin: 0 0 var(--space-md);
|
||||
font-size: var(--font-size-md);
|
||||
font-weight: 600;
|
||||
color: var(--admin-text-primary);
|
||||
color: var(--content-text);
|
||||
}
|
||||
|
||||
/* Confusion Matrix Grid - 2x2 Layout */
|
||||
@@ -30,14 +30,14 @@
|
||||
/* Matrix Cells */
|
||||
.confusion-matrix__cell {
|
||||
padding: var(--space-md);
|
||||
border-radius: var(--admin-border-radius);
|
||||
border-radius: var(--border-radius);
|
||||
text-align: center;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.confusion-matrix__cell:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--admin-shadow-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.confusion-matrix__cell-label {
|
||||
@@ -84,25 +84,25 @@
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-sm);
|
||||
padding-top: var(--space-md);
|
||||
border-top: 1px solid var(--admin-border-color);
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.confusion-matrix__rates .admin-stat-item {
|
||||
padding: var(--space-sm);
|
||||
background: var(--admin-bg-secondary);
|
||||
border-radius: var(--admin-border-radius-sm);
|
||||
background: var(--bg-secondary);
|
||||
border-radius: var(--border-radius-sm);
|
||||
}
|
||||
|
||||
.confusion-matrix__rates .admin-stat-item__label {
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 500;
|
||||
color: var(--admin-text-secondary);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.confusion-matrix__rates .admin-stat-item__value {
|
||||
font-size: var(--font-size-md);
|
||||
font-weight: 600;
|
||||
color: var(--admin-text-primary);
|
||||
color: var(--content-text);
|
||||
}
|
||||
|
||||
/* Dark Mode Support */
|
||||
|
||||
@@ -5,26 +5,26 @@
|
||||
* Responsive spacing and max-width management.
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
@layer components {
|
||||
/**
|
||||
* Main Content Container
|
||||
*/
|
||||
.admin-content {
|
||||
padding: var(--admin-spacing-content-padding);
|
||||
background-color: var(--admin-content-bg);
|
||||
color: var(--admin-content-text);
|
||||
padding: var(--spacing-content-padding);
|
||||
background-color: var(--content-bg);
|
||||
color: var(--content-text);
|
||||
overflow-x: hidden;
|
||||
|
||||
/* Wide: Center content with max-width */
|
||||
@media (min-width: 1440px) {
|
||||
max-width: var(--admin-spacing-content-max-width);
|
||||
max-width: var(--spacing-content-max-width);
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Mobile: Reduce padding */
|
||||
@media (max-width: 767px) {
|
||||
padding: var(--admin-spacing-md);
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,23 +32,23 @@
|
||||
* Content Header
|
||||
*/
|
||||
.admin-content__header {
|
||||
margin-bottom: var(--admin-spacing-xl);
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.admin-content__title {
|
||||
font-size: var(--admin-font-size-3xl);
|
||||
font-size: var(--font-size-3xl);
|
||||
font-weight: 700;
|
||||
color: var(--admin-content-text);
|
||||
margin: 0 0 var(--admin-spacing-sm);
|
||||
color: var(--content-text);
|
||||
margin: 0 0 var(--spacing-sm);
|
||||
|
||||
@media (max-width: 767px) {
|
||||
font-size: var(--admin-font-size-2xl);
|
||||
font-size: var(--font-size-2xl);
|
||||
}
|
||||
}
|
||||
|
||||
.admin-content__description {
|
||||
font-size: var(--admin-font-size-base);
|
||||
color: var(--admin-content-text);
|
||||
font-size: var(--font-size-base);
|
||||
color: var(--content-text);
|
||||
opacity: 0.8;
|
||||
margin: 0;
|
||||
line-height: 1.6;
|
||||
@@ -61,7 +61,7 @@
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--admin-spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
|
||||
@media (max-width: 767px) {
|
||||
flex-direction: column;
|
||||
@@ -77,7 +77,7 @@
|
||||
.admin-content__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-sm);
|
||||
gap: var(--spacing-sm);
|
||||
flex-shrink: 0;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@@ -89,65 +89,65 @@
|
||||
/**
|
||||
* Card Component
|
||||
*/
|
||||
.admin-card {
|
||||
background-color: var(--admin-content-bg);
|
||||
border: 1px solid var(--admin-border-light);
|
||||
border-radius: var(--admin-radius-lg);
|
||||
padding: var(--admin-spacing-lg);
|
||||
box-shadow: var(--admin-shadow-sm);
|
||||
.card {
|
||||
background-color: var(--content-bg);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
|
||||
/* Hover effect for interactive cards */
|
||||
&.admin-card--interactive {
|
||||
&.card--interactive {
|
||||
cursor: pointer;
|
||||
transition: all var(--admin-transition-base);
|
||||
transition: all var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--admin-border-medium);
|
||||
box-shadow: var(--admin-shadow-md);
|
||||
border-color: var(--border-medium);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.admin-card__header {
|
||||
margin-bottom: var(--admin-spacing-md);
|
||||
padding-bottom: var(--admin-spacing-md);
|
||||
border-bottom: 1px solid var(--admin-border-light);
|
||||
.card__header {
|
||||
margin-bottom: var(--spacing-md);
|
||||
padding-bottom: var(--spacing-md);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.admin-card__title {
|
||||
font-size: var(--admin-font-size-lg);
|
||||
.card__title {
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 600;
|
||||
color: var(--admin-content-text);
|
||||
color: var(--content-text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-card__subtitle {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
color: var(--admin-content-text);
|
||||
.card__subtitle {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--content-text);
|
||||
opacity: 0.7;
|
||||
margin: var(--admin-spacing-xs) 0 0;
|
||||
margin: var(--spacing-xs) 0 0;
|
||||
}
|
||||
|
||||
.admin-card__body {
|
||||
.card__body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-card__footer {
|
||||
margin-top: var(--admin-spacing-md);
|
||||
padding-top: var(--admin-spacing-md);
|
||||
border-top: 1px solid var(--admin-border-light);
|
||||
.card__footer {
|
||||
margin-top: var(--spacing-md);
|
||||
padding-top: var(--spacing-md);
|
||||
border-top: 1px solid var(--border-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--admin-spacing-sm);
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
/**
|
||||
* Section Component
|
||||
*/
|
||||
.admin-section {
|
||||
margin-bottom: var(--admin-spacing-2xl);
|
||||
margin-bottom: var(--spacing-2xl);
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
@@ -155,19 +155,19 @@
|
||||
}
|
||||
|
||||
.admin-section__header {
|
||||
margin-bottom: var(--admin-spacing-lg);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-section__title {
|
||||
font-size: var(--admin-font-size-xl);
|
||||
font-size: var(--font-size-xl);
|
||||
font-weight: 600;
|
||||
color: var(--admin-content-text);
|
||||
margin: 0 0 var(--admin-spacing-xs);
|
||||
color: var(--content-text);
|
||||
margin: 0 0 var(--spacing-xs);
|
||||
}
|
||||
|
||||
.admin-section__description {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
color: var(--admin-content-text);
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--content-text);
|
||||
opacity: 0.8;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -177,7 +177,7 @@
|
||||
*/
|
||||
.admin-stats-grid {
|
||||
display: grid;
|
||||
gap: var(--admin-spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@@ -190,47 +190,47 @@
|
||||
}
|
||||
|
||||
.admin-stat-card {
|
||||
background-color: var(--admin-content-bg);
|
||||
border: 1px solid var(--admin-border-light);
|
||||
border-radius: var(--admin-radius-lg);
|
||||
padding: var(--admin-spacing-lg);
|
||||
background-color: var(--content-bg);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-stat-card__label {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
color: var(--admin-content-text);
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--content-text);
|
||||
opacity: 0.7;
|
||||
margin: 0 0 var(--admin-spacing-xs);
|
||||
margin: 0 0 var(--spacing-xs);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-stat-card__value {
|
||||
font-size: var(--admin-font-size-3xl);
|
||||
font-size: var(--font-size-3xl);
|
||||
font-weight: 700;
|
||||
color: var(--admin-content-text);
|
||||
margin: 0 0 var(--admin-spacing-sm);
|
||||
color: var(--content-text);
|
||||
margin: 0 0 var(--spacing-sm);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.admin-stat-card__change {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 500;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-xs);
|
||||
gap: var(--spacing-xs);
|
||||
|
||||
&.admin-stat-card__change--positive {
|
||||
color: var(--admin-accent-success);
|
||||
color: var(--accent-success);
|
||||
}
|
||||
|
||||
&.admin-stat-card__change--negative {
|
||||
color: var(--admin-accent-error);
|
||||
color: var(--accent-error);
|
||||
}
|
||||
|
||||
&.admin-stat-card__change--neutral {
|
||||
color: var(--admin-content-text);
|
||||
color: var(--content-text);
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
@@ -238,11 +238,11 @@
|
||||
.admin-stat-card__icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
padding: var(--admin-spacing-sm);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
border-radius: var(--admin-radius-md);
|
||||
color: var(--admin-accent-primary);
|
||||
margin-bottom: var(--admin-spacing-md);
|
||||
padding: var(--spacing-sm);
|
||||
background-color: var(--bg-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--accent-primary);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -250,27 +250,27 @@
|
||||
*/
|
||||
.admin-empty-state {
|
||||
text-align: center;
|
||||
padding: var(--admin-spacing-2xl);
|
||||
color: var(--admin-content-text);
|
||||
padding: var(--spacing-2xl);
|
||||
color: var(--content-text);
|
||||
}
|
||||
|
||||
.admin-empty-state__icon {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin: 0 auto var(--admin-spacing-lg);
|
||||
margin: 0 auto var(--spacing-lg);
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.admin-empty-state__title {
|
||||
font-size: var(--admin-font-size-xl);
|
||||
font-size: var(--font-size-xl);
|
||||
font-weight: 600;
|
||||
margin: 0 0 var(--admin-spacing-sm);
|
||||
margin: 0 0 var(--spacing-sm);
|
||||
}
|
||||
|
||||
.admin-empty-state__description {
|
||||
font-size: var(--admin-font-size-base);
|
||||
font-size: var(--font-size-base);
|
||||
opacity: 0.8;
|
||||
margin: 0 0 var(--admin-spacing-lg);
|
||||
margin: 0 0 var(--spacing-lg);
|
||||
}
|
||||
|
||||
.admin-empty-state__action {
|
||||
@@ -285,22 +285,22 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--admin-spacing-2xl);
|
||||
color: var(--admin-content-text);
|
||||
padding: var(--spacing-2xl);
|
||||
color: var(--content-text);
|
||||
}
|
||||
|
||||
.admin-loading__spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid var(--admin-border-light);
|
||||
border-top-color: var(--admin-accent-primary);
|
||||
border: 3px solid var(--border-light);
|
||||
border-top-color: var(--accent-primary);
|
||||
border-radius: 50%;
|
||||
animation: admin-spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
.admin-loading__text {
|
||||
margin-top: var(--admin-spacing-md);
|
||||
font-size: var(--admin-font-size-sm);
|
||||
margin-top: var(--spacing-md);
|
||||
font-size: var(--font-size-sm);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,32 +5,32 @@
|
||||
* Sticky positioning with backdrop blur for modern look.
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
@layer components {
|
||||
/**
|
||||
* Header Container
|
||||
*/
|
||||
.admin-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-md);
|
||||
background-color: var(--admin-header-bg);
|
||||
border-bottom: 1px solid var(--admin-header-border);
|
||||
padding: var(--admin-spacing-md) var(--admin-spacing-content-padding);
|
||||
min-height: var(--admin-header-height-mobile);
|
||||
gap: var(--spacing-sm);
|
||||
background-color: var(--header-bg);
|
||||
border-bottom: 1px solid var(--header-border);
|
||||
padding: var(--spacing-sm) var(--spacing-content-padding);
|
||||
min-height: var(--header-height-mobile);
|
||||
|
||||
/* Sticky with blur effect */
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--admin-z-header);
|
||||
z-index: var(--z-header);
|
||||
backdrop-filter: blur(8px);
|
||||
background-color: var(--admin-header-bg);
|
||||
background-color: var(--header-bg);
|
||||
|
||||
@media (min-width: 768px) {
|
||||
min-height: var(--admin-header-height-tablet);
|
||||
min-height: var(--header-height-tablet);
|
||||
}
|
||||
|
||||
@media (min-width: 1440px) {
|
||||
min-height: var(--admin-header-height-wide);
|
||||
min-height: var(--header-height-wide);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
* Page Title
|
||||
*/
|
||||
.admin-header__title {
|
||||
font-size: var(--admin-font-size-xl);
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 600;
|
||||
color: var(--admin-header-text);
|
||||
color: var(--header-text);
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
@@ -55,7 +55,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Search Bar
|
||||
* Search Bar Container
|
||||
*/
|
||||
.admin-header__search {
|
||||
flex: 0 1 400px;
|
||||
@@ -68,54 +68,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.admin-search {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin-search__input {
|
||||
width: 100%;
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
padding-left: calc(var(--admin-spacing-md) + 20px + var(--admin-spacing-sm));
|
||||
border: 1px solid var(--admin-border-light);
|
||||
border-radius: var(--admin-radius-md);
|
||||
font-size: var(--admin-font-size-sm);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
color: var(--admin-content-text);
|
||||
transition: all var(--admin-transition-base);
|
||||
|
||||
&::placeholder {
|
||||
color: var(--admin-content-text);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: var(--admin-focus-ring);
|
||||
box-shadow: 0 0 0 3px var(--admin-focus-ring-alpha);
|
||||
background-color: var(--admin-content-bg);
|
||||
}
|
||||
}
|
||||
|
||||
.admin-search__icon {
|
||||
position: absolute;
|
||||
left: var(--admin-spacing-md);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: var(--admin-content-text);
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Header Actions (Right Side)
|
||||
*/
|
||||
.admin-header__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-sm);
|
||||
gap: var(--spacing-sm);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@@ -126,30 +85,37 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: var(--admin-radius-md);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: var(--radius-md);
|
||||
background-color: transparent;
|
||||
border: 1px solid transparent;
|
||||
color: var(--admin-header-text);
|
||||
color: var(--header-text);
|
||||
cursor: pointer;
|
||||
transition: all var(--admin-transition-base);
|
||||
transition: all var(--transition-base);
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--admin-hover-overlay);
|
||||
border-color: var(--admin-border-light);
|
||||
background-color: var(--hover-overlay);
|
||||
border-color: var(--border-light);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Dark Theme Optimization */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
&:hover {
|
||||
background-color: oklch(from var(--header-bg) calc(l + 0.03) c h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.admin-action-btn__icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -161,8 +127,8 @@
|
||||
right: 6px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background-color: var(--admin-accent-error);
|
||||
border: 2px solid var(--admin-header-bg);
|
||||
background-color: var(--accent-error);
|
||||
border: 2px solid var(--header-bg);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@@ -184,21 +150,28 @@
|
||||
.admin-theme-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-xs);
|
||||
padding: var(--admin-spacing-xs) var(--admin-spacing-sm);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
border: 1px solid var(--admin-border-light);
|
||||
border-radius: var(--admin-radius-md);
|
||||
gap: var(--spacing-xs);
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
background-color: var(--bg-secondary);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
transition: all var(--admin-transition-base);
|
||||
transition: all var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--admin-bg-tertiary);
|
||||
background-color: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
/* Dark Theme Optimization */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
&:hover {
|
||||
background-color: oklch(from var(--bg-secondary) calc(l + 0.05) c h);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
/* Icon only on mobile */
|
||||
padding: var(--admin-spacing-xs);
|
||||
padding: var(--spacing-xs);
|
||||
|
||||
.admin-theme-toggle__label {
|
||||
display: none;
|
||||
@@ -209,12 +182,12 @@
|
||||
.admin-theme-toggle__icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: var(--admin-header-text);
|
||||
color: var(--header-text);
|
||||
}
|
||||
|
||||
.admin-theme-toggle__label {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
color: var(--admin-header-text);
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--header-text);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -227,23 +200,30 @@
|
||||
.admin-user-menu__trigger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-sm);
|
||||
padding: var(--admin-spacing-xs);
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-xs);
|
||||
background-color: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--admin-radius-md);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
transition: all var(--admin-transition-base);
|
||||
transition: all var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--admin-hover-overlay);
|
||||
border-color: var(--admin-border-light);
|
||||
background-color: var(--hover-overlay);
|
||||
border-color: var(--border-light);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Dark Theme Optimization */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
&:hover {
|
||||
background-color: oklch(from var(--header-bg) calc(l + 0.03) c h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.admin-user-menu__avatar {
|
||||
@@ -251,13 +231,13 @@
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
border: 2px solid var(--admin-border-light);
|
||||
border: 2px solid var(--border-light);
|
||||
}
|
||||
|
||||
.admin-user-menu__name {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 500;
|
||||
color: var(--admin-header-text);
|
||||
color: var(--header-text);
|
||||
|
||||
@media (max-width: 767px) {
|
||||
display: none;
|
||||
@@ -267,39 +247,15 @@
|
||||
.admin-user-menu__chevron {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: var(--admin-header-text);
|
||||
transition: transform var(--admin-transition-base);
|
||||
|
||||
.admin-user-menu[data-open="true"] & {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
color: var(--header-text);
|
||||
transition: transform var(--transition-base);
|
||||
|
||||
/* Rotate when popover is open (handled by JavaScript) */
|
||||
@media (max-width: 767px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Dropdown Menu
|
||||
*/
|
||||
.admin-user-menu__dropdown {
|
||||
position: absolute;
|
||||
top: calc(100% + var(--admin-spacing-xs));
|
||||
right: 0;
|
||||
min-width: 200px;
|
||||
background-color: var(--admin-content-bg);
|
||||
border: 1px solid var(--admin-border-light);
|
||||
border-radius: var(--admin-radius-md);
|
||||
box-shadow: var(--admin-shadow-lg);
|
||||
padding: var(--admin-spacing-sm) 0;
|
||||
display: none;
|
||||
z-index: var(--admin-z-dropdown);
|
||||
|
||||
.admin-user-menu[data-open="true"] & {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-user-menu__item {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
@@ -308,15 +264,15 @@
|
||||
.admin-user-menu__link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-sm);
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
color: var(--admin-content-text);
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
color: var(--content-text);
|
||||
text-decoration: none;
|
||||
font-size: var(--admin-font-size-sm);
|
||||
transition: background-color var(--admin-transition-base);
|
||||
font-size: var(--font-size-sm);
|
||||
transition: background-color var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--admin-bg-secondary);
|
||||
background-color: var(--bg-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -328,7 +284,7 @@
|
||||
|
||||
.admin-user-menu__divider {
|
||||
height: 1px;
|
||||
background-color: var(--admin-border-light);
|
||||
margin: var(--admin-spacing-sm) 0;
|
||||
background-color: var(--border-light);
|
||||
margin: var(--spacing-sm) 0;
|
||||
}
|
||||
}
|
||||
|
||||
173
resources/css/admin/06-components/_popover.css
Normal file
173
resources/css/admin/06-components/_popover.css
Normal file
@@ -0,0 +1,173 @@
|
||||
/**
|
||||
* Popover Component - Admin Interface
|
||||
*
|
||||
* Native Popover API für Dropdown-Menüs und Overlays.
|
||||
* Baseline 2025: Popover API ist Baseline Newly available.
|
||||
*
|
||||
* Features:
|
||||
* - Native Browser-Support (kein JavaScript nötig für Basis-Funktionalität)
|
||||
* - Automatisches Focus-Management
|
||||
* - ESC-Key Support (native)
|
||||
* - Backdrop-Click Support (native)
|
||||
* - View Transition Integration für Popover-Transitions
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/**
|
||||
* Popover Base
|
||||
*/
|
||||
[popover] {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
margin: auto;
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-md);
|
||||
background-color: var(--content-bg);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: var(--spacing-sm);
|
||||
z-index: var(--z-popover);
|
||||
color: var(--content-text);
|
||||
|
||||
/* Hide by default (popover API handles visibility) */
|
||||
&:not(:popover-open) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* View Transition für Popover-Öffnen/Schließen */
|
||||
&::backdrop {
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(2px);
|
||||
transition: opacity var(--transition-base), backdrop-filter var(--transition-base);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin Popover Styles
|
||||
*/
|
||||
.admin-popover {
|
||||
min-width: 200px;
|
||||
max-width: 320px;
|
||||
padding: var(--spacing-xs) 0;
|
||||
background-color: var(--content-bg);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
overflow: hidden;
|
||||
|
||||
/* Positionierung */
|
||||
&--bottom-start {
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
&--bottom-end {
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&--top-start {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
&--top-end {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Popover Content (Menu Lists)
|
||||
*/
|
||||
.admin-popover ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.admin-popover li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Popover Links/Buttons
|
||||
*/
|
||||
.admin-popover a,
|
||||
.admin-popover button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
width: 100%;
|
||||
padding: var(--spacing-xs) var(--spacing-md);
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--content-text);
|
||||
text-decoration: none;
|
||||
font-size: var(--font-size-sm);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--transition-base);
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: var(--hover-overlay);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Popover Divider
|
||||
*/
|
||||
.admin-popover hr {
|
||||
margin: var(--spacing-xs) 0;
|
||||
border: none;
|
||||
border-top: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
/**
|
||||
* Popover Animation (View Transitions)
|
||||
*/
|
||||
@view-transition {
|
||||
navigation: auto;
|
||||
}
|
||||
|
||||
@view-transition-group(popover) {
|
||||
animation-duration: var(--transition-base);
|
||||
animation-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dark Theme Optimizations
|
||||
*/
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[popover] {
|
||||
background-color: var(--content-bg);
|
||||
border-color: var(--border-light);
|
||||
box-shadow: var(--shadow-lg);
|
||||
|
||||
&::backdrop {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
.admin-popover a:hover,
|
||||
.admin-popover button:hover {
|
||||
background-color: oklch(from var(--content-bg) calc(l + 0.08) c h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
168
resources/css/admin/06-components/_search.css
Normal file
168
resources/css/admin/06-components/_search.css
Normal file
@@ -0,0 +1,168 @@
|
||||
/**
|
||||
* Search Component - Admin Interface
|
||||
*
|
||||
* Semantisches <search> Element für Suchformulare.
|
||||
* Baseline 2023: <search> Element ist Baseline Newly available.
|
||||
*
|
||||
* Features:
|
||||
* - Semantisches HTML mit <search> Element
|
||||
* - Accessibility-Support
|
||||
* - Verschiedene Varianten (header, sidebar, standalone)
|
||||
* - Dark Theme Optimierungen
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/**
|
||||
* Search Element Base
|
||||
*/
|
||||
search.admin-search {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Search Form
|
||||
*/
|
||||
search.admin-search form {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-xs);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/**
|
||||
* Search Input
|
||||
*/
|
||||
search.admin-search .admin-search__input {
|
||||
width: 100%;
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
padding-right: calc(var(--spacing-sm) + 36px + var(--spacing-xs)); /* Space for submit button */
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: var(--font-size-sm);
|
||||
background-color: var(--bg-secondary);
|
||||
color: var(--content-text);
|
||||
transition: all var(--transition-base);
|
||||
|
||||
&::placeholder {
|
||||
color: var(--content-text);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: var(--focus-ring);
|
||||
box-shadow: 0 0 0 3px var(--focus-ring-alpha);
|
||||
background-color: var(--content-bg);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Search Submit Button
|
||||
*/
|
||||
search.admin-search .admin-search__submit {
|
||||
position: absolute;
|
||||
right: var(--spacing-xs);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: var(--spacing-xs);
|
||||
cursor: pointer;
|
||||
color: var(--content-text);
|
||||
opacity: 0.6;
|
||||
transition: opacity var(--transition-base);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--radius-sm);
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
opacity: 1;
|
||||
background-color: var(--hover-overlay);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Search Icon
|
||||
*/
|
||||
search.admin-search .admin-search__icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Visually Hidden Label
|
||||
*/
|
||||
search.admin-search .admin-visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Variant: Header
|
||||
*/
|
||||
search.admin-search--header {
|
||||
flex: 0 1 400px;
|
||||
max-width: 400px;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
flex: 1;
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Variant: Sidebar
|
||||
*/
|
||||
search.admin-search--sidebar {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
/**
|
||||
* Variant: Standalone
|
||||
*/
|
||||
search.admin-search--standalone {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dark Theme Optimizations
|
||||
*/
|
||||
@media (prefers-color-scheme: dark) {
|
||||
search.admin-search .admin-search__input {
|
||||
background-color: var(--bg-secondary);
|
||||
border-color: var(--border-light);
|
||||
|
||||
&:focus {
|
||||
background-color: var(--content-bg);
|
||||
border-color: var(--focus-ring);
|
||||
}
|
||||
}
|
||||
|
||||
search.admin-search .admin-search__submit {
|
||||
color: var(--content-text);
|
||||
|
||||
&:hover {
|
||||
background-color: oklch(from var(--bg-secondary) calc(l + 0.1) c h);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,29 +5,104 @@
|
||||
* Mobile: Off-canvas overlay, Tablet+: Fixed sidebar
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
@layer components {
|
||||
/**
|
||||
* Sidebar Container
|
||||
*
|
||||
* Component styling for the admin sidebar.
|
||||
* Grid positioning is handled in _layout.css (grid-area: sidebar).
|
||||
*/
|
||||
.admin-sidebar {
|
||||
/* Internal Layout (Flexbox for content) */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--admin-sidebar-bg);
|
||||
color: var(--admin-sidebar-text);
|
||||
|
||||
/* Styling */
|
||||
background-color: var(--sidebar-bg);
|
||||
color: var(--sidebar-text);
|
||||
|
||||
/* Spacing */
|
||||
padding: var(--admin-spacing-lg) 0;
|
||||
padding: var(--spacing-md) 0;
|
||||
|
||||
/* Mobile: Hidden by default, shown via toggle */
|
||||
@media (max-width: 767px) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: var(--sidebar-width-mobile);
|
||||
max-width: 280px;
|
||||
transform: translateX(-100%);
|
||||
transition: transform var(--transition-base);
|
||||
z-index: var(--z-sidebar);
|
||||
overflow-y: auto;
|
||||
|
||||
/* Mobile Menu Open State */
|
||||
&[data-mobile-menu-open="true"] {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Tablet+: Always visible */
|
||||
@media (min-width: 768px) {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
border-right: 1px solid var(--sidebar-border);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Resize Handle
|
||||
*/
|
||||
.admin-sidebar__resize-handle {
|
||||
display: none;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 4px;
|
||||
cursor: col-resize;
|
||||
background-color: transparent;
|
||||
transition: background-color var(--transition-base);
|
||||
z-index: 10;
|
||||
user-select: none;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--sidebar-border);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: var(--accent-primary);
|
||||
}
|
||||
|
||||
/* Dark Theme Optimization */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
&:hover {
|
||||
background-color: oklch(from var(--sidebar-border) calc(l + 0.1) c h);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: var(--accent-primary);
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sidebar Header (Logo + Title)
|
||||
*/
|
||||
.admin-sidebar__header {
|
||||
padding: 0 var(--admin-spacing-lg);
|
||||
margin-bottom: var(--admin-spacing-xl);
|
||||
padding: 0 var(--spacing-lg);
|
||||
margin-bottom: var(--spacing-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.admin-sidebar__logo {
|
||||
@@ -37,9 +112,9 @@
|
||||
}
|
||||
|
||||
.admin-sidebar__title {
|
||||
font-size: var(--admin-font-size-lg);
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 600;
|
||||
color: var(--admin-sidebar-text-hover);
|
||||
color: var(--sidebar-text-hover);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -51,73 +126,174 @@
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--admin-spacing-xs);
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.admin-nav__section {
|
||||
padding: 0 var(--admin-spacing-md);
|
||||
}
|
||||
|
||||
.admin-nav__section-title {
|
||||
font-size: var(--admin-font-size-xs);
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--admin-sidebar-text);
|
||||
opacity: 0.7;
|
||||
padding: var(--admin-spacing-md) var(--admin-spacing-sm);
|
||||
margin: var(--admin-spacing-md) 0 var(--admin-spacing-xs);
|
||||
padding: 0 var(--spacing-md);
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation List
|
||||
* Section Toggle (Summary)
|
||||
*/
|
||||
.admin-nav__list {
|
||||
.admin-nav__section-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
transition: background-color var(--transition-base), opacity var(--transition-base);
|
||||
list-style: none; /* Remove default list styling */
|
||||
border-radius: var(--radius-sm);
|
||||
|
||||
/* Hide browser default marker */
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&::marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
background-color: var(--hover-overlay);
|
||||
}
|
||||
|
||||
/* Dark Theme Hover Optimization */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
&:hover {
|
||||
background-color: oklch(from var(--sidebar-bg) calc(l + 0.08) c h);
|
||||
}
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Section Title (using element selector)
|
||||
*/
|
||||
.admin-nav summary h2 {
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--sidebar-text);
|
||||
opacity: 0.7;
|
||||
padding: var(--spacing-sm) var(--spacing-sm);
|
||||
margin: var(--spacing-sm) 0 var(--spacing-xs);
|
||||
pointer-events: none;
|
||||
transition: opacity var(--transition-base), color var(--transition-base);
|
||||
}
|
||||
|
||||
/**
|
||||
* Section Toggle Icon (Chevron) - using element selector
|
||||
*/
|
||||
.admin-nav summary svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
color: var(--sidebar-text);
|
||||
opacity: 0.5;
|
||||
transition: transform var(--transition-base), opacity var(--transition-base);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.admin-nav summary:hover svg {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collapsed Section State (details:not([open]))
|
||||
*/
|
||||
.admin-nav__section:not([open]) {
|
||||
summary svg {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
ul {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Expanded Section State (details[open])
|
||||
*/
|
||||
.admin-nav__section[open] {
|
||||
summary svg {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
summary h2 {
|
||||
opacity: 1;
|
||||
color: var(--sidebar-text-hover);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation List (using element selectors)
|
||||
*/
|
||||
.admin-nav ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--admin-spacing-xs);
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation Items
|
||||
* Navigation Items (using element selectors)
|
||||
*/
|
||||
.admin-nav__item {
|
||||
.admin-nav li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-nav__link {
|
||||
.admin-nav a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-sm);
|
||||
padding: var(--admin-spacing-sm) var(--admin-spacing-md);
|
||||
border-radius: var(--admin-radius-md);
|
||||
color: var(--admin-sidebar-text);
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-xs) var(--spacing-md);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--sidebar-text);
|
||||
text-decoration: none;
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 500;
|
||||
transition: all var(--admin-transition-base);
|
||||
transition: all var(--transition-base);
|
||||
position: relative;
|
||||
|
||||
/* Hover State */
|
||||
&:hover {
|
||||
background-color: var(--admin-hover-overlay);
|
||||
color: var(--admin-sidebar-text-hover);
|
||||
background-color: var(--hover-overlay);
|
||||
color: var(--sidebar-text-hover);
|
||||
}
|
||||
|
||||
/* Dark Theme Hover Optimization */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
&:hover {
|
||||
background-color: oklch(from var(--sidebar-bg) calc(l + 0.05) c h);
|
||||
}
|
||||
}
|
||||
|
||||
/* Focus State */
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Active State */
|
||||
&[aria-current="page"],
|
||||
&.admin-nav__link--active {
|
||||
background-color: var(--admin-sidebar-active);
|
||||
color: var(--admin-sidebar-text-hover);
|
||||
background-color: var(--sidebar-active);
|
||||
color: var(--sidebar-text-hover);
|
||||
|
||||
/* Active Indicator */
|
||||
&::before {
|
||||
@@ -128,25 +304,28 @@
|
||||
transform: translateY(-50%);
|
||||
width: 3px;
|
||||
height: 70%;
|
||||
background-color: var(--admin-accent-primary);
|
||||
background-color: var(--accent-primary);
|
||||
border-radius: 0 2px 2px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation Icons
|
||||
* Navigation Icons (using element selectors)
|
||||
*/
|
||||
.admin-nav__icon {
|
||||
.admin-nav svg,
|
||||
.admin-nav .admin-nav__icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
flex-shrink: 0;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.admin-nav__link:hover &,
|
||||
.admin-nav__link[aria-current="page"] & {
|
||||
opacity: 1;
|
||||
}
|
||||
.admin-nav a:hover svg,
|
||||
.admin-nav a:hover .admin-nav__icon,
|
||||
.admin-nav a[aria-current="page"] svg,
|
||||
.admin-nav a[aria-current="page"] .admin-nav__icon {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -155,9 +334,9 @@
|
||||
.admin-nav__badge {
|
||||
margin-left: auto;
|
||||
padding: 2px 8px;
|
||||
background-color: var(--admin-accent-error);
|
||||
background-color: var(--accent-error);
|
||||
color: white;
|
||||
font-size: var(--admin-font-size-xs);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
border-radius: 10px;
|
||||
min-width: 20px;
|
||||
@@ -169,11 +348,11 @@
|
||||
*/
|
||||
.admin-nav__submenu {
|
||||
list-style: none;
|
||||
margin: var(--admin-spacing-xs) 0 0;
|
||||
padding: 0 0 0 calc(var(--admin-spacing-md) + 20px);
|
||||
margin: var(--spacing-xs) 0 0;
|
||||
padding: 0 0 0 calc(var(--spacing-md) + 20px);
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
gap: var(--admin-spacing-xs);
|
||||
gap: var(--spacing-xs);
|
||||
|
||||
/* Show when parent is active or expanded */
|
||||
.admin-nav__item--expanded > & {
|
||||
@@ -181,9 +360,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
.admin-nav__submenu .admin-nav__link {
|
||||
font-size: var(--admin-font-size-xs);
|
||||
padding: var(--admin-spacing-xs) var(--admin-spacing-sm);
|
||||
.admin-nav__submenu a {
|
||||
font-size: var(--font-size-xs);
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -193,7 +372,7 @@
|
||||
margin-left: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
transition: transform var(--admin-transition-base);
|
||||
transition: transform var(--transition-base);
|
||||
|
||||
.admin-nav__item--expanded & {
|
||||
transform: rotate(90deg);
|
||||
@@ -205,22 +384,29 @@
|
||||
*/
|
||||
.admin-sidebar__footer {
|
||||
margin-top: auto;
|
||||
padding: var(--admin-spacing-lg);
|
||||
border-top: 1px solid var(--admin-sidebar-border);
|
||||
padding: var(--spacing-lg);
|
||||
border-top: 1px solid var(--sidebar-border);
|
||||
}
|
||||
|
||||
.admin-sidebar__user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--admin-spacing-sm);
|
||||
padding: var(--admin-spacing-sm);
|
||||
border-radius: var(--admin-radius-md);
|
||||
color: var(--admin-sidebar-text);
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-sm);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--sidebar-text);
|
||||
text-decoration: none;
|
||||
transition: background-color var(--admin-transition-base);
|
||||
transition: background-color var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--admin-hover-overlay);
|
||||
background-color: var(--hover-overlay);
|
||||
}
|
||||
|
||||
/* Dark Theme Optimization */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
&:hover {
|
||||
background-color: oklch(from var(--sidebar-bg) calc(l + 0.05) c h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,9 +424,9 @@
|
||||
}
|
||||
|
||||
.admin-sidebar__user-name {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 600;
|
||||
color: var(--admin-sidebar-text-hover);
|
||||
color: var(--sidebar-text-hover);
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@@ -248,8 +434,8 @@
|
||||
}
|
||||
|
||||
.admin-sidebar__user-role {
|
||||
font-size: var(--admin-font-size-xs);
|
||||
color: var(--admin-sidebar-text);
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--sidebar-text);
|
||||
opacity: 0.8;
|
||||
display: block;
|
||||
}
|
||||
@@ -265,23 +451,23 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
top: var(--admin-spacing-md);
|
||||
left: var(--admin-spacing-md);
|
||||
z-index: calc(var(--admin-z-sidebar) + 1);
|
||||
top: var(--spacing-md);
|
||||
left: var(--spacing-md);
|
||||
z-index: calc(var(--z-sidebar) + 1);
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background-color: var(--admin-sidebar-bg);
|
||||
border: 1px solid var(--admin-sidebar-border);
|
||||
border-radius: var(--admin-radius-md);
|
||||
background-color: var(--sidebar-bg);
|
||||
border: 1px solid var(--sidebar-border);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--admin-transition-base);
|
||||
transition: background-color var(--transition-base);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--admin-sidebar-active);
|
||||
background-color: var(--sidebar-active);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--admin-focus-ring);
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
@@ -290,6 +476,6 @@
|
||||
.admin-sidebar__toggle-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
color: var(--admin-sidebar-text-hover);
|
||||
color: var(--sidebar-text-hover);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,20 +4,20 @@
|
||||
* List of statistics with labels and values for dashboard cards.
|
||||
*/
|
||||
|
||||
@layer admin-components {
|
||||
@layer components {
|
||||
.admin-stat-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--admin-spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.admin-stat-list__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--admin-spacing-sm);
|
||||
padding-bottom: var(--admin-spacing-sm);
|
||||
border-bottom: 1px solid var(--admin-border-light);
|
||||
gap: var(--spacing-sm);
|
||||
padding-bottom: var(--spacing-sm);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.admin-stat-list__item:last-child {
|
||||
@@ -26,23 +26,23 @@
|
||||
}
|
||||
|
||||
.admin-stat-list__label {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
color: var(--admin-content-text);
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--content-text);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.admin-stat-list__value {
|
||||
font-size: var(--admin-font-size-sm);
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
color: var(--admin-content-text);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--content-text);
|
||||
}
|
||||
|
||||
/* Compact variant */
|
||||
.admin-stat-list--compact {
|
||||
gap: var(--admin-spacing-sm);
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.admin-stat-list--compact .admin-stat-list__item {
|
||||
padding-bottom: var(--admin-spacing-xs);
|
||||
padding-bottom: var(--spacing-xs);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* - Keyboard navigation enhancements
|
||||
*/
|
||||
|
||||
@layer admin-utilities {
|
||||
@layer utilities {
|
||||
/**
|
||||
* Focus Visible Enhancement (WCAG 2.1 Level AA)
|
||||
*
|
||||
@@ -16,9 +16,9 @@
|
||||
* must have a visible focus indicator with min 3:1 contrast ratio.
|
||||
*/
|
||||
:focus-visible {
|
||||
outline: var(--admin-focus-ring-width, 2px) solid var(--admin-focus-ring);
|
||||
outline-offset: var(--admin-focus-ring-offset, 2px);
|
||||
border-radius: var(--admin-radius-sm);
|
||||
outline: var(--focus-ring-width, 2px) solid var(--focus-ring);
|
||||
outline-offset: var(--focus-ring-offset, 2px);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -31,18 +31,18 @@
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
left: -9999px;
|
||||
z-index: var(--admin-z-toast);
|
||||
padding: var(--admin-spacing-md) var(--admin-spacing-lg);
|
||||
background-color: var(--admin-accent-primary);
|
||||
z-index: var(--z-toast);
|
||||
padding: var(--spacing-md) var(--spacing-lg);
|
||||
background-color: var(--accent-primary);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
border-radius: var(--admin-radius-md);
|
||||
box-shadow: var(--admin-shadow-lg);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
|
||||
&:focus {
|
||||
top: var(--admin-spacing-md);
|
||||
left: var(--admin-spacing-md);
|
||||
top: var(--spacing-md);
|
||||
left: var(--spacing-md);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,8 +111,8 @@
|
||||
right: -2px;
|
||||
top: -2px;
|
||||
bottom: -2px;
|
||||
border: 2px solid var(--admin-focus-ring);
|
||||
border-radius: var(--admin-radius-md);
|
||||
border: 2px solid var(--focus-ring);
|
||||
border-radius: var(--radius-md);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
@@ -123,7 +123,7 @@
|
||||
* Show clear visual feedback for keyboard users.
|
||||
*/
|
||||
body.user-is-tabbing *:focus {
|
||||
outline: 3px solid var(--admin-accent-info);
|
||||
outline: 3px solid var(--accent-info);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@@ -173,13 +173,13 @@
|
||||
*/
|
||||
.text-contrast-aa {
|
||||
/* Ensures minimum 4.5:1 contrast */
|
||||
color: var(--admin-content-text);
|
||||
color: var(--content-text);
|
||||
}
|
||||
|
||||
.text-contrast-large {
|
||||
/* Large text can use lower contrast */
|
||||
font-size: 1.125rem;
|
||||
color: var(--admin-content-text);
|
||||
color: var(--content-text);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
*/
|
||||
.admin-error,
|
||||
.admin-form-error {
|
||||
color: var(--admin-accent-error);
|
||||
color: var(--accent-error);
|
||||
|
||||
&::before {
|
||||
content: '⚠ ';
|
||||
@@ -200,7 +200,7 @@
|
||||
}
|
||||
|
||||
[aria-invalid="true"] {
|
||||
border-color: var(--admin-accent-error) !important;
|
||||
border-color: var(--accent-error) !important;
|
||||
border-width: 2px !important;
|
||||
|
||||
/* Error icon */
|
||||
@@ -219,21 +219,21 @@
|
||||
.admin-success::before {
|
||||
content: '✓ ';
|
||||
font-weight: bold;
|
||||
color: var(--admin-accent-success);
|
||||
color: var(--accent-success);
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-warning::before {
|
||||
content: '⚠ ';
|
||||
font-weight: bold;
|
||||
color: var(--admin-accent-warning);
|
||||
color: var(--accent-warning);
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-info::before {
|
||||
content: 'ℹ ';
|
||||
font-weight: bold;
|
||||
color: var(--admin-accent-info);
|
||||
color: var(--accent-info);
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
@@ -285,20 +285,20 @@
|
||||
*/
|
||||
table {
|
||||
caption {
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-align: left;
|
||||
padding: var(--admin-spacing-md);
|
||||
background-color: var(--admin-bg-secondary);
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--bg-secondary);
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: var(--admin-font-weight-semibold);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Zebra striping for better readability */
|
||||
tbody tr:nth-child(even) {
|
||||
background-color: var(--admin-bg-secondary);
|
||||
background-color: var(--bg-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@
|
||||
a[href]::after {
|
||||
content: " (" attr(href) ")";
|
||||
font-size: 0.875em;
|
||||
color: var(--admin-content-text);
|
||||
color: var(--content-text);
|
||||
}
|
||||
|
||||
/* Don't show internal links */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Respects prefers-reduced-motion for accessibility.
|
||||
*/
|
||||
|
||||
@layer admin-utilities {
|
||||
@layer utilities {
|
||||
/**
|
||||
* Theme Transition Class
|
||||
*
|
||||
@@ -15,18 +15,18 @@
|
||||
:root {
|
||||
/* Smooth transitions for theme changes */
|
||||
transition:
|
||||
background-color var(--admin-transition-base),
|
||||
color var(--admin-transition-base),
|
||||
border-color var(--admin-transition-base);
|
||||
background-color var(--transition-base),
|
||||
color var(--transition-base),
|
||||
border-color var(--transition-base);
|
||||
}
|
||||
|
||||
/* Apply transitions to all elements during theme change */
|
||||
* {
|
||||
transition:
|
||||
background-color var(--admin-transition-base),
|
||||
color var(--admin-transition-base),
|
||||
border-color var(--admin-transition-base),
|
||||
box-shadow var(--admin-transition-base);
|
||||
background-color var(--transition-base),
|
||||
color var(--transition-base),
|
||||
border-color var(--transition-base),
|
||||
box-shadow var(--transition-base);
|
||||
}
|
||||
|
||||
/* Respect reduced motion preference */
|
||||
@@ -41,16 +41,15 @@
|
||||
* Theme Loading State
|
||||
*
|
||||
* Prevent FOUC (Flash of Unstyled Content) during initial theme load.
|
||||
* REMOVED: visibility hidden rule - causes blank page if data-theme is not set
|
||||
*/
|
||||
html:not([data-theme]) {
|
||||
/* Hide content until theme is determined */
|
||||
/* html:not([data-theme]) {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
html[data-theme] {
|
||||
/* Show content once theme is set */
|
||||
visibility: visible;
|
||||
}
|
||||
} */
|
||||
|
||||
/**
|
||||
* Theme Toggle Animation
|
||||
@@ -58,7 +57,7 @@
|
||||
* Icon rotation when toggling theme.
|
||||
*/
|
||||
[data-theme-toggle] svg {
|
||||
transition: transform var(--admin-transition-base);
|
||||
transition: transform var(--transition-base);
|
||||
}
|
||||
|
||||
[data-theme-toggle]:hover svg {
|
||||
@@ -88,14 +87,14 @@
|
||||
@media (prefers-contrast: high) {
|
||||
[data-theme="dark"] {
|
||||
/* Increase contrast in forced colors mode */
|
||||
--admin-bg-primary: oklch(10% 0 0);
|
||||
--admin-content-text: oklch(100% 0 0);
|
||||
--bg-primary: oklch(10% 0 0);
|
||||
--content-text: oklch(100% 0 0);
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
/* Ensure maximum contrast */
|
||||
--admin-bg-primary: oklch(100% 0 0);
|
||||
--admin-content-text: oklch(0% 0 0);
|
||||
--bg-primary: oklch(100% 0 0);
|
||||
--content-text: oklch(0% 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,15 +107,15 @@
|
||||
:root,
|
||||
[data-theme] {
|
||||
/* Force light colors for printing */
|
||||
--admin-bg-primary: oklch(100% 0 0);
|
||||
--admin-content-bg: oklch(100% 0 0);
|
||||
--admin-content-text: oklch(0% 0 0);
|
||||
--admin-border-light: oklch(20% 0 0);
|
||||
--bg-primary: oklch(100% 0 0);
|
||||
--content-bg: oklch(100% 0 0);
|
||||
--content-text: oklch(0% 0 0);
|
||||
--border-light: oklch(20% 0 0);
|
||||
|
||||
/* Remove shadows for print */
|
||||
--admin-shadow-sm: none;
|
||||
--admin-shadow-md: none;
|
||||
--admin-shadow-lg: none;
|
||||
--shadow-sm: none;
|
||||
--shadow-md: none;
|
||||
--shadow-lg: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
97
resources/css/admin/07-utilities/_view-transitions.css
Normal file
97
resources/css/admin/07-utilities/_view-transitions.css
Normal file
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* View Transitions - Admin Interface
|
||||
*
|
||||
* View Transitions API für Admin-Navigation und Content-Updates.
|
||||
* Baseline 2023: View Transitions API ist Baseline Newly available.
|
||||
*
|
||||
* Features:
|
||||
* - View Transitions für Admin-Sidebar-Navigation
|
||||
* - View Transitions für Admin-Content-Bereiche
|
||||
* - View Transitions für Popover-Öffnen/Schließen
|
||||
* - Benannte Bereiche für präzise Animationen
|
||||
*/
|
||||
|
||||
@layer utilities {
|
||||
/**
|
||||
* View Transition Root
|
||||
*/
|
||||
@view-transition {
|
||||
navigation: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin Sidebar View Transition
|
||||
*/
|
||||
@view-transition-group(admin-sidebar) {
|
||||
animation-duration: var(--transition-base);
|
||||
animation-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin Content View Transition
|
||||
*/
|
||||
@view-transition-group(admin-content) {
|
||||
animation-duration: var(--transition-base);
|
||||
animation-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin Header View Transition
|
||||
*/
|
||||
@view-transition-group(admin-header) {
|
||||
animation-duration: var(--transition-base);
|
||||
animation-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Popover View Transitions
|
||||
*/
|
||||
@view-transition-group(admin-popover) {
|
||||
animation-duration: var(--transition-base);
|
||||
animation-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
/**
|
||||
* View Transition Names für Admin-Bereiche
|
||||
*/
|
||||
.admin-sidebar {
|
||||
view-transition-name: admin-sidebar;
|
||||
}
|
||||
|
||||
.admin-content {
|
||||
view-transition-name: admin-content;
|
||||
}
|
||||
|
||||
.admin-header {
|
||||
view-transition-name: admin-header;
|
||||
}
|
||||
|
||||
/**
|
||||
* Popover View Transition Names
|
||||
*/
|
||||
[popover].admin-popover {
|
||||
view-transition-name: admin-popover;
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation Links mit View Transitions
|
||||
*/
|
||||
.admin-nav a {
|
||||
view-transition-name: none; /* Disable for individual links */
|
||||
}
|
||||
|
||||
/**
|
||||
* View Transition für Content-Updates
|
||||
*/
|
||||
.admin-page {
|
||||
view-transition-name: admin-content;
|
||||
}
|
||||
|
||||
/**
|
||||
* View Transition für Sidebar-Navigation
|
||||
*/
|
||||
.admin-nav__section[open] {
|
||||
view-transition-name: admin-nav-section;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,46 +1,11 @@
|
||||
/**
|
||||
* Admin Interface - Main Entry Point
|
||||
* Admin CSS - Re-Export for Backwards Compatibility
|
||||
*
|
||||
* ITCSS Layer Import Structure:
|
||||
* 1. Settings - Design Tokens, Variablen
|
||||
* 2. Tools - Mixins, Functions
|
||||
* 3. Generic - Resets, Normalize
|
||||
* 4. Elements - HTML Element Styles
|
||||
* 5. Objects - Layout Primitives
|
||||
* 6. Components - UI Components (folgt in Sprint 2)
|
||||
* 7. Utilities - Helper Classes (folgt in Sprint 1.3)
|
||||
* This file is now a re-export of styles.css.
|
||||
* All styles have been consolidated into resources/css/styles.css.
|
||||
* This file is kept for backwards compatibility only.
|
||||
*
|
||||
* Verwendung der @layer Direktive für explizite Cascade Control.
|
||||
* @deprecated Use vite_tags('main') instead of loading admin.css directly
|
||||
*/
|
||||
|
||||
/* Layer 1: Settings */
|
||||
@import "./01-settings/_generated-tokens.css";
|
||||
@import "./01-settings/_breakpoints.css";
|
||||
|
||||
/* Layer 2: Tools */
|
||||
@import "./02-tools/_mixins.css";
|
||||
|
||||
/* Layer 3: Generic */
|
||||
@import "./03-generic/_reset.css";
|
||||
|
||||
/* Layer 4: Elements */
|
||||
@import "./04-elements/_base.css";
|
||||
|
||||
/* Layer 5: Objects */
|
||||
@import "./05-objects/_layout.css";
|
||||
@import "./05-objects/_grid.css";
|
||||
|
||||
/* Layer 6: Components */
|
||||
@import "./06-components/_sidebar.css";
|
||||
@import "./06-components/_header.css";
|
||||
@import "./06-components/_breadcrumbs.css";
|
||||
@import "./06-components/_content.css";
|
||||
@import "./06-components/_card.css";
|
||||
@import "./06-components/_button.css";
|
||||
@import "./06-components/_badge.css";
|
||||
@import "./06-components/_stat-list.css";
|
||||
@import "./06-components/_confusion-matrix.css";
|
||||
|
||||
/* Layer 7: Utilities */
|
||||
@import "./07-utilities/_accessibility.css";
|
||||
@import "./07-utilities/_theme-transitions.css";
|
||||
@import "../styles.css";
|
||||
|
||||
@@ -29,7 +29,7 @@ h4,
|
||||
h5,
|
||||
h6 {
|
||||
overflow-wrap: break-word;
|
||||
padding-block: 1.5rem;
|
||||
padding-block: 0; /* Komplett entfernen, Abstände über margin steuern */
|
||||
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
443
resources/css/components/admin/admin-asset-gallery.css
Normal file
443
resources/css/components/admin/admin-asset-gallery.css
Normal file
@@ -0,0 +1,443 @@
|
||||
/**
|
||||
* Admin Asset Gallery Component
|
||||
*
|
||||
* Modern card-based gallery layout with filters sidebar, hover effects,
|
||||
* and improved bulk operations UI.
|
||||
* Uses BEM naming convention and design system tokens.
|
||||
*/
|
||||
|
||||
.admin-asset-gallery {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Header Section */
|
||||
.admin-asset-gallery__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: var(--space-md, 1rem);
|
||||
padding-bottom: var(--space-md, 1rem);
|
||||
border-bottom: 2px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__title {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__actions {
|
||||
display: flex;
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Filters Sidebar */
|
||||
.admin-asset-gallery__filters-sidebar {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-md, 1rem);
|
||||
min-width: 250px;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__filters-title {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0 0 var(--space-md, 1rem) 0;
|
||||
padding-bottom: var(--space-sm, 0.75rem);
|
||||
border-bottom: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__filter-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-asset-gallery__filter-label {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__filter-input,
|
||||
.admin-asset-gallery__filter-select {
|
||||
width: 100%;
|
||||
padding: 0.625rem 0.875rem;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 4px;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
font-size: 0.875rem;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__filter-input:focus,
|
||||
.admin-asset-gallery__filter-select:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
box-shadow: 0 0 0 3px oklch(60% 0.2 280 / 0.1);
|
||||
}
|
||||
|
||||
/* Main Content Area */
|
||||
.admin-asset-gallery__content {
|
||||
display: flex;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Bulk Actions Bar */
|
||||
.admin-asset-gallery__bulk-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-md, 1rem);
|
||||
padding: var(--space-md, 1rem);
|
||||
background: var(--accent-info, oklch(58% 0.22 240));
|
||||
background: oklch(58% 0.22 240 / 0.1);
|
||||
border: 1px solid var(--accent-info, oklch(58% 0.22 240));
|
||||
border-radius: 8px;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__bulk-actions-text {
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__bulk-actions-buttons {
|
||||
display: flex;
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
/* Gallery Grid */
|
||||
.admin-asset-gallery__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Gallery List (Table View) */
|
||||
.admin-asset-gallery__list {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__list thead {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__list th {
|
||||
padding: var(--space-sm, 0.75rem);
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
border-bottom: 2px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__list td {
|
||||
padding: var(--space-sm, 0.75rem);
|
||||
border-bottom: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
font-size: 0.875rem;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__list tbody tr:hover {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__list tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__list-preview-image {
|
||||
max-width: 100px;
|
||||
max-height: 100px;
|
||||
object-fit: cover;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Asset Card */
|
||||
.admin-asset-card {
|
||||
position: relative;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-sm, 0.75rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-asset-card:hover {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
box-shadow: 0 4px 12px oklch(0% 0 0 / 0.1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.admin-asset-card--selected {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
border-width: 2px;
|
||||
box-shadow: 0 0 0 3px oklch(60% 0.2 280 / 0.1);
|
||||
}
|
||||
|
||||
.admin-asset-card__checkbox {
|
||||
position: absolute;
|
||||
top: var(--space-xs, 0.5rem);
|
||||
left: var(--space-xs, 0.5rem);
|
||||
z-index: 10;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
cursor: pointer;
|
||||
accent-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
.admin-asset-card__preview {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-asset-card__preview-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.admin-asset-card:hover .admin-asset-card__preview-image {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.admin-asset-card__preview-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 0.75rem;
|
||||
text-align: center;
|
||||
padding: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
/* Overlay for Quick Actions */
|
||||
.admin-asset-card__overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: oklch(0% 0 0 / 0.6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.admin-asset-card:hover .admin-asset-card__overlay {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.admin-asset-card__quick-actions {
|
||||
display: flex;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-asset-card__quick-action {
|
||||
padding: var(--space-xs, 0.5rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 4px;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.admin-asset-card__quick-action:hover {
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
.admin-asset-card__info {
|
||||
margin-top: var(--space-xs, 0.5rem);
|
||||
font-size: 0.875rem;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-card__collections {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-asset-card__collection-badge {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.admin-asset-card__info-item {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-asset-card__info-label {
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-card__info-value {
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
/* Empty State */
|
||||
.admin-asset-gallery__empty-state {
|
||||
text-align: center;
|
||||
padding: var(--space-xl, 3rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 8px;
|
||||
border: 2px dashed var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__empty-state-text {
|
||||
font-size: 1rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Load More */
|
||||
.admin-asset-gallery__load-more {
|
||||
text-align: center;
|
||||
margin-top: var(--space-lg, 1.5rem);
|
||||
padding-top: var(--space-lg, 1.5rem);
|
||||
border-top: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
/* Loading State */
|
||||
.admin-asset-gallery__loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-xl, 3rem);
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__loading-spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-top-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
.admin-asset-gallery__content {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__filters-sidebar {
|
||||
min-width: 100%;
|
||||
order: -1;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
.admin-asset-gallery__header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__bulk-actions {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__bulk-actions-buttons {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
/* View Mode Toggle */
|
||||
.admin-asset-gallery__view-toggle {
|
||||
display: flex;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 4px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__view-toggle-button {
|
||||
padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem);
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
cursor: pointer;
|
||||
border-radius: 2px;
|
||||
transition: all 0.2s ease;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-asset-gallery__view-toggle-button:hover {
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-gallery__view-toggle-button--active {
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
503
resources/css/components/admin/admin-asset-picker.css
Normal file
503
resources/css/components/admin/admin-asset-picker.css
Normal file
@@ -0,0 +1,503 @@
|
||||
/**
|
||||
* Admin Asset Picker Component
|
||||
*
|
||||
* Modern modal design with backdrop, improved search with filter sidebar,
|
||||
* grid/list view options, and drag & drop support.
|
||||
* Uses BEM naming convention and design system tokens.
|
||||
*/
|
||||
|
||||
.livecomponent-admin-asset-picker {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Picker Button */
|
||||
.livecomponent-admin-asset-picker__button {
|
||||
padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 6px;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__button:hover {
|
||||
background: var(--bg-tertiary, oklch(92% 0.01 280));
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 4px oklch(0% 0 0 / 0.1);
|
||||
}
|
||||
|
||||
/* Modal Backdrop */
|
||||
.livecomponent-admin-asset-picker__backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: oklch(0% 0 0 / 0.5);
|
||||
backdrop-filter: blur(4px);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__backdrop--visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* Modal Content */
|
||||
.livecomponent-admin-asset-picker__modal {
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border-radius: 12px;
|
||||
padding: var(--space-xl, 2rem);
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 8px 32px oklch(0% 0 0 / 0.3);
|
||||
transform: scale(0.95);
|
||||
transition: transform 0.3s ease;
|
||||
width: 100%;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__backdrop--visible .livecomponent-admin-asset-picker__modal {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
/* Modal Header */
|
||||
.livecomponent-admin-asset-picker__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
padding-bottom: var(--space-md, 1rem);
|
||||
border-bottom: 2px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__title {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__close {
|
||||
padding: var(--space-xs, 0.5rem);
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__close:hover {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
/* Search and Filters */
|
||||
.livecomponent-admin-asset-picker__search-container {
|
||||
display: flex;
|
||||
gap: var(--space-md, 1rem);
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__search {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__search-input {
|
||||
width: 100%;
|
||||
padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
|
||||
padding-left: 2.5rem;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 6px;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
font-size: 0.875rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__search-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
box-shadow: 0 0 0 3px oklch(60% 0.2 280 / 0.1);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__search-icon {
|
||||
position: absolute;
|
||||
left: var(--space-sm, 0.75rem);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
/* View Toggle */
|
||||
.livecomponent-admin-asset-picker__view-toggle {
|
||||
display: flex;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 6px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__view-toggle-button {
|
||||
padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem);
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__view-toggle-button:hover {
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__view-toggle-button--active {
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
/* Main Content Area */
|
||||
.livecomponent-admin-asset-picker__content {
|
||||
display: flex;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Filters Sidebar */
|
||||
.livecomponent-admin-asset-picker__filters {
|
||||
min-width: 250px;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-md, 1rem);
|
||||
overflow-y: auto;
|
||||
max-height: calc(90vh - 200px);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__filters-title {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0 0 var(--space-md, 1rem) 0;
|
||||
padding-bottom: var(--space-sm, 0.75rem);
|
||||
border-bottom: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__filter-group {
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__filter-label {
|
||||
display: block;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__filter-select,
|
||||
.livecomponent-admin-asset-picker__filter-input {
|
||||
width: 100%;
|
||||
padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem);
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 4px;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* Assets Grid */
|
||||
.livecomponent-admin-asset-picker__assets {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
max-height: calc(90vh - 200px);
|
||||
padding-right: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
/* Asset Item */
|
||||
.livecomponent-admin-asset-picker__item {
|
||||
border: 2px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-sm, 0.75rem);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__item:hover {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 8px oklch(0% 0 0 / 0.1);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__item--selected {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
border-width: 3px;
|
||||
box-shadow: 0 0 0 3px oklch(60% 0.2 280 / 0.1);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__item--dragging {
|
||||
opacity: 0.5;
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* Asset Preview */
|
||||
.livecomponent-admin-asset-picker__preview {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__preview-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__item:hover .livecomponent-admin-asset-picker__preview-image {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__preview-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 0.75rem;
|
||||
text-align: center;
|
||||
padding: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
/* Asset Info */
|
||||
.livecomponent-admin-asset-picker__info {
|
||||
font-size: 0.75rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
word-break: break-all;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__info-id {
|
||||
font-family: monospace;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
/* List View */
|
||||
.livecomponent-admin-asset-picker__list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list[data-view="list"] {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* List View Item */
|
||||
.livecomponent-admin-asset-picker__list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-md, 1rem);
|
||||
padding: var(--space-sm, 0.75rem);
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 6px;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list-item:hover {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list-item--selected {
|
||||
background: oklch(60% 0.2 280 / 0.1);
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list-preview {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 4px;
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list-id {
|
||||
font-family: monospace;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__list-mime {
|
||||
font-size: 0.7rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
margin-top: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
/* Empty State */
|
||||
.livecomponent-admin-asset-picker__empty {
|
||||
text-align: center;
|
||||
padding: var(--space-xl, 3rem);
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__empty-text {
|
||||
font-size: 1rem;
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Selected Asset Display */
|
||||
.livecomponent-admin-asset-picker__selected {
|
||||
margin-top: var(--space-md, 1rem);
|
||||
padding: var(--space-md, 1rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__selected-label {
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__selected-value {
|
||||
font-family: monospace;
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
word-break: break-all;
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__clear {
|
||||
padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem);
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 4px;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
transition: all 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__clear:hover {
|
||||
background: var(--bg-tertiary, oklch(92% 0.01 280));
|
||||
border-color: var(--accent-error, oklch(60% 0.25 25));
|
||||
color: var(--accent-error, oklch(60% 0.25 25));
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 1024px) {
|
||||
.livecomponent-admin-asset-picker__content {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__filters {
|
||||
min-width: 100%;
|
||||
max-height: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.livecomponent-admin-asset-picker__modal {
|
||||
padding: var(--space-md, 1rem);
|
||||
max-width: 100vw;
|
||||
max-height: 100vh;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__search-container {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
/* Loading State */
|
||||
.livecomponent-admin-asset-picker__loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-xl, 3rem);
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
.livecomponent-admin-asset-picker__loading-spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-top-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
166
resources/css/components/admin/admin-asset-preview.css
Normal file
166
resources/css/components/admin/admin-asset-preview.css
Normal file
@@ -0,0 +1,166 @@
|
||||
/**
|
||||
* Asset Preview Styles
|
||||
* ITCSS: Components Layer
|
||||
*/
|
||||
|
||||
/* Preview Column in Table */
|
||||
.preview-column {
|
||||
width: 80px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.asset-preview-thumbnail {
|
||||
position: relative;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 0 auto;
|
||||
border-radius: var(--radius-sm);
|
||||
overflow: hidden;
|
||||
background: var(--bg-alt);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: transform var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.asset-preview-thumbnail:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.asset-preview-thumbnail .preview-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.asset-preview-thumbnail .preview-video-icon,
|
||||
.asset-preview-thumbnail .preview-file-icon {
|
||||
font-size: 1.5rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.preview-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
transition: opacity var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.asset-preview-thumbnail:hover .preview-overlay {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.preview-link {
|
||||
color: var(--text-inverse);
|
||||
text-decoration: none;
|
||||
font-size: 1.25rem;
|
||||
padding: var(--space-xs);
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.preview-link:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.preview-placeholder {
|
||||
color: var(--muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
/* Lightbox for Full Preview */
|
||||
.asset-lightbox {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.95);
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-xl);
|
||||
animation: fadeIn var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.asset-lightbox__content {
|
||||
position: relative;
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.asset-lightbox__image {
|
||||
max-width: 100%;
|
||||
max-height: 90vh;
|
||||
object-fit: contain;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.asset-lightbox__close {
|
||||
position: absolute;
|
||||
top: var(--space-lg);
|
||||
right: var(--space-lg);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border: none;
|
||||
color: var(--text-inverse);
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-default) var(--easing-default);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.asset-lightbox__close:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.asset-lightbox__info {
|
||||
position: absolute;
|
||||
bottom: var(--space-lg);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
color: var(--text-inverse);
|
||||
padding: var(--space-md);
|
||||
border-radius: var(--radius-md);
|
||||
text-align: center;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.preview-column {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.asset-preview-thumbnail {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
416
resources/css/components/admin/admin-asset-upload.css
Normal file
416
resources/css/components/admin/admin-asset-upload.css
Normal file
@@ -0,0 +1,416 @@
|
||||
/**
|
||||
* Admin Asset Upload Component
|
||||
*
|
||||
* Modern upload interface with batch upload support, drag & drop,
|
||||
* and individual file progress tracking.
|
||||
* Uses BEM naming convention and design system tokens.
|
||||
*/
|
||||
|
||||
.admin-asset-upload {
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
/* Mode Toggle */
|
||||
.admin-asset-upload__mode-toggle {
|
||||
display: flex;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
border-bottom: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
padding-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-asset-upload__mode-button {
|
||||
padding: var(--space-xs, 0.5rem) var(--space-md, 1rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: all var(--duration-default, 0.2s) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-asset-upload__mode-button:hover {
|
||||
background: var(--bg-hover, oklch(90% 0.01 280));
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
.admin-asset-upload__mode-button--active {
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
/* Upload Zone */
|
||||
.admin-upload-zone {
|
||||
border: 2px dashed var(--border, oklch(70% 0.02 280));
|
||||
border-radius: var(--radius-md, 8px);
|
||||
padding: var(--space-xl, 3rem) var(--space-lg, 2rem);
|
||||
text-align: center;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
transition: all var(--duration-default, 0.3s) var(--easing-default);
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin-upload-zone:hover {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
background: var(--bg-hover, oklch(92% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-upload-zone--dragover {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
background: oklch(60% 0.2 280 / 0.1);
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
.admin-upload-zone__icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.admin-upload-zone__text {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 500;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-upload-zone__subtext {
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-upload-zone__button {
|
||||
display: inline-block;
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
padding: var(--space-sm, 0.75rem) var(--space-lg, 1.5rem);
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-default, 0.2s) var(--easing-default);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.admin-upload-zone__button:hover {
|
||||
background: var(--accent-primary-dark, oklch(50% 0.2 280));
|
||||
}
|
||||
|
||||
.admin-upload-zone__input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin-upload-zone__info {
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 0.75rem;
|
||||
margin-top: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Batch Upload Queue */
|
||||
.admin-asset-upload__batch-progress {
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.admin-asset-upload__batch-progress-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-asset-upload__batch-progress-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-asset-upload__queue {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-upload-item {
|
||||
display: flex;
|
||||
gap: var(--space-md, 1rem);
|
||||
padding: var(--space-md, 1rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: var(--radius-md, 8px);
|
||||
transition: all var(--duration-default, 0.2s) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-upload-item:hover {
|
||||
border-color: var(--border, oklch(70% 0.02 280));
|
||||
box-shadow: 0 2px 4px oklch(0% 0 0 / 0.05);
|
||||
}
|
||||
|
||||
.admin-upload-item--uploading {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
.admin-upload-item--success {
|
||||
border-color: var(--success, oklch(60% 0.2 150));
|
||||
background: oklch(60% 0.2 150 / 0.05);
|
||||
}
|
||||
|
||||
.admin-upload-item--error {
|
||||
border-color: var(--error, oklch(60% 0.2 20));
|
||||
background: oklch(60% 0.2 20 / 0.05);
|
||||
}
|
||||
|
||||
.admin-upload-item__preview {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
flex-shrink: 0;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
overflow: hidden;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-upload-item__preview-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.admin-upload-item__preview-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-upload-item__info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-upload-item__filename {
|
||||
font-weight: 500;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.admin-upload-item__meta {
|
||||
display: flex;
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
font-size: 0.75rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-upload-item__size,
|
||||
.admin-upload-item__mime {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.admin-upload-item__progress {
|
||||
margin-top: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-upload-item__success {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
color: var(--success, oklch(60% 0.2 150));
|
||||
font-size: 0.875rem;
|
||||
margin-top: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-upload-item__asset-id {
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.7;
|
||||
margin-left: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-upload-item__error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
color: var(--error, oklch(60% 0.2 20));
|
||||
font-size: 0.875rem;
|
||||
margin-top: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-upload-item__actions {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
/* Overall Progress */
|
||||
.admin-asset-upload__overall-progress {
|
||||
margin-top: var(--space-md, 1rem);
|
||||
padding-top: var(--space-md, 1rem);
|
||||
border-top: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
/* Single Upload Progress */
|
||||
.admin-upload-progress {
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.admin-progress-bar {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-progress-bar--sm {
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.admin-progress-fill {
|
||||
height: 100%;
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
transition: width var(--duration-default, 0.3s) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-progress-text {
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
/* File Preview */
|
||||
.admin-file-preview {
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
padding: var(--space-md, 1rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: var(--radius-md, 8px);
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-file-preview__image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-file-preview__info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Form */
|
||||
.admin-asset-upload__form {
|
||||
margin-top: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.admin-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.admin-form-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.admin-form-label {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-input {
|
||||
width: 100%;
|
||||
padding: var(--space-xs, 0.625rem) var(--space-sm, 0.875rem);
|
||||
border: 1px solid var(--border, oklch(70% 0.02 280));
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
font-size: 0.875rem;
|
||||
transition: border-color var(--duration-default, 0.2s) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
box-shadow: 0 0 0 3px oklch(60% 0.2 280 / 0.1);
|
||||
}
|
||||
|
||||
.admin-form-help {
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 0.75rem;
|
||||
margin-top: var(--space-xs, 0.25rem);
|
||||
}
|
||||
|
||||
/* Alerts */
|
||||
.admin-alert {
|
||||
padding: var(--space-md, 1rem);
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.admin-alert--error {
|
||||
background: oklch(60% 0.2 20 / 0.1);
|
||||
border-left: 4px solid var(--error, oklch(60% 0.2 20));
|
||||
color: var(--error, oklch(60% 0.2 20));
|
||||
}
|
||||
|
||||
.admin-alert--success {
|
||||
background: oklch(60% 0.2 150 / 0.1);
|
||||
border-left: 4px solid var(--success, oklch(60% 0.2 150));
|
||||
color: var(--success, oklch(60% 0.2 150));
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.admin-btn {
|
||||
padding: var(--space-xs, 0.5rem) var(--space-md, 1rem);
|
||||
border: none;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: background var(--duration-default, 0.2s) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-btn--secondary {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-btn--secondary:hover {
|
||||
background: var(--bg-hover, oklch(90% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-btn--danger {
|
||||
background: var(--error, oklch(60% 0.2 20));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-btn--danger:hover {
|
||||
background: oklch(50% 0.2 20);
|
||||
}
|
||||
|
||||
.admin-btn--sm {
|
||||
padding: var(--space-xs, 0.375rem) var(--space-sm, 0.75rem);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
224
resources/css/components/admin/admin-asset-variants.css
Normal file
224
resources/css/components/admin/admin-asset-variants.css
Normal file
@@ -0,0 +1,224 @@
|
||||
/**
|
||||
* Admin Asset Variants Component
|
||||
*
|
||||
* Modern variant management interface with grid layout,
|
||||
* thumbnail previews, and variant details.
|
||||
* Uses BEM naming convention and design system tokens.
|
||||
*/
|
||||
|
||||
.admin-asset-variants {
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.admin-asset-variants__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: var(--space-md, 1rem);
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
padding-bottom: var(--space-md, 1rem);
|
||||
border-bottom: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-variants__title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-asset-variants__actions {
|
||||
display: flex;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
/* Variants Grid */
|
||||
.admin-asset-variants__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Variant Card */
|
||||
.admin-variant-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: var(--radius-md, 8px);
|
||||
padding: var(--space-md, 1rem);
|
||||
transition: all var(--duration-default, 0.2s) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-variant-card:hover {
|
||||
border-color: var(--border, oklch(70% 0.02 280));
|
||||
box-shadow: 0 2px 8px oklch(0% 0 0 / 0.1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.admin-variant-card__preview {
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--space-sm, 0.75rem);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-variant-card__thumbnail {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform var(--duration-default, 0.3s) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-variant-card:hover .admin-variant-card__thumbnail {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.admin-variant-card__icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-variant-card__icon-text {
|
||||
font-size: 2rem;
|
||||
font-weight: 600;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-variant-card__info {
|
||||
flex: 1;
|
||||
margin-bottom: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
.admin-variant-card__name {
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
font-size: 0.875rem;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.admin-variant-card__meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-variant-card__dimensions,
|
||||
.admin-variant-card__size,
|
||||
.admin-variant-card__format {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.admin-variant-card__actions {
|
||||
display: flex;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
/* Empty State */
|
||||
.admin-asset-variants__empty {
|
||||
text-align: center;
|
||||
padding: var(--space-xl, 3rem) var(--space-lg, 2rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 2px dashed var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: var(--radius-md, 8px);
|
||||
}
|
||||
|
||||
.admin-asset-variants__empty-icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.admin-asset-variants__empty-text {
|
||||
font-size: 1rem;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-asset-variants__empty-hint {
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
margin-top: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
/* Alerts */
|
||||
.admin-alert {
|
||||
padding: var(--space-md, 1rem);
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.admin-alert--error {
|
||||
background: oklch(60% 0.2 20 / 0.1);
|
||||
border-left: 4px solid var(--error, oklch(60% 0.2 20));
|
||||
color: var(--error, oklch(60% 0.2 20));
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.admin-btn {
|
||||
padding: var(--space-xs, 0.5rem) var(--space-md, 1rem);
|
||||
border: none;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: all var(--duration-default, 0.2s) var(--easing-default);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.admin-btn--primary {
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-btn--primary:hover:not(:disabled) {
|
||||
background: var(--accent-primary-dark, oklch(50% 0.2 280));
|
||||
}
|
||||
|
||||
.admin-btn--secondary {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-btn--secondary:hover {
|
||||
background: var(--bg-hover, oklch(90% 0.01 280));
|
||||
border-color: var(--border, oklch(70% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-btn--danger {
|
||||
background: var(--error, oklch(60% 0.2 20));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-btn--danger:hover {
|
||||
background: oklch(50% 0.2 20);
|
||||
}
|
||||
|
||||
.admin-btn--sm {
|
||||
padding: var(--space-xs, 0.375rem) var(--space-sm, 0.75rem);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
501
resources/css/components/admin/admin-block-editor.css
Normal file
501
resources/css/components/admin/admin-block-editor.css
Normal file
@@ -0,0 +1,501 @@
|
||||
/**
|
||||
* Admin Block Editor Component
|
||||
*
|
||||
* Modern block editor with split-screen mode, improved block cards,
|
||||
* enhanced drag & drop feedback, and block type icons.
|
||||
* Uses BEM naming convention and design system tokens.
|
||||
*/
|
||||
|
||||
.admin-block-editor {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Split-Screen Layout */
|
||||
.admin-block-editor--split-screen {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.admin-block-editor__main {
|
||||
grid-column: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-panel {
|
||||
grid-column: 2;
|
||||
position: sticky;
|
||||
top: var(--space-lg, 1.5rem);
|
||||
max-height: calc(100vh - var(--space-lg, 1.5rem) * 2);
|
||||
overflow-y: auto;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Toolbar */
|
||||
.admin-block-editor__toolbar {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-md, 1rem);
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-block-editor__title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0 0 var(--space-md, 1rem) 0;
|
||||
padding-bottom: var(--space-sm, 0.75rem);
|
||||
border-bottom: 2px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
/* Block Types Grid */
|
||||
.admin-block-editor__block-types {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
.admin-block-type-btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
padding: var(--space-md, 1rem);
|
||||
border: 2px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
min-width: 100px;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.admin-block-type-btn:hover {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 8px oklch(0% 0 0 / 0.1);
|
||||
}
|
||||
|
||||
.admin-block-type-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.admin-block-type-btn__icon {
|
||||
font-size: 2rem;
|
||||
font-weight: bold;
|
||||
color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.admin-block-type-btn__label {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Template Selection */
|
||||
.admin-block-editor__templates {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-md, 1rem);
|
||||
margin-top: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-block-editor__template-select {
|
||||
margin-top: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
/* Blocks Container */
|
||||
.admin-block-editor__blocks {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md, 1rem);
|
||||
margin-bottom: var(--space-lg, 1.5rem);
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.admin-block-editor__blocks--dragging {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.admin-block-editor__blocks--dragging .admin-block-card {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
/* Block Card */
|
||||
.admin-block-card {
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
padding: var(--space-md, 1rem);
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.admin-block-card:hover {
|
||||
border-color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
box-shadow: 0 4px 12px oklch(0% 0 0 / 0.1);
|
||||
}
|
||||
|
||||
.admin-block-card--dragging {
|
||||
opacity: 0.5;
|
||||
transform: scale(0.95);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.admin-block-card--drag-over-before {
|
||||
border-top: 3px solid var(--accent-primary, oklch(60% 0.2 280));
|
||||
padding-top: calc(var(--space-md, 1rem) - 3px);
|
||||
}
|
||||
|
||||
.admin-block-card--drag-over-after {
|
||||
border-bottom: 3px solid var(--accent-primary, oklch(60% 0.2 280));
|
||||
padding-bottom: calc(var(--space-md, 1rem) - 3px);
|
||||
}
|
||||
|
||||
.admin-block-card__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--space-sm, 0.75rem);
|
||||
padding-bottom: var(--space-sm, 0.75rem);
|
||||
border-bottom: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
}
|
||||
|
||||
.admin-block-card__drag-handle {
|
||||
cursor: grab;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
padding: var(--space-xs, 0.5rem);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: color 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.admin-block-card__drag-handle:hover {
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-block-card__drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.admin-block-card__type {
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
text-transform: capitalize;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-block-card__type-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: var(--accent-primary, oklch(60% 0.2 280));
|
||||
}
|
||||
|
||||
.admin-block-card__actions {
|
||||
display: flex;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-block-card__preview {
|
||||
padding: var(--space-sm, 0.75rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border-radius: 4px;
|
||||
min-height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px dashed var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-block-card__preview-text {
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 0.875rem;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.admin-block-card__preview-content {
|
||||
width: 100%;
|
||||
max-height: 200px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Empty State */
|
||||
.admin-block-editor__empty {
|
||||
padding: var(--space-xl, 3rem);
|
||||
text-align: center;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 8px;
|
||||
border: 2px dashed var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
/* Edit Form */
|
||||
.admin-block-editor__edit-form {
|
||||
margin-top: var(--space-lg, 1.5rem);
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-block-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-block-form__actions {
|
||||
display: flex;
|
||||
gap: var(--space-md, 1rem);
|
||||
margin-top: var(--space-lg, 1.5rem);
|
||||
padding-top: var(--space-md, 1rem);
|
||||
border-top: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
/* Preview Controls */
|
||||
.admin-block-editor__preview-controls {
|
||||
margin-top: var(--space-lg, 1.5rem);
|
||||
padding-top: var(--space-lg, 1.5rem);
|
||||
border-top: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
display: flex;
|
||||
gap: var(--space-sm, 0.75rem);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-toggle {
|
||||
padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-toggle:hover {
|
||||
background: oklch(55% 0.2 280);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px oklch(60% 0.2 280 / 0.3);
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-toggle--active {
|
||||
background: var(--accent-success, oklch(58% 0.22 145));
|
||||
}
|
||||
|
||||
/* Preview Area */
|
||||
.admin-block-editor__preview {
|
||||
margin-top: var(--space-lg, 1.5rem);
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-content {
|
||||
margin-top: var(--space-md, 1rem);
|
||||
padding: var(--space-md, 1rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border-radius: 4px;
|
||||
min-height: 200px;
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-error {
|
||||
padding: var(--space-md, 1rem);
|
||||
background: oklch(95% 0.05 25 / 0.1);
|
||||
border: 1px solid var(--accent-error, oklch(60% 0.25 25));
|
||||
border-radius: 4px;
|
||||
color: var(--accent-error, oklch(60% 0.25 25));
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-xl, 3rem);
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
}
|
||||
|
||||
/* Asset Picker Wrapper */
|
||||
.admin-asset-picker-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-asset-picker-container {
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-asset-preview {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
padding: var(--space-xs, 0.5rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 4px;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-asset-preview__label {
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-asset-preview__value {
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-family: monospace;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.admin-btn {
|
||||
padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-btn--small {
|
||||
padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.admin-btn--primary {
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-btn--primary:hover {
|
||||
background: oklch(55% 0.2 280);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px oklch(60% 0.2 280 / 0.3);
|
||||
}
|
||||
|
||||
.admin-btn--secondary {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-btn--secondary:hover {
|
||||
background: var(--bg-tertiary, oklch(92% 0.01 280));
|
||||
}
|
||||
|
||||
.admin-btn--danger {
|
||||
background: var(--accent-error, oklch(60% 0.25 25));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-btn--danger:hover {
|
||||
background: oklch(55% 0.25 25);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px oklch(60% 0.25 25 / 0.3);
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 1024px) {
|
||||
.admin-block-editor--split-screen {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.admin-block-editor__preview-panel {
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.admin-block-editor {
|
||||
padding: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-block-editor__block-types {
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
}
|
||||
|
||||
.admin-block-card__header {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.admin-block-card__actions {
|
||||
width: 100%;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
/* Drag & Drop Visual Feedback */
|
||||
@keyframes drag-pulse {
|
||||
0%, 100% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-block-editor__blocks--dragging .admin-block-card:not(.admin-block-card--dragging) {
|
||||
animation: drag-pulse 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Block Type Icons */
|
||||
.admin-block-type-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-right: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-block-type-icon--hero {
|
||||
background: linear-gradient(135deg, var(--accent-primary, oklch(60% 0.2 280)), oklch(65% 0.2 300));
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.admin-block-type-icon--text {
|
||||
background: var(--accent-info, oklch(58% 0.22 240));
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.admin-block-type-icon--image {
|
||||
background: var(--accent-success, oklch(58% 0.22 145));
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
129
resources/css/components/admin/admin-bulk-operations.css
Normal file
129
resources/css/components/admin/admin-bulk-operations.css
Normal file
@@ -0,0 +1,129 @@
|
||||
/**
|
||||
* Bulk Operations Styles
|
||||
* ITCSS: Components Layer
|
||||
*/
|
||||
|
||||
/* Bulk Actions Toolbar */
|
||||
.bulk-actions-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-md);
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
margin-bottom: var(--space-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.bulk-actions-info {
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.bulk-selected-count {
|
||||
font-weight: 600;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.bulk-actions-buttons {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
/* Bulk Checkbox Column */
|
||||
.bulk-checkbox-column {
|
||||
width: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bulk-select-all,
|
||||
.bulk-select-item {
|
||||
cursor: pointer;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
accent-color: var(--primary);
|
||||
}
|
||||
|
||||
.bulk-select-all:indeterminate {
|
||||
background-color: var(--primary);
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
/* Confirmation Dialog */
|
||||
.bulk-confirm-dialog {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.bulk-confirm-dialog__overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.bulk-confirm-dialog__content {
|
||||
position: relative;
|
||||
background: var(--bg-card);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--space-xl);
|
||||
max-width: 500px;
|
||||
width: 90%;
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.bulk-confirm-dialog__content h3 {
|
||||
margin-top: 0;
|
||||
margin-bottom: var(--space-md);
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-dark);
|
||||
}
|
||||
|
||||
.bulk-confirm-dialog__content p {
|
||||
margin-bottom: var(--space-lg);
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.bulk-confirm-dialog__actions {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
/* Loading State */
|
||||
.bulk-actions-toolbar[data-loading="true"] .bulk-actions-buttons button {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.bulk-actions-toolbar {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.bulk-actions-buttons {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.bulk-actions-buttons button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
/* Base Card */
|
||||
.admin-card {
|
||||
.card {
|
||||
background: var(--bg-alt);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
@@ -15,43 +15,43 @@
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-card:hover {
|
||||
.card:hover {
|
||||
border-color: oklch(from var(--border) l c h / 0.3);
|
||||
box-shadow: 0 4px 12px oklch(0% 0 0 / 0.1);
|
||||
}
|
||||
|
||||
.admin-card__header {
|
||||
.card__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: var(--space-md);
|
||||
}
|
||||
|
||||
.admin-card__title {
|
||||
.card__title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-card__subtitle {
|
||||
.card__subtitle {
|
||||
color: var(--muted);
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-card__action {
|
||||
.card__action {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.admin-card__action:hover {
|
||||
.card__action:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.admin-card__content {
|
||||
.card__content {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@@ -156,38 +156,38 @@
|
||||
}
|
||||
|
||||
/* Compact Cards */
|
||||
.admin-card--compact {
|
||||
.card--compact {
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.admin-card--compact .admin-card__title {
|
||||
.card--compact .card__title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Card Grid Layouts */
|
||||
.admin-cards {
|
||||
.cards {
|
||||
display: grid;
|
||||
gap: var(--space-lg);
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.admin-cards--2-col {
|
||||
.cards--2-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
}
|
||||
|
||||
.admin-cards--3-col {
|
||||
.cards--3-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
}
|
||||
|
||||
.admin-cards--4-col {
|
||||
.cards--4-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.admin-cards--2-col,
|
||||
.admin-cards--3-col,
|
||||
.admin-cards--4-col {
|
||||
.cards--2-col,
|
||||
.cards--3-col,
|
||||
.cards--4-col {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
||||
449
resources/css/components/admin/admin-content-form.css
Normal file
449
resources/css/components/admin/admin-content-form.css
Normal file
@@ -0,0 +1,449 @@
|
||||
/**
|
||||
* Admin Content Form Component
|
||||
*
|
||||
* Modern content form with split-screen layout option, collapsible sections,
|
||||
* auto-save indicator, and sticky form actions bar.
|
||||
* Uses BEM naming convention and design system tokens.
|
||||
*/
|
||||
|
||||
.admin-content-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Alerts */
|
||||
.admin-content-form__alert {
|
||||
padding: var(--space-md, 1rem);
|
||||
border-radius: 8px;
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
border-left: 4px solid;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.admin-content-form__alert--error {
|
||||
background: oklch(95% 0.05 25 / 0.1);
|
||||
border-left-color: var(--accent-error, oklch(60% 0.25 25));
|
||||
color: var(--accent-error, oklch(60% 0.25 25));
|
||||
}
|
||||
|
||||
.admin-content-form__alert--info {
|
||||
background: oklch(95% 0.05 240 / 0.1);
|
||||
border-left-color: var(--accent-info, oklch(58% 0.22 240));
|
||||
color: var(--accent-info, oklch(58% 0.22 240));
|
||||
}
|
||||
|
||||
.admin-content-form__alert--success {
|
||||
background: oklch(95% 0.05 145 / 0.1);
|
||||
border-left-color: var(--accent-success, oklch(58% 0.22 145));
|
||||
color: var(--accent-success, oklch(58% 0.22 145));
|
||||
}
|
||||
|
||||
.admin-content-form__error-list {
|
||||
margin: var(--space-sm, 0.75rem) 0 0 var(--space-lg, 1.5rem);
|
||||
padding: 0;
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.admin-content-form__error-item {
|
||||
margin-bottom: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
/* Auto-Save Indicator */
|
||||
.admin-content-form__auto-save {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
position: fixed;
|
||||
top: var(--space-md, 1rem);
|
||||
right: var(--space-md, 1rem);
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 8px oklch(0% 0 0 / 0.1);
|
||||
transition: all 0.3s ease;
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.admin-content-form__auto-save--visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.admin-content-form__auto-save-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-content-form__auto-save-text {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Form Sections Container */
|
||||
.admin-content-form__sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
}
|
||||
|
||||
/* Split-Screen Layout */
|
||||
.admin-content-form--split-screen {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-lg, 1.5rem);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.admin-content-form--split-screen .admin-content-form__sections {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
.admin-content-form__preview-panel {
|
||||
grid-column: 2;
|
||||
position: sticky;
|
||||
top: var(--space-lg, 1.5rem);
|
||||
max-height: calc(100vh - var(--space-lg, 1.5rem) * 2);
|
||||
overflow-y: auto;
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Form Section */
|
||||
.admin-content-form__section {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 8px;
|
||||
padding: var(--space-lg, 1.5rem);
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.admin-content-form__section--collapsed {
|
||||
padding: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-content-form__section--collapsed .admin-content-form__section-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin-content-form__section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
padding-bottom: var(--space-sm, 0.75rem);
|
||||
border-bottom: 2px solid var(--border-light, oklch(75% 0.02 280));
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.admin-content-form__section-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-content-form__section-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
cursor: pointer;
|
||||
padding: var(--space-xs, 0.5rem);
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-content-form__section-toggle:hover {
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-content-form__section-toggle-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.admin-content-form__section--collapsed .admin-content-form__section-toggle-icon {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.admin-content-form__section-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Form Grid */
|
||||
.admin-content-form__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
/* Form Field */
|
||||
.admin-content-form__field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-content-form__field--full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.admin-content-form__label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
font-weight: 500;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-content-form__required {
|
||||
color: var(--accent-error, oklch(60% 0.25 25));
|
||||
}
|
||||
|
||||
.admin-content-form__badge {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.admin-content-form__badge--info {
|
||||
background: oklch(95% 0.05 240 / 0.2);
|
||||
color: var(--accent-info, oklch(58% 0.22 240));
|
||||
}
|
||||
|
||||
.admin-content-form__badge--success {
|
||||
background: oklch(95% 0.05 145 / 0.2);
|
||||
color: var(--accent-success, oklch(58% 0.22 145));
|
||||
}
|
||||
|
||||
.admin-content-form__input-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-content-form__help {
|
||||
color: var(--muted, oklch(50% 0.01 280));
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.admin-content-form__error {
|
||||
color: var(--accent-error, oklch(60% 0.25 25));
|
||||
font-size: 0.75rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
/* Form Actions - Sticky */
|
||||
.admin-content-form__actions {
|
||||
display: flex;
|
||||
gap: var(--space-md, 1rem);
|
||||
padding: var(--space-md, 1rem);
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border-top: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
box-shadow: 0 -2px 8px oklch(0% 0 0 / 0.05);
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.admin-content-form__actions-button {
|
||||
padding: var(--space-sm, 0.75rem) var(--space-lg, 1.5rem);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs, 0.5rem);
|
||||
}
|
||||
|
||||
.admin-content-form__actions-button--primary {
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
}
|
||||
|
||||
.admin-content-form__actions-button--primary:hover {
|
||||
background: oklch(55% 0.2 280);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px oklch(60% 0.2 280 / 0.3);
|
||||
}
|
||||
|
||||
.admin-content-form__actions-button--secondary {
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-content-form__actions-button--secondary:hover {
|
||||
background: var(--bg-tertiary, oklch(92% 0.01 280));
|
||||
}
|
||||
|
||||
/* Keyboard Shortcuts Help */
|
||||
.admin-content-form__shortcuts {
|
||||
position: fixed;
|
||||
bottom: var(--space-lg, 1.5rem);
|
||||
right: var(--space-lg, 1.5rem);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-button {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent-primary, oklch(60% 0.2 280));
|
||||
color: var(--bg, oklch(100% 0 0));
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 12px oklch(0% 0 0 / 0.2);
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-button:hover {
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 6px 16px oklch(0% 0 0 / 0.3);
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: oklch(0% 0 0 / 0.5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1001;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-modal--visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-content {
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border-radius: 12px;
|
||||
padding: var(--space-xl, 2rem);
|
||||
max-width: 600px;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 8px 32px oklch(0% 0 0 / 0.3);
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-title {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 var(--space-lg, 1.5rem) 0;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md, 1rem);
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: var(--space-sm, 0.75rem);
|
||||
background: var(--bg-secondary, oklch(95% 0.01 280));
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts-key {
|
||||
font-family: monospace;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: var(--bg, oklch(100% 0 0));
|
||||
border: 1px solid var(--border-light, oklch(75% 0.02 280));
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text, oklch(20% 0.02 280));
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 1024px) {
|
||||
.admin-content-form--split-screen {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.admin-content-form__preview-panel {
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.admin-content-form {
|
||||
padding: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
.admin-content-form__actions {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.admin-content-form__actions-button {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-content-form__grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.admin-content-form__shortcuts {
|
||||
bottom: var(--space-md, 1rem);
|
||||
right: var(--space-md, 1rem);
|
||||
}
|
||||
}
|
||||
|
||||
129
resources/css/components/admin/admin-duplicates.css
Normal file
129
resources/css/components/admin/admin-duplicates.css
Normal file
@@ -0,0 +1,129 @@
|
||||
/**
|
||||
* Duplicate Management Styles
|
||||
* ITCSS: Components Layer
|
||||
*/
|
||||
|
||||
.merge-dialog {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
.merge-dialog__overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.merge-dialog__content {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: var(--bg-card);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-xl);
|
||||
min-width: 600px;
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
padding: var(--space-xl);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.merge-dialog__content h3 {
|
||||
margin: 0 0 var(--space-md) 0;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.merge-dialog__content p {
|
||||
color: var(--muted);
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.merge-dialog__assets {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.merge-asset-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.merge-asset-option input[type="radio"] {
|
||||
margin-right: var(--space-md);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.merge-asset-option label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-md);
|
||||
flex: 1;
|
||||
cursor: pointer;
|
||||
padding: var(--space-md);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.merge-asset-option input[type="radio"]:checked + label {
|
||||
border-color: var(--primary);
|
||||
background: oklch(from var(--primary) l c h / 0.1);
|
||||
}
|
||||
|
||||
.merge-asset-preview {
|
||||
width: 80px;
|
||||
height: 60px;
|
||||
background: var(--bg-alt);
|
||||
border-radius: var(--radius-sm);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.merge-asset-preview img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.merge-asset-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.merge-asset-info strong {
|
||||
display: block;
|
||||
margin-bottom: var(--space-xs);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.merge-asset-info small {
|
||||
color: var(--muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.merge-dialog__actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-sm);
|
||||
padding-top: var(--space-lg);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
81
resources/css/components/admin/admin-filters.css
Normal file
81
resources/css/components/admin/admin-filters.css
Normal file
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Admin Filters Panel Styles
|
||||
* ITCSS: Components Layer
|
||||
*/
|
||||
|
||||
.search-and-filters {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
margin-bottom: var(--space-md);
|
||||
}
|
||||
|
||||
.search-and-filters .search-input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.admin-filters-panel {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-lg);
|
||||
margin-top: var(--space-md);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.filters-content {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: var(--space-lg);
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.filter-group label {
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-dark);
|
||||
}
|
||||
|
||||
.filter-group .admin-select[multiple] {
|
||||
min-height: 120px;
|
||||
padding: var(--space-sm);
|
||||
}
|
||||
|
||||
.date-range-inputs {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.date-range-inputs .admin-input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.filter-actions .btn {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-toggle-filters].active {
|
||||
background: var(--primary);
|
||||
color: var(--text-inverse);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.filters-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.date-range-inputs {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -285,6 +285,302 @@
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* Drag & Drop Upload Zone */
|
||||
.admin-upload-zone {
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 3rem 2rem;
|
||||
text-align: center;
|
||||
background: var(--bg-alt);
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin-upload-zone:hover {
|
||||
border-color: var(--accent);
|
||||
background: oklch(from var(--accent) l c h / 0.05);
|
||||
}
|
||||
|
||||
.admin-upload-zone--dragover {
|
||||
border-color: var(--accent);
|
||||
background: oklch(from var(--accent) l c h / 0.1);
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
/* Progress Bar */
|
||||
.admin-upload-progress {
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.admin-progress-bar {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: var(--bg-alt);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.admin-progress-fill {
|
||||
height: 100%;
|
||||
background: var(--accent);
|
||||
transition: width var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-progress-text {
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* File Preview */
|
||||
.admin-file-preview {
|
||||
margin-bottom: var(--space-lg);
|
||||
padding: var(--space-md);
|
||||
background: var(--bg-alt);
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.admin-file-preview__image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: var(--radius-md);
|
||||
margin-bottom: var(--space-md);
|
||||
box-shadow: 0 2px 8px oklch(from var(--text) l c h / 0.1);
|
||||
}
|
||||
|
||||
.admin-file-preview__info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
/* Validation States */
|
||||
.admin-input--error,
|
||||
.admin-select--error,
|
||||
.admin-textarea--error {
|
||||
border-color: var(--error);
|
||||
}
|
||||
|
||||
.admin-input--error:focus,
|
||||
.admin-select--error:focus,
|
||||
.admin-textarea--error:focus {
|
||||
border-color: var(--error);
|
||||
box-shadow: 0 0 0 3px oklch(from var(--error) l c h / 0.1);
|
||||
}
|
||||
|
||||
.admin-input--success,
|
||||
.admin-select--success,
|
||||
.admin-textarea--success {
|
||||
border-color: var(--success, #4caf50);
|
||||
}
|
||||
|
||||
.admin-input--success:focus,
|
||||
.admin-select--success:focus,
|
||||
.admin-textarea--success:focus {
|
||||
border-color: var(--success, #4caf50);
|
||||
box-shadow: 0 0 0 3px oklch(from var(--success, #4caf50) l c h / 0.1);
|
||||
}
|
||||
|
||||
.admin-field--error .admin-form-label {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.admin-field--success .admin-form-label {
|
||||
color: var(--success, #4caf50);
|
||||
}
|
||||
|
||||
/* Loading Spinner */
|
||||
.admin-spinner {
|
||||
display: inline-block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border: 2px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: admin-spin 0.6s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes admin-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.admin-spinner--large {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-width: 3px;
|
||||
}
|
||||
|
||||
.admin-spinner--small {
|
||||
width: 0.75rem;
|
||||
height: 0.75rem;
|
||||
border-width: 1.5px;
|
||||
}
|
||||
|
||||
/* Toast Notifications */
|
||||
.admin-toast {
|
||||
position: fixed;
|
||||
top: var(--space-lg);
|
||||
right: var(--space-lg);
|
||||
min-width: 300px;
|
||||
max-width: 500px;
|
||||
padding: var(--space-md) var(--space-lg);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: 0 4px 12px oklch(from var(--text) l c h / 0.15);
|
||||
z-index: 1000;
|
||||
animation: admin-toast-slide-in 0.3s var(--easing-default);
|
||||
}
|
||||
|
||||
@keyframes admin-toast-slide-in {
|
||||
from {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-toast--success {
|
||||
background: var(--success, #4caf50);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-toast--error {
|
||||
background: var(--error);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-toast--info {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-toast--warning {
|
||||
background: var(--warning, #ff9800);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.admin-toast__message {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-toast__close {
|
||||
position: absolute;
|
||||
top: var(--space-sm);
|
||||
right: var(--space-sm);
|
||||
background: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font-size: 1.25rem;
|
||||
line-height: 1;
|
||||
opacity: 0.8;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-toast__close:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Alert Styles */
|
||||
.admin-alert {
|
||||
padding: var(--space-md);
|
||||
border-radius: var(--radius-md);
|
||||
margin-bottom: var(--space-lg);
|
||||
border-left: 4px solid;
|
||||
}
|
||||
|
||||
.admin-alert--error {
|
||||
background: oklch(from var(--error) l c h / 0.1);
|
||||
border-color: var(--error);
|
||||
color: oklch(from var(--error) l c h / 0.9);
|
||||
}
|
||||
|
||||
.admin-alert--success {
|
||||
background: oklch(from var(--success, #4caf50) l c h / 0.1);
|
||||
border-color: var(--success, #4caf50);
|
||||
color: oklch(from var(--success, #4caf50) l c h / 0.9);
|
||||
}
|
||||
|
||||
.admin-alert--info {
|
||||
background: oklch(from var(--accent) l c h / 0.1);
|
||||
border-color: var(--accent);
|
||||
color: oklch(from var(--accent) l c h / 0.9);
|
||||
}
|
||||
|
||||
.admin-alert--warning {
|
||||
background: oklch(from var(--warning, #ff9800) l c h / 0.1);
|
||||
border-color: var(--warning, #ff9800);
|
||||
color: oklch(from var(--warning, #ff9800) l c h / 0.9);
|
||||
}
|
||||
|
||||
.admin-error-list {
|
||||
margin: var(--space-sm) 0 0 var(--space-lg);
|
||||
padding: 0;
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
/* Badge Styles */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
margin-left: var(--space-sm);
|
||||
}
|
||||
|
||||
.badge--info {
|
||||
background: oklch(from var(--accent) l c h / 0.1);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.badge--success {
|
||||
background: oklch(from var(--success, #4caf50) l c h / 0.1);
|
||||
color: var(--success, #4caf50);
|
||||
}
|
||||
|
||||
.badge--error {
|
||||
background: oklch(from var(--error) l c h / 0.1);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.badge--warning {
|
||||
background: oklch(from var(--warning, #ff9800) l c h / 0.1);
|
||||
color: var(--warning, #ff9800);
|
||||
}
|
||||
|
||||
/* Form Sections */
|
||||
.admin-form-sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xl);
|
||||
}
|
||||
|
||||
.admin-form-section {
|
||||
background: var(--bg-alt);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--space-lg);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.admin-form-section__title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0 0 var(--space-lg) 0;
|
||||
padding-bottom: var(--space-md);
|
||||
border-bottom: 2px solid var(--border);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.admin-filter-bar {
|
||||
@@ -314,4 +610,15 @@
|
||||
.admin-radio-group--horizontal {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.admin-toast {
|
||||
right: var(--space-sm);
|
||||
left: var(--space-sm);
|
||||
min-width: auto;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.admin-upload-zone {
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
}
|
||||
@@ -60,6 +60,57 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Sortable Columns */
|
||||
.admin-table th[data-column] {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: background-color var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-table th[data-column]:hover {
|
||||
background: oklch(from var(--bg-alt) calc(l + 0.04) c h);
|
||||
}
|
||||
|
||||
.admin-table th[data-column] .header-content {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.admin-table th[data-column] .header-content::after {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 4px solid transparent;
|
||||
border-right: 4px solid transparent;
|
||||
border-bottom: 4px solid var(--muted);
|
||||
opacity: 0.3;
|
||||
transition: opacity var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-table th[data-column]:hover .header-content::after {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.admin-table th[data-column].sort-asc .header-content::after {
|
||||
opacity: 1;
|
||||
border-bottom-color: var(--accent);
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.admin-table th[data-column].sort-desc .header-content::after {
|
||||
opacity: 1;
|
||||
border-top-color: var(--accent);
|
||||
border-bottom: none;
|
||||
border-top: 4px solid var(--accent);
|
||||
}
|
||||
|
||||
.admin-table th[data-column].sort-asc .header-content::after,
|
||||
.admin-table th[data-column].sort-desc .header-content::after {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-table td {
|
||||
color: var(--text);
|
||||
vertical-align: top;
|
||||
@@ -151,16 +202,30 @@
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.admin-table__action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
padding: 0.25rem 0.5rem;
|
||||
padding: 0.375rem;
|
||||
border-radius: var(--radius-md);
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.admin-table__action svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.admin-table__action:hover {
|
||||
|
||||
217
resources/css/components/admin/admin-ui-enhancements.css
Normal file
217
resources/css/components/admin/admin-ui-enhancements.css
Normal file
@@ -0,0 +1,217 @@
|
||||
/**
|
||||
* UI Enhancements Styles
|
||||
* ITCSS: Components Layer
|
||||
*/
|
||||
|
||||
/* Loading Overlay */
|
||||
.loading-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1000;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .loading-overlay {
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 4px solid var(--border);
|
||||
border-top-color: var(--primary);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
.loading-message {
|
||||
margin-top: var(--space-md);
|
||||
color: var(--text);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Button Loading State */
|
||||
button.loading,
|
||||
input[type="submit"].loading {
|
||||
position: relative;
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.button-spinner {
|
||||
display: inline-block;
|
||||
margin-right: var(--space-xs);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
/* Optimistic Updates */
|
||||
.optimistic-delete {
|
||||
opacity: 0.5;
|
||||
text-decoration: line-through;
|
||||
transition: opacity var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.optimistic-update {
|
||||
background: oklch(from var(--info) l c h / 0.1);
|
||||
transition: background var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
/* Error Notifications */
|
||||
.error-notification {
|
||||
position: fixed;
|
||||
top: var(--space-lg);
|
||||
right: var(--space-lg);
|
||||
background: var(--error);
|
||||
color: var(--text-inverse);
|
||||
padding: var(--space-md);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: 10000;
|
||||
max-width: 400px;
|
||||
animation: slideInRight 0.3s ease-out;
|
||||
}
|
||||
|
||||
.error-notification strong {
|
||||
display: block;
|
||||
margin-bottom: var(--space-xs);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.error-notification p {
|
||||
margin: var(--space-xs) 0;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.error-notification button {
|
||||
margin-top: var(--space-sm);
|
||||
padding: var(--space-xs) var(--space-md);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-inverse);
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.error-notification button:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
@keyframes slideInRight {
|
||||
from {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Table Row Loading States */
|
||||
tr[data-loading="true"] {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
tr[data-loading="true"] td {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
tr[data-loading="true"] td::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent,
|
||||
rgba(255, 255, 255, 0.3),
|
||||
transparent
|
||||
);
|
||||
animation: shimmer 1.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
|
||||
/* Form Loading States */
|
||||
form[data-loading="true"] {
|
||||
pointer-events: none;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
form[data-loading="true"] input,
|
||||
form[data-loading="true"] textarea,
|
||||
form[data-loading="true"] select {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Retry Button */
|
||||
.retry-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
padding: var(--space-xs) var(--space-sm);
|
||||
background: var(--warning);
|
||||
color: var(--text-inverse);
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.retry-button:hover {
|
||||
background: var(--warning-dark);
|
||||
}
|
||||
|
||||
/* Success Flash */
|
||||
.success-flash {
|
||||
position: fixed;
|
||||
top: var(--space-lg);
|
||||
right: var(--space-lg);
|
||||
background: var(--success);
|
||||
color: var(--text-inverse);
|
||||
padding: var(--space-md);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: 10000;
|
||||
animation: slideInRight 0.3s ease-out;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.error-notification,
|
||||
.success-flash {
|
||||
top: var(--space-md);
|
||||
right: var(--space-md);
|
||||
left: var(--space-md);
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,46 @@
|
||||
/* Frontend Header */
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 3rem;
|
||||
padding-inline: clamp(1.5rem, 4vw + 1rem, 3rem);
|
||||
user-select: none;
|
||||
width: 100%;
|
||||
z-index: 4000;
|
||||
}
|
||||
|
||||
header a {
|
||||
text-decoration: none;
|
||||
color: var(--text, #eee);
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
transition: all 0.2s ease-in;
|
||||
}
|
||||
|
||||
header a:hover {
|
||||
color: var(--accent, #fff);
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
header button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
appearance: none;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
header button:hover {
|
||||
color: var(--accent, #fff);
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* Legacy: main > .header (for backward compatibility) */
|
||||
main > .header {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
@@ -8,43 +51,37 @@ main > .header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 3rem; /* Optional: Abstand innen */
|
||||
|
||||
padding: 3rem;
|
||||
padding-inline: clamp(1.5rem, 4vw + 1rem, 3rem);
|
||||
|
||||
user-select: none;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #eee;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
|
||||
transition: all 0.2s ease-in;
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
appearance: none;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
|
||||
z-index: 9999;
|
||||
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
main > .header a {
|
||||
text-decoration: none;
|
||||
color: #eee;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
transition: all 0.2s ease-in;
|
||||
}
|
||||
|
||||
main > .header a:hover {
|
||||
color: #fff;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
main > .header button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
appearance: none;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
main > .header button:hover {
|
||||
color: #fff;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
68
resources/css/components/livecomponent/transitions.css
Normal file
68
resources/css/components/livecomponent/transitions.css
Normal file
@@ -0,0 +1,68 @@
|
||||
/**
|
||||
* LiveComponent Transitions
|
||||
* CSS transitions for DOM swap operations
|
||||
*/
|
||||
|
||||
/* Fade transition */
|
||||
.lc-transition-fade {
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.lc-transition-fade.lc-transition-active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Slide transition */
|
||||
.lc-transition-slide {
|
||||
transform: translateY(-20px);
|
||||
opacity: 0;
|
||||
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.lc-transition-slide.lc-transition-active {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Slide down transition */
|
||||
.lc-transition-slide-down {
|
||||
transform: translateY(-20px);
|
||||
opacity: 0;
|
||||
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.lc-transition-slide-down.lc-transition-active {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Slide up transition */
|
||||
.lc-transition-slide-up {
|
||||
transform: translateY(20px);
|
||||
opacity: 0;
|
||||
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.lc-transition-slide-up.lc-transition-active {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Loading indicator active state */
|
||||
.lc-indicator-active {
|
||||
opacity: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Loading state for boosted links/forms */
|
||||
a.lc-loading,
|
||||
form.lc-loading {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
98
resources/css/components/navigation.css
Normal file
98
resources/css/components/navigation.css
Normal file
@@ -0,0 +1,98 @@
|
||||
/**
|
||||
* Navigation Components
|
||||
*
|
||||
* Styles for main navigation and footer navigation components
|
||||
*/
|
||||
|
||||
/* Main Navigation */
|
||||
nav[aria-label="Hauptnavigation"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
nav[aria-label="Hauptnavigation"] menu {
|
||||
display: flex;
|
||||
gap: var(--space-md, 1rem);
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
nav[aria-label="Hauptnavigation"] menu li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
nav[aria-label="Hauptnavigation"] menu li a {
|
||||
color: var(--text, currentColor);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
|
||||
border-radius: var(--radius-md, 0.375rem);
|
||||
transition: all var(--duration-default, 0.2s) var(--easing-default, ease);
|
||||
display: block;
|
||||
}
|
||||
|
||||
nav[aria-label="Hauptnavigation"] menu li a:hover {
|
||||
background: oklch(from var(--bg-alt, #f5f5f5) calc(l + 0.05) c h);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav[aria-label="Hauptnavigation"] menu li a[aria-current="page"] {
|
||||
background: var(--accent, #007bff);
|
||||
color: var(--bg, #ffffff);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Footer Navigation */
|
||||
nav[aria-label="Footer Navigation"] {
|
||||
margin-bottom: var(--space-md, 1rem);
|
||||
}
|
||||
|
||||
nav[aria-label="Footer Navigation"] menu.footer-nav {
|
||||
display: flex;
|
||||
gap: var(--space-md, 1rem);
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
nav[aria-label="Footer Navigation"] menu.footer-nav li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
nav[aria-label="Footer Navigation"] menu.footer-nav li a {
|
||||
color: var(--muted, #6b7280);
|
||||
text-decoration: none;
|
||||
font-size: 0.875rem;
|
||||
padding: var(--space-xs, 0.25rem) 0;
|
||||
transition: color var(--duration-default, 0.2s) var(--easing-default, ease);
|
||||
}
|
||||
|
||||
nav[aria-label="Footer Navigation"] menu.footer-nav li a:hover {
|
||||
color: var(--text, currentColor);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
nav[aria-label="Footer Navigation"] menu.footer-nav li a[aria-current="page"] {
|
||||
color: var(--text, currentColor);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
nav[aria-label="Hauptnavigation"] menu {
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm, 0.5rem);
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
nav[aria-label="Footer Navigation"] menu.footer-nav {
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm, 0.5rem);
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
158
resources/css/settings/_generated-tokens.css
Normal file
158
resources/css/settings/_generated-tokens.css
Normal file
@@ -0,0 +1,158 @@
|
||||
/**
|
||||
* Generated Design Tokens - DO NOT EDIT MANUALLY
|
||||
*
|
||||
* This file is automatically generated from UnifiedTokenRegistry.
|
||||
* To modify tokens, edit: src/Framework/Design/ValueObjects/UnifiedTokenRegistry.php
|
||||
*
|
||||
* Generated: 2025-11-24 00:58:13
|
||||
* Source: UnifiedTokenRegistry
|
||||
* Scope: unified
|
||||
* Architecture: ITCSS
|
||||
*/
|
||||
@layer unified-settings {
|
||||
:root {
|
||||
--color-primary: oklch(70% 0.2 295); /* Color: primary */
|
||||
--color-primary-hover: oklch(65% 0.22 295); /* Color: primary-hover */
|
||||
--color-primary-active: oklch(60% 0.25 295); /* Color: primary-active */
|
||||
--color-success: oklch(60% 0.22 145); /* Color: success */
|
||||
--color-warning: oklch(70% 0.22 85); /* Color: warning */
|
||||
--color-error: oklch(60% 0.25 25); /* Color: error */
|
||||
--color-info: oklch(65% 0.2 240); /* Color: info */
|
||||
--color-bg: oklch(18% 0.01 270); /* Color: bg */
|
||||
--color-bg-alt: oklch(26% 0.015 270); /* Color: bg-alt */
|
||||
--color-text: oklch(95% 0.005 270); /* Color: text */
|
||||
--color-text-muted: oklch(70% 0.01 270); /* Color: text-muted */
|
||||
--color-border: oklch(40% 0.02 270); /* Color: border */
|
||||
--color-border-light: oklch(50% 0.02 270); /* Color: border-light */
|
||||
--spacing-xs: 0.25rem; /* Extra small spacing */
|
||||
--spacing-sm: 0.5rem; /* Small spacing */
|
||||
--spacing-md: 1rem; /* Medium spacing */
|
||||
--spacing-lg: 1.5rem; /* Large spacing */
|
||||
--spacing-xl: 2rem; /* Extra large spacing */
|
||||
--spacing-2xl: 3rem; /* Double extra large spacing */
|
||||
--font-size-xs: 0.75rem; /* Extra small font size */
|
||||
--font-size-sm: 0.875rem; /* Small font size */
|
||||
--font-size-base: 1rem; /* Base font size */
|
||||
--font-size-lg: 1.125rem; /* Large font size */
|
||||
--font-size-xl: 1.25rem; /* Extra large font size */
|
||||
--font-size-2xl: 1.5rem; /* Double extra large font size */
|
||||
--font-size-3xl: 1.875rem; /* Triple extra large font size */
|
||||
--font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Base font family */
|
||||
--font-family-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace; /* Monospace font family */
|
||||
--font-weight-normal: 400; /* Normal font weight */
|
||||
--font-weight-medium: 500; /* Medium font weight */
|
||||
--font-weight-semibold: 600; /* Semibold font weight */
|
||||
--font-weight-bold: 700; /* Bold font weight */
|
||||
--line-height-tight: 1.25; /* Tight line height */
|
||||
--line-height-normal: 1.5; /* Normal line height */
|
||||
--line-height-relaxed: 1.75; /* Relaxed line height */
|
||||
--radius-sm: 0.25rem; /* Small border radius */
|
||||
--radius-md: 0.375rem; /* Medium border radius */
|
||||
--radius-lg: 0.5rem; /* Large border radius */
|
||||
--radius-xl: 0.75rem; /* Extra large border radius */
|
||||
--radius-full: 9999px; /* Full border radius (pill shape) */
|
||||
--shadow-sm: 0 1px 2px 0 oklch(0% 0 0 / 0.05); /* Small shadow */
|
||||
--shadow-md: 0 4px 6px -1px oklch(0% 0 0 / 0.1), 0 2px 4px -1px oklch(0% 0 0 / 0.06); /* Medium shadow */
|
||||
--shadow-lg: 0 10px 15px -3px oklch(0% 0 0 / 0.1), 0 4px 6px -2px oklch(0% 0 0 / 0.05); /* Large shadow */
|
||||
--shadow-xl: 0 20px 25px -5px oklch(0% 0 0 / 0.1), 0 10px 10px -5px oklch(0% 0 0 / 0.04); /* Extra large shadow */
|
||||
--z-base: 1; /* Base z-index */
|
||||
--z-header: 90; /* Header z-index */
|
||||
--z-sidebar: 100; /* Sidebar z-index */
|
||||
--z-overlay: 120; /* Overlay z-index */
|
||||
--z-modal: 130; /* Modal z-index */
|
||||
--z-tooltip: 140; /* Tooltip z-index */
|
||||
--z-toast: 150; /* Toast z-index */
|
||||
--transition-fast: 0.15s ease; /* Fast transition */
|
||||
--transition-base: 0.2s ease; /* Base transition */
|
||||
--transition-slow: 0.3s ease; /* Slow transition */
|
||||
--bg-primary: oklch(98% 0.01 280); /* Color: bg-primary */
|
||||
--bg-secondary: oklch(95% 0.01 280); /* Color: bg-secondary */
|
||||
--bg-tertiary: oklch(92% 0.01 280); /* Color: bg-tertiary */
|
||||
--sidebar-bg: oklch(25% 0.02 280); /* Color: sidebar-bg */
|
||||
--sidebar-text: oklch(90% 0.01 280); /* Color: sidebar-text */
|
||||
--sidebar-text-hover: oklch(100% 0 0); /* Color: sidebar-text-hover */
|
||||
--sidebar-active: oklch(45% 0.15 280); /* Color: sidebar-active */
|
||||
--sidebar-border: oklch(30% 0.02 280); /* Color: sidebar-border */
|
||||
--header-bg: oklch(100% 0 0); /* Color: header-bg */
|
||||
--header-border: oklch(85% 0.01 280); /* Color: header-border */
|
||||
--header-text: oklch(20% 0.02 280); /* Color: header-text */
|
||||
--content-bg: oklch(100% 0 0); /* Color: content-bg */
|
||||
--content-text: oklch(20% 0.02 280); /* Color: content-text */
|
||||
--link-color: oklch(55% 0.2 260); /* Color: link-color */
|
||||
--link-hover: oklch(45% 0.25 260); /* Color: link-hover */
|
||||
--link-active: oklch(35% 0.3 260); /* Color: link-active */
|
||||
--accent-primary: oklch(60% 0.2 280); /* Color: accent-primary */
|
||||
--accent-success: oklch(65% 0.2 145); /* Color: accent-success */
|
||||
--accent-warning: oklch(70% 0.2 85); /* Color: accent-warning */
|
||||
--accent-error: oklch(60% 0.25 25); /* Color: accent-error */
|
||||
--accent-info: oklch(65% 0.2 240); /* Color: accent-info */
|
||||
--border-light: oklch(90% 0.01 280); /* Color: border-light */
|
||||
--border-medium: oklch(80% 0.02 280); /* Color: border-medium */
|
||||
--border-dark: oklch(70% 0.02 280); /* Color: border-dark */
|
||||
--focus-ring: oklch(55% 0.2 260); /* Color: focus-ring */
|
||||
--hover-overlay: oklch(0% 0 0 / 0.05); /* Color: hover-overlay */
|
||||
--spacing-sidebar: 250px; /* Sidebar width */
|
||||
--spacing-sidebar-wide: 280px; /* Sidebar width on wide screens */
|
||||
--spacing-header: 4rem; /* Header height */
|
||||
--spacing-content-padding: 2rem; /* Content padding */
|
||||
--spacing-content-max-width: 1400px; /* Content maximum width */
|
||||
--icon-size-sm: 16px; /* Small icon size */
|
||||
--icon-size-md: 18px; /* Medium icon size */
|
||||
--icon-size-lg: 24px; /* Large icon size */
|
||||
--z-dropdown: 110; /* Dropdown z-index */
|
||||
--container-mobile: 100px; /* Mobile container width (100%) */
|
||||
--container-tablet: 720px; /* Tablet container width */
|
||||
--container-desktop: 960px; /* Desktop container width */
|
||||
--container-wide: 1400px; /* Wide container width */
|
||||
--breakpoint-tablet: 768px; /* Tablet breakpoint */
|
||||
--breakpoint-desktop: 1024px; /* Desktop breakpoint */
|
||||
--breakpoint-wide: 1440px; /* Wide breakpoint */
|
||||
}
|
||||
@media (dynamic-range: high) {
|
||||
}
|
||||
@supports (color: color(display-p3 1 0 0)) {
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--color-primary: oklch(60% 0.22 295); /* Dark mode variant */
|
||||
--color-primary-hover: oklch(55% 0.24 295); /* Dark mode variant */
|
||||
--color-primary-active: oklch(50% 0.27 295); /* Dark mode variant */
|
||||
--color-success: oklch(65% 0.24 145); /* Dark mode variant */
|
||||
--color-warning: oklch(75% 0.24 85); /* Dark mode variant */
|
||||
--color-error: oklch(65% 0.27 25); /* Dark mode variant */
|
||||
--color-info: oklch(70% 0.22 240); /* Dark mode variant */
|
||||
--color-bg: oklch(20% 0.02 270); /* Dark mode variant */
|
||||
--color-bg-alt: oklch(23% 0.02 270); /* Dark mode variant */
|
||||
--color-text: oklch(90% 0.01 270); /* Dark mode variant */
|
||||
--color-text-muted: oklch(75% 0.01 270); /* Dark mode variant */
|
||||
--color-border: oklch(30% 0.02 270); /* Dark mode variant */
|
||||
--color-border-light: oklch(35% 0.02 270); /* Dark mode variant */
|
||||
--bg-primary: oklch(20% 0.02 280); /* Dark mode variant */
|
||||
--bg-secondary: oklch(23% 0.02 280); /* Dark mode variant */
|
||||
--bg-tertiary: oklch(26% 0.02 280); /* Dark mode variant */
|
||||
--sidebar-bg: oklch(15% 0.02 280); /* Dark mode variant */
|
||||
--sidebar-text: oklch(75% 0.02 280); /* Dark mode variant */
|
||||
--sidebar-text-hover: oklch(95% 0.01 280); /* Dark mode variant */
|
||||
--sidebar-active: oklch(35% 0.2 280); /* Dark mode variant */
|
||||
--sidebar-border: oklch(25% 0.02 280); /* Dark mode variant */
|
||||
--header-bg: oklch(18% 0.02 280); /* Dark mode variant */
|
||||
--header-border: oklch(30% 0.02 280); /* Dark mode variant */
|
||||
--header-text: oklch(90% 0.01 280); /* Dark mode variant */
|
||||
--content-bg: oklch(20% 0.02 280); /* Dark mode variant */
|
||||
--content-text: oklch(90% 0.01 280); /* Dark mode variant */
|
||||
--link-color: oklch(70% 0.2 260); /* Dark mode variant */
|
||||
--link-hover: oklch(80% 0.22 260); /* Dark mode variant */
|
||||
--link-active: oklch(85% 0.25 260); /* Dark mode variant */
|
||||
--accent-primary: oklch(65% 0.22 280); /* Dark mode variant */
|
||||
--accent-success: oklch(70% 0.22 145); /* Dark mode variant */
|
||||
--accent-warning: oklch(75% 0.22 85); /* Dark mode variant */
|
||||
--accent-error: oklch(65% 0.27 25); /* Dark mode variant */
|
||||
--accent-info: oklch(70% 0.22 240); /* Dark mode variant */
|
||||
--border-light: oklch(30% 0.02 280); /* Dark mode variant */
|
||||
--border-medium: oklch(35% 0.02 280); /* Dark mode variant */
|
||||
--border-dark: oklch(40% 0.02 280); /* Dark mode variant */
|
||||
--focus-ring: oklch(70% 0.2 260); /* Dark mode variant */
|
||||
--hover-overlay: oklch(100% 0 0 / 0.05); /* Dark mode variant */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,33 @@
|
||||
@layer reset, base, layout, components, utilities, overrides;
|
||||
|
||||
/* Layer 1: Settings */
|
||||
@import url('settings/_generated-tokens.css') layer(settings);
|
||||
@import url('settings/colors.css') layer(settings);
|
||||
@import url('settings/variables.css') layer(settings);
|
||||
@import url('admin/01-settings/_breakpoints.css') layer(settings);
|
||||
|
||||
/* Layer 2: Tools */
|
||||
@import url('admin/02-tools/_mixins.css') layer(tools);
|
||||
|
||||
/* Layer 3: Generic */
|
||||
@import url('base/reset.css') layer(reset);
|
||||
@import url('base') layer(base);
|
||||
@import url('admin/03-generic/_reset.css') layer(reset);
|
||||
|
||||
/* Layer 4: Elements */
|
||||
@import url('admin/04-elements/_base.css') layer(base);
|
||||
|
||||
/* Layer 5: Objects */
|
||||
@import url('layout/container.css') layer(layout);
|
||||
@import url('admin/05-objects/_layout.css') layer(layout);
|
||||
@import url('admin/05-objects/_grid.css') layer(layout);
|
||||
|
||||
/* Layer 6: Components */
|
||||
/* Frontend Components */
|
||||
@import url('components/header.css') layer(components);
|
||||
@import url('components/footer.css') layer(components);
|
||||
@import url('components/nav.css') layer(components);
|
||||
@import url('components/navigation.css') layer(components);
|
||||
@import url('components/buttons.css') layer(components);
|
||||
@import url('components/card.css') layer(components);
|
||||
@import url('components/lightbox.css') layer(components);
|
||||
@@ -21,16 +41,40 @@
|
||||
@import url('components/container.css') layer(components);
|
||||
@import url('forms/inputs.css') layer(components);
|
||||
|
||||
/* Admin Components */
|
||||
/* Admin Components aus components/admin/ */
|
||||
@import url('components/admin/admin-layout.css') layer(components);
|
||||
@import url('components/admin/admin-cards.css') layer(components);
|
||||
@import url('components/admin/admin-tables.css') layer(components);
|
||||
@import url('components/admin/admin-forms.css') layer(components);
|
||||
@import url('components/admin/admin-buttons.css') layer(components);
|
||||
@import url('components/admin/admin-bulk-operations.css') layer(components);
|
||||
@import url('components/admin/admin-ui-enhancements.css') layer(components);
|
||||
@import url('components/admin/admin-asset-preview.css') layer(components);
|
||||
@import url('components/admin/admin-filters.css') layer(components);
|
||||
@import url('components/admin/admin-duplicates.css') layer(components);
|
||||
@import url('components/admin/admin-asset-gallery.css') layer(components);
|
||||
@import url('components/admin/admin-content-form.css') layer(components);
|
||||
@import url('components/admin/admin-block-editor.css') layer(components);
|
||||
@import url('components/admin/admin-asset-picker.css') layer(components);
|
||||
@import url('components/admin/admin-asset-upload.css') layer(components);
|
||||
@import url('components/admin/admin-asset-variants.css') layer(components);
|
||||
|
||||
/* Admin Components aus admin/06-components/ */
|
||||
@import url('admin/06-components/_sidebar.css') layer(components);
|
||||
@import url('admin/06-components/_header.css') layer(components);
|
||||
@import url('admin/06-components/_search.css') layer(components);
|
||||
@import url('admin/06-components/_popover.css') layer(components);
|
||||
@import url('admin/06-components/_breadcrumbs.css') layer(components);
|
||||
@import url('admin/06-components/_content.css') layer(components);
|
||||
@import url('admin/06-components/_stat-list.css') layer(components);
|
||||
@import url('admin/06-components/_confusion-matrix.css') layer(components);
|
||||
|
||||
/* Layer 7: Utilities */
|
||||
@import url('utilities/helpers.css') layer(utilities);
|
||||
@import url('utilities/animations.css') layer(utilities);
|
||||
@import url('utilities/noise.css') layer(utilities);
|
||||
@import url('utilities/scroll.css') layer(utilities);
|
||||
@import url('admin/07-utilities/_accessibility.css') layer(utilities);
|
||||
@import url('admin/07-utilities/_theme-transitions.css') layer(utilities);
|
||||
@import url('admin/07-utilities/_view-transitions.css') layer(utilities);
|
||||
|
||||
@layer overrides {
|
||||
/* Benutzerdefinierte Styles */
|
||||
|
||||
@@ -65,6 +65,27 @@
|
||||
}
|
||||
|
||||
|
||||
/* Admin-specific View Transitions */
|
||||
::view-transition-old(admin-sidebar),
|
||||
::view-transition-new(admin-sidebar) {
|
||||
animation: fade 0.15s ease-out;
|
||||
}
|
||||
|
||||
::view-transition-old(admin-content),
|
||||
::view-transition-new(admin-content) {
|
||||
animation: fade 0.15s ease-out;
|
||||
}
|
||||
|
||||
::view-transition-old(admin-header),
|
||||
::view-transition-new(admin-header) {
|
||||
animation: slide-down 0.2s ease-out;
|
||||
}
|
||||
|
||||
::view-transition-old(admin-popover),
|
||||
::view-transition-new(admin-popover) {
|
||||
animation: fade 0.15s ease-out;
|
||||
}
|
||||
|
||||
/* Respektiere User-Präferenzen für reduzierte Bewegung */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
::view-transition-old(main-content),
|
||||
@@ -72,7 +93,15 @@
|
||||
::view-transition-old(site-header),
|
||||
::view-transition-new(site-header),
|
||||
::view-transition-old(site-footer),
|
||||
::view-transition-new(site-footer) {
|
||||
::view-transition-new(site-footer),
|
||||
::view-transition-old(admin-sidebar),
|
||||
::view-transition-new(admin-sidebar),
|
||||
::view-transition-old(admin-content),
|
||||
::view-transition-new(admin-content),
|
||||
::view-transition-old(admin-header),
|
||||
::view-transition-new(admin-header),
|
||||
::view-transition-old(admin-popover),
|
||||
::view-transition-new(admin-popover) {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user