81a93a489b
Backend — Photos timeline now groups by real capture date instead of upload time. New MediaMetadataService (FileLifecycleHook) extracts EXIF DateTimeOriginal from images and container creation_time from videos (mov/mp4/mkv) via nom-exif, timezone-correct (OffsetTimeOriginal), persisting captured_at so the existing media_sort_date trigger takes over. Adds POST /admin/photos/metadata/reextract to backfill existing media. Falls back to upload date when no embedded date exists. Frontend — premium grid cards: combined metadata line (relative date · size, owner avatar when shared), custom selection checkbox with a clear checked state, uniform full-width 4:3 thumbnail tiles independent of filename length, centered file-type icons, and a hit-test fix so checkbox/star/kebab clicks reach the controls (the decorative thumbnail no longer captures pointer events). Notification messages internationalised across all 16 locales. Broader polish: design tokens, a11y/focus-visible states, brand + PWA assets. Chore — bump semver-compatible dependencies (cargo upgrade); add nom-exif 3.6.1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
258 lines
5.7 KiB
CSS
258 lines
5.7 KiB
CSS
/* Main content */
|
|
.main-content {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Top bar */
|
|
.top-bar {
|
|
height: 70px;
|
|
min-height: 70px;
|
|
max-height: 70px;
|
|
background-color: var(--color-bg-surface);
|
|
border-bottom: 1px solid var(--color-border);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 var(--gutter);
|
|
justify-content: space-between;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Sidebar toggle button (hidden on desktop) */
|
|
.sidebar-toggle {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
padding: var(--space-2-5);
|
|
cursor: pointer;
|
|
color: var(--color-text-secondary);
|
|
border-radius: var(--radius-lg);
|
|
transition:
|
|
background-color 0.2s,
|
|
color 0.2s;
|
|
margin-right: var(--space-3);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
background-color: var(--color-border);
|
|
border-color: var(--color-border-medium);
|
|
}
|
|
|
|
.sidebar-toggle i {
|
|
font-size: var(--text-xl);
|
|
}
|
|
|
|
/* Mobile search toggle button — hidden on desktop */
|
|
.search-toggle-btn {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
padding: var(--space-2-5);
|
|
cursor: pointer;
|
|
color: var(--color-text-secondary);
|
|
border-radius: var(--radius-lg);
|
|
font-size: var(--text-lg);
|
|
transition:
|
|
background-color 0.2s,
|
|
color 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.search-toggle-btn:hover {
|
|
background-color: var(--color-border);
|
|
}
|
|
|
|
/* Back button inside expanded mobile search — hidden everywhere by default */
|
|
.search-back-btn {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
padding: var(--space-2-5);
|
|
cursor: pointer;
|
|
color: var(--color-text-secondary);
|
|
border-radius: var(--radius-lg);
|
|
font-size: var(--text-lg);
|
|
transition:
|
|
background-color 0.2s,
|
|
color 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.search-back-btn:hover {
|
|
background-color: var(--color-border);
|
|
color: var(--color-text-heading);
|
|
}
|
|
|
|
/* Slot wrapping .search-container + #path-tooltip — it owns the flex slot
|
|
so the tooltip can absolutely overlay the search bar via inset:0 instead
|
|
of viewport-fixed positioning. */
|
|
.search-slot {
|
|
flex-grow: 1;
|
|
max-width: 600px;
|
|
margin-right: var(--space-5);
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
[dir="rtl"] & {
|
|
margin-left: var(--space-5);
|
|
margin-right: unset;
|
|
}
|
|
}
|
|
|
|
.search-container {
|
|
flex-grow: 1;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-container input {
|
|
width: 100%;
|
|
padding: var(--space-3) 50px var(--space-3) var(--space-11);
|
|
border-radius: var(--radius-2xl);
|
|
border: 2px solid var(--color-border);
|
|
background-color: var(--color-bg-input);
|
|
font-size: var(--text-base);
|
|
height: 46px;
|
|
color: var(--color-text-heading);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-container input:hover {
|
|
border-color: var(--color-border-medium);
|
|
background-color: var(--color-bg-surface);
|
|
}
|
|
|
|
.search-container input:focus {
|
|
outline: none;
|
|
border-color: var(--color-accent);
|
|
background-color: var(--color-bg-surface);
|
|
box-shadow: 0 0 0 4px var(--color-accent-ring);
|
|
}
|
|
|
|
.search-container input::placeholder {
|
|
color: var(--color-text-placeholder);
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--color-text-placeholder);
|
|
font-size: var(--text-md);
|
|
pointer-events: none;
|
|
transition: color 0.2s ease;
|
|
|
|
[dir="rtl"] & {
|
|
right: 16px;
|
|
left: unset;
|
|
}
|
|
}
|
|
|
|
.search-container input:focus + .search-icon,
|
|
.search-container:focus-within .search-icon {
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
.search-button {
|
|
position: absolute;
|
|
right: 6px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: var(--color-accent-gradient);
|
|
color: var(--color-danger-text);
|
|
border: none;
|
|
border-radius: var(--radius-xl);
|
|
width: 36px;
|
|
height: 36px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 8px var(--color-accent-shadow);
|
|
|
|
[dir="rtl"] & {
|
|
left: 6px;
|
|
right: unset;
|
|
}
|
|
}
|
|
|
|
.search-button:hover {
|
|
transform: translateY(-50%) scale(1.05);
|
|
box-shadow: 0 4px 12px var(--color-accent-shadow-lg);
|
|
}
|
|
|
|
.search-button:active {
|
|
transform: translateY(-50%) scale(0.98);
|
|
}
|
|
|
|
.search-button i {
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.user-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
/* Mobile responsive styles for top bar */
|
|
@media (max-width: 768px) {
|
|
.top-bar {
|
|
padding: 0 var(--space-4);
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Hide full search slot on mobile by default */
|
|
.search-slot {
|
|
display: none;
|
|
}
|
|
|
|
/* Show icon-only search button; push it to the right before user-controls */
|
|
.search-toggle-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Expanded mobile search: full-width overlay of the top bar */
|
|
.top-bar--search-active .search-back-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.top-bar--search-active .search-slot {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
max-width: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.top-bar--search-active .search-icon {
|
|
display: none;
|
|
}
|
|
|
|
.top-bar--search-active .search-container input {
|
|
padding-left: var(--space-4);
|
|
}
|
|
|
|
.top-bar--search-active .sidebar-toggle,
|
|
.top-bar--search-active .search-toggle-btn,
|
|
.top-bar--search-active .user-controls {
|
|
display: none;
|
|
}
|
|
}
|