Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
282
resources/css/components/admin/admin-buttons.css
Normal file
282
resources/css/components/admin/admin-buttons.css
Normal file
@@ -0,0 +1,282 @@
|
||||
/**
|
||||
* Admin Button Components
|
||||
*
|
||||
* Extends base button system with admin-specific variants and states
|
||||
* Consistent with design system color tokens
|
||||
*/
|
||||
|
||||
/* Base Admin Button */
|
||||
.admin-button {
|
||||
--_color: var(--color, var(--accent));
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-sm);
|
||||
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border: 1px solid var(--_color);
|
||||
border-radius: var(--radius-md);
|
||||
|
||||
background: var(--_color);
|
||||
color: var(--bg);
|
||||
|
||||
font: inherit;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
text-decoration: none;
|
||||
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
touch-action: manipulation;
|
||||
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-touch-callout: none;
|
||||
}
|
||||
|
||||
.admin-button:hover:not(:disabled) {
|
||||
--_hoverColor: oklch(from var(--color, var(--accent)) calc(l - 0.05) c h);
|
||||
--_color: var(--hoverColor, var(--_hoverColor));
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px oklch(from var(--_color) l c h / 0.2);
|
||||
}
|
||||
|
||||
.admin-button:active:not(:disabled) {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 4px oklch(from var(--_color) l c h / 0.2);
|
||||
}
|
||||
|
||||
.admin-button:focus-visible {
|
||||
outline: 2px solid var(--_color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.admin-button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Button Variants */
|
||||
.admin-button--secondary {
|
||||
--color: var(--border);
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.admin-button--secondary:hover:not(:disabled) {
|
||||
background: var(--bg-alt);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.admin-button--outline {
|
||||
background: transparent;
|
||||
color: var(--_color);
|
||||
}
|
||||
|
||||
.admin-button--outline:hover:not(:disabled) {
|
||||
background: oklch(from var(--_color) l c h / 0.1);
|
||||
}
|
||||
|
||||
.admin-button--ghost {
|
||||
border: transparent;
|
||||
background: transparent;
|
||||
color: var(--_color);
|
||||
}
|
||||
|
||||
.admin-button--ghost:hover:not(:disabled) {
|
||||
background: oklch(from var(--_color) l c h / 0.1);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
/* Semantic Variants */
|
||||
.admin-button--success {
|
||||
--color: var(--success);
|
||||
}
|
||||
|
||||
.admin-button--warning {
|
||||
--color: var(--warning);
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
.admin-button--error {
|
||||
--color: var(--error);
|
||||
}
|
||||
|
||||
.admin-button--info {
|
||||
--color: var(--info-base);
|
||||
}
|
||||
|
||||
/* Size Variants */
|
||||
.admin-button--small {
|
||||
padding: 0.25rem var(--space-sm);
|
||||
font-size: 0.75rem;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-button--large {
|
||||
padding: var(--space-md) var(--space-lg);
|
||||
font-size: 1rem;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.admin-button--full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Icon Buttons */
|
||||
.admin-button--icon-only {
|
||||
padding: var(--space-sm);
|
||||
aspect-ratio: 1;
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.admin-button--icon-only.admin-button--small {
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-button--icon-only.admin-button--large {
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
/* Loading State */
|
||||
.admin-button--loading {
|
||||
position: relative;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.admin-button--loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border: 2px solid currentColor;
|
||||
border-top-color: transparent;
|
||||
border-radius: 50%;
|
||||
animation: button-spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes button-spin {
|
||||
to {
|
||||
transform: translate(-50%, -50%) rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Button Groups */
|
||||
.admin-button-group {
|
||||
display: inline-flex;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button {
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button:hover {
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button.active {
|
||||
background: var(--accent);
|
||||
color: var(--bg);
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Dropdown Buttons */
|
||||
.admin-button--dropdown {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin-button--dropdown::after {
|
||||
content: '';
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 4px solid transparent;
|
||||
border-right: 4px solid transparent;
|
||||
border-top: 4px solid currentColor;
|
||||
margin-left: var(--space-sm);
|
||||
}
|
||||
|
||||
/* Floating Action Button */
|
||||
.admin-fab {
|
||||
position: fixed;
|
||||
bottom: var(--space-lg);
|
||||
right: var(--space-lg);
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
color: var(--bg);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 12px oklch(from var(--accent) l c h / 0.3);
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
z-index: 100;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.admin-fab:hover {
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 6px 16px oklch(from var(--accent) l c h / 0.4);
|
||||
}
|
||||
|
||||
.admin-fab:active {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.admin-button {
|
||||
padding: var(--space-sm);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-button--small {
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.admin-button--large {
|
||||
padding: var(--space-md);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-button-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.admin-fab {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
bottom: var(--space-md);
|
||||
right: var(--space-md);
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
197
resources/css/components/admin/admin-cards.css
Normal file
197
resources/css/components/admin/admin-cards.css
Normal file
@@ -0,0 +1,197 @@
|
||||
/**
|
||||
* Admin Card Components
|
||||
*
|
||||
* Status cards, metric cards, and data containers for admin interfaces
|
||||
* Consistent with design system color tokens
|
||||
*/
|
||||
|
||||
/* Base Card */
|
||||
.admin-card {
|
||||
background: var(--bg-alt);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--space-lg);
|
||||
box-shadow: 0 1px 3px oklch(0% 0 0 / 0.05);
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-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 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: var(--space-md);
|
||||
}
|
||||
|
||||
.admin-card__title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-card__subtitle {
|
||||
color: var(--muted);
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-card__action {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.admin-card__action:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.admin-card__content {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* Status Cards */
|
||||
.status-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.status-card--success {
|
||||
border-left: 4px solid var(--success);
|
||||
}
|
||||
|
||||
.status-card--warning {
|
||||
border-left: 4px solid var(--warning);
|
||||
}
|
||||
|
||||
.status-card--error {
|
||||
border-left: 4px solid var(--error);
|
||||
}
|
||||
|
||||
.status-card--info {
|
||||
border-left: 4px solid var(--info-base);
|
||||
}
|
||||
|
||||
/* Metric Cards */
|
||||
.metric-card {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.metric-card__value {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
line-height: 1.2;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.metric-card__label {
|
||||
color: var(--muted);
|
||||
font-size: 0.875rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.metric-card__change {
|
||||
font-size: 0.75rem;
|
||||
margin-top: 0.5rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.metric-card__change--positive {
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.metric-card__change--negative {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.metric-card__change--neutral {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* Progress Cards */
|
||||
.progress-card__header {
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.progress-card__bar {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: oklch(from var(--border) l c h / 0.3);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.progress-card__fill {
|
||||
height: 100%;
|
||||
background: var(--accent);
|
||||
border-radius: 4px;
|
||||
transition: width var(--duration-medium) var(--easing-default);
|
||||
}
|
||||
|
||||
.progress-card__fill--success {
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
.progress-card__fill--warning {
|
||||
background: var(--warning);
|
||||
}
|
||||
|
||||
.progress-card__fill--error {
|
||||
background: var(--error);
|
||||
}
|
||||
|
||||
.progress-card__stats {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* Compact Cards */
|
||||
.admin-card--compact {
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.admin-card--compact .admin-card__title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Card Grid Layouts */
|
||||
.admin-cards {
|
||||
display: grid;
|
||||
gap: var(--space-lg);
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.admin-cards--2-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
}
|
||||
|
||||
.admin-cards--3-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
}
|
||||
|
||||
.admin-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 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.metric-card__value {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
317
resources/css/components/admin/admin-forms.css
Normal file
317
resources/css/components/admin/admin-forms.css
Normal file
@@ -0,0 +1,317 @@
|
||||
/**
|
||||
* Admin Form Components
|
||||
*
|
||||
* Form controls, filters, and input elements for admin interfaces
|
||||
* Extended from base form styles with admin-specific enhancements
|
||||
*/
|
||||
|
||||
/* Form Groups */
|
||||
.admin-form-group {
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.admin-form-group__label {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
margin-bottom: var(--space-sm);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-form-group__label--required::after {
|
||||
content: ' *';
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.admin-form-group__help {
|
||||
color: var(--muted);
|
||||
font-size: 0.75rem;
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
|
||||
.admin-form-group__error {
|
||||
color: var(--error);
|
||||
font-size: 0.75rem;
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
|
||||
/* Input Fields */
|
||||
.admin-input {
|
||||
width: 100%;
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 0.875rem;
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.1);
|
||||
}
|
||||
|
||||
.admin-input:invalid {
|
||||
border-color: var(--error);
|
||||
}
|
||||
|
||||
.admin-input:invalid:focus {
|
||||
box-shadow: 0 0 0 3px oklch(from var(--error) l c h / 0.1);
|
||||
}
|
||||
|
||||
.admin-input--small {
|
||||
padding: 0.25rem var(--space-sm);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.admin-input--large {
|
||||
padding: var(--space-md) var(--space-lg);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Select Fields */
|
||||
.admin-select {
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right var(--space-sm) center;
|
||||
background-size: 1rem 1rem;
|
||||
padding-right: calc(var(--space-md) + 1.5rem);
|
||||
}
|
||||
|
||||
/* Textarea */
|
||||
.admin-textarea {
|
||||
min-height: 100px;
|
||||
resize: vertical;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* Search Fields */
|
||||
.admin-search {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.admin-search__input {
|
||||
padding-left: calc(var(--space-md) + 1.5rem);
|
||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'/%3e%3cpath d='m21 21-4.35-4.35'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: left var(--space-sm) center;
|
||||
background-size: 1rem 1rem;
|
||||
}
|
||||
|
||||
.admin-search__clear {
|
||||
position: absolute;
|
||||
right: var(--space-sm);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
padding: 0.25rem;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.admin-search__clear:hover {
|
||||
background: oklch(from var(--border) l c h / 0.5);
|
||||
}
|
||||
|
||||
/* Filter Bar */
|
||||
.admin-filter-bar {
|
||||
display: flex;
|
||||
gap: var(--space-md);
|
||||
align-items: center;
|
||||
padding: var(--space-md);
|
||||
background: var(--bg-alt);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
margin-bottom: var(--space-lg);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.admin-filter-bar__group {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.admin-filter-bar__label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
color: var(--muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-filter-bar__input {
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.admin-filter-bar__actions {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
/* Button Groups */
|
||||
.admin-button-group {
|
||||
display: inline-flex;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button {
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.admin-button-group .admin-button.active {
|
||||
background: var(--accent);
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
/* Toggle Switches */
|
||||
.admin-toggle {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 44px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.admin-toggle__input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.admin-toggle__slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: var(--border);
|
||||
transition: var(--duration-default);
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
.admin-toggle__slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
left: 3px;
|
||||
bottom: 3px;
|
||||
background: var(--bg);
|
||||
transition: var(--duration-default);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.admin-toggle__input:checked + .admin-toggle__slider {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.admin-toggle__input:checked + .admin-toggle__slider:before {
|
||||
transform: translateX(20px);
|
||||
}
|
||||
|
||||
/* Checkbox/Radio Groups */
|
||||
.admin-checkbox-group,
|
||||
.admin-radio-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.admin-checkbox-group--horizontal,
|
||||
.admin-radio-group--horizontal {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.admin-checkbox,
|
||||
.admin-radio {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin-checkbox__input,
|
||||
.admin-radio__input {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.admin-checkbox__label,
|
||||
.admin-radio__label {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* Form Actions */
|
||||
.admin-form-actions {
|
||||
display: flex;
|
||||
gap: var(--space-md);
|
||||
justify-content: flex-end;
|
||||
padding-top: var(--space-lg);
|
||||
border-top: 1px solid var(--border);
|
||||
margin-top: var(--space-lg);
|
||||
}
|
||||
|
||||
.admin-form-actions--left {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.admin-form-actions--center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-form-actions--space-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.admin-filter-bar {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.admin-filter-bar__group {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.admin-filter-bar__actions {
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.admin-form-actions {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.admin-button-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin-checkbox-group--horizontal,
|
||||
.admin-radio-group--horizontal {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
113
resources/css/components/admin/admin-layout.css
Normal file
113
resources/css/components/admin/admin-layout.css
Normal file
@@ -0,0 +1,113 @@
|
||||
/**
|
||||
* Admin Layout Components
|
||||
*
|
||||
* Provides consistent layout structure for admin pages
|
||||
* Based on existing design system tokens and OKLCH color palette
|
||||
*/
|
||||
|
||||
/* Admin Page Container */
|
||||
.admin-page {
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Admin Header */
|
||||
.admin-header {
|
||||
background: var(--bg-alt);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: var(--space-lg) var(--space-lg);
|
||||
box-shadow: 0 1px 3px oklch(0% 0 0 / 0.1);
|
||||
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.admin-header__title {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-header__subtitle {
|
||||
color: var(--muted);
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.admin-header__actions {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Admin Main Content */
|
||||
.admin-main {
|
||||
padding: var(--space-lg);
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Admin Breadcrumbs */
|
||||
.admin-breadcrumbs {
|
||||
margin-bottom: var(--space-lg);
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.admin-breadcrumbs a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.admin-breadcrumbs a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Admin Grid System */
|
||||
.admin-grid {
|
||||
display: grid;
|
||||
gap: var(--space-lg);
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.admin-grid--2-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
}
|
||||
|
||||
.admin-grid--3-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
}
|
||||
|
||||
.admin-grid--4-col {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
}
|
||||
|
||||
/* Responsive breakpoints */
|
||||
@media (max-width: 768px) {
|
||||
.admin-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.admin-header__actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.admin-grid--2-col,
|
||||
.admin-grid--3-col,
|
||||
.admin-grid--4-col {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
287
resources/css/components/admin/admin-tables.css
Normal file
287
resources/css/components/admin/admin-tables.css
Normal file
@@ -0,0 +1,287 @@
|
||||
/**
|
||||
* Admin Table Components
|
||||
*
|
||||
* Data tables, log viewers, and tabular data display
|
||||
* Optimized for readability and data density
|
||||
*/
|
||||
|
||||
/* Base Table Wrapper */
|
||||
.admin-table-wrapper {
|
||||
background: var(--bg-alt);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.admin-table-wrapper__header {
|
||||
padding: var(--space-lg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.admin-table-wrapper__title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-table-wrapper__actions {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
/* Base Table */
|
||||
.admin-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-table th,
|
||||
.admin-table td {
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid oklch(from var(--border) l c h / 0.5);
|
||||
}
|
||||
|
||||
.admin-table th {
|
||||
background: oklch(from var(--bg-alt) calc(l + 0.02) c h);
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.admin-table td {
|
||||
color: var(--text);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.admin-table tbody tr:hover {
|
||||
background: oklch(from var(--bg-alt) calc(l + 0.01) c h);
|
||||
}
|
||||
|
||||
/* Table Variants */
|
||||
.admin-table--striped tbody tr:nth-child(even) {
|
||||
background: oklch(from var(--bg) calc(l + 0.01) c h);
|
||||
}
|
||||
|
||||
.admin-table--bordered th,
|
||||
.admin-table--bordered td {
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.admin-table--compact th,
|
||||
.admin-table--compact td {
|
||||
padding: var(--space-sm);
|
||||
}
|
||||
|
||||
/* Status Columns */
|
||||
.admin-table__status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: var(--radius-md);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.admin-table__status--success {
|
||||
background: var(--success-subtle);
|
||||
color: var(--success-text);
|
||||
border: 1px solid var(--success-border);
|
||||
}
|
||||
|
||||
.admin-table__status--warning {
|
||||
background: var(--warning-subtle);
|
||||
color: var(--warning-border);
|
||||
border: 1px solid var(--warning-border);
|
||||
}
|
||||
|
||||
.admin-table__status--error {
|
||||
background: var(--error-subtle);
|
||||
color: var(--error-text);
|
||||
border: 1px solid var(--error-border);
|
||||
}
|
||||
|
||||
.admin-table__status--info {
|
||||
background: oklch(var(--l-subtle) var(--c-muted) var(--h-info));
|
||||
color: oklch(var(--l-text) var(--c-subtle) var(--h-info));
|
||||
border: 1px solid oklch(var(--l-border) var(--c-moderate) var(--h-info));
|
||||
}
|
||||
|
||||
/* Status Indicators */
|
||||
.status-indicator {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-indicator--success {
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
.status-indicator--warning {
|
||||
background: var(--warning);
|
||||
}
|
||||
|
||||
.status-indicator--error {
|
||||
background: var(--error);
|
||||
}
|
||||
|
||||
.status-indicator--info {
|
||||
background: var(--info-base);
|
||||
}
|
||||
|
||||
/* Action Columns */
|
||||
.admin-table__actions {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.admin-table__action {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: var(--radius-md);
|
||||
transition: all var(--duration-default) var(--easing-default);
|
||||
}
|
||||
|
||||
.admin-table__action:hover {
|
||||
background: oklch(from var(--accent) l c h / 0.1);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.admin-table__action--danger {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.admin-table__action--danger:hover {
|
||||
background: oklch(from var(--error) l c h / 0.1);
|
||||
}
|
||||
|
||||
/* Code/Log Columns */
|
||||
.admin-table__code {
|
||||
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
|
||||
font-size: 0.75rem;
|
||||
background: oklch(from var(--bg) calc(l + 0.02) c h);
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: var(--radius-md);
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Timestamp Columns */
|
||||
.admin-table__timestamp {
|
||||
color: var(--muted);
|
||||
font-size: 0.75rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Scrollable Tables */
|
||||
.admin-table-scroll {
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
max-height: 600px;
|
||||
}
|
||||
|
||||
.admin-table-scroll::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.admin-table-scroll::-webkit-scrollbar-track {
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.admin-table-scroll::-webkit-scrollbar-thumb {
|
||||
background: var(--border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.admin-table-scroll::-webkit-scrollbar-thumb:hover {
|
||||
background: oklch(from var(--border) calc(l + 0.1) c h);
|
||||
}
|
||||
|
||||
/* Empty State */
|
||||
.admin-table__empty {
|
||||
text-align: center;
|
||||
padding: var(--space-lg);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.admin-table__empty-icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: var(--space-md);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* Loading State */
|
||||
.admin-table--loading {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-table--loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent,
|
||||
oklch(from var(--accent) l c h / 0.1),
|
||||
transparent
|
||||
);
|
||||
animation: loading-shimmer 1.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes loading-shimmer {
|
||||
100% {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.admin-table-wrapper__header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.admin-table-wrapper__actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.admin-table th,
|
||||
.admin-table td {
|
||||
padding: var(--space-sm);
|
||||
}
|
||||
|
||||
.admin-table__actions {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
158
resources/css/components/csrf-status.css
Normal file
158
resources/css/components/csrf-status.css
Normal file
@@ -0,0 +1,158 @@
|
||||
/**
|
||||
* CSRF Status Message Styling
|
||||
*
|
||||
* Provides consistent styling for CSRF auto-refresh status messages
|
||||
* that appear in the top-right corner of the page.
|
||||
*/
|
||||
|
||||
/* Base status message styling */
|
||||
#csrf-status-message {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
z-index: 10000;
|
||||
max-width: 320px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
line-height: 1.4;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* Status message variants */
|
||||
#csrf-status-message.csrf-status-info {
|
||||
background: #e3f2fd;
|
||||
color: #1976d2;
|
||||
border-left: 4px solid #2196f3;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-success {
|
||||
background: #e8f5e8;
|
||||
color: #2e7d32;
|
||||
border-left: 4px solid #4caf50;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-warning {
|
||||
background: #fff3e0;
|
||||
color: #f57c00;
|
||||
border-left: 4px solid #ff9800;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-error {
|
||||
background: #ffebee;
|
||||
color: #d32f2f;
|
||||
border-left: 4px solid #f44336;
|
||||
}
|
||||
|
||||
/* Animation states */
|
||||
#csrf-status-message.csrf-entering {
|
||||
opacity: 0;
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-leaving {
|
||||
opacity: 0;
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 768px) {
|
||||
#csrf-status-message {
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
max-width: none;
|
||||
font-size: 13px;
|
||||
padding: 10px 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
#csrf-status-message {
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
font-size: 12px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark mode support */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#csrf-status-message.csrf-status-info {
|
||||
background: #1e3a8a;
|
||||
color: #bfdbfe;
|
||||
border-left-color: #3b82f6;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-success {
|
||||
background: #166534;
|
||||
color: #bbf7d0;
|
||||
border-left-color: #22c55e;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-warning {
|
||||
background: #92400e;
|
||||
color: #fde68a;
|
||||
border-left-color: #f59e0b;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-error {
|
||||
background: #991b1b;
|
||||
color: #fecaca;
|
||||
border-left-color: #ef4444;
|
||||
}
|
||||
|
||||
#csrf-status-message {
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
/* High contrast mode support */
|
||||
@media (prefers-contrast: high) {
|
||||
#csrf-status-message {
|
||||
border: 2px solid currentColor;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-info {
|
||||
background: #000;
|
||||
color: #00f;
|
||||
border-color: #00f;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-success {
|
||||
background: #000;
|
||||
color: #0f0;
|
||||
border-color: #0f0;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-warning {
|
||||
background: #000;
|
||||
color: #ff0;
|
||||
border-color: #ff0;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-status-error {
|
||||
background: #000;
|
||||
color: #f00;
|
||||
border-color: #f00;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reduced motion support */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
#csrf-status-message {
|
||||
transition: opacity 0.1s ease;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#csrf-status-message.csrf-entering,
|
||||
#csrf-status-message.csrf-leaving {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
173
resources/css/components/form-autosave.css
Normal file
173
resources/css/components/form-autosave.css
Normal file
@@ -0,0 +1,173 @@
|
||||
/**
|
||||
* Form Auto-Save Status Message Styling
|
||||
*
|
||||
* Provides consistent styling for form auto-save status messages
|
||||
* that appear in the bottom-right corner of the page.
|
||||
*/
|
||||
|
||||
/* Base autosave status message styling */
|
||||
#form-autosave-status {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
z-index: 9999;
|
||||
max-width: 250px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
line-height: 1.4;
|
||||
word-wrap: break-word;
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
/* Status message variants */
|
||||
#form-autosave-status.autosave-status-info {
|
||||
background: rgba(227, 242, 253, 0.95);
|
||||
color: #1565c0;
|
||||
border: 1px solid #bbdefb;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-status-success {
|
||||
background: rgba(232, 245, 232, 0.95);
|
||||
color: #2e7d32;
|
||||
border: 1px solid #c8e6c9;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-status-error {
|
||||
background: rgba(255, 235, 238, 0.95);
|
||||
color: #c62828;
|
||||
border: 1px solid #ffcdd2;
|
||||
}
|
||||
|
||||
/* Animation states */
|
||||
#form-autosave-status.autosave-entering {
|
||||
opacity: 0;
|
||||
transform: translateY(100%);
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-leaving {
|
||||
opacity: 0;
|
||||
transform: translateY(100%);
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 768px) {
|
||||
#form-autosave-status {
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
max-width: none;
|
||||
font-size: 11px;
|
||||
padding: 6px 10px;
|
||||
bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
#form-autosave-status {
|
||||
bottom: 10px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
font-size: 11px;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark mode support */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#form-autosave-status.autosave-status-info {
|
||||
background: rgba(30, 58, 138, 0.95);
|
||||
color: #bfdbfe;
|
||||
border-color: #3b82f6;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-status-success {
|
||||
background: rgba(22, 101, 52, 0.95);
|
||||
color: #bbf7d0;
|
||||
border-color: #22c55e;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-status-error {
|
||||
background: rgba(153, 27, 27, 0.95);
|
||||
color: #fecaca;
|
||||
border-color: #ef4444;
|
||||
}
|
||||
|
||||
#form-autosave-status {
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
/* High contrast mode support */
|
||||
@media (prefers-contrast: high) {
|
||||
#form-autosave-status {
|
||||
border-width: 2px;
|
||||
font-weight: 600;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-status-info {
|
||||
background: #000;
|
||||
color: #00f;
|
||||
border-color: #00f;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-status-success {
|
||||
background: #000;
|
||||
color: #0f0;
|
||||
border-color: #0f0;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-status-error {
|
||||
background: #000;
|
||||
color: #f00;
|
||||
border-color: #f00;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reduced motion support */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
#form-autosave-status {
|
||||
transition: opacity 0.1s ease;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-entering,
|
||||
#form-autosave-status.autosave-leaving {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Print media - hide autosave messages */
|
||||
@media print {
|
||||
#form-autosave-status {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Position adjustment when both CSRF and autosave messages are present */
|
||||
body:has(#csrf-status-message) #form-autosave-status {
|
||||
bottom: 80px; /* Stack below CSRF messages */
|
||||
}
|
||||
|
||||
/* Subtle pulse animation for active saving */
|
||||
@keyframes autosave-pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.7; }
|
||||
}
|
||||
|
||||
#form-autosave-status.autosave-saving {
|
||||
animation: autosave-pulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Focus visible support for accessibility */
|
||||
#form-autosave-status:focus-visible {
|
||||
outline: 2px solid currentColor;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
172
resources/css/components/lightbox.css
Normal file
172
resources/css/components/lightbox.css
Normal file
@@ -0,0 +1,172 @@
|
||||
/* Lightbox Component Styles */
|
||||
|
||||
/* Enhanced images cursor */
|
||||
.lightbox-enabled {
|
||||
cursor: zoom-in;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.lightbox-enabled:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* Lightbox dialog styles */
|
||||
.lightbox {
|
||||
background-color: rgba(0, 0, 0, 0.9);
|
||||
padding: 2rem;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
max-width: 95vw;
|
||||
max-height: 95vh;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.lightbox::backdrop {
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.lightbox-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.lightbox-image {
|
||||
max-width: 100%;
|
||||
max-height: calc(90vh - 4rem);
|
||||
width: auto;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.lightbox-caption {
|
||||
color: white;
|
||||
text-align: center;
|
||||
margin-top: 1rem;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.4;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
/* Responsive picture elements in lightbox */
|
||||
.lightbox picture {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
max-height: calc(90vh - 4rem);
|
||||
}
|
||||
|
||||
.lightbox picture img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* Close button styling (if using Dialog component) */
|
||||
.lightbox .dialog-close {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
color: white;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.lightbox .dialog-close:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
/* Loading state for images */
|
||||
.lightbox-image[src=""] {
|
||||
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: loading 1.5s infinite;
|
||||
min-width: 200px;
|
||||
min-height: 150px;
|
||||
}
|
||||
|
||||
@keyframes loading {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.lightbox {
|
||||
padding: 1rem;
|
||||
max-width: 98vw;
|
||||
max-height: 98vh;
|
||||
}
|
||||
|
||||
.lightbox-image {
|
||||
max-height: calc(95vh - 2rem);
|
||||
}
|
||||
|
||||
.lightbox picture {
|
||||
max-height: calc(95vh - 2rem);
|
||||
}
|
||||
|
||||
.lightbox-caption {
|
||||
font-size: 0.8rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.lightbox .dialog-close {
|
||||
top: 0.5rem;
|
||||
right: 0.5rem;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Focus management for accessibility */
|
||||
.lightbox:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.lightbox-image:focus {
|
||||
outline: 2px solid white;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Animation for lightbox open/close */
|
||||
.lightbox {
|
||||
animation: lightboxFadeIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes lightboxFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.9);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* High DPI display optimizations */
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
.lightbox-image {
|
||||
image-rendering: -webkit-optimize-contrast;
|
||||
image-rendering: crisp-edges;
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,17 @@
|
||||
@import url('components/nav.css') layer(components);
|
||||
@import url('components/buttons.css') layer(components);
|
||||
@import url('components/card.css') layer(components);
|
||||
@import url('components/lightbox.css') layer(components);
|
||||
@import url('components/csrf-status.css') layer(components);
|
||||
@import url('components/form-autosave.css') layer(components);
|
||||
@import url('forms/inputs.css') layer(components);
|
||||
|
||||
/* Admin Components */
|
||||
@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('utilities/helpers.css') layer(utilities);
|
||||
@import url('utilities/animations.css') layer(utilities);
|
||||
@import url('utilities/noise.css') layer(utilities);
|
||||
|
||||
@@ -2,44 +2,83 @@
|
||||
navigation: auto;
|
||||
}
|
||||
|
||||
/* Schnellere Fade-Animation */
|
||||
@keyframes fade {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
/* Ultra-schnelle Fade-Animation */
|
||||
@keyframes fade-fast {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
/* Crossfade für sofortigen Übergang */
|
||||
@keyframes crossfade {
|
||||
from { opacity: 0.5; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes slide-down {
|
||||
from { transform: translateY(-2rem); opacity: 0; }
|
||||
from { transform: translateY(-1rem); opacity: 0; }
|
||||
to { transform: translateY(0); opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes slide-up {
|
||||
from { transform: translateY(2rem); opacity: 0; }
|
||||
from { transform: translateY(1rem); opacity: 0; }
|
||||
to { transform: translateY(0); opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes blur-in {
|
||||
from { filter: blur(10px); opacity: 0; }
|
||||
from { filter: blur(5px); opacity: 0; }
|
||||
to { filter: blur(0); opacity: 1; }
|
||||
}
|
||||
|
||||
/* 🎯 Transitions für benannte Bereiche */
|
||||
/* 🎯 Transitions für benannte Bereiche - BESCHLEUNIGT */
|
||||
|
||||
::view-transition-old(main-content),
|
||||
::view-transition-new(main-content) {
|
||||
animation: fade 0.4s ease;
|
||||
animation: fade 0.15s ease-out; /* Von 0.4s auf 0.15s reduziert */
|
||||
}
|
||||
|
||||
/* Alternative: Noch schnellere Transition */
|
||||
.fast-transitions ::view-transition-old(main-content),
|
||||
.fast-transitions ::view-transition-new(main-content) {
|
||||
animation: fade-fast 0.1s ease-out;
|
||||
}
|
||||
|
||||
/* Alternative: Instant mit minimalem Fade */
|
||||
.instant-transitions ::view-transition-old(main-content),
|
||||
.instant-transitions ::view-transition-new(main-content) {
|
||||
animation: crossfade 0.05s linear;
|
||||
}
|
||||
|
||||
::view-transition-old(site-header),
|
||||
::view-transition-new(site-header) {
|
||||
animation: slide-down 0.4s ease;
|
||||
animation: slide-down 0.2s ease-out; /* Von 0.4s auf 0.2s reduziert */
|
||||
}
|
||||
|
||||
::view-transition-old(site-footer),
|
||||
::view-transition-new(site-footer) {
|
||||
animation: slide-up 0.4s ease;
|
||||
animation: slide-up 0.2s ease-out; /* Von 0.4s auf 0.2s reduziert */
|
||||
}
|
||||
|
||||
::view-transition-old(sidebar),
|
||||
::view-transition-new(sidebar) {
|
||||
animation: blur-in 0.3s ease;
|
||||
animation: blur-in 0.15s ease-out; /* Von 0.3s auf 0.15s reduziert */
|
||||
}
|
||||
|
||||
/* Respektiere User-Präferenzen für reduzierte Bewegung */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
::view-transition-old(main-content),
|
||||
::view-transition-new(main-content),
|
||||
::view-transition-old(site-header),
|
||||
::view-transition-new(site-header),
|
||||
::view-transition-old(site-footer),
|
||||
::view-transition-new(site-footer),
|
||||
::view-transition-old(sidebar),
|
||||
::view-transition-new(sidebar) {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user