142 lines
2.8 KiB
CSS
142 lines
2.8 KiB
CSS
|
|
/* The manual per-album photo order editor. */
|
||
|
|
/* Split out of admin.css (#533). Loaded from admin.css in a fixed order —
|
||
|
|
later sheets override earlier ones, so the order there is the cascade. */
|
||
|
|
|
||
|
|
/* ── Per-album photo order (sort: manual) ────────────────────── */
|
||
|
|
|
||
|
|
.admin-field-hint {
|
||
|
|
display: block;
|
||
|
|
margin-top: 0.35rem;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
line-height: 1.4;
|
||
|
|
color: var(--admin-text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-editor-body {
|
||
|
|
flex: 1;
|
||
|
|
min-height: 0;
|
||
|
|
overflow-y: auto;
|
||
|
|
overscroll-behavior: contain;
|
||
|
|
padding: 0.75rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-editor-notice {
|
||
|
|
margin: 0 0 0.75rem;
|
||
|
|
padding: 0.5rem 0.7rem;
|
||
|
|
border-radius: 6px;
|
||
|
|
font-size: 0.78rem;
|
||
|
|
line-height: 1.4;
|
||
|
|
color: var(--admin-accent);
|
||
|
|
border: 1px solid rgba(245, 158, 11, 0.3);
|
||
|
|
background: rgba(245, 158, 11, 0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-editor-section + .order-editor-section {
|
||
|
|
margin-top: 1.25rem;
|
||
|
|
padding-top: 1rem;
|
||
|
|
border-top: 1px solid var(--admin-border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-editor-section-head {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 0.75rem;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-editor-section-head h4 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 0.85rem;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--admin-text);
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-editor-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
|
||
|
|
gap: 0.5rem;
|
||
|
|
margin-top: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile {
|
||
|
|
position: relative;
|
||
|
|
aspect-ratio: 1;
|
||
|
|
border-radius: 8px;
|
||
|
|
overflow: hidden;
|
||
|
|
background: var(--admin-bg-elevated);
|
||
|
|
border: 2px solid transparent;
|
||
|
|
cursor: pointer;
|
||
|
|
transition:
|
||
|
|
border-color 0.15s,
|
||
|
|
opacity 0.15s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile img {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
object-fit: cover;
|
||
|
|
/* The whole tile is a drag handle; without this the browser's native image
|
||
|
|
drag wins and dnd-kit never sees the gesture. */
|
||
|
|
-webkit-user-drag: none;
|
||
|
|
user-select: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile-pinned {
|
||
|
|
border-color: var(--admin-accent);
|
||
|
|
cursor: grab;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile-pinned:active {
|
||
|
|
cursor: grabbing;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile-unpinned {
|
||
|
|
opacity: 0.55;
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile-unpinned:hover {
|
||
|
|
opacity: 1;
|
||
|
|
border-color: var(--admin-border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile-index {
|
||
|
|
position: absolute;
|
||
|
|
bottom: 4px;
|
||
|
|
left: 4px;
|
||
|
|
min-width: 18px;
|
||
|
|
padding: 0 4px;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-size: 0.68rem;
|
||
|
|
font-weight: 700;
|
||
|
|
text-align: center;
|
||
|
|
color: #000;
|
||
|
|
background: var(--admin-accent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-tile-action {
|
||
|
|
position: absolute;
|
||
|
|
top: 4px;
|
||
|
|
right: 4px;
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
border: none;
|
||
|
|
border-radius: 50%;
|
||
|
|
font-size: 0.85rem;
|
||
|
|
line-height: 1;
|
||
|
|
cursor: pointer;
|
||
|
|
color: var(--admin-text);
|
||
|
|
background: var(--admin-overlay, rgba(0, 0, 0, 0.6));
|
||
|
|
}
|
||
|
|
|
||
|
|
.order-editor-footer {
|
||
|
|
display: flex;
|
||
|
|
justify-content: flex-end;
|
||
|
|
gap: 0.5rem;
|
||
|
|
padding: 0.75rem;
|
||
|
|
border-top: 1px solid var(--admin-border);
|
||
|
|
}
|