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>
This commit is contained in:
DioCrafts
2026-06-15 00:17:17 +02:00
parent dac299fea6
commit 81a93a489b
129 changed files with 8194 additions and 2473 deletions
+16 -16
View File
@@ -6,7 +6,7 @@
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
gap: var(--space-4);
min-width: 0;
}
@@ -15,10 +15,10 @@
align-items: center;
background: var(--color-multiselect-bg);
color: var(--color-multiselect-text);
padding: 10px 20px;
border-radius: 12px;
padding: var(--space-2-5) var(--space-5);
border-radius: var(--radius-2xl);
overflow: hidden;
margin-right: 12px;
margin-right: var(--space-3);
height: 60px;
transform: translateY(-8px);
transition:
@@ -35,9 +35,9 @@
border: none;
color: var(--color-multiselect-text-faint);
cursor: pointer;
font-size: 14px;
padding: 4px 6px;
border-radius: 6px;
font-size: var(--text-base);
padding: var(--space-1) var(--space-1-5);
border-radius: var(--radius-md);
transition:
background 0.15s,
color 0.15s;
@@ -49,28 +49,28 @@
}
.batch-bar-count {
font-size: 14px;
font-weight: 600;
font-size: var(--text-base);
font-weight: var(--weight-semibold);
white-space: nowrap;
}
.batch-bar-actions {
display: flex;
align-items: center;
gap: 6px;
gap: var(--space-1-5);
}
.batch-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
gap: var(--space-1-5);
padding: 7px var(--space-3-5);
border: none;
border-radius: 8px;
border-radius: var(--radius-lg);
background: var(--color-multiselect-hover-bg);
color: var(--color-multiselect-action-text);
font-size: 13px;
font-weight: 500;
font-size: var(--text-sm);
font-weight: var(--weight-medium);
cursor: pointer;
transition: background 0.15s;
white-space: nowrap;
@@ -96,6 +96,6 @@
}
.batch-btn {
padding: 7px 10px;
padding: 7px var(--space-2-5);
}
}
+24
View File
@@ -0,0 +1,24 @@
/* ============================================================
* Canonical brand mark — the OxiCloud cloud glyph on the accent
* gradient tile. Reusable lockup for external surfaces (share,
* device-verify) so they present the real mark, not text/emoji.
* Uses the single --color-logo-gradient token.
* ============================================================ */
.brand-mark {
width: 56px;
height: 56px;
border-radius: var(--radius-3xl);
background: var(--color-logo-gradient);
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: var(--space-3);
box-shadow: 0 4px 14px var(--color-accent-shadow);
}
.brand-mark svg {
width: 32px;
height: 32px;
fill: var(--color-on-accent);
}
+9 -9
View File
@@ -4,14 +4,14 @@
align-items: center;
flex-wrap: wrap;
margin-bottom: 15px;
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-medium);
gap: 2px;
gap: var(--space-0-5);
}
.breadcrumb-item {
padding: 2px 4px;
border-radius: 4px;
padding: var(--space-0-5) var(--space-1);
border-radius: var(--radius-sm);
border: 2px solid transparent;
transition:
background 0.15s,
@@ -35,15 +35,15 @@
}
.breadcrumb-current {
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text-black);
cursor: default;
}
.breadcrumb-separator {
margin: 0 4px;
margin: 0 var(--space-1);
color: var(--color-text-faint);
font-size: 12px;
font-size: var(--text-xs);
user-select: none;
}
@@ -53,11 +53,11 @@
justify-content: center;
width: 24px;
height: 24px;
border-radius: 4px;
border-radius: var(--radius-sm);
}
.breadcrumb-home i {
font-size: 12px;
font-size: var(--text-xs);
}
.breadcrumb-home.breadcrumb-link:hover {
+71 -19
View File
@@ -1,14 +1,14 @@
.btn {
padding: 12px 24px;
border-radius: 12px;
padding: var(--space-3) var(--space-6);
border-radius: var(--radius-2xl);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 500;
gap: 8px;
font-size: var(--text-base);
font-weight: var(--weight-medium);
gap: var(--space-2);
transition: all 0.2s ease;
}
@@ -66,13 +66,65 @@
box-shadow: 0 2px 10px var(--color-danger-ring);
}
/* ── State matrix: focus / disabled / loading ───────────────── */
/* Keyboard focus ring (explicit so the gradient variants get a crisp ring;
mirrors the global a11y baseline). */
.btn:focus-visible {
outline: 2px solid var(--color-focus-ring);
outline-offset: 2px;
}
/* Disabled — dimmed, no hover lift, non-interactive. */
.btn:disabled,
.btn[disabled],
.btn.is-disabled {
opacity: 0.5;
cursor: not-allowed;
box-shadow: none;
transform: none;
filter: none;
pointer-events: none;
}
/* Loading — hide the label, show an inline spinner, block interaction.
Toggle with the `.is-loading` class or `aria-busy="true"`. */
.btn.is-loading,
.btn[aria-busy="true"] {
position: relative;
color: transparent;
pointer-events: none;
}
.btn.is-loading::after,
.btn[aria-busy="true"]::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 16px;
height: 16px;
margin: -8px 0 0 -8px;
border: 2px solid var(--color-on-accent);
border-top-color: transparent;
border-radius: var(--radius-full);
animation: spin var(--spin-duration) linear infinite;
}
/* The secondary button's text isn't white — tint its spinner to the text. */
.btn-secondary.is-loading::after,
.btn-secondary[aria-busy="true"]::after {
border-color: var(--color-text-secondary);
border-top-color: transparent;
}
/* View Toggle Buttons */
.view-toggle {
display: flex;
gap: 2px;
gap: var(--space-0-5);
padding: 3px;
background-color: var(--color-bg-muted);
border-radius: 10px;
border-radius: var(--radius-xl);
border: 1px solid var(--color-border);
}
@@ -84,10 +136,10 @@
height: 32px;
background-color: transparent;
border: none;
border-radius: 8px;
border-radius: var(--radius-lg);
cursor: pointer;
color: var(--color-text-faint);
font-size: 14px;
font-size: var(--text-base);
transition: all 0.2s ease;
}
@@ -113,7 +165,7 @@
height: 20px;
background: var(--color-border-medium);
align-self: center;
margin: 0 2px;
margin: 0 var(--space-0-5);
}
.view-toggle-separator.hidden {
@@ -147,14 +199,14 @@
.group-by-label {
display: none;
font-size: 0.78rem;
font-weight: 600;
font-weight: var(--weight-semibold);
white-space: nowrap;
}
/* When a group-by is selected the label has text — expand the button to fit */
.group-by-btn:has(.group-by-label:not(:empty)) {
width: auto;
padding: 0 8px;
padding: 0 var(--space-2);
gap: 5px;
}
@@ -170,12 +222,12 @@
min-width: 140px;
background: var(--color-bg-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
border-radius: var(--radius-lg);
box-shadow: 0 4px 16px var(--color-shadow);
padding: 4px;
padding: var(--space-1);
display: flex;
flex-direction: column;
gap: 2px;
gap: var(--space-0-5);
}
.group-by-menu.hidden {
@@ -185,11 +237,11 @@
.group-by-option {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
gap: var(--space-2);
padding: var(--space-1-5) var(--space-2-5);
border: none;
background: transparent;
border-radius: 6px;
border-radius: var(--radius-md);
cursor: pointer;
font-size: 0.85rem;
color: var(--color-text);
@@ -203,5 +255,5 @@
.group-by-option.active {
color: var(--color-accent);
font-weight: 600;
font-weight: var(--weight-semibold);
}
+106
View File
@@ -0,0 +1,106 @@
/* ============================================================
* Command palette (Cmd / Ctrl + K). Injected into <body> by
* js/app/commandPalette.js. Motion respects reduced-motion via
* the global guard; focus rings via the global :focus-visible.
* ============================================================ */
.cmdk-overlay {
position: fixed;
inset: 0;
z-index: var(--z-modal);
display: flex;
align-items: flex-start;
justify-content: center;
padding: 12vh var(--space-4) var(--space-4);
background: var(--color-overlay);
backdrop-filter: blur(2px);
opacity: 0;
transition: opacity var(--motion-base) var(--ease-standard);
}
.cmdk-overlay.active {
opacity: 1;
}
.cmdk-overlay.hidden {
display: none;
}
.cmdk-panel {
width: min(560px, 92vw);
background: var(--color-bg-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-3xl);
box-shadow: var(--shadow-2xl);
overflow: hidden;
transform: translateY(-8px) scale(0.98);
transition: transform var(--motion-base) var(--ease-standard);
}
.cmdk-overlay.active .cmdk-panel {
transform: none;
}
.cmdk-search {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-4) var(--space-5);
border-bottom: 1px solid var(--color-border);
}
.cmdk-search i {
color: var(--color-text-muted);
}
.cmdk-input {
flex: 1;
min-width: 0;
border: none;
background: none;
font-size: var(--text-md);
color: var(--color-text);
outline: none;
}
.cmdk-input::placeholder {
color: var(--color-text-faint);
}
.cmdk-list {
list-style: none;
margin: 0;
padding: var(--space-1-5);
max-height: 56vh;
overflow-y: auto;
}
.cmdk-item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-2-5) var(--space-3);
border-radius: var(--radius-lg);
cursor: pointer;
color: var(--color-text);
}
.cmdk-item i {
width: 20px;
text-align: center;
color: var(--color-text-muted);
}
.cmdk-item.is-active {
background: var(--color-accent-bg-sm);
}
.cmdk-item.is-active i {
color: var(--color-accent);
}
.cmdk-empty {
padding: var(--space-5);
text-align: center;
color: var(--color-text-muted);
}
+7 -7
View File
@@ -7,7 +7,7 @@
box-shadow:
0 10px 36px var(--color-shadow-lg),
0 0 0 1px var(--color-shadow-xs);
padding: 6px;
padding: var(--space-1-5);
min-width: 200px;
z-index: 2000;
display: block;
@@ -26,14 +26,14 @@
}
.context-menu-item {
padding: 10px 14px;
padding: var(--space-2-5) var(--space-3-5);
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
color: var(--color-text-dark);
font-size: 14px;
border-radius: 8px;
font-size: var(--text-base);
border-radius: var(--radius-lg);
transition: background 0.12s ease;
}
@@ -48,7 +48,7 @@
.context-menu-item i {
width: 18px;
text-align: center;
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-subtle);
[dir="rtl"] & {
@@ -72,5 +72,5 @@
.context-menu-separator {
height: 1px;
background: var(--color-border-light);
margin: 4px 8px;
margin: var(--space-1) var(--space-2);
}
+36 -35
View File
@@ -2,9 +2,10 @@
/* ── Empty state icons (large, muted) ── */
.empty-state-icon {
font-size: 48px;
color: var(--color-border-ddd);
margin-bottom: 16px;
font-size: var(--text-6xl);
color: var(--color-accent);
margin-bottom: var(--space-4);
opacity: 0.9;
}
.empty-state-icon.error {
color: var(--color-danger-text-alt);
@@ -23,8 +24,8 @@
margin-right: 5px;
}
.icon-ml {
margin-left: 4px;
font-size: 12px;
margin-left: var(--space-1);
font-size: var(--text-xs);
}
/* ── Success check icon ── */
@@ -34,9 +35,9 @@
/* ── Move dialog ── */
.move-dialog-hint {
margin: 0 0 12px;
margin: 0 0 var(--space-3);
color: var(--color-text-muted);
font-size: 14px;
font-size: var(--text-base);
}
.folder-select-container {
max-height: 220px;
@@ -50,7 +51,7 @@
/* ── Search spinner ── */
.search-spinner {
margin-right: 8px;
margin-right: var(--space-2);
}
/* ── Search empty state text ── */
@@ -60,7 +61,7 @@
/* ── Notification upload current file ── */
.notif-upload-current {
font-size: 11px;
font-size: var(--text-2xs);
color: var(--color-text-subtle);
margin: 3px 0;
white-space: nowrap;
@@ -71,7 +72,7 @@
/* ── Login auth hint ── */
.auth-hint {
color: var(--text-secondary, var(--color-text-medium));
margin-top: 4px;
margin-top: var(--space-1);
display: block;
}
@@ -81,7 +82,7 @@
}
.about-modal-header {
text-align: center;
padding: 20px 20px 0;
padding: var(--space-5) var(--space-5) 0;
}
.about-modal-avatar {
width: 64px;
@@ -92,27 +93,27 @@
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: 700;
margin-bottom: 12px;
font-size: var(--text-2xl);
font-weight: var(--weight-bold);
margin-bottom: var(--space-3);
}
.about-modal-username {
margin: 0;
font-size: 18px;
font-size: var(--text-lg);
color: var(--color-text-navy);
}
.about-modal-email {
margin: 4px 0 0;
font-size: 13px;
margin: var(--space-1) 0 0;
font-size: var(--text-sm);
color: var(--color-text-subtle);
}
.about-modal-role {
display: inline-block;
margin-top: 8px;
padding: 2px 10px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
margin-top: var(--space-2);
padding: var(--space-0-5) var(--space-2-5);
border-radius: var(--radius-xl);
font-size: var(--text-2xs);
font-weight: var(--weight-semibold);
}
.about-modal-role-admin {
background: var(--color-role-admin-bg);
@@ -123,48 +124,48 @@
color: var(--color-text-subtle);
}
.about-modal-storage {
padding: 16px 20px;
padding: var(--space-4) var(--space-5);
}
.about-modal-storage-label {
font-size: 12px;
font-size: var(--text-xs);
color: var(--color-text-subtle);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 6px;
margin-bottom: var(--space-1-5);
}
.about-modal-storage-label i {
margin-right: 4px;
margin-right: var(--space-1);
}
.about-modal-bar-bg {
background: var(--color-border-light);
border-radius: 6px;
border-radius: var(--radius-md);
height: 8px;
overflow: hidden;
margin-bottom: 4px;
margin-bottom: var(--space-1);
}
.about-modal-bar-fill {
height: 100%;
border-radius: 6px;
border-radius: var(--radius-md);
transition: width 0.3s;
}
.about-modal-bar-text {
font-size: 12px;
font-size: var(--text-xs);
color: var(--color-text-subtle);
text-align: right;
}
.about-modal-footer {
padding: 0 20px 16px;
padding: 0 var(--space-5) var(--space-4);
display: flex;
justify-content: center;
}
.about-modal-close-btn {
padding: 8px 24px;
padding: var(--space-2) var(--space-6);
border: 1px solid var(--color-border);
border-radius: 8px;
border-radius: var(--radius-lg);
background: var(--color-bg-surface);
color: var(--color-text-dark);
font-size: 13px;
font-weight: 600;
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
cursor: pointer;
transition: background 0.15s;
}
+103 -103
View File
@@ -37,7 +37,7 @@
.rename-dialog-content {
background-color: var(--color-bg-surface);
border-radius: 16px;
border-radius: var(--radius-3xl);
width: 420px;
max-width: 90%;
box-shadow: 0 20px 60px var(--color-shadow-2xl);
@@ -47,24 +47,24 @@
.rename-dialog-header {
font-size: 17px;
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
padding: 20px 24px;
padding: var(--space-5) var(--space-6);
border-bottom: 1px solid var(--color-border);
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
}
.rename-dialog-body {
padding: 24px;
padding: var(--space-6);
}
.rename-dialog input {
width: 100%;
padding: 12px 16px;
padding: var(--space-3) var(--space-4);
border: 2px solid var(--color-border);
border-radius: 10px;
border-radius: var(--radius-xl);
font-size: 15px;
background: var(--color-bg-hover);
color: var(--color-text-heading);
@@ -85,8 +85,8 @@
.rename-dialog-buttons {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
gap: var(--space-3);
padding: var(--space-4) var(--space-6);
background: var(--color-bg-hover);
border-top: 1px solid var(--color-border);
}
@@ -120,7 +120,7 @@
.share-dialog-content {
background-color: var(--color-bg-surface);
border-radius: 16px;
border-radius: var(--radius-3xl);
width: 480px;
max-width: 90%;
box-shadow: 0 20px 60px var(--color-shadow-2xl);
@@ -132,22 +132,22 @@
.share-dialog-header {
font-size: 17px;
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
padding: 20px 24px;
padding: var(--space-5) var(--space-6);
border-bottom: 1px solid var(--color-border);
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
}
.share-dialog input,
.share-dialog textarea {
width: 100%;
padding: 10px 14px;
padding: var(--space-2-5) var(--space-3-5);
border: 2px solid var(--color-border);
border-radius: 10px;
font-size: 14px;
border-radius: var(--radius-xl);
font-size: var(--text-base);
background: var(--color-bg-input);
color: var(--color-text-heading);
transition: all 0.15s ease;
@@ -164,35 +164,35 @@
.share-dialog-buttons {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
gap: var(--space-3);
padding: var(--space-4) var(--space-6);
background: var(--color-bg-hover);
border-top: 1px solid var(--color-border);
}
.shared-item-info {
padding: 12px 24px;
padding: var(--space-3) var(--space-6);
background: var(--color-bg-hover);
border-bottom: 1px solid var(--color-border);
font-size: 14px;
font-size: var(--text-base);
}
.share-options {
padding: 20px 24px 20px;
padding: var(--space-5) var(--space-6) var(--space-5);
}
.share-options > #share-confirm-btn {
display: block;
margin-left: auto;
margin-top: 16px;
margin-top: var(--space-4);
}
.share-options h3,
#existing-shares-section h3,
#new-share-section h3 {
font-size: 13px;
font-weight: 600;
margin-bottom: 10px;
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
margin-bottom: var(--space-2-5);
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
@@ -200,7 +200,7 @@
#existing-shares-section,
#new-share-section {
padding: 0 24px;
padding: 0 var(--space-6);
}
.share-dialog .form-group {
@@ -225,7 +225,7 @@
.shared-dialog-content {
background-color: var(--color-bg-surface);
border-radius: 16px;
border-radius: var(--radius-3xl);
width: 480px;
max-width: 90%;
box-shadow: 0 20px 60px var(--color-shadow-2xl);
@@ -238,13 +238,13 @@
.shared-dialog-header {
font-size: 17px;
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
padding: 20px 24px;
padding: var(--space-5) var(--space-6);
border-bottom: 1px solid var(--color-border);
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
}
.shared-dialog-header .close-dialog-btn {
@@ -254,8 +254,8 @@
font-size: 22px;
cursor: pointer;
color: var(--color-text-muted);
padding: 4px 8px;
border-radius: 6px;
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-md);
transition: all 0.15s;
}
@@ -269,30 +269,30 @@
.shared-dialog .share-password-section,
.shared-dialog .share-expiration-section,
.shared-dialog .notification-form {
padding: 16px 24px;
padding: var(--space-4) var(--space-6);
}
.shared-dialog .share-link-section label,
.shared-dialog .share-permissions-section h4,
.shared-dialog .notification-form label {
display: block;
font-weight: 600;
margin-bottom: 8px;
font-weight: var(--weight-semibold);
margin-bottom: var(--space-2);
color: var(--color-text);
font-size: 14px;
font-size: var(--text-base);
}
.shared-dialog .share-link-input {
display: flex;
gap: 8px;
gap: var(--space-2);
}
.shared-dialog .share-link-input input {
flex: 1;
padding: 8px 12px;
padding: var(--space-2) var(--space-3);
border: 2px solid var(--color-border);
border-radius: 8px;
font-size: 13px;
border-radius: var(--radius-lg);
font-size: var(--text-sm);
background: var(--color-bg-hover);
color: var(--color-text-heading);
}
@@ -302,42 +302,42 @@
.shared-dialog .share-expiration-section label {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
font-size: 14px;
gap: var(--space-2);
margin-bottom: var(--space-2);
font-size: var(--text-base);
color: var(--color-text-secondary);
}
.shared-dialog .password-input-group {
display: flex;
gap: 8px;
margin-top: 8px;
gap: var(--space-2);
margin-top: var(--space-2);
}
.shared-dialog .password-input-group input {
flex: 1;
padding: 8px 12px;
padding: var(--space-2) var(--space-3);
border: 2px solid var(--color-border);
border-radius: 8px;
font-size: 13px;
border-radius: var(--radius-lg);
font-size: var(--text-sm);
background: var(--color-bg-hover);
}
.shared-dialog .share-expiration-section input[type="date"] {
padding: 8px 12px;
padding: var(--space-2) var(--space-3);
border: 2px solid var(--color-border);
border-radius: 8px;
font-size: 13px;
border-radius: var(--radius-lg);
font-size: var(--text-sm);
background: var(--color-bg-hover);
margin-top: 8px;
margin-top: var(--space-2);
}
.shared-dialog .share-actions,
.shared-dialog .notification-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
gap: var(--space-3);
padding: var(--space-4) var(--space-6);
background: var(--color-bg-hover);
border-top: 1px solid var(--color-border);
}
@@ -345,10 +345,10 @@
.shared-dialog .notification-form input,
.shared-dialog .notification-form textarea {
width: 100%;
padding: 10px 14px;
padding: var(--space-2-5) var(--space-3-5);
border: 2px solid var(--color-border);
border-radius: 10px;
font-size: 14px;
border-radius: var(--radius-xl);
font-size: var(--text-base);
background: var(--color-bg-hover);
color: var(--color-text-heading);
outline: none;
@@ -373,20 +373,20 @@
display: none; /* Hidden by default, shown via JS when navigating into subfolders */
align-items: center;
flex-wrap: wrap;
gap: 4px;
padding: 8px 12px;
gap: var(--space-1);
padding: var(--space-2) var(--space-3);
background: var(--color-bg-hover);
border-radius: 8px;
margin-bottom: 12px;
font-size: 13px;
border-radius: var(--radius-lg);
margin-bottom: var(--space-3);
font-size: var(--text-sm);
overflow-x: auto;
}
.move-breadcrumb-item {
color: var(--color-text-secondary);
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
padding: var(--space-0-5) var(--space-1-5);
border-radius: var(--radius-sm);
transition: all 0.15s ease;
white-space: nowrap;
}
@@ -398,26 +398,26 @@
.move-breadcrumb-item.current {
color: var(--color-accent);
font-weight: 600;
font-weight: var(--weight-semibold);
cursor: default;
}
.move-breadcrumb-separator {
color: var(--color-text-placeholder);
margin: 0 2px;
margin: 0 var(--space-0-5);
}
/* Folder select items in move dialog */
.folder-select-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-radius: 8px;
gap: var(--space-2-5);
padding: var(--space-2-5) var(--space-3-5);
border-radius: var(--radius-lg);
cursor: pointer;
transition: all 0.15s ease;
color: var(--color-text-secondary);
font-size: 14px;
font-size: var(--text-base);
}
.folder-select-item:hover {
@@ -427,12 +427,12 @@
.folder-select-item.selected {
background-color: var(--color-accent-ring);
color: var(--color-accent);
font-weight: 600;
font-weight: var(--weight-semibold);
}
.folder-select-item i {
color: var(--color-cal-1);
font-size: 16px;
font-size: var(--text-md);
}
.folder-select-item.selected i {
@@ -443,7 +443,7 @@
.folder-select-item.folder-select-current {
background-color: var(--color-success-ring);
color: var(--color-success-text-strong);
font-weight: 500;
font-weight: var(--weight-medium);
}
.folder-select-item.folder-select-current:hover {
@@ -479,7 +479,7 @@
.folder-select-item.folder-navigate .folder-navigate-icon {
color: var(--color-text-placeholder);
font-size: 12px;
font-size: var(--text-xs);
opacity: 0;
transition: opacity 0.15s ease;
}
@@ -493,20 +493,20 @@
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 24px;
gap: var(--space-2);
padding: var(--space-6);
color: var(--color-text-placeholder);
font-size: 14px;
font-size: var(--text-base);
}
.folder-select-empty i {
font-size: 20px;
font-size: var(--text-xl);
}
/* Playlist track count in selector */
.playlist-track-count {
margin-left: auto;
font-size: 12px;
font-size: var(--text-xs);
color: var(--color-text-muted);
}
@@ -533,7 +533,7 @@
.confirm-dialog-content {
background: var(--color-bg-surface);
border-radius: 16px;
border-radius: var(--radius-3xl);
width: 400px;
max-width: 90%;
box-shadow: 0 20px 60px var(--color-shadow-2xl);
@@ -543,32 +543,32 @@
}
.confirm-dialog-icon {
padding: 28px 24px 12px;
padding: var(--space-7) var(--space-6) var(--space-3);
}
.confirm-dialog-icon i {
font-size: 40px;
font-size: var(--text-5xl);
color: var(--color-danger-bg);
}
.confirm-dialog-title {
font-size: 17px;
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
padding: 0 24px 8px;
padding: 0 var(--space-6) var(--space-2);
}
.confirm-dialog-message {
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-muted);
padding: 0 24px 20px;
line-height: 1.5;
padding: 0 var(--space-6) var(--space-5);
line-height: var(--leading-normal);
}
.confirm-dialog-buttons {
display: flex;
gap: 12px;
padding: 16px 24px;
gap: var(--space-3);
padding: var(--space-4) var(--space-6);
background: var(--color-bg-hover);
border-top: 1px solid var(--color-border);
justify-content: flex-end;
@@ -578,9 +578,9 @@
background: linear-gradient(135deg, var(--color-danger-bg) 0%, var(--color-danger-bg-hover) 100%);
color: var(--color-danger-text);
border: none;
padding: 10px 20px;
border-radius: 10px;
font-weight: 500;
padding: var(--space-2-5) var(--space-5);
border-radius: var(--radius-xl);
font-weight: var(--weight-medium);
cursor: pointer;
transition: all 0.15s ease;
box-shadow: 0 2px 8px var(--color-danger-ring);
@@ -607,7 +607,7 @@
.dialog-content {
background-color: var(--color-bg-surface);
border-radius: 10px;
border-radius: var(--radius-xl);
box-shadow: 0 10px 25px var(--color-shadow);
width: 500px;
max-width: 90%;
@@ -616,7 +616,7 @@
}
.dialog-header {
padding: 15px 20px;
padding: 15px var(--space-5);
border-bottom: 1px solid var(--color-border);
display: flex;
align-items: center;
@@ -624,7 +624,7 @@
}
.dialog-header h3 {
font-size: 18px;
font-size: var(--text-lg);
color: var(--color-text);
margin: 0;
}
@@ -632,31 +632,31 @@
.close-dialog-btn {
background: none;
border: none;
font-size: 24px;
font-size: var(--text-2xl);
cursor: pointer;
color: var(--color-text-placeholder);
}
.dialog-body {
padding: 20px;
padding: var(--space-5);
}
.share-item-info {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
gap: var(--space-2-5);
margin-bottom: var(--space-5);
}
.share-link-container {
display: flex;
gap: 10px;
gap: var(--space-2-5);
}
.share-link-container input {
flex-grow: 1;
padding: 10px;
padding: var(--space-2-5);
border: 1px solid var(--color-border);
border-radius: 6px;
font-size: 14px;
border-radius: var(--radius-md);
font-size: var(--text-base);
}
+4 -4
View File
@@ -20,10 +20,10 @@
display: inline-flex;
align-items: center;
flex-shrink: 0;
gap: 4px;
padding: 2px 7px;
border-radius: 10px;
font-size: 11px;
gap: var(--space-1);
padding: var(--space-0-5) 7px;
border-radius: var(--radius-xl);
font-size: var(--text-2xs);
white-space: nowrap;
}
+2 -2
View File
@@ -12,7 +12,7 @@
right: 0;
height: 22%;
background-color: var(--color-ft-folder-tab);
border-radius: 8px 8px 0 0;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* don't use FontAwesome / svg for folders and prefer CSS trick */
@@ -57,7 +57,7 @@
color: var(--color-video-play);
text-shadow: 0 0 3px var(--color-video-play-shadow);
z-index: 2; /* above the img */
font-weight: bold;
font-weight: var(--weight-bold);
}
.code-icon {
+54 -54
View File
@@ -13,8 +13,8 @@
.groups-modal {
display: flex;
flex-direction: column;
gap: 12px;
padding: 16px 20px;
gap: var(--space-3);
padding: var(--space-4) var(--space-5);
}
/* ── Common ─────────────────────────────────────────────────────────────── */
@@ -22,36 +22,36 @@
.groups-modal__status,
.groups-modal__empty-line {
color: var(--color-text-subtle);
font-size: 13px;
padding: 8px 0;
font-size: var(--text-sm);
padding: var(--space-2) 0;
}
.groups-modal__error {
color: var(--color-danger-text);
background: var(--color-danger-bg);
border: 1px solid var(--color-danger-alt);
border-radius: 6px;
padding: 10px 12px;
font-size: 13px;
border-radius: var(--radius-md);
padding: var(--space-2-5) var(--space-3);
font-size: var(--text-sm);
}
.groups-modal__inline-error {
margin: 0 0 8px 0;
margin: 0 0 var(--space-2) 0;
color: var(--color-danger-text);
background: var(--color-danger-bg);
border: 1px solid var(--color-danger-alt);
border-radius: 6px;
padding: 8px 12px;
font-size: 13px;
border-radius: var(--radius-md);
padding: var(--space-2) var(--space-3);
font-size: var(--text-sm);
}
.groups-modal__section-title {
font-size: 12px;
font-weight: 600;
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--color-text-subtle);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 8px;
margin-bottom: var(--space-2);
}
/* ── List view ──────────────────────────────────────────────────────────── */
@@ -60,11 +60,11 @@
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
gap: var(--space-3);
}
.groups-modal__subtitle {
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-secondary);
}
@@ -75,7 +75,7 @@
.groups-modal__list {
display: flex;
flex-direction: column;
gap: 4px;
gap: var(--space-1);
max-height: 60vh;
overflow-y: auto;
}
@@ -84,8 +84,8 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-radius: 8px;
padding: var(--space-2-5) var(--space-3);
border-radius: var(--radius-lg);
cursor: pointer;
transition: background-color 0.12s ease;
}
@@ -99,15 +99,15 @@
.groups-modal__row-main {
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
flex: 1;
min-width: 0;
}
.groups-modal__row-desc {
color: var(--color-text-subtle);
font-size: 12px;
margin-left: 8px;
font-size: var(--text-xs);
margin-left: var(--space-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -118,40 +118,40 @@
.groups-modal__row-badge {
background: var(--color-bg-muted);
color: var(--color-text-subtle);
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 10px;
font-size: var(--text-2xs);
font-weight: var(--weight-semibold);
padding: var(--space-0-5) var(--space-2);
border-radius: var(--radius-xl);
text-transform: uppercase;
letter-spacing: 0.03em;
flex-shrink: 0;
margin-left: 8px;
margin-left: var(--space-2);
}
.groups-modal__row-count {
color: var(--color-text-subtle);
font-size: 12px;
font-size: var(--text-xs);
flex-shrink: 0;
margin-left: auto;
padding-left: 8px;
padding-left: var(--space-2);
white-space: nowrap;
}
.groups-modal__load-more {
align-self: center;
margin-top: 12px;
margin-top: var(--space-3);
}
.groups-modal__empty {
text-align: center;
color: var(--color-text-subtle);
padding: 32px 12px;
padding: var(--space-8) var(--space-3);
}
.groups-modal__empty-icon {
font-size: 32px;
font-size: var(--text-4xl);
color: var(--color-text-faint);
margin-bottom: 8px;
margin-bottom: var(--space-2);
display: block;
}
@@ -160,8 +160,8 @@
.groups-modal__detail-header {
display: flex;
align-items: center;
gap: 12px;
padding-bottom: 12px;
gap: var(--space-3);
padding-bottom: var(--space-3);
border-bottom: 1px solid var(--color-border);
}
@@ -172,7 +172,7 @@
.groups-modal__detail-title-wrap {
display: flex;
align-items: center;
gap: 8px;
gap: var(--space-2);
flex: 1;
min-width: 0;
}
@@ -180,7 +180,7 @@
.groups-modal__members {
display: flex;
flex-direction: column;
gap: 4px;
gap: var(--space-1);
max-height: 40vh;
overflow-y: auto;
}
@@ -189,8 +189,8 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 8px;
border-radius: 6px;
padding: var(--space-1-5) var(--space-2);
border-radius: var(--radius-md);
transition: background-color 0.12s ease;
}
@@ -216,17 +216,17 @@
.groups-modal__add-row {
position: relative;
margin-top: 8px;
margin-top: var(--space-2);
}
.groups-modal__add-input {
width: 100%;
padding: 8px 12px;
padding: var(--space-2) var(--space-3);
border: 1px solid var(--color-border);
border-radius: 6px;
border-radius: var(--radius-md);
background: var(--color-bg-surface);
color: var(--color-text);
font-size: 13px;
font-size: var(--text-sm);
}
.groups-modal__add-input:focus {
@@ -242,7 +242,7 @@
right: 0;
background: var(--color-bg-surface);
border: 1px solid var(--color-border);
border-radius: 6px;
border-radius: var(--radius-md);
box-shadow: 0 4px 12px var(--color-shadow);
max-height: 240px;
overflow-y: auto;
@@ -254,7 +254,7 @@
}
.groups-modal__add-item {
padding: 8px 12px;
padding: var(--space-2) var(--space-3);
cursor: pointer;
transition: background-color 0.12s ease;
}
@@ -270,9 +270,9 @@
.groups-modal__footer {
display: flex;
justify-content: flex-start;
padding-top: 12px;
padding-top: var(--space-3);
border-top: 1px solid var(--color-border);
margin-top: 8px;
margin-top: var(--space-2);
}
/* ── Inline create / rename / confirm-delete forms ──────────────────────── */
@@ -283,24 +283,24 @@
.groups-modal__form {
display: flex;
flex-direction: column;
gap: 12px;
padding: 8px 0;
gap: var(--space-3);
padding: var(--space-2) 0;
}
.groups-modal__form-label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
font-weight: 500;
gap: var(--space-1-5);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--color-text-secondary);
}
.groups-modal__form-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 4px;
gap: var(--space-2);
margin-top: var(--space-1);
}
.groups-modal__inline-error.hidden {
+4 -4
View File
@@ -18,11 +18,11 @@
display: grid;
grid-template-columns: 1em max-content 1fr;
column-gap: 0.6em;
row-gap: 6px;
row-gap: var(--space-1-5);
align-items: center;
color: var(--color-text-muted);
font-size: 0.75rem;
font-size: var(--text-xs);
pointer-events: none;
@@ -51,7 +51,7 @@
/* Label column */
.path-tooltip__label {
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text-secondary);
white-space: nowrap;
}
@@ -88,5 +88,5 @@
}
.path-tooltip .user-vignette__name {
font-size: 0.75rem;
font-size: var(--text-xs);
}
+21 -23
View File
@@ -6,14 +6,14 @@
.language-selector-toggle {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
gap: var(--space-2);
padding: var(--space-2) var(--space-3-5);
background-color: var(--color-bg-muted);
border: 1px solid var(--color-border);
border-radius: 50px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
font-size: var(--text-base);
font-weight: var(--weight-medium);
color: var(--color-text-secondary);
transition: all 0.2s ease;
user-select: none;
@@ -25,12 +25,12 @@
}
.language-selector-toggle i {
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-muted);
}
.language-selector-toggle .lang-code {
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text);
}
@@ -38,7 +38,7 @@
font-size: 10px;
color: var(--color-text-muted);
transition: transform 0.2s ease;
margin-left: 2px;
margin-left: var(--space-0-5);
}
.language-selector.open .dropdown-arrow {
@@ -53,7 +53,7 @@
max-height: 420px;
overflow-y: auto;
background-color: var(--color-bg-surface);
border-radius: 12px;
border-radius: var(--radius-2xl);
box-shadow: 0 4px 20px var(--color-shadow-lg);
border: 1px solid var(--color-border);
opacity: 0;
@@ -72,10 +72,10 @@
.language-option {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
gap: var(--space-2-5);
padding: var(--space-3) var(--space-4);
cursor: pointer;
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-secondary);
transition: background-color 0.15s ease;
}
@@ -86,12 +86,12 @@
.language-option.active {
background-color: var(--color-accent-bg-sm);
color: var(--color-accent);
color: var(--color-accent-text);
}
.language-option .lang-flag {
font-size: 18px;
line-height: 1;
font-size: var(--text-lg);
line-height: var(--leading-none);
}
.language-option .lang-name {
@@ -100,7 +100,7 @@
.language-option .lang-check {
color: var(--color-accent);
font-size: 12px;
font-size: var(--text-xs);
opacity: 0;
}
@@ -120,11 +120,10 @@
border: none !important;
border-radius: 0 !important;
box-shadow: none !important;
outline: none !important;
padding: 12px 20px;
gap: 12px;
padding: var(--space-3) var(--space-5);
gap: var(--space-3);
color: var(--color-text-dark);
font-size: 14px;
font-size: var(--text-base);
cursor: pointer;
}
@@ -132,7 +131,6 @@
.user-menu .language-selector-toggle:focus {
background: var(--color-bg-hover) !important;
border: none !important;
outline: none !important;
}
.user-menu .language-selector-toggle i.fa-globe {
@@ -143,8 +141,8 @@
}
.user-menu .language-selector-toggle .lang-code {
font-weight: 500;
font-size: 13px;
font-weight: var(--weight-medium);
font-size: var(--text-sm);
color: var(--color-text-dark);
}
@@ -172,6 +170,6 @@
/* Language options inside user menu — compact rows */
.user-menu .language-option {
padding: 10px 20px 10px 28px;
padding: var(--space-2-5) var(--space-5) var(--space-2-5) var(--space-7);
font-size: 13.5px;
}
+3 -3
View File
@@ -9,12 +9,12 @@
align-items: center;
gap: 5px;
max-width: 100%;
padding: 2px 0;
padding: var(--space-0-5) 0;
border: none;
background: transparent;
color: var(--color-text);
cursor: pointer;
font-size: 13px;
font-size: var(--text-sm);
text-align: left;
transition: color 0.12s;
}
@@ -29,7 +29,7 @@
}
.link-chip__icon {
font-size: 12px;
font-size: var(--text-xs);
color: var(--color-text-faint);
flex-shrink: 0;
transition: color 0.12s;
+55 -53
View File
@@ -12,8 +12,8 @@
.about-modal {
background: var(--color-bg-surface);
border-radius: 20px;
padding: 40px;
border-radius: var(--radius-4xl);
padding: var(--space-10);
max-width: 400px;
width: 90%;
text-align: center;
@@ -24,73 +24,74 @@
.about-modal-logo {
width: 72px;
height: 72px;
background: var(--color-accent-gradient);
border-radius: 20px;
background: var(--color-logo-gradient);
border-radius: var(--radius-4xl);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
margin: 0 auto var(--space-5);
box-shadow: 0 8px 24px var(--color-accent-shadow);
}
.about-modal-logo i {
font-size: 32px;
color: var(--color-danger-text);
.about-modal-logo svg {
width: 36px;
height: 36px;
fill: var(--color-on-accent);
}
.about-modal h2 {
font-size: 22px;
font-weight: 700;
font-weight: var(--weight-bold);
color: var(--color-text-heading);
margin-bottom: 6px;
margin-bottom: var(--space-1-5);
}
.about-modal .about-version {
font-size: 13px;
font-size: var(--text-sm);
color: var(--color-text-faint);
margin-bottom: 20px;
margin-bottom: var(--space-5);
}
.about-modal .about-description {
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-subtle);
line-height: 1.6;
margin-bottom: 24px;
margin-bottom: var(--space-6);
}
.about-modal .about-tech {
display: flex;
justify-content: center;
gap: 12px;
gap: var(--space-3);
flex-wrap: wrap;
margin-bottom: 24px;
margin-bottom: var(--space-6);
}
.about-modal .about-tech-badge {
padding: 4px 12px;
padding: var(--space-1) var(--space-3);
background: var(--color-bg-hover);
border: 1px solid var(--color-border);
border-radius: 20px;
font-size: 12px;
border-radius: var(--radius-4xl);
font-size: var(--text-xs);
color: var(--color-text-subtle);
font-weight: 500;
font-weight: var(--weight-medium);
}
.about-modal .about-links {
display: flex;
justify-content: center;
gap: 16px;
margin-bottom: 24px;
gap: var(--space-4);
margin-bottom: var(--space-6);
}
.about-modal .about-link {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--color-accent);
gap: var(--space-1-5);
font-size: var(--text-sm);
color: var(--color-accent-text);
text-decoration: none;
font-weight: 500;
font-weight: var(--weight-medium);
transition: opacity 0.2s;
}
@@ -99,13 +100,13 @@
}
.about-modal .about-close-btn {
padding: 10px 32px;
padding: var(--space-2-5) var(--space-8);
background: var(--color-accent-gradient);
color: var(--color-danger-text);
border: none;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
border-radius: var(--radius-xl);
font-size: var(--text-base);
font-weight: var(--weight-semibold);
cursor: pointer;
transition:
transform 0.2s,
@@ -141,7 +142,7 @@
.modal-container {
background-color: var(--color-bg-surface);
border-radius: 16px;
border-radius: var(--radius-3xl);
width: 420px;
max-width: 90%;
box-shadow: 0 20px 60px var(--color-shadow-3xl);
@@ -157,7 +158,7 @@
.modal-header {
display: flex;
align-items: center;
padding: 20px 24px;
padding: var(--space-5) var(--space-6);
border-bottom: 1px solid var(--color-border);
position: relative;
}
@@ -166,27 +167,28 @@
width: 44px;
height: 44px;
background: var(--color-accent-gradient);
border-radius: 12px;
border-radius: var(--radius-2xl);
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
margin-right: var(--space-3-5);
flex-shrink: 0;
[dir="rtl"] & {
margin-left: 14px;
margin-left: var(--space-3-5);
margin-right: unset;
}
}
.modal-icon i {
color: var(--color-danger-text);
font-size: 20px;
font-size: var(--text-xl);
}
.modal-header h2,
.modal-header h3 {
font-size: 18px;
font-weight: 600;
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
margin: 0;
flex: 1;
@@ -203,7 +205,7 @@
height: 32px;
border: none;
background: var(--color-bg-muted);
border-radius: 8px;
border-radius: var(--radius-lg);
cursor: pointer;
display: flex;
align-items: center;
@@ -223,23 +225,23 @@
}
.modal-body {
padding: 24px;
padding: var(--space-6);
}
.modal-body label {
display: block;
font-size: 14px;
font-weight: 500;
font-size: var(--text-base);
font-weight: var(--weight-medium);
color: var(--color-text-secondary);
margin-bottom: 8px;
margin-bottom: var(--space-2);
}
.modal-input {
width: 100%;
padding: 12px 16px;
padding: var(--space-3) var(--space-4);
font-size: 15px;
border: 2px solid var(--color-border);
border-radius: 10px;
border-radius: var(--radius-xl);
background: var(--color-bg-hover);
color: var(--color-text-heading);
transition: all 0.15s ease;
@@ -261,25 +263,25 @@
}
.modal-error {
margin-top: 8px;
font-size: 13px;
margin-top: var(--space-2);
font-size: var(--text-sm);
color: var(--color-error-text);
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
gap: var(--space-3);
padding: var(--space-4) var(--space-6);
background: var(--color-bg-hover);
border-top: 1px solid var(--color-border);
}
.modal-footer .btn {
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 10px;
padding: var(--space-2-5) var(--space-5);
font-size: var(--text-base);
font-weight: var(--weight-medium);
border-radius: var(--radius-xl);
cursor: pointer;
transition: all 0.15s ease;
}
+52 -198
View File
@@ -5,7 +5,7 @@
right: 20px;
background-color: var(--color-notification-bg);
width: 250px;
border-radius: 8px;
border-radius: var(--radius-lg);
box-shadow: 0 5px 15px var(--color-shadow);
padding: 15px;
border-left: 4px solid var(--color-accent);
@@ -21,14 +21,14 @@
}
.notification-title {
font-weight: bold;
font-size: 14px;
font-weight: var(--weight-bold);
font-size: var(--text-base);
margin-bottom: 5px;
color: var(--color-text);
}
.notification-message {
font-size: 12px;
font-size: var(--text-xs);
color: var(--color-text-muted);
}
@@ -37,9 +37,9 @@
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
padding: 15px var(--space-5);
background-color: var(--color-notification-bg);
border-radius: 8px;
border-radius: var(--radius-lg);
box-shadow: 0 4px 12px var(--color-shadow);
display: flex;
align-items: center;
@@ -69,10 +69,10 @@
.close-notification-btn {
background: none;
border: none;
font-size: 18px;
font-size: var(--text-lg);
cursor: pointer;
color: var(--color-text-placeholder);
margin-left: 10px;
margin-left: var(--space-2-5);
}
/* Notification Bell */
@@ -84,7 +84,7 @@
background: none;
border: none;
cursor: pointer;
font-size: 18px;
font-size: var(--text-lg);
color: var(--color-text-subtle);
width: 40px;
height: 40px;
@@ -113,13 +113,13 @@
min-width: 16px;
height: 16px;
line-height: 16px;
border-radius: 8px;
border-radius: var(--radius-lg);
background: var(--color-notification-badge);
color: var(--color-notification-bg);
font-size: 10px;
font-weight: 700;
font-weight: var(--weight-bold);
text-align: center;
padding: 0 4px;
padding: 0 var(--space-1);
pointer-events: none;
}
@@ -163,7 +163,7 @@
width: 380px;
max-height: 480px;
background: var(--color-notification-bg);
border-radius: 16px;
border-radius: var(--radius-3xl);
box-shadow:
0 12px 40px var(--color-shadow-md),
0 0 0 1px var(--color-shadow-xs);
@@ -192,12 +192,12 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
padding: var(--space-3-5) var(--space-4);
border-bottom: 1px solid var(--color-border-xfaint);
}
.notif-panel-title {
font-weight: 600;
font-weight: var(--weight-semibold);
font-size: 15px;
color: var(--color-text-heading);
}
@@ -207,9 +207,9 @@
border: none;
cursor: pointer;
color: var(--color-text-faint);
font-size: 14px;
padding: 4px 8px;
border-radius: 6px;
font-size: var(--text-base);
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-md);
transition: all 0.15s;
}
@@ -222,6 +222,23 @@
flex: 1;
overflow-y: auto;
max-height: 400px;
/* Thin, neutral scrollbar — replaces the heavy global accent bar that read
as amateur in the panel. */
scrollbar-width: thin;
scrollbar-color: var(--color-border-medium) transparent;
}
.notif-panel-body::-webkit-scrollbar {
width: 6px;
}
.notif-panel-body::-webkit-scrollbar-thumb {
background: var(--color-border-medium);
border-radius: var(--radius-full);
}
.notif-panel-body::-webkit-scrollbar-track {
background: transparent;
}
.notif-empty {
@@ -229,25 +246,25 @@
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
padding: var(--space-10) var(--space-5);
color: var(--color-text-faint);
gap: 8px;
gap: var(--space-2);
}
.notif-empty i {
font-size: 28px;
font-size: var(--text-3xl);
opacity: 0.5;
}
.notif-empty span {
font-size: 14px;
font-size: var(--text-base);
}
.notif-item {
display: flex;
align-items: flex-start;
padding: 12px 16px;
gap: 12px;
padding: var(--space-3) var(--space-4);
gap: var(--space-3);
border-bottom: 1px solid var(--color-bg-subtle);
transition: background 0.15s;
cursor: default;
@@ -264,12 +281,12 @@
.notif-item-icon {
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--radius-lg);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 14px;
font-size: var(--text-base);
}
.notif-item-icon.upload {
@@ -293,14 +310,14 @@
}
.notif-item-title {
font-size: 13px;
font-weight: 600;
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
margin-bottom: 2px;
margin-bottom: var(--space-0-5);
}
.notif-item-text {
font-size: 12px;
font-size: var(--text-xs);
color: var(--color-text-subtle);
white-space: nowrap;
overflow: hidden;
@@ -308,19 +325,19 @@
}
.notif-item-time {
font-size: 11px;
font-size: var(--text-2xs);
color: var(--color-text-faint);
margin-top: 3px;
}
.notif-upload-progress {
margin-top: 6px;
margin-top: var(--space-1-5);
}
.notif-upload-bar {
height: 3px;
background: var(--color-bg-empty);
border-radius: 2px;
border-radius: var(--radius-xs);
overflow: hidden;
}
@@ -329,7 +346,7 @@
background: var(--color-accent);
width: 0%;
transition: width 0.2s ease;
border-radius: 2px;
border-radius: var(--radius-xs);
}
.notif-upload-fill.done {
@@ -349,169 +366,6 @@
.notif-upload-pct,
.notif-upload-stats {
font-size: 11px;
font-size: var(--text-2xs);
color: var(--color-text-faint);
}
/* Upload Progress Toast (legacy — hidden, kept for compat) */
.upload-toast {
position: fixed;
bottom: 24px;
right: 24px;
width: 360px;
max-height: 400px;
background: var(--color-notification-bg);
border-radius: 12px;
box-shadow: 0 8px 30px var(--color-shadow-md);
z-index: 10000;
display: none;
flex-direction: column;
overflow: hidden;
font-family: inherit;
animation: uploadToastSlideIn 0.3s ease-out;
}
.upload-toast.visible {
display: flex;
}
@keyframes uploadToastSlideIn {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.upload-toast-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: var(--color-accent);
color: var(--color-danger-text);
}
.upload-toast-title {
font-weight: 600;
font-size: 14px;
}
.upload-toast-close {
background: none;
border: none;
color: var(--color-danger-text);
font-size: 20px;
cursor: pointer;
line-height: 1;
padding: 0 4px;
opacity: 0.8;
}
.upload-toast-close:hover {
opacity: 1;
}
.upload-toast-body {
flex: 1;
overflow-y: auto;
padding: 8px 0;
max-height: 260px;
}
.upload-toast-file {
display: flex;
align-items: center;
padding: 6px 16px;
gap: 10px;
}
.upload-toast-file-icon {
font-size: 16px;
color: var(--color-text-light);
flex-shrink: 0;
width: 20px;
text-align: center;
}
.upload-toast-file-icon.done {
color: var(--color-notification-success);
}
.upload-toast-file-icon.error {
color: var(--color-notification-error);
}
.upload-toast-file-info {
flex: 1;
min-width: 0;
}
.upload-toast-file-name {
font-size: 13px;
color: var(--color-text-black);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.upload-toast-file-bar {
height: 3px;
background: var(--color-bg-empty);
border-radius: 2px;
margin-top: 4px;
overflow: hidden;
}
.upload-toast-file-fill {
height: 100%;
background: var(--color-accent);
width: 0%;
transition: width 0.2s ease;
border-radius: 2px;
}
.upload-toast-file-fill.done {
background: var(--color-notification-success);
}
.upload-toast-file-fill.error {
background: var(--color-notification-error);
}
.upload-toast-file-pct {
font-size: 12px;
color: var(--color-text-light);
flex-shrink: 0;
width: 38px;
text-align: right;
}
.upload-toast-footer {
padding: 10px 16px;
border-top: 1px solid var(--color-border-xfaint);
}
.upload-toast-overall-bar {
height: 4px;
background: var(--color-bg-empty);
border-radius: 2px;
overflow: hidden;
margin-bottom: 6px;
}
.upload-toast-overall-fill {
height: 100%;
background: var(--color-accent);
width: 0%;
transition: width 0.25s ease;
border-radius: 2px;
}
.upload-toast-stats {
font-size: 12px;
color: var(--color-text-faint2);
}
+373 -103
View File
@@ -16,7 +16,7 @@
.file-icon {
width: 100px;
height: 70px;
border-radius: 8px;
border-radius: var(--radius-lg);
position: relative;
display: flex;
align-items: center;
@@ -33,12 +33,25 @@
height: 100%;
object-fit: cover;
z-index: 1;
/* The thumbnail is purely decorative — it must never be a hit-test target.
In grid view it fills the whole tile UNDER the overlay controls (checkbox,
favorite star, kebab); a loaded full-bleed thumbnail (promoted to its own
stacking context by the hover scale transform) was capturing clicks meant
for those controls, so they "did nothing" (the click fell through to
open-file). Making it transparent to pointer events routes corner clicks
to the controls and body clicks to the .file-icon (which still opens). */
pointer-events: none;
}
/* ── Item states ─────────────────────────────────────────── */
.file-item {
background-color: var(--color-item);
/* Smooth the hover/selection tint (list rows used to snap). Grid cards
override this with their own transform/shadow transition. */
transition:
background-color var(--motion-fast) var(--ease-standard),
border-color var(--motion-fast) var(--ease-standard);
}
/* Brief pulse on rows that were just optimistically inserted (e.g.
@@ -129,7 +142,7 @@
height: 17px;
cursor: pointer;
accent-color: var(--color-accent);
border-radius: 4px;
border-radius: var(--radius-sm);
}
.list-header.selection-mode {
@@ -148,9 +161,9 @@
.list-header {
display: grid;
grid-template-columns: var(--files-list-columns);
column-gap: 12px;
column-gap: var(--space-3);
padding: 15px;
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text);
background-color: var(--color-bg-subtle);
border-bottom: 1px solid var(--color-border-faint);
@@ -198,6 +211,42 @@
text-align: right;
}
/* ── Sortable column headers (flat Drive-style sort) ─────────── */
.list-header-sort {
display: inline-flex;
align-items: center;
gap: var(--space-1-5);
min-width: 0;
padding: 0;
border: none;
background: none;
cursor: pointer;
/* Inherit the header row's weight + colour so it reads as a header. */
font: inherit;
color: inherit;
transition: color var(--motion-fast) var(--ease-standard);
}
.list-header-sort:hover,
.list-header-sort.is-active {
color: var(--color-accent);
}
.list-header-sort__arrow {
font-size: var(--text-2xs);
color: var(--color-accent);
flex-shrink: 0;
}
/* Match the value-cell alignment so header and data line up. */
.list-header-sort[data-sort-field="size"] {
justify-self: end;
}
.list-header-sort[data-sort-field="modified_at"] {
justify-self: center;
}
/* ── Owner column ────────────────────────────────────────── */
/* Styles applied whenever the cell is visible (hidden class absent).
@@ -215,7 +264,7 @@
plain-text fallback content (cells without a vignette child). */
.owner-cell {
color: var(--color-text-secondary);
font-size: 14px;
font-size: var(--text-base);
display: flex;
align-items: center;
min-width: 0;
@@ -234,7 +283,7 @@
display: flex;
flex-direction: column;
width: 100%;
border-radius: 10px;
border-radius: var(--radius-xl);
overflow: hidden;
background-color: var(--color-item);
box-shadow: 0 1px 3px var(--color-shadow-xs);
@@ -243,11 +292,21 @@
.files-list-view .file-item {
display: grid;
grid-template-columns: var(--files-list-columns);
column-gap: 12px;
padding: 12px 15px;
column-gap: var(--space-3);
padding: var(--space-3) 15px;
border-bottom: 1px solid var(--color-border-xfaint);
align-items: center;
cursor: pointer;
transition:
background-color var(--motion-fast) var(--ease-standard),
box-shadow var(--motion-fast) var(--ease-standard);
}
/* "This row" emphasis — a left accent bar on hover/selection (inset shadow,
so it adds no width and never shifts the grid columns). */
.files-list-view .file-item:hover,
.files-list-view .file-item.selected {
box-shadow: inset 3px 0 0 var(--color-accent);
}
.files-list-view .file-item.drop-target {
@@ -258,7 +317,7 @@
color: var(--color-text);
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
min-width: 0;
overflow: hidden;
}
@@ -290,13 +349,16 @@
}
.files-list-view .file-item .file-icon {
width: 36px;
height: 36px;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
font-size: 16px;
border-radius: var(--radius-lg);
/* Hairline inner ring — consistent with the grid thumbnails so light
previews don't bleed into the row. */
box-shadow: inset 0 0 0 1px var(--color-border);
font-size: var(--text-md);
margin-bottom: 0;
flex-shrink: 0;
}
@@ -309,20 +371,20 @@
.files-list-view .file-item .date-cell {
color: var(--color-text-muted);
font-size: 14px;
font-size: var(--text-base);
}
.files-list-view .file-item .size-cell {
color: var(--color-text-muted);
font-size: 14px;
font-size: var(--text-base);
text-align: right;
font-variant-numeric: tabular-nums;
}
.files-list-view .file-item .type-cell {
color: var(--color-text-secondary);
font-weight: 500;
font-size: 14px;
font-weight: var(--weight-medium);
font-size: var(--text-base);
}
.files-list-view .file-item .action-cell {
@@ -338,14 +400,14 @@
display: inline;
width: 28px;
height: 28px;
border-radius: 8px;
border-radius: var(--radius-lg);
border: none;
background: transparent;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--color-text-subtle);
font-size: 16px;
font-size: var(--text-md);
}
.files-list-view .file-item .action-cell button:not(.btn-action):hover {
@@ -363,12 +425,27 @@
display: inline;
}
/* Reveal the kebab on hover for cleaner rows — but only on hover-capable
devices, so touch users (no hover) keep it always tappable. Stays visible
on keyboard focus within the row. */
@media (hover: hover) {
.files-list-view .file-item .action-cell button.file-actions {
opacity: 0;
transition: opacity var(--motion-fast) var(--ease-standard);
}
.files-list-view .file-item:hover .action-cell button.file-actions,
.files-list-view .file-item:focus-within .action-cell button.file-actions {
opacity: 1;
}
}
/* ── Grid view ───────────────────────────────────────────── */
.files-grid-view {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(var(--grid-card-min), 1fr));
gap: var(--space-5);
position: relative;
}
@@ -377,18 +454,66 @@
display: none;
}
/* ── Mobile reflow (≤ --bp-sm 640px) ──────────────────────────
The 6-column grid can't fit a phone, so each list row collapses to a
compact flex line (icon + name … size + actions) and the column header
is hidden (sort controls live in the actions bar). One block covers
files / trash / favorites / recent uniformly; flex ignores the grid
tracks, so there's no header-vs-row misalignment to maintain. */
@media (max-width: 640px) {
/* Keep the selection-mode header (holds select-all); hide the plain one. */
.list-header:not(.selection-mode) {
display: none;
}
.files-list-view .file-item {
display: flex;
align-items: center;
gap: var(--space-3);
}
.files-list-view .file-item .type-cell,
.files-list-view .file-item .date-cell,
.files-list-view .file-item .owner-cell,
.files-list-view .file-item .path-cell {
display: none;
}
.files-list-view .file-item .name-cell {
flex: 1;
min-width: 0;
}
.files-list-view .file-item .checkbox-cell,
.files-list-view .file-item .size-cell,
.files-list-view .file-item .action-cell {
flex-shrink: 0;
}
/* Tighter grid on phones (2 columns instead of 1). */
.files-grid-view {
--grid-card-min: 140px;
gap: var(--space-2);
}
}
.files-grid-view .file-item {
border-radius: 12px;
border: 2px solid var(--color-border);
padding: 16px;
border-radius: var(--radius-2xl);
/* Hairline at rest → accent on hover (gallery, not form). */
border: 1px solid var(--color-border);
padding: var(--space-3);
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0 1px 3px var(--color-shadow-xs);
box-shadow: 0 1px 2px var(--color-shadow-xs);
cursor: pointer;
width: 100%;
min-height: 160px;
position: relative;
transition:
transform var(--motion-base) var(--ease-standard),
box-shadow var(--motion-base) var(--ease-standard),
border-color var(--motion-base) var(--ease-standard);
}
.files-grid-view .file-item.dragging {
@@ -398,9 +523,19 @@
}
.files-grid-view .file-item:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px var(--color-shadow-sm);
border-color: var(--color-border-medium);
transform: translateY(-3px);
box-shadow: 0 12px 28px -8px var(--color-shadow-md);
border-color: var(--color-accent);
}
/* The thumbnail subtly zooms inside its clipped tile on hover — the "alive"
feel of a premium gallery. */
.files-grid-view .file-item .file-icon .file-thumb {
transition: transform var(--motion-moderate) var(--ease-standard);
}
.files-grid-view .file-item:hover .file-icon .file-thumb {
transform: scale(1.04);
}
.files-grid-view .file-item.selected {
@@ -416,63 +551,115 @@
0 6px 18px var(--color-accent-ring-dark);
}
/* elements hidden in grid view */
/* elements hidden in grid view — the type label ("Imagen") is redundant under
a thumbnail, so we drop it and surface the file size instead. */
.files-grid-view .file-item .date-cell,
.files-grid-view .file-item .size-cell,
.files-grid-view .file-item .type-cell,
.files-grid-view .file-item .owner-cell {
display: none;
}
/* Selection checkbox */
/* Overlay controls sit ON the thumbnail (offset by the card padding) over a
frosted scrim, so they read as part of the media instead of floating on the
card corner. */
.files-grid-view .file-item .checkbox-cell {
position: absolute;
top: 10px;
left: 10px;
width: 22px;
height: 22px;
border-radius: 6px;
background: var(--color-item);
top: calc(var(--space-3) + 8px);
left: calc(var(--space-3) + 8px);
width: 26px;
height: 26px;
border-radius: var(--radius-md);
background: var(--color-scrim-control);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
box-shadow: 0 1px 3px var(--color-shadow-sm);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
z-index: 10;
cursor: pointer;
transition: opacity var(--motion-fast) var(--ease-standard);
}
.files-grid-view .file-item:hover .checkbox-cell {
opacity: 1;
}
/* Visible whenever the card is hovered OR already selected, so the checked
state stays on screen after the pointer leaves. */
.files-grid-view .file-item:hover .checkbox-cell,
.files-grid-view .file-item.selected .checkbox-cell {
opacity: 1;
}
/* Custom-drawn checkbox: an empty white box that fills with accent and shows a
crisp white tick when checked. The native 17px control was invisible once the
cell turned accent on selection (accent-on-accent), and the intended tick
targeted a `.checkbox-cell i` the markup never renders — so a click read as
"nothing happened". This makes the checked state unmistakable. */
.files-grid-view .file-item .checkbox-cell input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 18px;
height: 18px;
margin: 0;
border: 2px solid var(--color-border-medium);
border-radius: var(--radius-sm);
background: var(--color-bg-surface);
display: grid;
place-content: center;
cursor: pointer;
transition:
background-color var(--motion-fast) var(--ease-standard),
border-color var(--motion-fast) var(--ease-standard);
}
.files-grid-view .file-item .checkbox-cell input[type="checkbox"]::after {
content: "";
width: 5px;
height: 9px;
margin-top: -1px;
border: solid var(--color-danger-text);
border-width: 0 2px 2px 0;
transform: rotate(45deg) scale(0);
transform-origin: center;
transition: transform var(--motion-fast) var(--ease-standard);
}
.files-grid-view .file-item .checkbox-cell input[type="checkbox"]:checked {
background: var(--color-accent);
border-color: var(--color-accent);
}
.files-grid-view .file-item.selected .checkbox-cell i {
color: var(--color-danger-text);
font-size: 11px;
.files-grid-view .file-item .checkbox-cell input[type="checkbox"]:checked::after {
transform: rotate(45deg) scale(1);
}
/* More actions button (three dots) */
.files-grid-view .file-item .checkbox-cell input[type="checkbox"]:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
/* More actions button (three dots) — top-right of the thumbnail on a scrim. */
.files-grid-view .file-item .file-actions {
position: absolute;
top: 8px;
right: 8px;
top: calc(var(--space-3) + 8px);
right: calc(var(--space-3) + 8px);
width: 30px;
height: 30px;
border-radius: 8px;
border-radius: var(--radius-full);
border: none;
background: transparent;
background: var(--color-scrim-control);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
box-shadow: 0 1px 3px var(--color-shadow-sm);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
z-index: 10;
cursor: pointer;
color: var(--color-text-subtle);
font-size: 16px;
color: var(--color-text);
font-size: var(--text-md);
transition: opacity var(--motion-fast) var(--ease-standard);
}
.files-grid-view .file-item:hover .file-actions {
@@ -480,8 +667,7 @@
}
.files-grid-view .file-item .file-actions:hover {
background: var(--color-border-light);
color: var(--color-text-dark);
color: var(--color-accent);
}
.files-grid-view .file-item.drop-target {
@@ -489,44 +675,53 @@
border: 2px dashed var(--color-warning-border);
}
/* "Shared" indicator — top-left of the thumbnail. Sits below the checkbox
(which only appears on hover), so the two never both compete for the eye. */
.files-grid-view .file-item .file-badge-shared {
position: absolute;
top: 38px;
right: 38px;
width: 30px;
height: 30px;
border-radius: 8px;
top: calc(var(--space-3) + 8px);
left: calc(var(--space-3) + 8px);
width: 24px;
height: 24px;
border-radius: var(--radius-full);
border: none;
background: transparent;
background: var(--color-scrim-control);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
box-shadow: 0 1px 3px var(--color-shadow-sm);
display: flex;
align-items: center;
justify-content: center;
z-index: 12;
font-size: 15px;
z-index: 9;
font-size: var(--text-2xs);
padding: 0;
line-height: 1;
line-height: var(--leading-none);
}
/* Favorite star (mirrors file-actions button pattern) */
/* Favorite star — top-right of the thumbnail, left of the kebab, on a scrim. */
.files-grid-view .file-item button.favorite-star {
position: absolute;
top: 8px;
right: 38px;
top: calc(var(--space-3) + 8px);
right: calc(var(--space-3) + 8px + 34px);
width: 30px;
height: 30px;
border-radius: 8px;
border-radius: var(--radius-full);
border: none;
background: transparent;
background: var(--color-scrim-control);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
box-shadow: 0 1px 3px var(--color-shadow-sm);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
z-index: 12;
cursor: pointer;
color: var(--color-border-medium);
color: var(--color-text-subtle);
font-size: 15px;
padding: 0;
line-height: 1;
line-height: var(--leading-none);
transition: opacity var(--motion-fast) var(--ease-standard);
}
.files-grid-view .file-item:hover button.favorite-star {
@@ -547,45 +742,120 @@
}
.files-grid-view .file-item .name-cell {
font-size: 14px;
font-weight: 500;
font-size: var(--text-sm);
font-weight: var(--weight-medium);
text-align: center;
margin-bottom: 5px;
margin-bottom: 2px;
color: var(--color-text);
/* Span the full card width. The card is a centered flex column
(`align-items: center`), so without an explicit width the name-cell —
which wraps BOTH the thumbnail tile and the filename — shrink-wraps to
the filename's length. That made `.file-icon { width: 100% }` track the
NAME width, so a long name ("CURSO TERRAFORM") rendered a big tile and a
short one ("Idiomas") a small one. Forcing 100% makes every thumbnail
tile identical regardless of name length. */
width: 100%;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 8px;
margin-top: var(--space-1);
}
.files-grid-view .file-item .name-cell span {
padding-top: 8px;
padding-bottom: 8px;
display: block;
max-width: 100%;
/* Ellipsis must live on the span (the text node), not the flex parent,
or long names clip with no "…". */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-top: var(--space-2);
padding-bottom: var(--space-2);
}
.files-grid-view .file-item .name-cell svg.favorite-star-inline {
display: none;
}
.files-grid-view .file-item .type-cell {
font-size: 12px;
color: var(--color-text-muted);
text-align: center;
/* The grid card's secondary line is now the combined .grid-meta block
("hace 2 días · 4,31 MB"), so the standalone size-cell is hidden here. */
.files-grid-view .file-item .size-cell {
display: none;
}
/* ── Grid metadata line — recency + size (+ owner avatar when shared) ──────
Replaces the lone "4,31 MB": a top file app captions a thumbnail with WHEN
it was touched (the dominant retrieval cue), not just bytes. Hidden
everywhere except the grid — list view keeps its own date/size/owner
columns, so a display:none here drops it cleanly out of the row grid. */
.grid-meta {
display: none;
}
.files-grid-view .file-item .grid-meta {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-1);
max-width: 100%;
margin-top: 2px;
font-size: var(--text-2xs);
color: var(--color-text-muted);
line-height: var(--leading-snug);
}
/* On a narrow card the relative date truncates first; the size never clips. */
.files-grid-view .file-item .grid-meta__date {
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.files-grid-view .file-item .grid-meta__size {
flex: 0 0 auto;
color: var(--color-text-faint);
}
.files-grid-view .file-item .grid-meta__size::before {
content: "·";
margin-right: var(--space-1);
color: var(--color-text-faint);
}
/* Owner avatar — only rendered when the item is shared; sits at the line end. */
.files-grid-view .file-item .grid-meta .user-vignette {
flex: 0 0 auto;
margin-left: var(--space-1);
}
/* Full-width thumbnail tile with a fixed aspect ratio — the image
(`.file-thumb`, object-fit:cover) fills it edge-to-edge for a uniform,
rich grid instead of a small letterboxed preview. Non-image files show
their type icon centred on the placeholder fill. */
.files-grid-view .file-item .file-icon {
margin: auto;
margin-bottom: 10px;
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
border-radius: var(--radius-lg);
background: var(--color-bg-input);
/* Hairline inner ring so light thumbnails don't bleed into the card. */
box-shadow: inset 0 0 0 1px var(--color-border);
margin: 0 0 var(--space-3);
font-size: 30px;
}
/* Type icon for non-thumbnail files (documents, etc.) — perfectly centered in
the tile. `inset: 0` + `margin: auto` + a fixed size is the absolute-centering
trick; the previous `top: auto` broke the vertical half, bottom-anchoring the
icon so it sat low in the tile. */
.files-grid-view .file-item .file-icon > i,
.files-grid-view .file-item .file-icon > svg {
top: 5px;
width: 60px;
height: 60px;
inset: 0;
margin: auto;
width: 56px;
height: 56px;
}
/* ── Drag ghost ──────────────────────────────────────────── */
@@ -595,17 +865,17 @@
flex-direction: column;
background-color: transparent;
overflow: hidden;
border-radius: 10px;
border-radius: var(--radius-xl);
width: 100%;
}
.dragged-items .file-item {
grid-template-columns: var(--dragged-files-list-columns);
column-gap: 12px;
column-gap: var(--space-3);
align-items: center;
background-color: var(--color-item);
display: flex;
padding: 4px;
padding: var(--space-1);
width: 360px;
height: 46px;
color: var(--color-text);
@@ -633,17 +903,17 @@
top: 0;
right: 0;
transform: translate(50%, -50%);
background: var(--color-content-debug-bg);
color: var(--color-content-debug-text);
background: var(--color-notification-badge);
color: var(--color-danger-text);
border-radius: 50%;
min-width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
padding: 2px;
font-size: var(--text-xs);
font-weight: var(--weight-bold);
padding: var(--space-0-5);
}
/* ── Swimlane group header ───────────────────────────────── */
@@ -652,14 +922,14 @@
grid wraps it naturally. */
.resource-list__swimlane-header {
grid-column: 1 / -1;
padding: 6px 12px 4px;
padding: var(--space-1-5) var(--space-3) var(--space-1);
font-size: 0.72rem;
font-weight: 600;
font-weight: var(--weight-semibold);
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-text-faint);
border-bottom: 1px solid var(--color-border);
margin-top: 8px;
margin-top: var(--space-2);
cursor: default;
user-select: none;
}
@@ -675,11 +945,11 @@
.resource-list__swimlane-header--node {
display: flex;
align-items: center;
padding: 4px 12px;
padding: var(--space-1) var(--space-3);
text-transform: none;
letter-spacing: normal;
font-size: inherit;
font-weight: normal;
font-weight: var(--weight-normal);
color: inherit;
}
@@ -692,13 +962,13 @@
box-shadow: none;
border-radius: 0;
overflow: visible;
gap: 10px;
gap: var(--space-2-5);
}
/* Each group is a self-contained card */
.files-list-view .resource-list__swimlane-group {
background-color: var(--color-item);
border-radius: 10px;
border-radius: var(--radius-xl);
box-shadow: 0 1px 3px var(--color-shadow-xs);
overflow: hidden;
}
@@ -717,7 +987,7 @@
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
gap: 20px;
gap: var(--space-5);
}
/* ── Section item modifiers ──────────────────────────────── */
@@ -778,7 +1048,7 @@
*/
.files-list-view .file-item .path-cell {
color: var(--color-text-secondary);
font-size: 13px;
font-size: var(--text-sm);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -798,12 +1068,12 @@
justify-content: center;
width: 28px;
height: 28px;
border-radius: 8px;
border-radius: var(--radius-lg);
border: none;
background: transparent;
cursor: pointer;
color: var(--color-text-subtle);
font-size: 16px;
font-size: var(--text-md);
padding: 0;
}
@@ -813,5 +1083,5 @@
}
.files-grid-view .file-item .btn-action {
margin-top: 4px;
margin-top: var(--space-1);
}
+5 -5
View File
@@ -17,11 +17,11 @@
display: inline-flex;
align-items: center;
flex-shrink: 0;
gap: 4px;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
gap: var(--space-1);
padding: var(--space-0-5) var(--space-2);
border-radius: var(--radius-xl);
font-size: var(--text-2xs);
font-weight: var(--weight-semibold);
white-space: nowrap;
}
+9 -9
View File
@@ -3,37 +3,37 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
padding: var(--space-2-5) 0;
margin-bottom: 15px;
border-bottom: 1px solid var(--color-bg-empty);
width: 100%;
flex-wrap: wrap;
gap: 8px;
gap: var(--space-2);
}
.search-results-header h3 {
margin: 0;
font-size: 16px;
font-size: var(--text-md);
color: var(--color-text-dim);
}
.search-results-header .search-time {
font-size: 12px;
font-weight: normal;
font-size: var(--text-xs);
font-weight: var(--weight-normal);
color: var(--color-text-light);
}
.search-controls {
display: flex;
align-items: center;
gap: 8px;
gap: var(--space-2);
}
.search-sort-select {
padding: 4px 8px;
padding: var(--space-1) var(--space-2);
border: 1px solid var(--color-border-ddd);
border-radius: 4px;
font-size: 13px;
border-radius: var(--radius-sm);
font-size: var(--text-sm);
background: var(--color-bg-surface);
color: var(--color-text-black);
cursor: pointer;
+11 -11
View File
@@ -12,13 +12,13 @@
.existing-share-item {
background-color: var(--color-bg-subtle);
border-radius: 4px;
padding: 10px;
margin-bottom: 10px;
border-radius: var(--radius-sm);
padding: var(--space-2-5);
margin-bottom: var(--space-2-5);
}
.share-url {
font-size: 12px;
font-size: var(--text-xs);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -27,10 +27,10 @@
}
.share-info {
font-size: 11px;
font-size: var(--text-2xs);
display: flex;
gap: 15px;
margin-bottom: 10px;
margin-bottom: var(--space-2-5);
color: var(--color-share-owner-text);
}
@@ -50,19 +50,19 @@
.share-link-actions {
display: flex;
gap: 10px;
gap: var(--space-2-5);
margin-top: 5px;
}
.btn-small {
font-size: 12px;
padding: 5px 10px;
font-size: var(--text-xs);
padding: 5px var(--space-2-5);
}
#notification-message {
width: 100%;
padding: 10px;
padding: var(--space-2-5);
border: 1px solid var(--color-border-ddd);
border-radius: 4px;
border-radius: var(--radius-sm);
resize: vertical;
}
+81 -81
View File
@@ -19,7 +19,7 @@
.smd-section {
border-top: 0.5px solid var(--color-border);
padding: 16px 20px;
padding: var(--space-4) var(--space-5);
}
.smd-section:first-child {
@@ -27,12 +27,12 @@
}
.smd-section-title {
font-size: 13px;
font-weight: 600;
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--color-text-subtle);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 12px;
margin-bottom: var(--space-3);
}
/* ── Loading skeleton ────────────────────────────────────────────────────────── */
@@ -40,14 +40,14 @@
.smd-skeleton {
display: flex;
flex-direction: column;
gap: 12px;
padding: 20px;
gap: var(--space-3);
padding: var(--space-5);
}
.smd-skeleton-line {
height: 14px;
background: var(--color-bg-muted);
border-radius: 6px;
border-radius: var(--radius-md);
animation: smdSkeletonPulse 1.4s ease-in-out infinite;
}
@@ -73,10 +73,10 @@
.smd-search-row {
display: flex;
gap: 8px;
gap: var(--space-2);
align-items: flex-start;
flex-wrap: wrap;
margin-bottom: 12px;
margin-bottom: var(--space-3);
}
.smd-search-wrap {
@@ -87,10 +87,10 @@
.smd-search-input {
width: 100%;
padding: 9px 12px;
font-size: 14px;
padding: 9px var(--space-3);
font-size: var(--text-base);
border: 1px solid var(--color-border);
border-radius: 8px;
border-radius: var(--radius-lg);
background: var(--color-bg-hover);
color: var(--color-text-heading);
outline: none;
@@ -112,7 +112,7 @@
right: 0;
background: var(--color-bg-surface);
border: 0.5px solid var(--color-border);
border-radius: 8px;
border-radius: var(--radius-lg);
box-shadow: 0 8px 24px var(--color-shadow-xl);
z-index: 100;
overflow: hidden;
@@ -121,8 +121,8 @@
.smd-suggestion-item {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 12px;
gap: var(--space-2-5);
padding: 9px var(--space-3);
cursor: pointer;
transition: background 0.1s;
}
@@ -149,17 +149,17 @@
.smd-suggestion-hint {
margin-left: auto;
color: var(--color-text-faint);
font-size: 12px;
font-size: var(--text-xs);
font-style: italic;
flex-shrink: 0;
}
/* Role picker beside the search box */
.smd-role-select {
padding: 9px 10px;
font-size: 13px;
padding: 9px var(--space-2-5);
font-size: var(--text-sm);
border: 1px solid var(--color-border);
border-radius: 8px;
border-radius: var(--radius-lg);
background: var(--color-bg-hover);
color: var(--color-text-heading);
cursor: pointer;
@@ -170,10 +170,10 @@
.smd-add-btn {
min-height: 36px;
min-width: 44px;
padding: 8px 14px;
font-size: 13px;
font-weight: 500;
border-radius: 8px;
padding: var(--space-2) var(--space-3-5);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
border-radius: var(--radius-lg);
}
/* ── Staged chips ────────────────────────────────────────────────────────────── */
@@ -181,19 +181,19 @@
.smd-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
gap: var(--space-1-5);
margin-bottom: var(--space-2);
}
.smd-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px 4px 4px;
gap: var(--space-1-5);
padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
border: 0.5px solid var(--color-border-medium);
border-radius: 20px;
border-radius: var(--radius-4xl);
background: var(--color-bg-hover);
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-heading);
}
@@ -222,7 +222,7 @@
/* ── Member group headings ───────────────────────────────────────────────────── */
.smd-group {
margin-top: 12px;
margin-top: var(--space-3);
}
.smd-group:first-child {
@@ -232,13 +232,13 @@
.smd-group-header {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
gap: var(--space-1-5);
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--color-text-subtle);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 6px;
margin-bottom: var(--space-1-5);
}
.smd-group-badge {
@@ -249,8 +249,8 @@
height: 18px;
padding: 0 5px;
border-radius: 9px;
font-size: 11px;
font-weight: 700;
font-size: var(--text-2xs);
font-weight: var(--weight-bold);
background: var(--color-bg-muted);
color: var(--color-text-subtle);
}
@@ -260,7 +260,7 @@
.smd-member-row {
display: flex;
align-items: center;
gap: 10px;
gap: var(--space-2-5);
padding: 7px 0;
}
@@ -271,10 +271,10 @@
}
.smd-member-role-select {
font-size: 13px;
padding: 4px 8px;
font-size: var(--text-sm);
padding: var(--space-1) var(--space-2);
border: 0.5px solid var(--color-border);
border-radius: 6px;
border-radius: var(--radius-md);
background: var(--color-bg-hover);
color: var(--color-text-heading);
cursor: pointer;
@@ -291,7 +291,7 @@
background: none;
cursor: pointer;
color: var(--color-text-faint);
border-radius: 6px;
border-radius: var(--radius-md);
padding: 0;
transition:
background 0.1s,
@@ -309,10 +309,10 @@
/* ── Fallback when user-directory is unavailable ────────────────────────────── */
.smd-directory-unavailable {
font-size: 13px;
font-size: var(--text-sm);
color: var(--color-text-faint);
font-style: italic;
padding: 4px 0 8px;
padding: var(--space-1) 0 var(--space-2);
}
/* ── Link rows ───────────────────────────────────────────────────────────────── */
@@ -320,8 +320,8 @@
.smd-link-row {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
gap: var(--space-2-5);
padding: var(--space-2) 0;
}
.smd-link-icon {
@@ -335,7 +335,7 @@
justify-content: center;
color: var(--color-text-subtle);
flex-shrink: 0;
font-size: 14px;
font-size: var(--text-base);
}
.smd-link-info {
@@ -346,7 +346,7 @@
.smd-link-name {
flex: 1;
min-width: 0;
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-heading);
overflow: hidden;
text-overflow: ellipsis;
@@ -355,15 +355,15 @@
.smd-link-tags {
display: flex;
gap: 6px;
gap: var(--space-1-5);
margin-top: 3px;
flex-wrap: wrap;
}
.smd-link-tag {
font-size: 11px;
padding: 2px 6px;
border-radius: 4px;
font-size: var(--text-2xs);
padding: var(--space-0-5) var(--space-1-5);
border-radius: var(--radius-sm);
background: var(--color-bg-muted);
color: var(--color-text-subtle);
border: 0.5px solid var(--color-border);
@@ -372,37 +372,37 @@
.smd-link-actions {
display: flex;
gap: 2px;
gap: var(--space-0-5);
flex-shrink: 0;
}
/* ── Inline edit sub-panel ───────────────────────────────────────────────────── */
.smd-edit-panel {
margin: 4px 0 8px 42px;
padding: 12px;
margin: var(--space-1) 0 var(--space-2) 42px;
padding: var(--space-3);
background: var(--color-bg-hover);
border: 0.5px solid var(--color-border);
border-radius: 8px;
border-radius: var(--radius-lg);
display: flex;
flex-direction: column;
gap: 10px;
gap: var(--space-2-5);
}
.smd-edit-panel label {
font-size: 13px;
font-weight: 500;
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--color-text-secondary);
display: block;
margin-bottom: 4px;
margin-bottom: var(--space-1);
}
.smd-edit-input {
width: 100%;
padding: 8px 10px;
font-size: 13px;
padding: var(--space-2) var(--space-2-5);
font-size: var(--text-sm);
border: 1px solid var(--color-border);
border-radius: 6px;
border-radius: var(--radius-md);
background: var(--color-bg-surface);
color: var(--color-text-heading);
outline: none;
@@ -418,7 +418,7 @@
.smd-edit-panel-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
gap: var(--space-2);
}
/* ── New-link creation button + form ─────────────────────────────────────────── */
@@ -427,15 +427,15 @@
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
gap: var(--space-2);
width: 100%;
padding: 10px;
margin-top: 8px;
font-size: 13px;
padding: var(--space-2-5);
margin-top: var(--space-2);
font-size: var(--text-sm);
color: var(--color-text-subtle);
background: none;
border: 1.5px dashed var(--color-border-medium);
border-radius: 8px;
border-radius: var(--radius-lg);
cursor: pointer;
transition:
background 0.15s,
@@ -454,8 +454,8 @@
.smd-pw-toggle {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
gap: var(--space-2);
font-size: var(--text-sm);
color: var(--color-text-secondary);
cursor: pointer;
user-select: none;
@@ -472,7 +472,7 @@
border-radius: 50%;
animation: smdSpin 0.6s linear infinite;
vertical-align: middle;
margin-left: 6px;
margin-left: var(--space-1-5);
}
@keyframes smdSpin {
@@ -500,10 +500,10 @@
gap: 5px;
width: 100%;
box-sizing: border-box;
padding: 4px 8px;
font-size: 14px;
padding: var(--space-1) var(--space-2);
font-size: var(--text-base);
border: 1px dashed var(--color-border-medium);
border-radius: 6px;
border-radius: var(--radius-md);
background: transparent;
color: var(--color-text-faint);
cursor: pointer;
@@ -534,8 +534,8 @@
}
.smd-expiry-chip-clear {
font-size: 13px;
line-height: 1;
font-size: var(--text-sm);
line-height: var(--leading-none);
color: var(--color-text-faint);
margin-left: auto;
padding: 0;
@@ -549,10 +549,10 @@
.smd-expiry-date-input {
width: 100%;
box-sizing: border-box;
padding: 4px 8px;
font-size: 12px;
padding: var(--space-1) var(--space-2);
font-size: var(--text-xs);
border: 1px solid var(--color-accent);
border-radius: 6px;
border-radius: var(--radius-md);
background: var(--color-bg-surface);
color: var(--color-text-heading);
outline: none;
@@ -563,6 +563,6 @@
Add button (both use padding: 9px, font-size: 13px). */
.smd-search-row .smd-expiry-chip,
.smd-search-row .smd-expiry-date-input {
padding: 9px 10px;
font-size: 13px;
padding: 9px var(--space-2-5);
font-size: var(--text-sm);
}
+93
View File
@@ -0,0 +1,93 @@
/* ============================================================
* Reusable loading-skeleton primitive.
*
* A `.skeleton` element pulses; modifiers shape it into lines,
* list rows (mirroring the file-list grid), or grid tiles. Used to
* hold layout during first load instead of a centred spinner that
* makes the list flash empty. Honors reduced-motion via the global
* guard in base/a11y.css.
*
* (shareModal's bespoke .smd-skeleton predates this and can migrate
* onto it when its loader is next touched.)
* ============================================================ */
.skeleton {
background: var(--color-bg-muted);
border-radius: var(--radius-md);
animation: skeletonPulse 1.4s ease-in-out infinite;
}
.skeleton-line {
height: 14px;
}
.skeleton-line--short {
width: 40%;
}
.skeleton-line--medium {
width: 65%;
}
.skeleton-line--full {
width: 100%;
}
/* A loading row shaped like a file-list row (inherits the list's grid
columns; falls back to icon + name + meta when used standalone). */
.skeleton-row {
display: grid;
grid-template-columns: var(--files-list-columns, 36px 1fr 90px);
column-gap: var(--space-3);
align-items: center;
padding: var(--space-3) 15px;
border-bottom: 1px solid var(--color-border-xfaint);
}
/* A square loading tile for the photo/file grid. */
.skeleton-tile {
aspect-ratio: 1;
width: 100%;
border-radius: var(--radius-lg);
}
/* File-grid loading card — mirrors the real grid card (4:3 thumbnail tile +
name line + meta line). The card frame itself doesn't pulse; its inner
`.skeleton` elements do. Dropped straight into `.files-grid-view`. */
.skeleton-card {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: var(--space-4);
border: 2px solid var(--color-border);
border-radius: var(--radius-2xl);
}
.skeleton-card .skeleton-thumb {
width: 100%;
aspect-ratio: 4 / 3;
border-radius: var(--radius-lg);
margin-bottom: var(--space-2);
}
.skeleton-card .skeleton-line {
align-self: center;
}
/* Small leading icon block for list-row skeletons. */
.skeleton-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-md);
}
@keyframes skeletonPulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
+43 -18
View File
@@ -4,8 +4,8 @@
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80px 20px;
gap: 16px;
padding: var(--space-20) var(--space-5);
gap: var(--space-4);
grid-column: 1 / -1;
}
@@ -18,36 +18,61 @@
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* @keyframes spin → base/animations.css (canonical, loaded via main.css). */
.files-loading-spinner span {
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-placeholder);
font-weight: 500;
font-weight: var(--weight-medium);
}
/* Full-area drop overlay. Hidden by default; shown over the content region
(right of the sidebar) while files are dragged into the Files section
(toggled in ui.js). Frosted backdrop + dashed border = a clear "drop here"
affordance instead of a small inline box. */
.dropzone {
border: 2px dashed var(--color-border-ddd);
border-radius: 8px;
padding: 20px;
position: fixed;
top: var(--space-4);
right: var(--space-4);
bottom: var(--space-4);
left: calc(var(--sidebar-width) + var(--space-4));
z-index: var(--z-overlay);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-4);
border: 3px dashed var(--color-border-medium);
border-radius: var(--radius-3xl);
background: var(--color-scrim-control);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
color: var(--color-text-secondary);
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
text-align: center;
margin: 20px 0;
color: var(--color-text-medium);
display: block;
}
/* Children don't catch pointer events, so moving over the icon/text doesn't
fire dragleave on the overlay (avoids show/hide flicker). */
.dropzone > * {
pointer-events: none;
}
.dropzone-icon {
font-size: 32px;
margin-bottom: 10px;
font-size: var(--text-6xl);
color: var(--color-accent);
}
.dropzone.active {
border-color: var(--color-accent);
background-color: var(--color-accent-ring-xs);
color: var(--color-accent-text);
}
@media (max-width: 768px) {
.dropzone {
left: var(--space-4);
}
}
.upload-progress {
+8 -8
View File
@@ -32,13 +32,13 @@
position: fixed;
min-width: 0;
max-width: 280px;
padding: 6px 10px;
padding: var(--space-1-5) var(--space-2-5);
background-color: var(--color-text);
color: var(--color-bg-page);
font-size: 12px;
line-height: 1.5;
font-size: var(--text-xs);
line-height: var(--leading-normal);
text-align: left;
border-radius: 6px;
border-radius: var(--radius-md);
box-shadow: 0 2px 8px var(--color-shadow);
pointer-events: none;
opacity: 0;
@@ -76,13 +76,13 @@
so the count reads as meta-information, not just another line. */
.oxi-tooltip-popover__overflow {
display: inline-block;
margin-top: 4px;
margin-top: var(--space-1);
padding: 1px 7px;
font-size: 11px;
font-weight: 600;
font-size: var(--text-2xs);
font-weight: var(--weight-semibold);
color: var(--color-bg-page);
background-color: var(--color-text-faint);
border-radius: 9999px;
border-radius: var(--radius-full);
}
/* Placeholder line shown briefly between the first hover and the
+7 -7
View File
@@ -7,7 +7,7 @@
.upload-dropdown .btn-primary {
display: flex;
align-items: center;
gap: 6px;
gap: var(--space-1-5);
}
.upload-dropdown-menu {
@@ -17,7 +17,7 @@
left: 0;
min-width: 200px;
background: var(--color-bg-surface);
border-radius: 12px;
border-radius: var(--radius-2xl);
box-shadow: 0 8px 30px var(--color-shadow-md);
border: 1px solid var(--color-border);
z-index: 1000;
@@ -39,13 +39,13 @@
.upload-dropdown-item {
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
width: 100%;
padding: 12px 16px;
padding: var(--space-3) var(--space-4);
border: none;
background: none;
color: var(--color-text-dark);
font-size: 14px;
font-size: var(--text-base);
cursor: pointer;
transition: background 0.15s ease;
text-align: left;
@@ -71,6 +71,6 @@
}
.upload-caret {
margin-left: 4px;
font-size: 12px;
margin-left: var(--space-1);
font-size: var(--text-xs);
}
+44 -35
View File
@@ -5,27 +5,32 @@
.user-avatar-btn {
background: none;
border: 2px solid transparent;
border: none;
border-radius: 50%;
padding: 2px;
padding: 0;
cursor: pointer;
transition: all 0.25s ease;
transition: transform var(--motion-base) var(--ease-standard);
display: flex;
align-items: center;
justify-content: center;
}
/* Premium hover: ONE soft accent ring hugging the avatar + a gentle warm glow
+ a subtle pop — replaces the old heavy double halo (button border ring with
a gap + a second avatar ring). */
.user-avatar-btn:hover {
border-color: var(--color-accent-ring-xl);
transform: scale(1.05);
}
.user-avatar-btn:hover .user-vignette__avatar {
box-shadow: 0 0 0 2px var(--color-accent-ring-strong);
box-shadow:
0 0 0 3px var(--color-accent-ring),
0 3px 12px -2px var(--color-accent-shadow);
}
.user-menu-wrapper.open .user-avatar-btn {
border-color: var(--color-accent);
/* Menu open: a slightly firmer ring (same clean single-ring language). */
.user-menu-wrapper.open .user-avatar-btn .user-vignette__avatar {
box-shadow: 0 0 0 3px var(--color-accent-ring-strong);
}
/* ── Avatar vignette overrides ────────────────────────────────────────────── */
@@ -37,6 +42,9 @@
.user-avatar-btn .user-vignette__avatar {
letter-spacing: 0.5px;
user-select: none;
/* Animate the ring/glow smoothly in AND out (transition on the base, not
:hover). */
transition: box-shadow var(--motion-base) var(--ease-standard);
}
.user-menu-header .user-vignette__avatar {
@@ -52,7 +60,7 @@
left: auto;
width: 300px;
background: var(--color-bg-surface);
border-radius: 16px;
border-radius: var(--radius-3xl);
box-shadow:
0 12px 40px var(--color-shadow-md),
0 0 0 1px var(--color-shadow-xs);
@@ -84,8 +92,8 @@
.user-menu-header {
display: flex;
align-items: center;
gap: 14px;
padding: 20px 20px 16px;
gap: var(--space-3-5);
padding: var(--space-5) var(--space-5) var(--space-4);
background: var(--color-user-menu-header-bg);
border-bottom: 1px solid var(--color-user-menu-header-border);
}
@@ -99,7 +107,7 @@
/* Increase name prominence relative to the base vignette style. */
.user-menu-header .user-vignette__name {
font-size: 15px;
font-weight: 600;
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
}
@@ -109,23 +117,23 @@
}
.user-menu-storage {
padding: 14px 20px;
padding: var(--space-3-5) var(--space-5);
}
.user-menu-storage-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
font-weight: 600;
gap: var(--space-2);
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--color-text-subtle);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
margin-bottom: var(--space-2);
}
.user-menu-storage-label i {
font-size: 11px;
font-size: var(--text-2xs);
color: var(--color-text-faint);
}
@@ -134,7 +142,7 @@
background: var(--color-border-light);
border-radius: 3px;
overflow: hidden;
margin-bottom: 6px;
margin-bottom: var(--space-1-5);
}
.user-menu-storage-fill {
@@ -153,25 +161,26 @@
.user-menu-divider {
height: 1px;
background: var(--color-border-light);
margin: 4px 0;
margin: var(--space-1) 0;
}
.user-menu-item {
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
width: 100%;
padding: 12px 20px;
padding: var(--space-3) var(--space-5);
border: none;
background: none;
color: var(--color-text-dark);
font-size: 14px;
font-size: var(--text-base);
cursor: pointer;
transition: background 0.15s ease;
text-align: left;
}
.user-menu-item:hover {
.user-menu-item:hover,
.user-menu-item:focus-visible {
background: var(--color-bg-hover);
}
@@ -200,9 +209,9 @@
display: inline-flex;
background: var(--color-bg-muted);
border: 1px solid var(--color-border);
border-radius: 999px;
padding: 2px;
gap: 2px;
border-radius: var(--radius-full);
padding: var(--space-0-5);
gap: var(--space-0-5);
}
.theme-segmented__opt {
@@ -214,9 +223,9 @@
border: none;
background: transparent;
color: var(--color-text-subtle);
border-radius: 999px;
border-radius: var(--radius-full);
cursor: pointer;
font-size: 11px;
font-size: var(--text-2xs);
padding: 0;
transition:
background 0.15s ease,
@@ -249,17 +258,17 @@
}
.user-menu-role-badge {
padding: 0 20px 4px;
padding: 0 var(--space-5) var(--space-1);
}
.role-badge {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 600;
padding: 2px 10px;
border-radius: 10px;
gap: var(--space-1);
font-size: var(--text-2xs);
font-weight: var(--weight-semibold);
padding: var(--space-0-5) var(--space-2-5);
border-radius: var(--radius-xl);
}
.role-badge-admin {
@@ -273,7 +282,7 @@
.user-menu-logout {
color: var(--color-danger-alt);
margin-bottom: 4px;
margin-bottom: var(--space-1);
}
.user-menu-logout i {
+8 -8
View File
@@ -16,7 +16,7 @@
.user-vignette {
display: inline-flex;
align-items: center;
gap: 6px;
gap: var(--space-1-5);
min-width: 0;
overflow: hidden;
}
@@ -32,7 +32,7 @@
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-weight: var(--weight-bold);
flex-shrink: 0;
/* Diameter comes from `--avatar-size`, declared per size variant on
the wrapper so the origin badge (a wrapper sibling or an avatar
@@ -50,7 +50,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
font-size: var(--text-base);
color: var(--color-text-secondary);
}
@@ -67,7 +67,7 @@
}
.user-vignette__email {
font-size: 12px;
font-size: var(--text-xs);
color: var(--color-text-faint);
overflow: hidden;
text-overflow: ellipsis;
@@ -102,14 +102,14 @@
--avatar-size: 36px;
}
.user-vignette--list .user-vignette__avatar {
font-size: 13px;
font-size: var(--text-sm);
}
.user-vignette--md {
--avatar-size: 32px;
}
.user-vignette--md .user-vignette__avatar {
font-size: 12px;
font-size: var(--text-xs);
}
.user-vignette--lg {
@@ -123,7 +123,7 @@
--avatar-size: 38px;
}
.user-vignette--menu .user-vignette__avatar {
font-size: 14px;
font-size: var(--text-base);
}
.user-vignette--xl {
@@ -220,7 +220,7 @@
.user-vignette__origin {
flex-shrink: 0;
line-height: 1;
line-height: var(--leading-none);
/* Default (sibling mode, with name): track the avatar's font-size
so the badge matches the row's text scale. The overlay mode
overrides this below with the explicit 30%-of-avatar-diameter