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