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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user