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