Files
Oxicloud/static/css/views/device-verify.css
T
DioCrafts 81a93a489b feat: photo/video capture-date pipeline + premium UI/UX overhaul
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>
2026-06-15 00:24:27 +02:00

146 lines
3.1 KiB
CSS

/* device-verify.css — stand-alone styles for the device authorization page */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Shared brand backdrop (centralised in --brand-ambient). */
background: var(--brand-ambient);
color: var(--color-text-heading);
display: flex;
justify-content: center;
align-items: center;
min-height: 100dvh;
padding: 1rem;
}
.dag-card {
background: var(--color-bg-surface);
border-radius: var(--radius-3xl);
box-shadow: var(--shadow-xl);
padding: 2.5rem;
max-width: 440px;
width: 100%;
}
.dag-logo {
text-align: center;
margin-bottom: 1.5rem;
}
.dag-logo h1 {
font-size: var(--text-2xl);
font-weight: var(--weight-bold);
}
.dag-logo span {
color: var(--color-primary);
}
h2 {
font-size: 1.15rem;
margin-bottom: 0.5rem;
}
p.subtitle {
color: var(--color-text-gray);
font-size: 0.9rem;
margin-bottom: 1.5rem;
}
label {
display: block;
font-weight: var(--weight-semibold);
font-size: 0.85rem;
margin-bottom: 0.4rem;
}
input[type="text"] {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1.4rem;
letter-spacing: 0.15em;
text-align: center;
text-transform: uppercase;
border: 2px solid var(--color-border);
border-radius: var(--radius-lg);
outline: none;
transition: border-color 0.2s;
}
input[type="text"]:focus {
border-color: var(--color-primary);
}
.device-info {
background: var(--color-border-light);
border-radius: var(--radius-lg);
padding: 1rem;
margin: 1rem 0;
}
.device-info .row {
display: flex;
justify-content: space-between;
margin-bottom: 0.3rem;
}
.device-info .label {
color: var(--color-text-gray);
font-size: 0.85rem;
}
.device-info .value {
font-weight: var(--weight-semibold);
font-size: 0.85rem;
}
.actions {
display: flex;
gap: 0.75rem;
margin-top: 1.25rem;
}
button {
flex: 1;
padding: 0.75rem;
border: none;
border-radius: var(--radius-lg);
font-size: 0.95rem;
font-weight: var(--weight-semibold);
cursor: pointer;
transition: background 0.2s;
}
.btn-approve {
background: var(--color-primary);
color: var(--color-on-accent);
}
.btn-approve:hover {
background: var(--color-primary-hover);
}
.btn-deny {
background: var(--color-danger-bg);
color: var(--color-on-accent);
}
.btn-deny:hover {
background: var(--color-danger-bg-hover);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.status {
text-align: center;
padding: 1rem;
border-radius: var(--radius-lg);
margin-top: 1rem;
font-weight: var(--weight-semibold);
}
.status.success {
background: var(--color-success-bg);
color: var(--color-success-text);
}
.status.denied {
background: var(--color-danger-light-bg);
color: var(--color-error-text);
}
.status.error {
background: var(--color-danger-light-bg);
color: var(--color-error-text);
}
.error-text {
color: var(--color-error-text);
font-size: 0.85rem;
margin-top: 0.5rem;
}
.hidden {
display: none !important;
}