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:
+2
-1
@@ -35,7 +35,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="admin-container">
|
||||
<div class="admin-container" role="main">
|
||||
<h1 class="sr-only" data-i18n="user_menu.admin_panel">Admin panel</h1>
|
||||
<div id="loading"><i class="fas fa-circle-notch"></i> <span data-i18n="admin.loading">Loading…</span></div>
|
||||
<div id="access-denied">
|
||||
<div class="access-icon"><i class="fas fa-lock"></i></div>
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
/* ============================================================
|
||||
* Accessibility baseline — keyboard focus.
|
||||
*
|
||||
* Pointer / programmatic focus stays ring-free (no "ring on every
|
||||
* click" noise); KEYBOARD focus (:focus-visible) always gets a clear
|
||||
* accent ring. Every interactive element inherits this automatically,
|
||||
* so components only need their own :focus-visible rule when they want
|
||||
* a custom ring — and must never strip it for keyboard users.
|
||||
*
|
||||
* The outline follows the element's border-radius in modern browsers,
|
||||
* so rounded controls get a rounded ring for free.
|
||||
* ============================================================ */
|
||||
|
||||
:focus:not(:focus-visible) {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--color-focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Skip link — visually hidden until focused, then slides in at top-left.
|
||||
Lets keyboard users jump straight to <main id="main">. */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: var(--space-2);
|
||||
left: var(--space-2);
|
||||
z-index: var(--z-max);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
background: var(--color-bg-surface);
|
||||
color: var(--color-text);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
transform: translateY(-150%);
|
||||
transition: transform var(--motion-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* ── prefers-reduced-motion ──────────────────────────────────
|
||||
Vestibular safety: near-instant transitions/animations and no
|
||||
smooth scroll for users who ask the OS to reduce motion. */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── prefers-contrast: more ──────────────────────────────────
|
||||
Collapse the muted text tiers up to the stronger secondary tier and
|
||||
thicken the focus ring. The high-contrast border ramp (raw colour) lives
|
||||
in base/variables.css — the token layer — so this file stays hex-free. */
|
||||
@media (prefers-contrast: more) {
|
||||
:root {
|
||||
--color-text-muted: var(--color-text-secondary);
|
||||
--color-text-subtle: var(--color-text-secondary);
|
||||
--color-text-faint: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline-width: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── forced-colors (Windows High Contrast) ───────────────────
|
||||
Custom colors are overridden by the OS; ensure the keyboard
|
||||
focus ring uses a real system colour. */
|
||||
@media (forced-colors: active) {
|
||||
:focus-visible {
|
||||
outline-color: Highlight;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Global error-boundary toast (js/core/errorBoundary.js) ─── */
|
||||
.error-toast {
|
||||
position: fixed;
|
||||
bottom: var(--space-5);
|
||||
left: 50%;
|
||||
z-index: var(--z-toast);
|
||||
max-width: min(90vw, 420px);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--color-error-bg);
|
||||
color: var(--color-error-text);
|
||||
border: 1px solid var(--color-badge-error-border);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-lg);
|
||||
font-size: var(--text-sm);
|
||||
transform: translate(-50%, calc(100% + var(--space-5)));
|
||||
transition: transform var(--motion-base) var(--ease-standard);
|
||||
}
|
||||
|
||||
.error-toast.is-visible {
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
/* ── Print: drop the app chrome, show clean content ────────── */
|
||||
@media print {
|
||||
.sidebar,
|
||||
.sidebar-overlay,
|
||||
.top-bar,
|
||||
.actions-bar,
|
||||
.page-sticky-header,
|
||||
.cmdk-overlay,
|
||||
.skip-link,
|
||||
.error-toast {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.content-area,
|
||||
.main-content {
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
* {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Touch targets ───────────────────────────────────────────
|
||||
≥44px hit areas for the key controls on touch/phone widths. */
|
||||
@media (max-width: 768px) {
|
||||
.sidebar-toggle,
|
||||
.search-toggle-btn,
|
||||
.search-back-btn,
|
||||
.notif-bell-btn,
|
||||
.user-avatar-btn {
|
||||
min-width: 44px;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.files-list-view .file-item {
|
||||
min-height: 48px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/* ============================================================
|
||||
* Canonical keyframes — single source for shared animations.
|
||||
*
|
||||
* Loaded early via main.css so every component and view reuses
|
||||
* these by name instead of redefining them. This file replaced
|
||||
* 6 duplicate `@keyframes spin` definitions (spinner / admin /
|
||||
* music / photos / profile / share-public).
|
||||
*
|
||||
* NOTE: `oxi-spin` (icons.css) and `smdSpin` (shareModal.css) are
|
||||
* still defined locally — folding them in needs touching their
|
||||
* `animation-name` consumers, deferred to Fase 1.
|
||||
* ============================================================ */
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@@ -4,18 +4,18 @@
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--space-2);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group textarea {
|
||||
width: 100%;
|
||||
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);
|
||||
}
|
||||
|
||||
.form-group textarea {
|
||||
@@ -24,11 +24,11 @@
|
||||
}
|
||||
|
||||
.button {
|
||||
padding: 8px 16px;
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
/* Honor the user's browser font-size / zoom preference (rem-relative). */
|
||||
html {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
height: 100vh; /* fallback for browsers without dvh */
|
||||
height: 100dvh;
|
||||
font-size: var(--text-base);
|
||||
line-height: var(--leading-normal);
|
||||
background-color: var(--color-bg-page);
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -24,3 +32,26 @@ html[dir="rtl"] .fa-sign-out-alt {
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Brand-tinted text selection + caret. */
|
||||
::selection {
|
||||
background: var(--color-accent-ring-strong);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
:root {
|
||||
caret-color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* Visually hidden but exposed to assistive tech (a11y-only labels/headings). */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* ============================================================
|
||||
* Typography utilities — Fase 0 foundations.
|
||||
*
|
||||
* Semantic heading roles DECOUPLED from element level, so any
|
||||
* h1–h6 can carry the correct visual weight while the document
|
||||
* keeps a correct, accessible heading order. All values route
|
||||
* through the type/leading/weight/tracking tokens in variables.css.
|
||||
*
|
||||
* Views are migrated onto these classes in Fase 1 (replacing the
|
||||
* per-page raw font-size/weight headings the audit flagged).
|
||||
* ============================================================ */
|
||||
|
||||
/* Page title — one per page (the h1 role). */
|
||||
.heading-page {
|
||||
font-size: var(--text-2xl);
|
||||
line-height: var(--leading-tight);
|
||||
font-weight: var(--weight-bold);
|
||||
letter-spacing: var(--tracking-tight);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
/* Section heading. */
|
||||
.heading-section {
|
||||
font-size: var(--text-xl);
|
||||
line-height: var(--leading-snug);
|
||||
font-weight: var(--weight-semibold);
|
||||
letter-spacing: var(--tracking-tight);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
/* Card / panel heading. */
|
||||
.heading-card {
|
||||
font-size: var(--text-md);
|
||||
line-height: var(--leading-snug);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
/* Eyebrow / overline label (uppercase caps with tracking). */
|
||||
.heading-eyebrow {
|
||||
font-size: var(--text-xs);
|
||||
line-height: var(--leading-normal);
|
||||
font-weight: var(--weight-semibold);
|
||||
letter-spacing: var(--tracking-widest);
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* Constrain running text to a comfortable measure (~65ch). */
|
||||
.prose {
|
||||
max-width: var(--measure-prose);
|
||||
}
|
||||
|
||||
/* Headings wrap with balanced line lengths (no single orphan word). */
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
.heading-page,
|
||||
.heading-section,
|
||||
.heading-card,
|
||||
.page-title {
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
/* Running prose wraps "pretty" (avoids orphans and short last lines). */
|
||||
.prose,
|
||||
.empty-state p,
|
||||
.about-description,
|
||||
.auth-subtitle,
|
||||
.auth-hint,
|
||||
.language-subtitle {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
/* Tabular figures for numeric UI so digits align and don't jitter as they
|
||||
change (storage readouts, badges, stat counters). */
|
||||
.storage-info,
|
||||
.user-menu-storage-text,
|
||||
.notif-badge,
|
||||
.stat-value {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
+315
-95
@@ -22,7 +22,177 @@
|
||||
/* Default: follow the OS preference. Overridden by html[data-color-scheme]. */
|
||||
color-scheme: light dark;
|
||||
|
||||
--sidebar-width: 250px;
|
||||
/* ════════════════════════════════════════════════════════════════
|
||||
* NON-COLOR DESIGN SCALES (Fase 0 — fundamentos)
|
||||
*
|
||||
* Single source of truth for spacing, radius, typography, z-index,
|
||||
* motion, elevation, breakpoints and density. Components are migrated
|
||||
* onto these in Fase 1; until then raw px still coexist. Do NOT add
|
||||
* raw px for spacing/radius/font-size in new code — consume a token.
|
||||
* ════════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* ── Layout shell ──────────────────────────────────────────── */
|
||||
/* Fluid sidebar: tracks viewport but clamped to a sane band. */
|
||||
--sidebar-width: clamp(220px, 18vw, 280px);
|
||||
--sidebar-width-min: 200px; /* resizable rail floor (Fase 1) */
|
||||
--sidebar-width-max: 320px; /* resizable rail ceiling (Fase 1) */
|
||||
--sidebar-width-collapsed: 72px; /* icon-rail mode (Fase 1) */
|
||||
--gutter: var(--space-6); /* shared topbar/content horizontal gutter (drops to 16px on phones) */
|
||||
--grid-card-min: 200px; /* min width of a grid card (tightens on phones) */
|
||||
|
||||
/* ── Spacing — 4px grid ────────────────────────────────────── */
|
||||
/* Direct steps are multiples of 4; half-steps (0-5/1-5/2-5/3-5)
|
||||
* cover the high-frequency 2/6/10/14px raw values found in audit. */
|
||||
--space-0: 0;
|
||||
--space-px: 1px;
|
||||
--space-0-5: 2px;
|
||||
--space-1: 4px;
|
||||
--space-1-5: 6px;
|
||||
--space-2: 8px;
|
||||
--space-2-5: 10px;
|
||||
--space-3: 12px;
|
||||
--space-3-5: 14px;
|
||||
--space-4: 16px;
|
||||
--space-5: 20px;
|
||||
--space-6: 24px;
|
||||
--space-7: 28px;
|
||||
--space-8: 32px;
|
||||
--space-9: 36px;
|
||||
--space-10: 40px;
|
||||
--space-11: 44px;
|
||||
--space-12: 48px;
|
||||
--space-14: 56px;
|
||||
--space-16: 64px;
|
||||
--space-20: 80px;
|
||||
--space-24: 96px;
|
||||
|
||||
/* ── Radius ─────────────────────────────────────────────────── */
|
||||
--radius-none: 0;
|
||||
--radius-xs: 2px;
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 6px;
|
||||
--radius-lg: 8px;
|
||||
--radius-xl: 10px;
|
||||
--radius-2xl: 12px;
|
||||
--radius-3xl: 16px;
|
||||
--radius-4xl: 20px;
|
||||
--radius-full: 9999px;
|
||||
/* Semantic default — resolves the legacy `var(--radius, 12px)` fallbacks
|
||||
* in share-public.css / device-verify.css (token was never defined). */
|
||||
--radius: var(--radius-2xl);
|
||||
|
||||
/* ── Typography ────────────────────────────────────────────── */
|
||||
/* Font families (single source — reset.css `*` consumes --font-sans). */
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
||||
|
||||
/* Modular size scale in rem (root = 16px) so it honors user zoom.
|
||||
* --text-base (14px) is the app body default. */
|
||||
--text-2xs: 0.6875rem; /* 11px */
|
||||
--text-xs: 0.75rem; /* 12px */
|
||||
--text-sm: 0.8125rem; /* 13px */
|
||||
--text-base: 0.875rem; /* 14px */
|
||||
--text-md: 1rem; /* 16px */
|
||||
--text-lg: 1.125rem; /* 18px */
|
||||
--text-xl: 1.25rem; /* 20px */
|
||||
--text-2xl: 1.5rem; /* 24px */
|
||||
--text-3xl: 1.75rem; /* 28px */
|
||||
--text-4xl: 2rem; /* 32px */
|
||||
--text-5xl: 2.5rem; /* 40px */
|
||||
--text-6xl: 3rem; /* 48px */
|
||||
|
||||
/* Line-heights (leading) — unitless ratios. */
|
||||
--leading-none: 1;
|
||||
--leading-tight: 1.25;
|
||||
--leading-snug: 1.375;
|
||||
--leading-normal: 1.5;
|
||||
--leading-relaxed: 1.625;
|
||||
--leading-loose: 1.8;
|
||||
|
||||
/* Font weights — numeric only (no bold/normal keywords). */
|
||||
--weight-normal: 400;
|
||||
--weight-medium: 500;
|
||||
--weight-semibold: 600;
|
||||
--weight-bold: 700;
|
||||
--weight-extrabold: 800;
|
||||
|
||||
/* Letter-spacing (tracking) — em-relative. */
|
||||
--tracking-tighter: -0.02em;
|
||||
--tracking-tight: -0.01em;
|
||||
--tracking-normal: 0;
|
||||
--tracking-wide: 0.02em;
|
||||
--tracking-wider: 0.04em;
|
||||
--tracking-widest: 0.08em;
|
||||
|
||||
/* Prose measure — comfortable line length for running text. */
|
||||
--measure-prose: 65ch;
|
||||
|
||||
/* Icon glyph sizing — separate axis from the text scale. */
|
||||
--icon-xs: 12px;
|
||||
--icon-sm: 14px;
|
||||
--icon-md: 16px;
|
||||
--icon-lg: 20px;
|
||||
--icon-xl: 24px;
|
||||
|
||||
/* ── Z-index — semantic stacking layers ────────────────────── */
|
||||
/* Gaps left between layers so new surfaces slot in without renumber. */
|
||||
--z-below: -1;
|
||||
--z-base: 0;
|
||||
--z-raised: 10;
|
||||
--z-sticky: 100;
|
||||
--z-dropdown: 1000;
|
||||
--z-overlay: 2000;
|
||||
--z-drawer: 2500;
|
||||
--z-modal: 3000;
|
||||
--z-popover: 3500;
|
||||
--z-toast: 4000;
|
||||
--z-tooltip: 5000;
|
||||
--z-notification: 6000;
|
||||
--z-max: 9999;
|
||||
|
||||
/* ── Motion — durations + easing curves ────────────────────── */
|
||||
--motion-instant: 0ms;
|
||||
--motion-fast: 120ms;
|
||||
--motion-base: 160ms;
|
||||
--motion-moderate: 200ms;
|
||||
--motion-slow: 300ms;
|
||||
--motion-slower: 500ms;
|
||||
--motion-spinner: 1s;
|
||||
--spin-duration: var(--motion-spinner);
|
||||
/* Decelerate is the default for entrances / positive feedback. */
|
||||
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
||||
--ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
|
||||
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
||||
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
||||
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
/* ── Elevation — composed box-shadow recipes ───────────────── */
|
||||
/* Full recipes (not bare alphas) layered on the --color-shadow-*
|
||||
* alpha tokens below, so they adapt to light/dark automatically. */
|
||||
--shadow-xs: 0 1px 2px var(--color-shadow-xs);
|
||||
--shadow-sm: 0 1px 3px var(--color-shadow-sm), 0 1px 2px var(--color-shadow-xs);
|
||||
--shadow-md: 0 4px 6px var(--color-shadow-sm), 0 2px 4px var(--color-shadow-xs);
|
||||
--shadow-lg: 0 10px 15px var(--color-shadow-md), 0 4px 6px var(--color-shadow-sm);
|
||||
--shadow-xl: 0 20px 25px var(--color-shadow-md), 0 8px 10px var(--color-shadow-sm);
|
||||
--shadow-2xl: 0 25px 50px var(--color-shadow-lg);
|
||||
|
||||
/* ── Breakpoints (reference tokens) ────────────────────────── */
|
||||
/* NOTE: @media cannot consume custom properties. These are the canonical
|
||||
* values for JS (matchMedia) and documentation; consuming them in @media
|
||||
* needs @custom-media via a postcss build step — pending dep approval. */
|
||||
--bp-xs: 480px;
|
||||
--bp-sm: 640px;
|
||||
--bp-md: 768px;
|
||||
--bp-lg: 1024px;
|
||||
--bp-xl: 1280px;
|
||||
|
||||
/* ── Density — comfortable (default) vs compact ────────────── */
|
||||
/* Gated by html[data-density="compact"] below. Consumed by list rows
|
||||
* and controls in Fase 1. */
|
||||
--density-row-py: var(--space-3); /* 12px */
|
||||
--density-row-px: var(--space-3-5); /* 14px */
|
||||
--density-gap: var(--space-3);
|
||||
--density-control-h: 40px;
|
||||
|
||||
/* Backgrounds */
|
||||
--color-bg-page: light-dark(#f5f7fa, #0f172a);
|
||||
@@ -44,25 +214,41 @@
|
||||
--color-border-xfaint: light-dark(#f0f0f0, #1e293b);
|
||||
--color-border-ddd: light-dark(#ddd, #334155);
|
||||
|
||||
/* Text */
|
||||
--color-text: light-dark(#2d3748, #e2e8f0);
|
||||
--color-text-heading: light-dark(#1e293b, #f1f5f9);
|
||||
--color-text-muted: light-dark(#718096, #94a3b8);
|
||||
--color-text-faint: light-dark(#94a3b8, #7a8a9f);
|
||||
--color-text-secondary: light-dark(#4a5568, #cbd5e1);
|
||||
--color-text-subtle: light-dark(#64748b, #94a3b8);
|
||||
--color-text-dark: light-dark(#334155, #cbd5e1);
|
||||
--color-text-placeholder: light-dark(#a0aec0, #64748b);
|
||||
--color-text-gray: light-dark(#6c757d, #94a3b8);
|
||||
--color-text-medium: light-dark(#666, #94a3b8);
|
||||
--color-text-faint2: light-dark(#888, #64748b);
|
||||
--color-text-light: light-dark(#999, #64748b);
|
||||
--color-text-black: light-dark(#333, #e2e8f0);
|
||||
--color-text-dim: light-dark(#555, #94a3b8);
|
||||
/* Text — collapsed to a few AA-passing tiers; every legacy name is kept as
|
||||
* an alias so no consumer breaks (migration to the canonical names → Fase 1).
|
||||
* Each tier clears WCAG AA 4.5:1 on #fff AND the page bg, light and dark. The
|
||||
* muted/faint/placeholder tiers used to FAIL (2.3–4.0:1) and are now darkened. */
|
||||
--color-text: light-dark(#2d3748, #e2e8f0); /* primary body */
|
||||
--color-text-heading: light-dark(#1e293b, #f1f5f9); /* headings */
|
||||
--color-text-secondary: light-dark(#475569, #cbd5e1); /* strong secondary */
|
||||
/* muted/subtle/faint converge: AA 4.5:1 on the grayish page/muted bgs AND
|
||||
* on the lighter dark hover bg leaves only a narrow passing window. */
|
||||
--color-text-muted: light-dark(#5e6a78, #9fadbe); /* muted */
|
||||
--color-text-subtle: light-dark(#5e6a78, #9fadbe); /* subtle */
|
||||
--color-text-faint: light-dark(#5e6a78, #9fadbe); /* faintest still-AA */
|
||||
/* legacy aliases → one of the tiers above */
|
||||
--color-text-dark: var(--color-text-secondary);
|
||||
--color-text-dim: var(--color-text-secondary);
|
||||
--color-text-black: var(--color-text);
|
||||
--color-text-gray: var(--color-text-muted);
|
||||
--color-text-medium: var(--color-text-muted);
|
||||
--color-text-faint2: var(--color-text-faint);
|
||||
--color-text-light: var(--color-text-faint);
|
||||
--color-text-placeholder: var(--color-text-faint);
|
||||
|
||||
/* Accent (orange) — mostly mode-agnostic. */
|
||||
--color-accent: #ff5e3a;
|
||||
--color-accent-hover: light-dark(#e04520, #ff7a5c);
|
||||
/* AA-compliant accent for TEXT/LINKS: bare #ff5e3a only reaches 3.04:1 on
|
||||
* white. Link/toggle-link consumers migrate onto this in Fase 2. */
|
||||
--color-accent-text: light-dark(#cc3a16, #ff8a5c);
|
||||
/* Solid foreground on accent fills (replaces reusing --color-danger-text). */
|
||||
--color-on-accent: #ffffff;
|
||||
/* Canonical keyboard focus-ring color (applied globally in Fase 2). */
|
||||
--color-focus-ring: #ff5e3a;
|
||||
/* Canonical logo gradient — unifies the divergent sidebar (#ff5e3a→#ff8a5c)
|
||||
* vs accent (#ff5e3a→#ff2d55) logo fills. Consumers migrate in Fase 1. */
|
||||
--color-logo-gradient: linear-gradient(135deg, #ff5e3a 0%, #ff8a5c 100%);
|
||||
--color-accent-gradient: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
|
||||
--color-accent-shadow: rgba(255, 94, 58, 0.3);
|
||||
--color-accent-ring: light-dark(rgba(255, 94, 58, 0.1), rgba(255, 94, 58, 0.15));
|
||||
@@ -75,69 +261,97 @@
|
||||
--color-accent-ring-strong: rgba(255, 94, 58, 0.2);
|
||||
--color-accent-ring-xl: rgba(255, 94, 58, 0.4);
|
||||
--color-accent-ring-xs: rgba(255, 94, 58, 0.05);
|
||||
--color-accent-glow: rgba(255, 94, 58, 0.2);
|
||||
--color-accent-glow-soft: rgba(255, 94, 58, 0.1);
|
||||
|
||||
/* Feedback */
|
||||
/* Ambient brand backdrop — shared by the external surfaces (login / share /
|
||||
device). A centred "spotlight" (surface is brighter than page in BOTH
|
||||
light and dark) seats the card in a pool of light; four warm brand blobs
|
||||
fill the field so it reads as a deliberate, dimensional canvas rather than
|
||||
flat near-white. Resolves through light-dark() automatically. */
|
||||
--brand-ambient:
|
||||
radial-gradient(55% 50% at 8% 4%, var(--color-accent-glow), transparent 60%),
|
||||
radial-gradient(55% 55% at 95% 98%, var(--color-accent-glow), transparent 58%),
|
||||
radial-gradient(48% 48% at 88% 12%, var(--color-accent-glow-soft), transparent 55%),
|
||||
radial-gradient(50% 45% at 6% 92%, var(--color-accent-glow-soft), transparent 55%),
|
||||
radial-gradient(78% 64% at 50% 33%, var(--color-bg-surface), transparent 70%),
|
||||
var(--color-bg-page);
|
||||
/* Desaturated fractal-noise grain — kills gradient banding and adds a
|
||||
tactile, "expensive" film. No colour inside the data-URI (token-safe);
|
||||
applied via a low-opacity overlay pseudo-element. */
|
||||
--brand-grain: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23g)'/></svg>");
|
||||
|
||||
/* Feedback — success unified to one restrained emerald; the 6 green variants
|
||||
* now alias the canonical bg/text. (error-* is the danger tint, kept.) */
|
||||
--color-error-bg: light-dark(#fee2e2, #3b1111);
|
||||
--color-error-text: light-dark(#b91c1c, #fca5a5);
|
||||
--color-success-bg: light-dark(#dcfce7, #052e16);
|
||||
--color-success-text: light-dark(#15803d, #86efac);
|
||||
--color-success-border: #48bb78;
|
||||
--color-success-alt: #34c759;
|
||||
--color-success-bg-alt: light-dark(#e6f4ea, #0a2015);
|
||||
--color-success-text-alt: #0d904f;
|
||||
--color-success-bg-green: light-dark(#e8f5e9, #0a2015);
|
||||
--color-success-text-green: #4eaa25;
|
||||
--color-success-border: #16a34a;
|
||||
--color-success-alt: #16a34a;
|
||||
--color-success-bg-alt: var(--color-success-bg);
|
||||
--color-success-text-alt: var(--color-success-text);
|
||||
--color-success-bg-green: var(--color-success-bg);
|
||||
--color-success-text-green: var(--color-success-text);
|
||||
|
||||
/* Dangerous actions */
|
||||
--color-danger-bg: #f56565;
|
||||
--color-danger-text: white;
|
||||
--color-danger-bg-hover: #e53e3e;
|
||||
/* Dangerous actions — unified on #ef4444 / #dc2626; danger text-alt now uses
|
||||
* the AA-passing error-text instead of a sub-4.5:1 red. */
|
||||
--color-danger-bg: #ef4444;
|
||||
--color-danger-text: #ffffff;
|
||||
--color-danger-bg-hover: #dc2626;
|
||||
--color-danger-alt: #ef4444;
|
||||
--color-danger-ring: rgba(239, 68, 68, 0.3);
|
||||
--color-danger-ring-lg: rgba(239, 68, 68, 0.4);
|
||||
--color-danger-light-bg: light-dark(#fef2f2, #2a0c0c);
|
||||
--color-danger-lighter: light-dark(#fef2f2, #2a0c0c);
|
||||
--color-danger-text-alt: #e53e3e;
|
||||
--color-danger-text-alt: var(--color-error-text);
|
||||
--color-danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
||||
|
||||
/* Warning/feedback */
|
||||
--color-warning-bg: light-dark(#ffeaa7, #3d2e00);
|
||||
--color-warning-bg-dark: light-dark(#fdcb6e, #5a4200);
|
||||
--color-warning-text: #ffc107;
|
||||
--color-warning-border: #ffc107;
|
||||
--color-warning-ring: rgba(255, 193, 7, 0.1);
|
||||
--color-warning-shadow: rgba(255, 193, 7, 0.5);
|
||||
--color-warning-orange-bg: light-dark(#fff3e0, #2a1c10);
|
||||
--color-warning-orange-border: #f57c00;
|
||||
--color-warning-orange-text: light-dark(#f57c00, #fb923c);
|
||||
--color-warning-bg-light: light-dark(#fef3c7, #2a2410);
|
||||
--color-warning-text-amber: light-dark(#f59e0b, #fbbf24);
|
||||
--color-warning-bg-orange: #fef3e2;
|
||||
--color-warning-text-orange: #d04423;
|
||||
/* Warning — unified to one restrained amber. Text tier (#b45309) clears AA;
|
||||
* the bright #ffc107 gold is replaced by amber-500 for borders/fills. Legacy
|
||||
* orange/amber variants alias the canonical tokens. */
|
||||
--color-warning-bg: light-dark(#fef3c7, #2a2410);
|
||||
--color-warning-text: light-dark(#b45309, #fbbf24);
|
||||
--color-warning-border: #f59e0b;
|
||||
--color-warning-bg-dark: light-dark(#fde68a, #3d2e00);
|
||||
--color-warning-ring: rgba(245, 158, 11, 0.12);
|
||||
--color-warning-shadow: rgba(245, 158, 11, 0.4);
|
||||
--color-warning-orange-bg: var(--color-warning-bg);
|
||||
--color-warning-orange-border: var(--color-warning-border);
|
||||
--color-warning-orange-text: var(--color-warning-text);
|
||||
--color-warning-bg-light: var(--color-warning-bg);
|
||||
--color-warning-text-amber: var(--color-warning-text);
|
||||
--color-warning-bg-orange: var(--color-warning-bg);
|
||||
--color-warning-text-orange: var(--color-warning-text);
|
||||
|
||||
/* Info */
|
||||
--color-info-bg: light-dark(#ebf5fb, #0c1e35);
|
||||
--color-info-border: #2b6cb0;
|
||||
--color-info-text: #2b6cb0;
|
||||
--color-info-bg-alt: light-dark(#e0ecff, #0c1e35);
|
||||
--color-info-text-alt: #3171d8;
|
||||
--color-info-surface: light-dark(#e0e7ff, #0c1e35);
|
||||
/* Info — unified to one blue (AA text #1d4ed8, with a light-dark dark tier).
|
||||
* Variants alias the canonical tokens. */
|
||||
--color-info-bg: light-dark(#eff6ff, #0c2d48);
|
||||
--color-info-text: light-dark(#1d4ed8, #93c5fd);
|
||||
--color-info-border: #3b82f6;
|
||||
--color-info-blue: #3b82f6;
|
||||
--color-info-bg-alt: var(--color-info-bg);
|
||||
--color-info-text-alt: var(--color-info-text);
|
||||
--color-info-surface: var(--color-info-bg);
|
||||
|
||||
/* Shadows — slightly stronger in dark mode for parity. */
|
||||
/* Shadows — stronger in dark mode for parity. Dark values form a
|
||||
* deliberate progression (base 0.3 < md 0.34 < lg 0.38) so elevation
|
||||
* levels stay perceptually distinct; they used to all collapse to 0.3. */
|
||||
--color-shadow: light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
|
||||
--color-shadow-lg: light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.3));
|
||||
--color-shadow-lg: light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38));
|
||||
--color-shadow-xs: rgba(0, 0, 0, 0.05);
|
||||
--color-shadow-sm: rgba(0, 0, 0, 0.08);
|
||||
--color-shadow-md: light-dark(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.3));
|
||||
--color-shadow-md: light-dark(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.34));
|
||||
--color-shadow-xl: rgba(0, 0, 0, 0.2);
|
||||
--color-shadow-2xl: rgba(0, 0, 0, 0.25);
|
||||
--color-shadow-3xl: rgba(0, 0, 0, 0.3);
|
||||
--color-shadow-4xl: rgba(0, 0, 0, 0.4);
|
||||
--color-shadow-5xl: rgba(0, 0, 0, 0.5);
|
||||
|
||||
/* Overlays — same in both modes; they sit on top of arbitrary content. */
|
||||
--color-overlay: rgba(0, 0, 0, 0.5);
|
||||
/* Frosted scrim behind overlay controls (favorite/kebab/checkbox) so they
|
||||
stay legible on top of any thumbnail, light or dark. */
|
||||
--color-scrim-control: light-dark(rgba(255, 255, 255, 0.92), rgba(15, 23, 42, 0.82));
|
||||
--color-overlay-light: rgba(0, 0, 0, 0.45);
|
||||
--color-overlay-heavy: rgba(0, 0, 0, 0.85);
|
||||
--color-overlay-darkest: rgba(0, 0, 0, 0.92);
|
||||
@@ -178,18 +392,20 @@
|
||||
--color-sidebar-shadow: rgba(255, 94, 58, 0.35);
|
||||
--color-sidebar-shadow-lg: rgba(255, 94, 58, 0.45);
|
||||
|
||||
/* Calendar dot colors */
|
||||
--color-cal-1: #ffa94d;
|
||||
--color-cal-2: #74b9ff;
|
||||
--color-cal-3: #81ecec;
|
||||
--color-cal-4: #ffd43b;
|
||||
--color-cal-5: #ff6b9d;
|
||||
--color-cal-6: #ff7675;
|
||||
--color-cal-7: #0984e3;
|
||||
--color-cal-8: #00cec9;
|
||||
--color-cal-9: #f0c800;
|
||||
--color-cal-10: #e84393;
|
||||
--color-cal-11: #e74c3c;
|
||||
/* Calendar dots — regenerated at fixed S=55% L=62%, hues evenly around the
|
||||
* wheel, so they read as one curated family (not confetti). These also tint
|
||||
* the sidebar nav icons (sidebar.css :nth-child rules). */
|
||||
--color-cal-1: #d36868;
|
||||
--color-cal-2: #d3a268;
|
||||
--color-cal-3: #c9d368;
|
||||
--color-cal-4: #8fd368;
|
||||
--color-cal-5: #68d37c;
|
||||
--color-cal-6: #68d3b6;
|
||||
--color-cal-7: #68b6d3;
|
||||
--color-cal-8: #687cd3;
|
||||
--color-cal-9: #8f68d3;
|
||||
--color-cal-10: #c968d3;
|
||||
--color-cal-11: #d368a2;
|
||||
|
||||
/* File type badge colors */
|
||||
--color-ft-html: #e34c26;
|
||||
@@ -274,17 +490,11 @@
|
||||
--color-lightbox-text-faint: rgba(255, 255, 255, 0.5);
|
||||
--color-lightbox-text-muted: rgba(255, 255, 255, 0.7);
|
||||
|
||||
/* Purple/special */
|
||||
--color-purple-bg: light-dark(#f3e8ff, #1a0a33);
|
||||
--color-purple-border: #7c3aed;
|
||||
--color-purple-text: #7c3aed;
|
||||
--color-purple-bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 50%, #fce7f3 100%);
|
||||
--color-purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
|
||||
--color-purple-shadow: rgba(139, 92, 246, 0.35);
|
||||
--color-purple-border-light: rgba(139, 92, 246, 0.15);
|
||||
/* (Removed: the --color-purple-* family had zero consumers. The music
|
||||
* gradient and the video file-type purple are separate, retained tokens.) */
|
||||
|
||||
/* OIDC / auth */
|
||||
--color-oidc-bg: #4f46e5;
|
||||
--color-oidc-bg: var(--color-info-blue);
|
||||
--color-oidc-shadow: rgba(79, 70, 229, 0.3);
|
||||
--color-oidc-shadow-lg: rgba(79, 70, 229, 0.4);
|
||||
|
||||
@@ -300,22 +510,22 @@
|
||||
--color-content-muted: #888;
|
||||
--color-content-bg-warn: light-dark(#ffeaa7, #3d2e00);
|
||||
--color-content-bg-warn-dark: light-dark(#fdcb6e, #5a4200);
|
||||
--color-content-debug-bg: red;
|
||||
--color-content-debug-text: white;
|
||||
|
||||
/* User menu */
|
||||
--color-user-menu-header-bg: light-dark(linear-gradient(135deg, #fef5f3 0%, #fdf2f8 100%), linear-gradient(135deg, #1a2332 0%, #1e2940 100%));
|
||||
--color-user-menu-header-border: light-dark(#fce7e1, #3a2520);
|
||||
|
||||
/* Share dialog */
|
||||
--color-share-link-text: #1565c0;
|
||||
--color-share-link-hover: #1565c0;
|
||||
--color-share-link-text: var(--color-info-text);
|
||||
--color-share-link-hover: var(--color-info-text);
|
||||
--color-share-remove-text: #b71c1c;
|
||||
--color-share-owner-text: #757575;
|
||||
|
||||
/* Primary (style.css) */
|
||||
--color-primary: light-dark(#2563eb, #60a5fa);
|
||||
--color-primary-hover: light-dark(#1d4ed8, #6fa8ee);
|
||||
/* Demoted: orange is the sole brand/primary — primary now aliases the accent
|
||||
* (was a competing blue #2563eb). Flips device-verify / share / userMenu to brand. */
|
||||
--color-primary: var(--color-accent);
|
||||
--color-primary-hover: var(--color-accent-hover);
|
||||
|
||||
/* Recent view */
|
||||
--color-recent-muted: #6c757d;
|
||||
@@ -432,19 +642,8 @@
|
||||
/* Status badge — gray/disabled */
|
||||
--color-badge-gray: #d1d5db;
|
||||
|
||||
/* FIXME: legacy dark-mode badge tokens — kept for now; can be folded into
|
||||
* the main badges once their last consumers migrate. */
|
||||
--color-badge-success-dark-bg: #052e16;
|
||||
--color-badge-success-dark-border: #065f46;
|
||||
--color-badge-error-dark-bg: #3b1111;
|
||||
--color-badge-error-dark-bg-hover: #4a1515;
|
||||
--color-badge-error-dark-text: #fca5a5;
|
||||
--color-badge-warning-dark-bg: #422006;
|
||||
--color-badge-warning-dark-border: #92400e;
|
||||
--color-badge-indigo-dark-bg: #2e1065;
|
||||
--color-badge-indigo-dark-text: #c4b5fd;
|
||||
--color-badge-blue-dark-bg: #0c2d48;
|
||||
--color-badge-blue-dark-text: #93c5fd;
|
||||
/* (Removed: the legacy dark-mode badge tokens that lived here had zero
|
||||
* consumers — the light-dark() badge tokens above are the single source.) */
|
||||
|
||||
/* Dark structural */
|
||||
--color-dark-footer: #162032;
|
||||
@@ -460,8 +659,8 @@
|
||||
--color-music-background: var(--color-bg-surface);
|
||||
--color-music-public-bg: rgba(74, 144, 217, 0.12);
|
||||
|
||||
--color-video-play: white;
|
||||
--color-video-play-shadow: black;
|
||||
--color-video-play: #ffffff;
|
||||
--color-video-play-shadow: #000000;
|
||||
}
|
||||
|
||||
/* Explicit user choice overrides the OS preference. `theme-init.js` writes
|
||||
@@ -473,3 +672,24 @@ html[data-color-scheme="light"] {
|
||||
html[data-color-scheme="dark"] {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
/* Compact density — tighter rows/controls. Toggled by writing
|
||||
* data-density="compact" on <html>; consumed by list/control CSS in Fase 1. */
|
||||
html[data-density="compact"] {
|
||||
--density-row-py: var(--space-2); /* 8px */
|
||||
--density-row-px: var(--space-2-5); /* 10px */
|
||||
--density-gap: var(--space-2);
|
||||
--density-control-h: 32px;
|
||||
}
|
||||
|
||||
/* High-contrast border ramp (prefers-contrast: more). Lives here in the token
|
||||
* layer — the only place raw colour values belong — so the "no raw hex outside
|
||||
* variables/themes" invariant holds. The matching text-tier collapse + focus
|
||||
* ring (token/outline only) stay in base/a11y.css. */
|
||||
@media (prefers-contrast: more) {
|
||||
:root {
|
||||
--color-border: light-dark(#64748b, #94a3b8);
|
||||
--color-border-light: light-dark(#64748b, #94a3b8);
|
||||
--color-border-medium: light-dark(#475569, #cbd5e1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 +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);
|
||||
}
|
||||
|
||||
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Vendored
+93
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 +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);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -18,22 +18,40 @@
|
||||
/* Content area */
|
||||
.content-area {
|
||||
flex-grow: 1;
|
||||
padding: 20px;
|
||||
padding: var(--space-5) var(--gutter);
|
||||
overflow-y: scroll;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
/* Phones: tighten the shared gutter and let the actions bar wrap. */
|
||||
@media (max-width: 640px) {
|
||||
:root {
|
||||
--gutter: var(--space-4);
|
||||
}
|
||||
|
||||
/* Mobile uses overlay scrollbars — don't reserve a phantom gutter. */
|
||||
.content-area {
|
||||
scrollbar-gutter: auto;
|
||||
}
|
||||
|
||||
.actions-bar {
|
||||
flex-wrap: wrap;
|
||||
height: auto;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 20px;
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--weight-bold);
|
||||
margin-bottom: var(--space-5);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.page-sticky-header {
|
||||
position: sticky;
|
||||
margin: 0px;
|
||||
padding: 10px 0px;
|
||||
padding: var(--space-2-5) 0px;
|
||||
top: -20px; /* due to padding top of content-area */
|
||||
background-color: var(--color-bg-page);
|
||||
z-index: 100; /* ensure header is above image preview */
|
||||
@@ -42,15 +60,15 @@
|
||||
.actions-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0 0 12px;
|
||||
margin: 0 0 var(--space-3);
|
||||
height: 60px;
|
||||
padding: 10px;
|
||||
padding: var(--space-2-5);
|
||||
}
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
flex: auto;
|
||||
gap: 12px;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
@@ -58,14 +76,33 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-12) var(--space-6);
|
||||
text-align: center;
|
||||
color: var(--color-content-muted);
|
||||
color: var(--color-text-muted);
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
min-height: 320px;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.empty-state p {
|
||||
margin: 0;
|
||||
max-width: 42ch;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* First paragraph acts as the title. */
|
||||
.empty-state p:first-of-type {
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
/* Call-to-action button spacing. */
|
||||
.empty-state .btn {
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
/* invisible element, permits building of drag element without altering display */
|
||||
.drag-preview {
|
||||
position: absolute;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
height: 100%;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 2px 0 12px var(--color-shadow-md);
|
||||
transition: transform 0.3s ease;
|
||||
transition: transform var(--motion-slow) var(--ease-emphasized);
|
||||
}
|
||||
|
||||
/* Sidebar overlay for mobile */
|
||||
@@ -56,11 +56,11 @@
|
||||
}
|
||||
|
||||
.logo-container {
|
||||
padding: 22px 20px;
|
||||
padding: 22px var(--space-5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--color-sidebar-separator);
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: var(--space-2);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
@@ -69,18 +69,18 @@
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--color-sidebar-logo-gradient);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 12px;
|
||||
margin-right: var(--space-3);
|
||||
box-shadow: 0 3px 10px var(--color-sidebar-shadow);
|
||||
transition:
|
||||
transform 0.2s,
|
||||
box-shadow 0.2s;
|
||||
|
||||
[dir="rtl"] & {
|
||||
margin-left: 12px;
|
||||
margin-left: var(--space-3);
|
||||
margin-right: unset;
|
||||
}
|
||||
}
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
.app-name {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
font-weight: var(--weight-bold);
|
||||
color: var(--color-sidebar-text-active);
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
@@ -107,21 +107,28 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
padding: 8px 12px;
|
||||
gap: 2px;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
gap: var(--space-0-5);
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 11px 14px;
|
||||
border-radius: 10px;
|
||||
width: 100%;
|
||||
padding: 11px var(--space-3-5);
|
||||
border-radius: var(--radius-xl);
|
||||
cursor: pointer;
|
||||
color: var(--color-sidebar-text);
|
||||
font-size: 14.5px;
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
/* Button resets — .nav-item is a <button> (keyboard-operable nav). */
|
||||
font-family: inherit;
|
||||
text-align: left;
|
||||
appearance: none;
|
||||
background: none;
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
border: none;
|
||||
border-left: 3px solid transparent;
|
||||
|
||||
[dir="rtl"] & {
|
||||
@@ -139,7 +146,7 @@
|
||||
background-color: var(--color-sidebar-active-bg);
|
||||
color: var(--color-sidebar-text-active);
|
||||
border-left-color: var(--color-accent);
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
|
||||
[dir="rtl"] & {
|
||||
border-left-color: transparent;
|
||||
@@ -150,18 +157,18 @@
|
||||
.nav-item i,
|
||||
.nav-item .nav-icon,
|
||||
.nav-item .oxi-icon {
|
||||
margin-right: 14px;
|
||||
margin-right: var(--space-3-5);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
font-size: var(--text-md);
|
||||
transition:
|
||||
color 0.2s,
|
||||
transform 0.2s;
|
||||
flex-shrink: 0;
|
||||
|
||||
[dir="rtl"] & {
|
||||
margin-left: 14px;
|
||||
margin-left: var(--space-3-5);
|
||||
margin-right: unset;
|
||||
}
|
||||
}
|
||||
@@ -192,30 +199,14 @@
|
||||
color: var(--color-cal-6);
|
||||
} /* Trash - red */
|
||||
|
||||
.nav-item.active:nth-child(1) i,
|
||||
.nav-item.active:nth-child(1) .oxi-icon {
|
||||
/* Colourful icons at rest, but the ACTIVE item is always accent — one
|
||||
coherent active state instead of a colour that changes per item.
|
||||
Same specificity as the per-child rest rules, so source order (this comes
|
||||
after them) makes it win for the active item. */
|
||||
.nav-item.active i,
|
||||
.nav-item.active .oxi-icon {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
.nav-item.active:nth-child(2) i,
|
||||
.nav-item.active:nth-child(2) .oxi-icon {
|
||||
color: var(--color-cal-7);
|
||||
}
|
||||
.nav-item.active:nth-child(3) i,
|
||||
.nav-item.active:nth-child(3) .oxi-icon {
|
||||
color: var(--color-cal-8);
|
||||
}
|
||||
.nav-item.active:nth-child(4) i,
|
||||
.nav-item.active:nth-child(4) .oxi-icon {
|
||||
color: var(--color-cal-9);
|
||||
}
|
||||
.nav-item.active:nth-child(5) i,
|
||||
.nav-item.active:nth-child(5) .oxi-icon {
|
||||
color: var(--color-cal-10);
|
||||
}
|
||||
.nav-item.active:nth-child(6) i,
|
||||
.nav-item.active:nth-child(6) .oxi-icon {
|
||||
color: var(--color-cal-11);
|
||||
}
|
||||
|
||||
.nav-item:hover i,
|
||||
.nav-item:hover .oxi-icon {
|
||||
@@ -224,21 +215,21 @@
|
||||
|
||||
/* Storage indicator */
|
||||
.storage-container {
|
||||
margin: auto 12px 16px 12px;
|
||||
margin: auto var(--space-3) var(--space-4) var(--space-3);
|
||||
background: var(--color-sidebar-storage-bg);
|
||||
border: 1px solid var(--color-sidebar-storage-border);
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
border-radius: var(--radius-2xl);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.storage-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
margin-bottom: 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
gap: var(--space-1-5);
|
||||
margin-bottom: var(--space-3);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-sidebar-storage-text);
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
@@ -248,7 +239,7 @@
|
||||
background-color: var(--color-sidebar-storage-bar);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: var(--space-2-5);
|
||||
}
|
||||
|
||||
.storage-fill {
|
||||
@@ -263,5 +254,5 @@
|
||||
text-align: center;
|
||||
font-size: 11.5px;
|
||||
color: var(--color-sidebar-storage-faint);
|
||||
font-weight: 400;
|
||||
font-weight: var(--weight-normal);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 30px;
|
||||
padding: 0 var(--gutter);
|
||||
justify-content: space-between;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -25,14 +25,14 @@
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 10px;
|
||||
padding: var(--space-2-5);
|
||||
cursor: pointer;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
transition:
|
||||
background-color 0.2s,
|
||||
color 0.2s;
|
||||
margin-right: 12px;
|
||||
margin-right: var(--space-3);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
}
|
||||
|
||||
.sidebar-toggle i {
|
||||
font-size: 20px;
|
||||
font-size: var(--text-xl);
|
||||
}
|
||||
|
||||
/* Mobile search toggle button — hidden on desktop */
|
||||
@@ -50,11 +50,11 @@
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 10px;
|
||||
padding: var(--space-2-5);
|
||||
cursor: pointer;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: 8px;
|
||||
font-size: 18px;
|
||||
border-radius: var(--radius-lg);
|
||||
font-size: var(--text-lg);
|
||||
transition:
|
||||
background-color 0.2s,
|
||||
color 0.2s;
|
||||
@@ -70,11 +70,11 @@
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 10px;
|
||||
padding: var(--space-2-5);
|
||||
cursor: pointer;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: 8px;
|
||||
font-size: 18px;
|
||||
border-radius: var(--radius-lg);
|
||||
font-size: var(--text-lg);
|
||||
transition:
|
||||
background-color 0.2s,
|
||||
color 0.2s;
|
||||
@@ -92,13 +92,13 @@
|
||||
.search-slot {
|
||||
flex-grow: 1;
|
||||
max-width: 600px;
|
||||
margin-right: 20px;
|
||||
margin-right: var(--space-5);
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
[dir="rtl"] & {
|
||||
margin-left: 20px;
|
||||
margin-left: var(--space-5);
|
||||
margin-right: unset;
|
||||
}
|
||||
}
|
||||
@@ -112,11 +112,11 @@
|
||||
|
||||
.search-container input {
|
||||
width: 100%;
|
||||
padding: 12px 50px 12px 44px;
|
||||
border-radius: 12px;
|
||||
padding: var(--space-3) 50px var(--space-3) var(--space-11);
|
||||
border-radius: var(--radius-2xl);
|
||||
border: 2px solid var(--color-border);
|
||||
background-color: var(--color-bg-input);
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
height: 46px;
|
||||
color: var(--color-text-heading);
|
||||
transition: all 0.2s ease;
|
||||
@@ -144,7 +144,7 @@
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--color-text-placeholder);
|
||||
font-size: 16px;
|
||||
font-size: var(--text-md);
|
||||
pointer-events: none;
|
||||
transition: color 0.2s ease;
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
background: var(--color-accent-gradient);
|
||||
color: var(--color-danger-text);
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-xl);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
cursor: pointer;
|
||||
@@ -193,19 +193,19 @@
|
||||
}
|
||||
|
||||
.search-button i {
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
.user-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
/* Mobile responsive styles for top bar */
|
||||
@media (max-width: 768px) {
|
||||
.top-bar {
|
||||
padding: 0 16px;
|
||||
padding: 0 var(--space-4);
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
@@ -246,7 +246,7 @@
|
||||
}
|
||||
|
||||
.top-bar--search-active .search-container input {
|
||||
padding-left: 16px;
|
||||
padding-left: var(--space-4);
|
||||
}
|
||||
|
||||
.top-bar--search-active .sidebar-toggle,
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
@import url("./base/variables.css");
|
||||
|
||||
@import url("./base/reset.css");
|
||||
@import url("./base/typography.css");
|
||||
@import url("./base/animations.css");
|
||||
@import url("./base/a11y.css");
|
||||
@import url("./base/forms.css");
|
||||
|
||||
/* Layout */
|
||||
@@ -10,6 +13,7 @@
|
||||
@import url("./layout/content.css");
|
||||
|
||||
/* Components */
|
||||
@import url("./components/brandLogo.css");
|
||||
@import url("./components/breadcrumb.css");
|
||||
@import url("./components/buttons.css");
|
||||
@import url("./components/fileType.css");
|
||||
@@ -32,10 +36,12 @@
|
||||
@import url("./components/languageSelector.css");
|
||||
@import url("./components/batchToolbar.css");
|
||||
@import url("./components/spinner.css");
|
||||
@import url("./components/skeleton.css");
|
||||
@import url("./components/search.css");
|
||||
@import url("./components/icons.css");
|
||||
@import url("./components/csp-utilities.css");
|
||||
@import url("./components/itemTooltip.css");
|
||||
@import url("./components/commandPalette.css");
|
||||
|
||||
/* Theme */
|
||||
@import url("./themes/dark.css");
|
||||
|
||||
@@ -100,7 +100,6 @@
|
||||
--color-warning-text-amber: #fbbf24;
|
||||
--color-warning-orange-bg: #2a1c10;
|
||||
--color-warning-orange-text: #fb923c;
|
||||
--color-purple-bg: #1a0a33;
|
||||
--color-success-bg-alt: #0a2015;
|
||||
--color-success-bg-green: #0a2015;
|
||||
--color-content-bg-warn: #3d2e00;
|
||||
|
||||
+200
-204
@@ -7,7 +7,7 @@
|
||||
body {
|
||||
background: var(--color-bg-page);
|
||||
color: var(--color-text-heading);
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -29,56 +29,56 @@ body {
|
||||
color: inherit;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
gap: var(--space-3-5);
|
||||
}
|
||||
.width-zero {
|
||||
width: 0%;
|
||||
}
|
||||
.mt-14 {
|
||||
margin-top: 14px;
|
||||
margin-top: var(--space-3-5);
|
||||
}
|
||||
.toggle-row-strong {
|
||||
margin-top: 10px;
|
||||
padding: 12px 0;
|
||||
margin-top: var(--space-2-5);
|
||||
padding: var(--space-3) 0;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
.icon-muted-right {
|
||||
color: var(--color-text-subtle);
|
||||
margin-right: 6px;
|
||||
margin-right: var(--space-1-5);
|
||||
}
|
||||
.h2-space-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.flex-gap-6 {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
}
|
||||
.oidc-discover-wrap {
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
.secret-icon {
|
||||
color: var(--color-secret-green);
|
||||
}
|
||||
.small-muted {
|
||||
font-weight: 400;
|
||||
font-weight: var(--weight-normal);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
.summary-icon-right {
|
||||
margin-right: 6px;
|
||||
margin-right: var(--space-1-5);
|
||||
}
|
||||
.oidc-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: 24px;
|
||||
gap: var(--space-2-5);
|
||||
margin-top: var(--space-6);
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.modal-title-icon {
|
||||
color: var(--color-accent);
|
||||
margin-right: 8px;
|
||||
margin-right: var(--space-2);
|
||||
}
|
||||
.quota-input-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
gap: var(--space-2-5);
|
||||
align-items: center;
|
||||
}
|
||||
.flex-1 {
|
||||
@@ -86,34 +86,34 @@ body {
|
||||
}
|
||||
.select-qm-unit {
|
||||
width: 90px;
|
||||
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);
|
||||
}
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
gap: var(--space-3-5);
|
||||
}
|
||||
.select-cu-role {
|
||||
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);
|
||||
}
|
||||
.quota-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
}
|
||||
.select-cu-quota-unit {
|
||||
width: 70px;
|
||||
padding: 10px 8px;
|
||||
padding: var(--space-2-5) var(--space-2);
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: 10px;
|
||||
font-size: 13px;
|
||||
border-radius: var(--radius-xl);
|
||||
font-size: var(--text-sm);
|
||||
background: var(--color-bg-hover);
|
||||
}
|
||||
.alert-no-margin {
|
||||
@@ -121,21 +121,21 @@ body {
|
||||
}
|
||||
.table-loading-cell {
|
||||
text-align: center;
|
||||
padding: 28px;
|
||||
padding: var(--space-7);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
.table-status-error {
|
||||
color: var(--color-error-text-dark);
|
||||
padding: 20px;
|
||||
padding: var(--space-5);
|
||||
}
|
||||
.table-status-empty {
|
||||
text-align: center;
|
||||
padding: 28px;
|
||||
padding: var(--space-7);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
.user-self-badge {
|
||||
color: var(--color-text-faint);
|
||||
font-weight: 400;
|
||||
font-weight: var(--weight-normal);
|
||||
}
|
||||
.badge-admin-icon-small {
|
||||
font-size: 10px;
|
||||
@@ -144,14 +144,14 @@ body {
|
||||
width: 80px;
|
||||
}
|
||||
.user-last-login-cell {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
/* ── Top Header Bar ── */
|
||||
.admin-header {
|
||||
background: linear-gradient(135deg, var(--color-sidebar-bg-from) 0%, var(--color-sidebar-bg-to) 100%);
|
||||
padding: 0 32px;
|
||||
padding: 0 var(--space-8);
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -164,7 +164,7 @@ body {
|
||||
.admin-header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
gap: var(--space-3-5);
|
||||
}
|
||||
.admin-logo {
|
||||
width: 38px;
|
||||
@@ -183,24 +183,24 @@ body {
|
||||
}
|
||||
.admin-title-text {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
font-weight: var(--weight-bold);
|
||||
color: var(--color-sidebar-text-active);
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
.admin-title-separator {
|
||||
font-size: 17px;
|
||||
color: var(--color-sidebar-storage-faint);
|
||||
font-weight: 400;
|
||||
margin-left: 6px;
|
||||
font-weight: var(--weight-normal);
|
||||
margin-left: var(--space-1-5);
|
||||
}
|
||||
.admin-header-right a {
|
||||
color: var(--color-sidebar-text);
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.admin-header-right a:hover {
|
||||
@@ -211,7 +211,7 @@ body {
|
||||
.admin-container {
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: 28px 24px 60px;
|
||||
padding: var(--space-7) var(--space-6) 60px;
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
}
|
||||
@@ -219,29 +219,29 @@ body {
|
||||
/* ── Tabs ── */
|
||||
.admin-tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-bottom: 28px;
|
||||
gap: var(--space-1-5);
|
||||
margin-bottom: var(--space-7);
|
||||
background: var(--color-bg-surface);
|
||||
border-radius: 14px;
|
||||
padding: 6px;
|
||||
padding: var(--space-1-5);
|
||||
box-shadow: 0 1px 4px var(--color-shadow-xs);
|
||||
position: sticky;
|
||||
top: 64px;
|
||||
z-index: 50;
|
||||
}
|
||||
.admin-tab {
|
||||
padding: 10px 22px;
|
||||
padding: var(--space-2-5) 22px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
font-size: 13.5px;
|
||||
color: var(--color-text-subtle);
|
||||
border: none;
|
||||
background: none;
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-xl);
|
||||
transition: all 0.2s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
.admin-tab:hover {
|
||||
color: var(--color-text-heading);
|
||||
@@ -256,7 +256,7 @@ body {
|
||||
color: var(--color-sidebar-text-active);
|
||||
}
|
||||
.admin-tab i {
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -296,21 +296,21 @@ body {
|
||||
/* ── Cards ── */
|
||||
.admin-card {
|
||||
background: var(--color-bg-surface);
|
||||
border-radius: 16px;
|
||||
border-radius: var(--radius-3xl);
|
||||
box-shadow:
|
||||
0 1px 4px var(--color-shadow-xs),
|
||||
0 0 0 1px var(--color-shadow-xs);
|
||||
padding: 28px;
|
||||
padding: var(--space-7);
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.admin-card h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-bold);
|
||||
margin-bottom: var(--space-5);
|
||||
color: var(--color-text-heading);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: var(--space-2-5);
|
||||
}
|
||||
.admin-card h2 i {
|
||||
color: var(--color-accent);
|
||||
@@ -335,11 +335,11 @@ body {
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 14px;
|
||||
gap: var(--space-3-5);
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.stat-card {
|
||||
padding: 20px;
|
||||
padding: var(--space-5);
|
||||
background: var(--color-bg-hover);
|
||||
border-radius: 14px;
|
||||
text-align: center;
|
||||
@@ -353,8 +353,8 @@ body {
|
||||
box-shadow: 0 4px 12px var(--color-shadow-xs);
|
||||
}
|
||||
.stat-value {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 800;
|
||||
font-size: var(--text-3xl);
|
||||
font-weight: var(--weight-extrabold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
.stat-label {
|
||||
@@ -362,8 +362,8 @@ body {
|
||||
color: var(--color-text-faint);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
margin-top: 4px;
|
||||
font-weight: 600;
|
||||
margin-top: var(--space-1);
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
.stat-card.warn {
|
||||
border-color: var(--color-stat-warn-border);
|
||||
@@ -391,12 +391,12 @@ body {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: var(--color-border);
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: width 0.5s ease;
|
||||
}
|
||||
.progress-fill.green {
|
||||
@@ -412,7 +412,7 @@ body {
|
||||
/* ── Table ── */
|
||||
.table-wrap {
|
||||
overflow-x: auto;
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
table {
|
||||
@@ -422,18 +422,18 @@ table {
|
||||
}
|
||||
th {
|
||||
text-align: left;
|
||||
padding: 12px 16px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--color-bg-subtle);
|
||||
color: var(--color-text-faint);
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 700;
|
||||
font-weight: var(--weight-bold);
|
||||
white-space: nowrap;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
td {
|
||||
padding: 14px 16px;
|
||||
padding: var(--space-3-5) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border-light);
|
||||
vertical-align: middle;
|
||||
}
|
||||
@@ -446,14 +446,14 @@ tr:hover {
|
||||
.user-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
gap: var(--space-0-5);
|
||||
}
|
||||
.user-name {
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
.user-email {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
@@ -461,11 +461,11 @@ tr:hover {
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
padding: 3px 10px;
|
||||
border-radius: 20px;
|
||||
font-weight: 600;
|
||||
gap: var(--space-1);
|
||||
font-size: var(--text-2xs);
|
||||
padding: 3px var(--space-2-5);
|
||||
border-radius: var(--radius-4xl);
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
.badge-admin {
|
||||
background: var(--color-role-admin-bg);
|
||||
@@ -495,28 +495,28 @@ tr:hover {
|
||||
background: var(--color-warning-bg-light);
|
||||
color: var(--color-badge-warning-text);
|
||||
font-size: 10px;
|
||||
padding: 1px 6px;
|
||||
margin-left: 4px;
|
||||
padding: 1px var(--space-1-5);
|
||||
margin-left: var(--space-1);
|
||||
}
|
||||
|
||||
/* ── Buttons ── */
|
||||
.btn {
|
||||
padding: 8px 18px;
|
||||
padding: var(--space-2) 18px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
border-radius: var(--radius-xl);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
white-space: nowrap;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
}
|
||||
.btn-sm {
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
border-radius: 8px;
|
||||
padding: var(--space-1-5) var(--space-3);
|
||||
font-size: var(--text-xs);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--color-accent-gradient);
|
||||
@@ -559,19 +559,19 @@ tr:hover {
|
||||
}
|
||||
.actions-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* ── Forms ── */
|
||||
.form-group {
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
.form-group label {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 4px;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-semibold);
|
||||
margin-bottom: var(--space-1);
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
.form-group input[type="text"],
|
||||
@@ -580,10 +580,10 @@ tr:hover {
|
||||
.form-group input[type="number"],
|
||||
.form-group select {
|
||||
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);
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
@@ -598,7 +598,7 @@ tr:hover {
|
||||
}
|
||||
.form-group small {
|
||||
color: var(--color-text-faint);
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
}
|
||||
@@ -607,11 +607,11 @@ tr:hover {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 0;
|
||||
padding: var(--space-2-5) 0;
|
||||
}
|
||||
.toggle-row label {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-base);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
.switch {
|
||||
@@ -655,24 +655,24 @@ tr:hover {
|
||||
.readonly-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
background: var(--color-bg-hover);
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: 10px;
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--radius-xl);
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
font-family: "SF Mono", Monaco, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
word-break: break-all;
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
.readonly-field button {
|
||||
flex-shrink: 0;
|
||||
padding: 6px 10px;
|
||||
padding: var(--space-1-5) var(--space-2-5);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-bg-surface);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
transition: all 0.15s;
|
||||
color: var(--color-text-subtle);
|
||||
}
|
||||
@@ -683,12 +683,12 @@ tr:hover {
|
||||
|
||||
/* ── Alerts ── */
|
||||
.alert {
|
||||
padding: 12px 16px;
|
||||
border-radius: 10px;
|
||||
font-size: 13px;
|
||||
margin-top: 14px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-radius: var(--radius-xl);
|
||||
font-size: var(--text-sm);
|
||||
margin-top: var(--space-3-5);
|
||||
display: none;
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
.alert-success {
|
||||
background: var(--color-badge-success-bg);
|
||||
@@ -711,23 +711,23 @@ tr:hover {
|
||||
.warning {
|
||||
background: var(--color-warning-bg-faint);
|
||||
border: 1px solid var(--color-badge-warning-border);
|
||||
border-radius: 10px;
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
border-radius: var(--radius-xl);
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-badge-warning-text);
|
||||
margin-top: 8px;
|
||||
margin-top: var(--space-2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-weight: 500;
|
||||
gap: var(--space-1-5);
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
|
||||
/* ── Discovery ── */
|
||||
.discovery-result {
|
||||
margin: 12px 0;
|
||||
padding: 14px;
|
||||
border-radius: 10px;
|
||||
font-size: 13px;
|
||||
margin: var(--space-3) 0;
|
||||
padding: var(--space-3-5);
|
||||
border-radius: var(--radius-xl);
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
.discovery-result.ok {
|
||||
background: var(--color-badge-success-bg);
|
||||
@@ -740,8 +740,8 @@ tr:hover {
|
||||
color: var(--color-error-text-dark);
|
||||
}
|
||||
.discovery-result dt {
|
||||
font-weight: 700;
|
||||
margin-top: 6px;
|
||||
font-weight: var(--weight-bold);
|
||||
margin-top: var(--space-1-5);
|
||||
}
|
||||
.discovery-result dd {
|
||||
margin-left: 0;
|
||||
@@ -750,16 +750,16 @@ tr:hover {
|
||||
|
||||
/* ── Details ── */
|
||||
details {
|
||||
margin-top: 14px;
|
||||
margin-top: var(--space-3-5);
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding-top: 12px;
|
||||
padding-top: var(--space-3);
|
||||
}
|
||||
details summary {
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
font-weight: var(--weight-semibold);
|
||||
font-size: var(--text-base);
|
||||
color: var(--color-text-subtle);
|
||||
padding: 6px 0;
|
||||
padding: var(--space-1-5) 0;
|
||||
user-select: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
@@ -767,7 +767,7 @@ details summary:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
details[open] summary {
|
||||
margin-bottom: 14px;
|
||||
margin-bottom: var(--space-3-5);
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
@@ -785,8 +785,8 @@ details[open] summary {
|
||||
}
|
||||
.modal {
|
||||
background: var(--color-bg-surface);
|
||||
border-radius: 20px;
|
||||
padding: 28px;
|
||||
border-radius: var(--radius-4xl);
|
||||
padding: var(--space-7);
|
||||
width: 420px;
|
||||
max-width: 90vw;
|
||||
box-shadow: 0 20px 60px var(--color-shadow-xl);
|
||||
@@ -811,7 +811,7 @@ details[open] summary {
|
||||
}
|
||||
.modal-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
justify-content: flex-end;
|
||||
margin-top: 18px;
|
||||
}
|
||||
@@ -820,14 +820,14 @@ details[open] summary {
|
||||
.quota-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: var(--space-2-5);
|
||||
}
|
||||
.quota-bar .progress-bar {
|
||||
flex: 1;
|
||||
height: 6px;
|
||||
}
|
||||
.quota-text {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -836,7 +836,7 @@ details[open] summary {
|
||||
#access-denied {
|
||||
display: none;
|
||||
text-align: center;
|
||||
padding: 80px 20px;
|
||||
padding: var(--space-20) var(--space-5);
|
||||
}
|
||||
#access-denied .access-icon {
|
||||
width: 80px;
|
||||
@@ -846,33 +846,33 @@ details[open] summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 20px;
|
||||
margin: 0 auto var(--space-5);
|
||||
}
|
||||
#access-denied .access-icon i {
|
||||
font-size: 32px;
|
||||
font-size: var(--text-4xl);
|
||||
color: var(--color-danger-alt);
|
||||
}
|
||||
#access-denied h2 {
|
||||
color: var(--color-error-text-dark);
|
||||
margin-bottom: 8px;
|
||||
font-size: 20px;
|
||||
margin-bottom: var(--space-2);
|
||||
font-size: var(--text-xl);
|
||||
}
|
||||
#access-denied p {
|
||||
color: var(--color-text-subtle);
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
margin-bottom: var(--space-5);
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
#access-denied a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 10px 24px;
|
||||
gap: var(--space-1-5);
|
||||
padding: var(--space-2-5) var(--space-6);
|
||||
background: var(--color-accent-gradient);
|
||||
color: var(--color-sidebar-text-active);
|
||||
text-decoration: none;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
border-radius: var(--radius-xl);
|
||||
font-weight: var(--weight-semibold);
|
||||
font-size: var(--text-base);
|
||||
box-shadow: 0 3px 12px var(--color-accent-shadow);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
@@ -882,35 +882,31 @@ details[open] summary {
|
||||
}
|
||||
#loading {
|
||||
text-align: center;
|
||||
padding: 80px;
|
||||
padding: var(--space-20);
|
||||
color: var(--color-text-faint);
|
||||
font-size: 15px;
|
||||
}
|
||||
#loading i {
|
||||
font-size: 32px;
|
||||
font-size: var(--text-4xl);
|
||||
color: var(--color-accent);
|
||||
display: block;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: var(--space-3);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* @keyframes spin → base/animations.css (canonical, loaded via main.css). */
|
||||
|
||||
/* ── Pagination ── */
|
||||
.pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 14px;
|
||||
font-size: 13px;
|
||||
margin-top: var(--space-3-5);
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-faint);
|
||||
padding: 0 4px;
|
||||
padding: 0 var(--space-1);
|
||||
}
|
||||
.pagination button {
|
||||
padding: 6px 14px;
|
||||
padding: var(--space-1-5) var(--space-3-5);
|
||||
}
|
||||
|
||||
/* ── Confirm modal ── */
|
||||
@@ -921,8 +917,8 @@ details[open] summary {
|
||||
color: var(--color-error-text-dark);
|
||||
}
|
||||
.modal-confirm p {
|
||||
margin: 14px 0 22px;
|
||||
font-size: 14px;
|
||||
margin: var(--space-3-5) 0 22px;
|
||||
font-size: var(--text-base);
|
||||
line-height: 1.55;
|
||||
color: var(--color-dark-mid);
|
||||
}
|
||||
@@ -930,9 +926,9 @@ details[open] summary {
|
||||
background: var(--color-danger-gradient);
|
||||
color: var(--color-danger-text);
|
||||
border: none;
|
||||
padding: 10px 22px;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
padding: var(--space-2-5) 22px;
|
||||
border-radius: var(--radius-xl);
|
||||
font-weight: var(--weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
@@ -945,28 +941,28 @@ details[open] summary {
|
||||
.storage-status-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
gap: var(--space-3);
|
||||
margin-bottom: var(--space-6);
|
||||
}
|
||||
.storage-stat {
|
||||
padding: 14px;
|
||||
padding: var(--space-3-5);
|
||||
background: var(--color-bg-hover);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
text-align: center;
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
.storage-stat__label {
|
||||
display: block;
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: var(--color-text-secondary);
|
||||
margin-bottom: 4px;
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
.storage-stat__value {
|
||||
display: block;
|
||||
font-size: 1.35rem;
|
||||
font-weight: 700;
|
||||
font-weight: var(--weight-bold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
@@ -977,15 +973,15 @@ details[open] summary {
|
||||
.smtp-info-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 24px;
|
||||
margin-bottom: var(--space-6);
|
||||
background: var(--color-bg-hover);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
overflow: hidden;
|
||||
}
|
||||
.smtp-info-table th,
|
||||
.smtp-info-table td {
|
||||
padding: 10px 14px;
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
vertical-align: middle;
|
||||
@@ -997,7 +993,7 @@ details[open] summary {
|
||||
}
|
||||
.smtp-info-table th {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
width: 220px;
|
||||
white-space: nowrap;
|
||||
@@ -1011,8 +1007,8 @@ details[open] summary {
|
||||
|
||||
.storage-backend-selector {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-bottom: 20px;
|
||||
gap: var(--space-3);
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
.storage-backend-option {
|
||||
flex: 1;
|
||||
@@ -1025,18 +1021,18 @@ details[open] summary {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 18px 14px;
|
||||
gap: var(--space-2);
|
||||
padding: 18px var(--space-3-5);
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
transition:
|
||||
border-color 0.2s,
|
||||
background 0.2s;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
.storage-backend-option__card i {
|
||||
font-size: 1.5rem;
|
||||
font-size: var(--text-2xl);
|
||||
color: var(--color-text-secondary);
|
||||
transition: color 0.2s;
|
||||
}
|
||||
@@ -1049,29 +1045,29 @@ details[open] summary {
|
||||
}
|
||||
|
||||
.storage-form {
|
||||
margin-top: 8px;
|
||||
margin-top: var(--space-2);
|
||||
}
|
||||
|
||||
.storage-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: 24px;
|
||||
gap: var(--space-2-5);
|
||||
margin-top: var(--space-6);
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.storage-migration-section {
|
||||
margin-top: 32px;
|
||||
padding-top: 20px;
|
||||
margin-top: var(--space-8);
|
||||
padding-top: var(--space-5);
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
.storage-migration-section h3 {
|
||||
font-size: 1rem;
|
||||
margin-bottom: 8px;
|
||||
font-size: var(--text-md);
|
||||
margin-bottom: var(--space-2);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
.storage-migration-section h3 i {
|
||||
color: var(--color-text-secondary);
|
||||
margin-right: 6px;
|
||||
margin-right: var(--space-1-5);
|
||||
}
|
||||
|
||||
/* ── Migration UI ── */
|
||||
@@ -1079,16 +1075,16 @@ details[open] summary {
|
||||
.migration-status-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 14px;
|
||||
font-size: 14px;
|
||||
gap: var(--space-2);
|
||||
margin-bottom: var(--space-3-5);
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
.badge-migration {
|
||||
padding: 3px 10px;
|
||||
border-radius: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
padding: 3px var(--space-2-5);
|
||||
border-radius: var(--radius-xl);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.4px;
|
||||
}
|
||||
@@ -1117,39 +1113,39 @@ details[open] summary {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
background: var(--color-bg-hover);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
margin-bottom: 6px;
|
||||
margin-bottom: var(--space-1-5);
|
||||
}
|
||||
.migration-progress-bar__fill {
|
||||
height: 100%;
|
||||
background: var(--color-accent);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--radius-md);
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.migration-progress-text {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-secondary);
|
||||
margin-bottom: 4px;
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.migration-failed-list {
|
||||
max-height: 150px;
|
||||
overflow-y: auto;
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
background: var(--color-bg-hover);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--color-border);
|
||||
margin-top: 6px;
|
||||
margin-top: var(--space-1-5);
|
||||
}
|
||||
|
||||
.migration-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: 16px;
|
||||
gap: var(--space-2-5);
|
||||
margin-top: var(--space-4);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
+362
-93
@@ -7,9 +7,33 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
width: 100%;
|
||||
background-color: var(--color-bg-page);
|
||||
position: relative;
|
||||
/* Spotlight + warm brand blobs — seats the card in a pool of light
|
||||
instead of a flat near-white field. */
|
||||
background: var(--brand-ambient);
|
||||
}
|
||||
|
||||
/* Fine film grain over the backdrop (not the card). `overlay` neutralises the
|
||||
mid-grey noise so it adds texture without shifting brightness; works in both
|
||||
light and dark. Tune the whole effect with `opacity`. */
|
||||
.auth-container::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
background-image: var(--brand-grain);
|
||||
background-size: 180px 180px;
|
||||
opacity: 0.6;
|
||||
mix-blend-mode: overlay;
|
||||
}
|
||||
|
||||
/* Keep the card (and every panel) above the grain layer. */
|
||||
.auth-panel {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.auth-panel {
|
||||
@@ -18,9 +42,9 @@
|
||||
margin: 0 auto;
|
||||
background-color: var(--color-bg-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 8px 30px var(--color-shadow);
|
||||
padding: 36px;
|
||||
border-radius: var(--radius-3xl);
|
||||
box-shadow: var(--shadow-xl);
|
||||
padding: var(--space-9);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -28,7 +52,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
|
||||
.auth-logo-icon {
|
||||
@@ -39,26 +63,27 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 12px;
|
||||
box-shadow: 0 4px 12px var(--color-accent-shadow);
|
||||
margin-right: var(--space-3);
|
||||
/* Tighter glow (negative spread) reads more premium than a wide halo. */
|
||||
box-shadow: 0 4px 14px -4px var(--color-accent-shadow);
|
||||
}
|
||||
|
||||
.auth-logo-icon svg {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
fill: var(--color-danger-text);
|
||||
fill: var(--color-on-accent);
|
||||
}
|
||||
|
||||
.auth-logo-text {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--weight-bold);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.auth-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 28px;
|
||||
font-weight: var(--weight-bold);
|
||||
margin-bottom: var(--space-7);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
@@ -72,22 +97,23 @@
|
||||
}
|
||||
|
||||
.auth-input-group {
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
|
||||
.auth-label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
margin-bottom: var(--space-2);
|
||||
font-size: var(--text-base);
|
||||
color: var(--color-text-heading);
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
|
||||
.auth-input {
|
||||
width: 100%;
|
||||
padding: 14px 18px;
|
||||
border-radius: 12px;
|
||||
border: 2px solid var(--color-border);
|
||||
padding: var(--space-3-5) 18px;
|
||||
border-radius: var(--radius-2xl);
|
||||
/* Stronger resting border so fields read as crafted, not flat fills. */
|
||||
border: 2px solid var(--color-border-medium);
|
||||
font-size: 15px;
|
||||
background-color: var(--color-bg-input);
|
||||
color: var(--color-text);
|
||||
@@ -95,7 +121,7 @@
|
||||
}
|
||||
|
||||
.auth-input::placeholder {
|
||||
color: var(--color-text-faint);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.auth-input:hover {
|
||||
@@ -111,22 +137,26 @@
|
||||
}
|
||||
|
||||
.auth-input[readonly] {
|
||||
opacity: 0.7;
|
||||
cursor: default;
|
||||
/* A locked value, not a placeholder: full-strength text on a subtly
|
||||
distinct "locked" fill (no dimming that reads as empty). */
|
||||
color: var(--color-text);
|
||||
font-weight: var(--weight-semibold);
|
||||
background-color: var(--color-bg-input-alt);
|
||||
}
|
||||
|
||||
.auth-button {
|
||||
width: 100%;
|
||||
padding: 14px 18px;
|
||||
border-radius: 12px;
|
||||
padding: var(--space-3-5) 18px;
|
||||
border-radius: var(--radius-2xl);
|
||||
background: var(--color-accent-gradient);
|
||||
color: var(--color-danger-text);
|
||||
font-weight: 700;
|
||||
color: var(--color-on-accent);
|
||||
font-weight: var(--weight-bold);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-size: var(--text-md);
|
||||
transition: all 0.3s ease;
|
||||
margin-top: 12px;
|
||||
margin-top: var(--space-3);
|
||||
box-shadow: 0 4px 12px var(--color-accent-shadow);
|
||||
}
|
||||
|
||||
@@ -137,7 +167,8 @@
|
||||
}
|
||||
|
||||
.auth-button:active {
|
||||
transform: translateY(0);
|
||||
/* Tactile press — the button dips slightly under the resting plane. */
|
||||
transform: translateY(1px);
|
||||
box-shadow: 0 2px 8px var(--color-accent-shadow);
|
||||
}
|
||||
|
||||
@@ -148,13 +179,37 @@
|
||||
filter: none;
|
||||
}
|
||||
|
||||
/* Loading — hide the label, show an inline spinner (toggled via .is-loading /
|
||||
aria-busy by auth.js on submit). */
|
||||
.auth-button.is-loading,
|
||||
.auth-button[aria-busy="true"] {
|
||||
color: transparent;
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.auth-button.is-loading::after,
|
||||
.auth-button[aria-busy="true"]::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin: -9px 0 0 -9px;
|
||||
border: 2px solid var(--color-on-accent);
|
||||
border-top-color: transparent;
|
||||
border-radius: var(--radius-full);
|
||||
animation: spin var(--spin-duration) linear infinite;
|
||||
}
|
||||
|
||||
.auth-subtitle {
|
||||
margin: 20px 0;
|
||||
margin: var(--space-5) 0;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
.auth-action-wrap {
|
||||
margin-top: 20px;
|
||||
margin-top: var(--space-5);
|
||||
}
|
||||
|
||||
/* SSO / OIDC button */
|
||||
@@ -164,7 +219,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
gap: var(--space-2-5);
|
||||
}
|
||||
|
||||
.auth-button-oidc:hover {
|
||||
@@ -180,14 +235,14 @@
|
||||
}
|
||||
|
||||
.auth-button-oidc i {
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
/* Helper text above the magic-link form ("No password? Enter your
|
||||
email…"). Quieter visual weight than the form labels. */
|
||||
.auth-hint {
|
||||
margin: 0 0 12px;
|
||||
font-size: 13px;
|
||||
margin: 0 0 var(--space-3);
|
||||
font-size: var(--text-sm);
|
||||
line-height: 1.4;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
@@ -196,10 +251,10 @@
|
||||
message rendered on every successful 2xx; error variant only used
|
||||
for the 503-not-configured branch or network failures. */
|
||||
.auth-status {
|
||||
margin-top: 12px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
margin-top: var(--space-3);
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
border-radius: var(--radius-lg);
|
||||
font-size: var(--text-sm);
|
||||
line-height: 1.4;
|
||||
}
|
||||
.auth-status-success {
|
||||
@@ -217,9 +272,9 @@
|
||||
.auth-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 20px 0;
|
||||
margin: var(--space-5) 0;
|
||||
color: var(--color-text-faint);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.auth-divider::before,
|
||||
@@ -231,7 +286,13 @@
|
||||
}
|
||||
|
||||
.auth-divider span {
|
||||
padding: 0 12px;
|
||||
padding: 0 var(--space-3);
|
||||
/* Quiet, deliberate label rather than a stray lowercase letter. */
|
||||
text-transform: uppercase;
|
||||
letter-spacing: var(--tracking-wide, 0.08em);
|
||||
font-size: var(--text-2xs);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* OIDC-only mode: hide password form */
|
||||
@@ -241,15 +302,15 @@
|
||||
|
||||
.auth-toggle {
|
||||
margin-top: 22px;
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.auth-toggle-link {
|
||||
color: var(--color-accent);
|
||||
color: var(--color-accent-text);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
|
||||
.auth-toggle-link:hover {
|
||||
@@ -259,33 +320,49 @@
|
||||
.auth-error {
|
||||
background-color: var(--color-error-bg);
|
||||
color: var(--color-error-text);
|
||||
padding: 12px 18px;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
padding: var(--space-3) 18px;
|
||||
border-radius: var(--radius-2xl);
|
||||
margin-bottom: var(--space-5);
|
||||
font-size: var(--text-base);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.auth-success {
|
||||
background-color: var(--color-success-bg);
|
||||
color: var(--color-success-text);
|
||||
padding: 12px 18px;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
padding: var(--space-3) 18px;
|
||||
border-radius: var(--radius-2xl);
|
||||
margin-bottom: var(--space-5);
|
||||
font-size: var(--text-base);
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Admin setup panel styles — visibility controlled via .hidden class */
|
||||
|
||||
.setup-steps {
|
||||
margin-bottom: 28px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 32px;
|
||||
margin-bottom: var(--space-7);
|
||||
/* 3 equal columns → circle centres land at 1/6, 1/2, 5/6, so the
|
||||
connector track can be placed deterministically between them. */
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Connector track behind the step circles (z-index 0; circles sit above). */
|
||||
.setup-steps::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 17px; /* half of the 34px circle */
|
||||
left: 16.667%;
|
||||
right: 16.667%;
|
||||
height: 2px;
|
||||
background: var(--color-border);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.setup-step {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -301,28 +378,29 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-text-faint);
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
margin-bottom: 6px;
|
||||
font-weight: var(--weight-bold);
|
||||
font-size: var(--text-base);
|
||||
margin-bottom: var(--space-1-5);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.step-number.active {
|
||||
background: var(--color-accent-gradient);
|
||||
border-color: transparent;
|
||||
color: var(--color-danger-text);
|
||||
box-shadow: 0 2px 8px var(--color-accent-shadow);
|
||||
color: var(--color-on-accent);
|
||||
/* Subtle halo lifts the active step off the connector track. */
|
||||
box-shadow: 0 0 0 4px var(--color-accent-ring), 0 4px 12px var(--color-accent-shadow);
|
||||
}
|
||||
|
||||
.step-title {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
|
||||
.step-title.active {
|
||||
color: var(--color-text-heading);
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
|
||||
/* Language selector panel styles */
|
||||
@@ -332,23 +410,23 @@
|
||||
|
||||
.language-subtitle {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 16px;
|
||||
margin-bottom: 24px;
|
||||
font-size: var(--text-md);
|
||||
margin-bottom: var(--space-6);
|
||||
}
|
||||
|
||||
/* ====== Compact Language Picker ====== */
|
||||
.lang-picker {
|
||||
position: relative;
|
||||
margin-bottom: 24px;
|
||||
margin-bottom: var(--space-6);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.lang-picker-selected {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 14px 18px;
|
||||
padding: var(--space-3-5) 18px;
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
cursor: pointer;
|
||||
background-color: var(--color-bg-input);
|
||||
transition: all 0.2s ease;
|
||||
@@ -370,20 +448,20 @@
|
||||
|
||||
.lang-picker-flag {
|
||||
font-size: 26px;
|
||||
margin-right: 14px;
|
||||
margin-right: var(--space-3-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lang-picker-name {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-heading);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.lang-picker-arrow {
|
||||
color: var(--color-text-faint);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
transition: transform 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -402,8 +480,8 @@
|
||||
background: var(--color-bg-surface);
|
||||
border: 2px solid var(--color-accent);
|
||||
border-top: 1px solid var(--color-border-light);
|
||||
border-bottom-left-radius: 12px;
|
||||
border-bottom-right-radius: 12px;
|
||||
border-bottom-left-radius: var(--radius-2xl);
|
||||
border-bottom-right-radius: var(--radius-2xl);
|
||||
box-shadow: 0 12px 32px var(--color-shadow-lg);
|
||||
z-index: 100;
|
||||
overflow: hidden;
|
||||
@@ -428,7 +506,7 @@
|
||||
/* Search inside dropdown */
|
||||
.lang-picker-search {
|
||||
position: relative;
|
||||
padding: 10px 14px;
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
border-bottom: 1px solid var(--color-border-light);
|
||||
}
|
||||
|
||||
@@ -438,15 +516,15 @@
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--color-text-faint);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.lang-picker-search input {
|
||||
width: 100%;
|
||||
padding: 8px 12px 8px 32px;
|
||||
padding: var(--space-2) var(--space-3) var(--space-2) var(--space-8);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
border-radius: var(--radius-lg);
|
||||
font-size: var(--text-base);
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
background-color: var(--color-bg-input);
|
||||
@@ -466,16 +544,16 @@
|
||||
.lang-picker-list {
|
||||
max-height: 240px;
|
||||
overflow-y: auto;
|
||||
padding: 6px;
|
||||
padding: var(--space-1-5);
|
||||
}
|
||||
|
||||
/* Language item in dropdown */
|
||||
.lang-picker-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
gap: var(--space-2-5);
|
||||
padding: var(--space-2-5) var(--space-3);
|
||||
border-radius: var(--radius-lg);
|
||||
cursor: pointer;
|
||||
transition: all 0.12s ease;
|
||||
}
|
||||
@@ -495,40 +573,231 @@
|
||||
|
||||
.lang-picker-item-name {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
.lang-picker-item-english {
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-faint);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.lang-picker-item-check {
|
||||
color: var(--color-accent);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lang-picker-empty {
|
||||
text-align: center;
|
||||
color: var(--color-text-faint);
|
||||
padding: 20px;
|
||||
font-size: 14px;
|
||||
padding: var(--space-5);
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.auth-panel {
|
||||
width: 95%;
|
||||
padding: 24px;
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
.lang-picker-selected {
|
||||
padding: 12px 14px;
|
||||
padding: var(--space-3) var(--space-3-5);
|
||||
}
|
||||
|
||||
.lang-picker-list {
|
||||
max-height: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
Premium polish — brand lockup, CTA hierarchy, field icons,
|
||||
password reveal, progressive disclosure, match feedback.
|
||||
Icons are token-safe CSS masks (no inline SVG, no raw colour):
|
||||
the glyph alpha comes from the data-URI, the colour from a token.
|
||||
============================================================ */
|
||||
|
||||
/* — Brand wordmark: the ownable "Oxi" accent lockup (DESIGN-SYSTEM §3) — */
|
||||
.brand-oxi {
|
||||
background: var(--color-accent-gradient);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
/* — CTA hierarchy: exactly one primary per screen. The secondary action
|
||||
(magic-link, etc.) is a quiet tinted/ghost button, never a 2nd gradient. — */
|
||||
.auth-button-secondary {
|
||||
background: var(--color-accent-tint);
|
||||
color: var(--color-accent-text);
|
||||
border: 1.5px solid var(--color-border-medium);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.auth-button-secondary:hover {
|
||||
background: var(--color-bg-surface);
|
||||
border-color: var(--color-accent);
|
||||
box-shadow: none;
|
||||
filter: none;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.auth-button-secondary:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* — Leading field icons (user / mail / lock) via masked pseudo-element — */
|
||||
.auth-input-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.auth-input-wrap .auth-input {
|
||||
padding-left: 44px;
|
||||
}
|
||||
|
||||
.auth-input-wrap.has-toggle .auth-input {
|
||||
padding-right: 44px;
|
||||
}
|
||||
|
||||
.auth-input-wrap::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
top: 50%;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
transform: translateY(-50%);
|
||||
background-color: var(--color-text-muted);
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
transition: background-color 0.2s ease;
|
||||
-webkit-mask: var(--icon-url, none) center / contain no-repeat;
|
||||
mask: var(--icon-url, none) center / contain no-repeat;
|
||||
}
|
||||
|
||||
.auth-input-wrap:focus-within::before {
|
||||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
.auth-input-wrap--user {
|
||||
--icon-url: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
|
||||
}
|
||||
|
||||
.auth-input-wrap--mail {
|
||||
--icon-url: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m2 7 10 6 10-6'/></svg>");
|
||||
}
|
||||
|
||||
.auth-input-wrap--lock {
|
||||
--icon-url: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
|
||||
}
|
||||
|
||||
/* — Password show/hide toggle — */
|
||||
.auth-pw-toggle {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
border-radius: var(--radius-lg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.auth-pw-toggle::before {
|
||||
content: "";
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background-color: var(--color-text-muted);
|
||||
transition: background-color 0.2s ease;
|
||||
--eye: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/><circle cx='12' cy='12' r='3'/></svg>");
|
||||
-webkit-mask: var(--eye) center / contain no-repeat;
|
||||
mask: var(--eye) center / contain no-repeat;
|
||||
}
|
||||
|
||||
.auth-pw-toggle:hover::before {
|
||||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
.auth-pw-toggle[aria-pressed="true"]::before {
|
||||
--eye: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9.9 4.2A9 9 0 0 1 12 4c6.5 0 10 7 10 7a13 13 0 0 1-2 2.7M6.6 6.6A13 13 0 0 0 2 11s3.5 7 10 7a9 9 0 0 0 3.6-.7'/><path d='m2 2 20 20'/></svg>");
|
||||
}
|
||||
|
||||
/* — Progressive disclosure of the magic-link form — */
|
||||
.auth-magic-toggle {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: var(--space-1);
|
||||
padding: var(--space-2);
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-accent-text);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.auth-magic-toggle:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.auth-magic-reveal {
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
|
||||
.auth-magic-reveal:not(.hidden) {
|
||||
animation: langPickerSlideDown 0.2s ease;
|
||||
}
|
||||
|
||||
/* — Live password-match feedback (sits inside the confirm field group) — */
|
||||
.auth-match {
|
||||
margin-top: var(--space-2);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--weight-medium);
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: var(--space-1-5);
|
||||
}
|
||||
|
||||
.auth-match.show {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.auth-match::before {
|
||||
content: "";
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
flex-shrink: 0;
|
||||
background-color: currentColor;
|
||||
-webkit-mask: var(--match-icon) center / contain no-repeat;
|
||||
mask: var(--match-icon) center / contain no-repeat;
|
||||
}
|
||||
|
||||
.auth-match--ok {
|
||||
color: var(--color-success-text);
|
||||
--match-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
|
||||
}
|
||||
|
||||
.auth-match--bad {
|
||||
color: var(--color-error-text);
|
||||
--match-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6 6 18M6 6l12 12'/></svg>");
|
||||
}
|
||||
|
||||
/* "Caps Lock is on" hint under a password field (toggled by auth.js). */
|
||||
.auth-caps-warning {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1-5);
|
||||
margin-top: var(--space-2);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-warning-orange-text);
|
||||
}
|
||||
|
||||
@@ -6,18 +6,19 @@
|
||||
}
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--color-bg-hover);
|
||||
/* Shared brand backdrop (centralised in --brand-ambient). */
|
||||
background: var(--brand-ambient);
|
||||
color: var(--color-text-heading);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
padding: 1rem;
|
||||
}
|
||||
.dag-card {
|
||||
background: var(--color-bg-surface);
|
||||
border-radius: var(--radius, 12px);
|
||||
box-shadow: 0 4px 24px var(--color-shadow-sm);
|
||||
border-radius: var(--radius-3xl);
|
||||
box-shadow: var(--shadow-xl);
|
||||
padding: 2.5rem;
|
||||
max-width: 440px;
|
||||
width: 100%;
|
||||
@@ -27,8 +28,8 @@ body {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.dag-logo h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
.dag-logo span {
|
||||
color: var(--color-primary);
|
||||
@@ -44,7 +45,7 @@ p.subtitle {
|
||||
}
|
||||
label {
|
||||
display: block;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
font-size: 0.85rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
@@ -56,7 +57,7 @@ input[type="text"] {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
@@ -65,7 +66,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
.device-info {
|
||||
background: var(--color-border-light);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1rem;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
@@ -79,7 +80,7 @@ input[type="text"]:focus {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.device-info .value {
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.actions {
|
||||
@@ -91,22 +92,22 @@ button {
|
||||
flex: 1;
|
||||
padding: 0.75rem;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.btn-approve {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-danger-text);
|
||||
color: var(--color-on-accent);
|
||||
}
|
||||
.btn-approve:hover {
|
||||
background: var(--color-primary-hover);
|
||||
}
|
||||
.btn-deny {
|
||||
background: var(--color-error-text);
|
||||
color: var(--color-danger-text);
|
||||
background: var(--color-danger-bg);
|
||||
color: var(--color-on-accent);
|
||||
}
|
||||
.btn-deny:hover {
|
||||
background: var(--color-danger-bg-hover);
|
||||
@@ -118,9 +119,9 @@ button:disabled {
|
||||
.status {
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
margin-top: 1rem;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
.status.success {
|
||||
background: var(--color-success-bg);
|
||||
|
||||
@@ -48,20 +48,20 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 50px 20px;
|
||||
padding: 50px var(--space-5);
|
||||
text-align: center;
|
||||
color: var(--color-text-gray);
|
||||
}
|
||||
|
||||
.favorites-empty-state i {
|
||||
font-size: 48px;
|
||||
font-size: var(--text-6xl);
|
||||
color: var(--color-warning-text);
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: var(--space-5);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.favorites-empty-state p {
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: var(--space-2-5);
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
@@ -98,13 +98,13 @@
|
||||
/* List view: small star next to the name */
|
||||
.favorite-star-inline {
|
||||
color: var(--color-warning-text);
|
||||
font-size: 11px;
|
||||
margin-left: 6px;
|
||||
font-size: var(--text-2xs);
|
||||
margin-left: var(--space-1-5);
|
||||
vertical-align: middle;
|
||||
filter: drop-shadow(0 0 1px var(--color-device-verify-drop-shadow));
|
||||
|
||||
[dir="rtl"] & {
|
||||
margin-left: 0;
|
||||
margin-right: 6px;
|
||||
margin-right: var(--space-1-5);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
height: 90%;
|
||||
max-width: 1200px;
|
||||
background-color: var(--color-bg-surface);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -38,14 +38,14 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 12px 16px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background-color: var(--color-bg-subtle);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.inline-viewer-title {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@@ -55,7 +55,7 @@
|
||||
.inline-viewer-close {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 18px;
|
||||
font-size: var(--text-lg);
|
||||
cursor: pointer;
|
||||
color: var(--color-text-muted);
|
||||
width: 36px;
|
||||
@@ -86,7 +86,7 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 12px 16px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background-color: var(--color-bg-subtle);
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
@@ -95,14 +95,14 @@
|
||||
background-color: var(--color-accent);
|
||||
color: var(--color-danger-text);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 8px 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
font-size: var(--text-base);
|
||||
font-weight: var(--weight-medium);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
@@ -112,13 +112,13 @@
|
||||
|
||||
.inline-viewer-controls {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.inline-viewer-controls button {
|
||||
background-color: var(--color-border-light);
|
||||
border: 1px solid var(--color-border-medium);
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
@@ -138,11 +138,38 @@
|
||||
.inline-viewer-image {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
/* The image is a flex item; without min-* = 0 the flexbox `min-width: auto`
|
||||
default keeps it at its natural size, so `max-width: 100%` is ignored and
|
||||
wide images overflow → a stray horizontal scrollbar and the picture only
|
||||
partly visible (looked like it "repeated" while scrolling). */
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
object-fit: contain;
|
||||
transform-origin: center;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
/* Subtle, thin scrollbar inside the viewer (shown only when zoomed in to pan) —
|
||||
replaces the heavy global accent scrollbar. */
|
||||
.inline-viewer-container {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--color-border-medium) transparent;
|
||||
}
|
||||
|
||||
.inline-viewer-container::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.inline-viewer-container::-webkit-scrollbar-thumb {
|
||||
background: var(--color-border-medium);
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.inline-viewer-container::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* PDF viewer */
|
||||
.inline-viewer-pdf,
|
||||
.inline-viewer-pdf-fallback {
|
||||
@@ -176,10 +203,10 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 20px;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-5);
|
||||
background: var(--color-progress-overlay);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: 0 2px 8px var(--color-shadow);
|
||||
}
|
||||
|
||||
@@ -188,7 +215,7 @@
|
||||
width: 200px;
|
||||
height: 8px;
|
||||
background: var(--color-border);
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -196,21 +223,21 @@
|
||||
.inline-viewer-progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--color-info-blue), var(--color-admin-blue));
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
|
||||
/* Progress percentage text */
|
||||
.inline-viewer-progress-text {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-size: var(--text-base);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
|
||||
/* Error and unsupported message */
|
||||
.inline-viewer-message {
|
||||
padding: 32px;
|
||||
padding: var(--space-8);
|
||||
text-align: center;
|
||||
max-width: 400px;
|
||||
}
|
||||
@@ -218,7 +245,7 @@
|
||||
.inline-viewer-icon {
|
||||
font-size: 64px;
|
||||
color: var(--color-text-dark);
|
||||
margin-bottom: 24px;
|
||||
margin-bottom: var(--space-6);
|
||||
}
|
||||
|
||||
.inline-viewer-text {
|
||||
@@ -227,7 +254,7 @@
|
||||
}
|
||||
|
||||
.inline-viewer-text p {
|
||||
margin: 0 0 16px;
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
|
||||
/* Text viewer */
|
||||
@@ -235,9 +262,9 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 16px 24px;
|
||||
padding: var(--space-4) var(--space-6);
|
||||
font-family: "Courier New", Consolas, Monaco, monospace;
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
line-height: 1.6;
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-bg-surface);
|
||||
@@ -254,7 +281,7 @@
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
background-color: var(--color-black);
|
||||
}
|
||||
|
||||
@@ -264,8 +291,8 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 24px;
|
||||
padding: 48px 32px;
|
||||
gap: var(--space-6);
|
||||
padding: var(--space-12) var(--space-8);
|
||||
max-width: 500px;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -289,8 +316,8 @@
|
||||
}
|
||||
|
||||
.inline-viewer-audio-name {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text-secondary);
|
||||
text-align: center;
|
||||
word-break: break-word;
|
||||
@@ -300,7 +327,7 @@
|
||||
.inline-viewer-audio {
|
||||
width: 100%;
|
||||
max-width: 460px;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
+172
-173
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@
|
||||
.ms-load-more-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 16px 0 8px;
|
||||
padding: var(--space-4) 0 var(--space-2);
|
||||
}
|
||||
|
||||
.ms-load-more-wrapper.hidden {
|
||||
@@ -23,7 +23,7 @@
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
overflow: visible;
|
||||
gap: 10px;
|
||||
gap: var(--space-2-5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
.ms-lane {
|
||||
background-color: var(--color-item);
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-xl);
|
||||
box-shadow: 0 1px 3px var(--color-shadow-xs);
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -44,14 +44,14 @@
|
||||
|
||||
/* Vignette lane headers need the same padding as the resource row */
|
||||
.ms-lane__header .user-vignette {
|
||||
padding: 10px 14px;
|
||||
font-weight: 600;
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
|
||||
.ms-lane__header .user-vignette .user-vignette__name {
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-heading);
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
|
||||
.ms-lane__body {
|
||||
@@ -63,16 +63,16 @@
|
||||
.ms-resource-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 14px;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
}
|
||||
|
||||
/* Size the shared .file-icon component for inline use in myShares rows */
|
||||
.ms-resource-row .file-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
border-radius: var(--radius-md);
|
||||
font-size: var(--text-base);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -81,14 +81,14 @@
|
||||
.ms-link-identity__resource .file-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: var(--text-2xs);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ms-resource-row__name {
|
||||
flex: 1;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
overflow: hidden;
|
||||
@@ -103,8 +103,8 @@
|
||||
|
||||
.ms-resource-row__edit {
|
||||
flex-shrink: 0;
|
||||
font-size: 12px;
|
||||
padding: 3px 8px;
|
||||
font-size: var(--text-xs);
|
||||
padding: 3px var(--space-2);
|
||||
opacity: 0.6;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
@@ -118,16 +118,16 @@
|
||||
.ms-link-lane-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
gap: var(--space-1-5);
|
||||
padding: var(--space-2) var(--space-3-5);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.ms-link-lane-label__icon {
|
||||
color: var(--color-text-faint);
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
/* ── Grant row ───────────────────────────────────────────────────────────── */
|
||||
@@ -139,8 +139,8 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 110px 180px auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 7px 14px 7px 28px;
|
||||
gap: var(--space-2);
|
||||
padding: 7px var(--space-3-5) 7px var(--space-7);
|
||||
border-bottom: 1px solid var(--color-border-faint);
|
||||
transition: background 0.1s;
|
||||
}
|
||||
@@ -171,12 +171,12 @@
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
}
|
||||
|
||||
.ms-identity__name {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -184,8 +184,8 @@
|
||||
}
|
||||
|
||||
.ms-identity__resource-name {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
overflow: hidden;
|
||||
@@ -201,13 +201,13 @@
|
||||
/* Token in sharedWith mode: arrow + resource link */
|
||||
|
||||
.ms-link-identity__arrow {
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
color: var(--color-text-faint);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ms-link-identity__resource {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-secondary);
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
@@ -235,11 +235,11 @@
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
flex-shrink: 0;
|
||||
transition:
|
||||
background 0.12s,
|
||||
@@ -263,7 +263,7 @@
|
||||
/* ── Context menu current-item indicator ─────────────────────────────────── */
|
||||
|
||||
.ms-menu-item--current {
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
|
||||
/* ── Context menu expiry row ─────────────────────────────────────────────── */
|
||||
@@ -272,12 +272,12 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 6px 12px;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-1-5) var(--space-3);
|
||||
}
|
||||
|
||||
.ms-menu-expiry-label {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-muted);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
|
||||
+56
-53
@@ -13,61 +13,61 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 8px 8px 4px;
|
||||
padding: var(--space-2) var(--space-2) var(--space-1);
|
||||
}
|
||||
|
||||
/* Toggle buttons — wider for text labels */
|
||||
.photos-toolbar .toggle-btn {
|
||||
width: auto;
|
||||
padding: 0 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
padding: 0 var(--space-3-5);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
|
||||
/* Group header */
|
||||
.photos-day-header {
|
||||
padding: 16px 8px 10px;
|
||||
padding: var(--space-4) var(--space-2) var(--space-2-5);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.photos-day-header .photos-day-count {
|
||||
font-weight: 400;
|
||||
font-weight: var(--weight-normal);
|
||||
color: var(--color-text-faint);
|
||||
font-size: 13px;
|
||||
margin-left: 8px;
|
||||
font-size: var(--text-sm);
|
||||
margin-left: var(--space-2);
|
||||
}
|
||||
|
||||
/* Photo grid — base (daily mode) */
|
||||
.photos-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: 12px;
|
||||
padding: 0 8px;
|
||||
margin-bottom: 16px;
|
||||
gap: var(--space-3);
|
||||
padding: 0 var(--space-2);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
/* Monthly mode — larger tiles, more breathing room */
|
||||
.photos-group-monthly .photos-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: 14px;
|
||||
gap: var(--space-3-5);
|
||||
}
|
||||
|
||||
.photos-group-monthly .photos-day-header {
|
||||
font-size: 17px;
|
||||
padding: 20px 8px 12px;
|
||||
padding: var(--space-5) var(--space-2) var(--space-3);
|
||||
}
|
||||
|
||||
/* Yearly mode — smaller tiles, more items visible */
|
||||
.photos-group-yearly .photos-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
gap: 10px;
|
||||
gap: var(--space-2-5);
|
||||
}
|
||||
|
||||
.photos-group-yearly .photos-day-header {
|
||||
font-size: 20px;
|
||||
padding: 24px 8px 14px;
|
||||
font-size: var(--text-xl);
|
||||
padding: var(--space-6) var(--space-2) var(--space-3-5);
|
||||
}
|
||||
|
||||
/* Individual photo tile */
|
||||
@@ -75,10 +75,10 @@
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
overflow: hidden;
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
border: 2px solid var(--color-border);
|
||||
cursor: pointer;
|
||||
background: var(--color-bg-surface);
|
||||
background: var(--color-bg-muted);
|
||||
box-shadow: 0 1px 3px var(--color-shadow-xs);
|
||||
transition:
|
||||
transform 0.2s ease,
|
||||
@@ -90,8 +90,15 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
transition: transform 0.2s ease;
|
||||
border-radius: var(--radius-xl);
|
||||
opacity: 0;
|
||||
transition:
|
||||
opacity 0.4s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.photo-tile img.is-loaded {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.photo-tile:hover {
|
||||
@@ -120,7 +127,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-danger-text);
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
@@ -159,7 +166,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-danger-text);
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
@@ -168,11 +175,11 @@
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
left: 6px;
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
color: var(--color-danger-text);
|
||||
background: var(--color-overlay-video);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
padding: var(--space-0-5) var(--space-1-5);
|
||||
border-radius: var(--radius-sm);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
@@ -182,25 +189,25 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 80px 20px;
|
||||
padding: var(--space-20) var(--space-5);
|
||||
text-align: center;
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
.photos-empty i {
|
||||
font-size: 56px;
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: var(--space-4);
|
||||
color: var(--color-border-medium);
|
||||
}
|
||||
|
||||
.photos-empty p {
|
||||
margin: 4px 0;
|
||||
margin: var(--space-1) 0;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.photos-empty .photos-empty-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-subtle);
|
||||
}
|
||||
|
||||
@@ -215,21 +222,17 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
padding: var(--space-6);
|
||||
color: var(--color-text-faint);
|
||||
font-size: 14px;
|
||||
gap: 8px;
|
||||
font-size: var(--text-base);
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.photos-loading i {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* @keyframes spin → base/animations.css (canonical, loaded via main.css). */
|
||||
|
||||
/* Selection bar */
|
||||
.photos-selection-bar {
|
||||
@@ -239,14 +242,14 @@
|
||||
transform: translateX(-50%);
|
||||
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);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
gap: var(--space-4);
|
||||
box-shadow: 0 8px 30px var(--color-shadow-3xl);
|
||||
z-index: 1000;
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
.photos-selection-bar button {
|
||||
@@ -254,9 +257,9 @@
|
||||
border: none;
|
||||
color: var(--color-multiselect-text);
|
||||
cursor: pointer;
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
padding: var(--space-1-5) var(--space-2-5);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: var(--text-base);
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
@@ -265,16 +268,16 @@
|
||||
}
|
||||
|
||||
.photos-selection-bar .selection-count {
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.photos-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
gap: 2px;
|
||||
padding: 0 2px;
|
||||
margin-bottom: 8px;
|
||||
gap: var(--space-0-5);
|
||||
padding: 0 var(--space-0-5);
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
|
||||
.photos-group-monthly .photos-grid {
|
||||
@@ -290,11 +293,11 @@
|
||||
}
|
||||
|
||||
.photos-day-header {
|
||||
font-size: 14px;
|
||||
padding: 10px 4px 6px;
|
||||
font-size: var(--text-base);
|
||||
padding: var(--space-2-5) var(--space-1) var(--space-1-5);
|
||||
}
|
||||
|
||||
.photos-toolbar {
|
||||
padding: 6px 4px 2px;
|
||||
padding: var(--space-1-5) var(--space-1) var(--space-0-5);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
max-width: 90vw;
|
||||
max-height: 85vh;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
border: none;
|
||||
background: var(--color-lightbox-btn-bg);
|
||||
color: var(--color-lightbox-btn-text);
|
||||
font-size: 20px;
|
||||
font-size: var(--text-xl);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -80,7 +80,7 @@
|
||||
border: none;
|
||||
background: var(--color-lightbox-btn-bg);
|
||||
color: var(--color-lightbox-btn-text);
|
||||
font-size: 18px;
|
||||
font-size: var(--text-lg);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -99,7 +99,7 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 16px 70px 16px 20px;
|
||||
padding: var(--space-4) 70px var(--space-4) var(--space-5);
|
||||
background: var(--color-lightbox-gradient-top);
|
||||
color: var(--color-lightbox-btn-text);
|
||||
z-index: 10001;
|
||||
@@ -107,18 +107,18 @@
|
||||
|
||||
.lightbox-filename {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 2px;
|
||||
font-weight: var(--weight-semibold);
|
||||
margin-bottom: var(--space-0-5);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.lightbox-meta {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-lightbox-text-muted);
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@@ -128,12 +128,12 @@
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 16px 20px;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
background: var(--color-lightbox-gradient-bottom);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
z-index: 10001;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 16px;
|
||||
font-size: var(--text-md);
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
bottom: 16px;
|
||||
left: 20px;
|
||||
color: var(--color-lightbox-text-faint);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
z-index: 10001;
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
.lightbox-nav {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 16px;
|
||||
font-size: var(--text-md);
|
||||
}
|
||||
|
||||
.lightbox-prev {
|
||||
|
||||
+195
-199
@@ -7,7 +7,7 @@
|
||||
body {
|
||||
background: var(--color-bg-page);
|
||||
color: var(--color-text-heading);
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -19,7 +19,7 @@ body {
|
||||
color: inherit;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
gap: var(--space-3-5);
|
||||
}
|
||||
.width-zero {
|
||||
width: 0%;
|
||||
@@ -30,7 +30,7 @@ body {
|
||||
/* ── Header ── */
|
||||
.profile-header {
|
||||
background: linear-gradient(135deg, var(--color-sidebar-bg-from) 0%, var(--color-sidebar-bg-to) 100%);
|
||||
padding: 0 32px;
|
||||
padding: 0 var(--space-8);
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -43,7 +43,7 @@ body {
|
||||
.profile-header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
gap: var(--space-3-5);
|
||||
}
|
||||
.profile-logo {
|
||||
width: 38px;
|
||||
@@ -62,24 +62,24 @@ body {
|
||||
}
|
||||
.profile-title-text {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
font-weight: var(--weight-bold);
|
||||
color: var(--color-sidebar-text-active);
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
.profile-title-separator {
|
||||
font-size: 17px;
|
||||
color: var(--color-sidebar-storage-faint);
|
||||
font-weight: 400;
|
||||
margin-left: 6px;
|
||||
font-weight: var(--weight-normal);
|
||||
margin-left: var(--space-1-5);
|
||||
}
|
||||
.profile-header-right a {
|
||||
color: var(--color-sidebar-text);
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.profile-header-right a:hover {
|
||||
@@ -90,28 +90,28 @@ body {
|
||||
.profile-container {
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
padding: 32px 24px 60px;
|
||||
padding: var(--space-8) var(--space-6) 60px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ── Card ── */
|
||||
.profile-card {
|
||||
background: var(--color-bg-surface);
|
||||
border-radius: 16px;
|
||||
border-radius: var(--radius-3xl);
|
||||
box-shadow:
|
||||
0 1px 4px var(--color-shadow-xs),
|
||||
0 0 0 1px var(--color-shadow-xs);
|
||||
padding: 32px;
|
||||
padding: var(--space-8);
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.profile-card h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-bold);
|
||||
margin-bottom: var(--space-5);
|
||||
color: var(--color-text-heading);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: var(--space-2-5);
|
||||
}
|
||||
.profile-card h2 i {
|
||||
color: var(--color-accent);
|
||||
@@ -122,8 +122,8 @@ body {
|
||||
.avatar-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
margin-bottom: 8px;
|
||||
gap: var(--space-6);
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
.avatar-large {
|
||||
width: 88px;
|
||||
@@ -134,31 +134,31 @@ body {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-sidebar-text-active);
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
font-size: var(--text-4xl);
|
||||
font-weight: var(--weight-bold);
|
||||
letter-spacing: 1px;
|
||||
box-shadow: 0 6px 20px var(--color-accent-shadow);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.avatar-info h1 {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
font-weight: var(--weight-bold);
|
||||
color: var(--color-text-heading);
|
||||
margin-bottom: 4px;
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
.avatar-info .email {
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
color: var(--color-text-subtle);
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
.avatar-info .role-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
padding: 4px 12px;
|
||||
border-radius: 20px;
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--weight-semibold);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border-radius: var(--radius-4xl);
|
||||
}
|
||||
.role-badge-admin {
|
||||
background: var(--color-role-admin-bg);
|
||||
@@ -173,7 +173,7 @@ body {
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.info-grid {
|
||||
@@ -181,9 +181,9 @@ body {
|
||||
}
|
||||
}
|
||||
.info-item {
|
||||
padding: 16px;
|
||||
padding: var(--space-4);
|
||||
background: var(--color-bg-alt);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
.info-item .info-label {
|
||||
@@ -191,31 +191,31 @@ body {
|
||||
color: var(--color-text-faint);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 700;
|
||||
margin-bottom: 4px;
|
||||
font-weight: var(--weight-bold);
|
||||
margin-bottom: var(--space-1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
}
|
||||
.info-item .info-label i {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
.info-item .info-value {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
|
||||
/* ── Storage ── */
|
||||
.storage-section {
|
||||
margin-top: 4px;
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.storage-stats {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 14px;
|
||||
margin-bottom: 16px;
|
||||
gap: var(--space-3-5);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.storage-stats {
|
||||
@@ -224,26 +224,26 @@ body {
|
||||
}
|
||||
.storage-stat {
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
padding: var(--space-4);
|
||||
background: var(--color-bg-hover);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
.storage-stat .stat-value {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--weight-extrabold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
.storage-stat .stat-label {
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
color: var(--color-text-faint);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 600;
|
||||
margin-top: 2px;
|
||||
font-weight: var(--weight-semibold);
|
||||
margin-top: var(--space-0-5);
|
||||
}
|
||||
.storage-bar-wrap {
|
||||
margin-top: 4px;
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.storage-bar {
|
||||
height: 10px;
|
||||
@@ -266,29 +266,29 @@ body {
|
||||
background: var(--color-storage-fill-red);
|
||||
}
|
||||
.storage-text {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
text-align: right;
|
||||
margin-top: 6px;
|
||||
margin-top: var(--space-1-5);
|
||||
}
|
||||
|
||||
/* ── Change Password ── */
|
||||
.form-group {
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
.form-group label {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 4px;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-semibold);
|
||||
margin-bottom: var(--space-1);
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
.form-group input {
|
||||
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);
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
@@ -305,23 +305,23 @@ body {
|
||||
}
|
||||
.form-group small {
|
||||
color: var(--color-text-faint);
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 10px 22px;
|
||||
padding: var(--space-2-5) 22px;
|
||||
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: all 0.15s;
|
||||
white-space: nowrap;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--space-1-5);
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--color-accent-gradient);
|
||||
@@ -339,11 +339,11 @@ body {
|
||||
}
|
||||
|
||||
.alert {
|
||||
padding: 12px 16px;
|
||||
border-radius: 10px;
|
||||
font-size: 13px;
|
||||
margin-top: 14px;
|
||||
font-weight: 500;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-radius: var(--radius-xl);
|
||||
font-size: var(--text-sm);
|
||||
margin-top: var(--space-3-5);
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
.alert-success {
|
||||
background: var(--color-badge-success-bg);
|
||||
@@ -358,22 +358,22 @@ body {
|
||||
|
||||
/* ── App Passwords ── */
|
||||
.section-desc {
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-subtle);
|
||||
margin-bottom: 16px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: var(--space-4);
|
||||
line-height: var(--leading-normal);
|
||||
}
|
||||
.scope-checkboxes {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
gap: var(--space-4);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.checkbox-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
color: var(--color-text-dark);
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -384,10 +384,10 @@ body {
|
||||
}
|
||||
.form-select {
|
||||
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);
|
||||
font-family: inherit;
|
||||
@@ -418,28 +418,28 @@ body {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.btn-sm {
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
border-radius: 8px;
|
||||
padding: var(--space-1-5) var(--space-3);
|
||||
font-size: var(--text-xs);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.app-pw-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
.app-pw-table th {
|
||||
text-align: left;
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--color-text-faint);
|
||||
font-weight: 700;
|
||||
padding: 8px 10px;
|
||||
font-weight: var(--weight-bold);
|
||||
padding: var(--space-2) var(--space-2-5);
|
||||
border-bottom: 2px solid var(--color-border);
|
||||
}
|
||||
.app-pw-table td {
|
||||
padding: 10px;
|
||||
padding: var(--space-2-5);
|
||||
border-bottom: 1px solid var(--color-border-light);
|
||||
vertical-align: middle;
|
||||
}
|
||||
@@ -447,23 +447,23 @@ body {
|
||||
border-bottom: none;
|
||||
}
|
||||
.app-pw-label-cell {
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-heading);
|
||||
}
|
||||
.app-pw-prefix code {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
background: var(--color-border-light);
|
||||
padding: 2px 8px;
|
||||
border-radius: 6px;
|
||||
padding: var(--space-0-5) var(--space-2);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-subtle);
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
padding: 2px 10px;
|
||||
border-radius: 12px;
|
||||
font-size: var(--text-2xs);
|
||||
font-weight: var(--weight-semibold);
|
||||
padding: var(--space-0-5) var(--space-2-5);
|
||||
border-radius: var(--radius-2xl);
|
||||
}
|
||||
.badge-active {
|
||||
background: var(--color-badge-success-bg);
|
||||
@@ -476,7 +476,7 @@ body {
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.app-pw-table {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
.app-pw-table th:nth-child(3),
|
||||
.app-pw-table td:nth-child(3),
|
||||
@@ -487,83 +487,79 @@ body {
|
||||
}
|
||||
.app-pw-empty {
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
padding: var(--space-6);
|
||||
color: var(--color-text-faint);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
.app-pw-empty i {
|
||||
margin-right: 6px;
|
||||
margin-right: var(--space-1-5);
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
.app-pw-warn {
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
.app-pw-dismiss {
|
||||
margin-top: 10px;
|
||||
margin-top: var(--space-2-5);
|
||||
}
|
||||
.app-pw-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
.app-pw-new-btn {
|
||||
margin-top: 14px;
|
||||
margin-top: var(--space-3-5);
|
||||
}
|
||||
.app-pw-created-box {
|
||||
position: relative;
|
||||
}
|
||||
.app-pw-token-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
.app-pw-token-input {
|
||||
flex: 1;
|
||||
padding: 10px 14px;
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
border: 2px solid var(--color-badge-success-border);
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
border-radius: var(--radius-xl);
|
||||
font-size: var(--text-base);
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
background: var(--color-badge-success-fill-faint);
|
||||
color: var(--color-badge-success-text);
|
||||
}
|
||||
.app-pw-instr-list {
|
||||
font-size: 12px;
|
||||
line-height: 1.8;
|
||||
margin-top: 8px;
|
||||
font-size: var(--text-xs);
|
||||
line-height: var(--leading-loose);
|
||||
margin-top: var(--space-2);
|
||||
}
|
||||
.app-pw-instr-list code {
|
||||
background: var(--color-badge-success-fill-faint);
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
padding: 1px var(--space-1-5);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
/* ── Loading / Error ── */
|
||||
#loading {
|
||||
text-align: center;
|
||||
padding: 80px;
|
||||
padding: var(--space-20);
|
||||
color: var(--color-text-faint);
|
||||
font-size: 15px;
|
||||
}
|
||||
#loading i {
|
||||
font-size: 32px;
|
||||
font-size: var(--text-4xl);
|
||||
color: var(--color-accent);
|
||||
display: block;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: var(--space-3);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* @keyframes spin → base/animations.css (canonical, loaded via main.css). */
|
||||
#auth-error {
|
||||
text-align: center;
|
||||
padding: 80px 20px;
|
||||
padding: var(--space-20) var(--space-5);
|
||||
}
|
||||
#auth-error .err-icon {
|
||||
width: 80px;
|
||||
@@ -573,33 +569,33 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 20px;
|
||||
margin: 0 auto var(--space-5);
|
||||
}
|
||||
#auth-error .err-icon i {
|
||||
font-size: 32px;
|
||||
font-size: var(--text-4xl);
|
||||
color: var(--color-danger-alt);
|
||||
}
|
||||
#auth-error h2 {
|
||||
color: var(--color-error-text-dark);
|
||||
margin-bottom: 8px;
|
||||
font-size: 20px;
|
||||
margin-bottom: var(--space-2);
|
||||
font-size: var(--text-xl);
|
||||
}
|
||||
#auth-error p {
|
||||
color: var(--color-text-subtle);
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
margin-bottom: var(--space-5);
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
#auth-error a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 10px 24px;
|
||||
gap: var(--space-1-5);
|
||||
padding: var(--space-2-5) var(--space-6);
|
||||
background: var(--color-accent-gradient);
|
||||
color: var(--color-sidebar-text-active);
|
||||
text-decoration: none;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
border-radius: var(--radius-xl);
|
||||
font-weight: var(--weight-semibold);
|
||||
font-size: var(--text-base);
|
||||
box-shadow: 0 3px 12px var(--color-accent-shadow);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
@@ -610,22 +606,22 @@ body {
|
||||
|
||||
/* ── App Passwords ── */
|
||||
.app-pw-desc {
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-subtle);
|
||||
margin-bottom: 16px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: var(--space-4);
|
||||
line-height: var(--leading-normal);
|
||||
}
|
||||
.app-pw-create {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-bottom: 16px;
|
||||
gap: var(--space-2-5);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
.app-pw-create input {
|
||||
flex: 1;
|
||||
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);
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
@@ -645,42 +641,42 @@ body {
|
||||
.app-pw-created {
|
||||
background: var(--color-badge-success-bg);
|
||||
border: 1px solid var(--color-badge-success-border);
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
border-radius: var(--radius-2xl);
|
||||
padding: var(--space-4);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
.app-pw-created-label {
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-badge-success-text);
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--space-2);
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
.app-pw-created-value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 6px;
|
||||
gap: var(--space-2-5);
|
||||
margin-bottom: var(--space-1-5);
|
||||
}
|
||||
.app-pw-created-value code {
|
||||
font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-bold);
|
||||
color: var(--color-badge-success-text);
|
||||
letter-spacing: 1px;
|
||||
background: var(--color-badge-success-bg-medium);
|
||||
padding: 8px 14px;
|
||||
border-radius: 8px;
|
||||
padding: var(--space-2) var(--space-3-5);
|
||||
border-radius: var(--radius-lg);
|
||||
flex: 1;
|
||||
word-break: break-all;
|
||||
}
|
||||
.btn-copy {
|
||||
padding: 8px 12px;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-secret-green);
|
||||
color: var(--color-sidebar-text-active);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
transition: all 0.15s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -688,13 +684,13 @@ body {
|
||||
background: var(--color-badge-success-fill);
|
||||
}
|
||||
.app-pw-created small {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-badge-success-fill);
|
||||
}
|
||||
.app-pw-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
.app-pw-table thead th {
|
||||
text-align: left;
|
||||
@@ -702,12 +698,12 @@ body {
|
||||
color: var(--color-text-faint);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 700;
|
||||
padding: 8px 12px;
|
||||
font-weight: var(--weight-bold);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.app-pw-table tbody td {
|
||||
padding: 10px 12px;
|
||||
padding: var(--space-2-5) var(--space-3);
|
||||
border-bottom: 1px solid var(--color-border-light);
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
@@ -715,13 +711,13 @@ body {
|
||||
border-bottom: none;
|
||||
}
|
||||
.btn-danger-sm {
|
||||
padding: 6px 10px;
|
||||
padding: var(--space-1-5) var(--space-2-5);
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-danger-light-bg);
|
||||
color: var(--color-error-text-dark);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.btn-danger-sm:hover {
|
||||
@@ -731,23 +727,23 @@ body {
|
||||
.app-pw-empty {
|
||||
text-align: center;
|
||||
color: var(--color-text-faint);
|
||||
font-size: 14px;
|
||||
padding: 24px 0;
|
||||
font-size: var(--text-base);
|
||||
padding: var(--space-6) 0;
|
||||
}
|
||||
.app-pw-auto-section {
|
||||
margin-top: 20px;
|
||||
margin-top: var(--space-5);
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding-top: 16px;
|
||||
padding-top: var(--space-4);
|
||||
}
|
||||
.app-pw-auto-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-size: var(--text-base);
|
||||
font-weight: var(--weight-semibold);
|
||||
color: var(--color-text-subtle);
|
||||
padding: 0;
|
||||
transition: color 0.15s;
|
||||
@@ -757,23 +753,23 @@ body {
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
.app-pw-auto-toggle i {
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
transition: transform 0.15s;
|
||||
width: 12px;
|
||||
}
|
||||
.app-pw-auto-count {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
font-size: var(--text-2xs);
|
||||
font-weight: var(--weight-bold);
|
||||
background: var(--color-border);
|
||||
color: var(--color-text-subtle);
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
padding: var(--space-0-5) var(--space-2);
|
||||
border-radius: var(--radius-xl);
|
||||
margin-left: auto;
|
||||
}
|
||||
.app-pw-auto-desc {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
margin: 12px 0 8px;
|
||||
margin: var(--space-3) 0 var(--space-2);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@@ -807,7 +803,7 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 11px;
|
||||
font-size: var(--text-2xs);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
opacity 0.15s,
|
||||
@@ -820,33 +816,33 @@ body {
|
||||
|
||||
/* OIDC note shown instead of edit button */
|
||||
.avatar-oidc-note {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
margin-top: 6px;
|
||||
margin-top: var(--space-1-5);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* ── Photo edit panel ──────────────────────────────────────────────────────── */
|
||||
|
||||
.avatar-edit-panel {
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
margin-top: var(--space-5);
|
||||
padding-top: var(--space-5);
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.avatar-edit-tabs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
margin-bottom: 16px;
|
||||
gap: var(--space-1);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.avatar-tab {
|
||||
padding: 6px 16px;
|
||||
padding: var(--space-1-5) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 20px;
|
||||
border-radius: var(--radius-4xl);
|
||||
background: none;
|
||||
color: var(--color-text-subtle);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background 0.15s,
|
||||
@@ -863,17 +859,17 @@ body {
|
||||
.avatar-tab-pane {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.avatar-url-input {
|
||||
width: 100%;
|
||||
padding: 10px 14px;
|
||||
padding: var(--space-2-5) var(--space-3-5);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-xl);
|
||||
background: var(--color-bg-alt);
|
||||
color: var(--color-text-dark);
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -884,7 +880,7 @@ body {
|
||||
}
|
||||
|
||||
.avatar-hint {
|
||||
font-size: 12px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
@@ -896,13 +892,13 @@ body {
|
||||
.avatar-file-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 20px;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2-5) var(--space-5);
|
||||
border: 1px dashed var(--color-border);
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-xl);
|
||||
background: var(--color-bg-alt);
|
||||
color: var(--color-text-subtle);
|
||||
font-size: 13px;
|
||||
font-size: var(--text-sm);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 0.15s,
|
||||
@@ -925,11 +921,11 @@ body {
|
||||
|
||||
.avatar-edit-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
flex-wrap: wrap;
|
||||
margin-top: 16px;
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
#p-avatar-status {
|
||||
margin-top: 12px;
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
|
||||
@@ -37,20 +37,20 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 50px 20px;
|
||||
padding: 50px var(--space-5);
|
||||
text-align: center;
|
||||
color: var(--color-recent-muted);
|
||||
}
|
||||
|
||||
.recents-empty-state i {
|
||||
font-size: 48px;
|
||||
font-size: var(--text-6xl);
|
||||
color: var(--color-recent-muted);
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: var(--space-5);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.recents-empty-state p {
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: var(--space-2-5);
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,33 +7,44 @@
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--color-bg-hover);
|
||||
/* Shared brand backdrop (centralised in --brand-ambient). */
|
||||
background: var(--brand-ambient);
|
||||
color: var(--color-text-heading);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: safe center;
|
||||
height: auto;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
overflow: auto;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.share-card {
|
||||
background: var(--color-bg-surface);
|
||||
border-radius: var(--radius, 12px);
|
||||
box-shadow: 0 4px 24px var(--color-shadow-sm);
|
||||
border-radius: var(--radius-3xl);
|
||||
box-shadow: var(--shadow-xl);
|
||||
padding: 2.5rem;
|
||||
max-width: 480px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.share-trust {
|
||||
margin-top: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-1-5);
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
.share-logo {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.share-logo h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
.share-logo span {
|
||||
color: var(--color-primary);
|
||||
@@ -64,18 +75,29 @@ p.subtitle {
|
||||
margin: 0 auto 1rem;
|
||||
animation: spin 0.7s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* @keyframes spin → base/animations.css (canonical, loaded via main.css). */
|
||||
|
||||
/* Icons */
|
||||
.share-icon {
|
||||
font-size: 3rem;
|
||||
font-size: var(--text-6xl);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
/* Inline SVG state icons (replaced the per-OS emoji). Colour comes from the
|
||||
container via stroke: currentColor. */
|
||||
.share-icon svg {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
#share-expired .share-icon {
|
||||
color: var(--color-error-text);
|
||||
}
|
||||
|
||||
#share-file .share-icon {
|
||||
color: var(--color-accent-text);
|
||||
}
|
||||
|
||||
/* Password form */
|
||||
#password-form {
|
||||
text-align: left;
|
||||
@@ -83,9 +105,9 @@ p.subtitle {
|
||||
#password-input {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 1rem;
|
||||
font-size: var(--text-md);
|
||||
border: 2px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
outline: none;
|
||||
background: var(--color-bg-surface);
|
||||
color: var(--color-text-heading);
|
||||
@@ -112,9 +134,9 @@ FIXME: use components/buttons.css ?
|
||||
background: var(--color-primary);
|
||||
color: var(--color-bg-surface);
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
font-weight: var(--weight-semibold);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
@@ -193,8 +215,8 @@ body.gallery-mode .share-logo {
|
||||
}
|
||||
.gallery-title {
|
||||
flex: 1 1 200px;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
font-size: var(--text-xl);
|
||||
font-weight: var(--weight-semibold);
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
color: var(--color-text-heading);
|
||||
@@ -213,7 +235,7 @@ body.gallery-mode .share-logo {
|
||||
color: var(--color-text-heading);
|
||||
font-size: 0.85rem;
|
||||
padding: 0.4rem 0.85rem;
|
||||
border-radius: 999px;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--color-bg-hover);
|
||||
border: 1px solid var(--color-border);
|
||||
transition: background 0.15s;
|
||||
@@ -226,7 +248,7 @@ body.gallery-mode .share-logo {
|
||||
display: inline-flex;
|
||||
background: var(--color-bg-hover);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 999px;
|
||||
border-radius: var(--radius-full);
|
||||
padding: 3px;
|
||||
}
|
||||
.gallery-view-toggle button {
|
||||
@@ -234,7 +256,7 @@ body.gallery-mode .share-logo {
|
||||
border: none;
|
||||
color: var(--color-text-gray);
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-radius: 999px;
|
||||
border-radius: var(--radius-full);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
display: inline-flex;
|
||||
@@ -252,14 +274,14 @@ body.gallery-mode .share-logo {
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
padding: 0.55rem 1rem;
|
||||
border-radius: 999px;
|
||||
border-radius: var(--radius-full);
|
||||
width: auto;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.gallery-section-title {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--weight-semibold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: var(--color-text-gray);
|
||||
@@ -278,7 +300,7 @@ body.gallery-mode .share-logo {
|
||||
padding: 0.75rem 0.85rem;
|
||||
background: var(--color-bg-hover);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
color: var(--color-text-heading);
|
||||
text-decoration: none;
|
||||
transition:
|
||||
@@ -296,13 +318,13 @@ body.gallery-mode .share-logo {
|
||||
}
|
||||
.folder-card .card-name {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.folder-card .card-meta {
|
||||
font-size: 0.75rem;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-gray);
|
||||
}
|
||||
|
||||
@@ -315,7 +337,7 @@ body.gallery-mode .share-logo {
|
||||
display: block;
|
||||
background: var(--color-bg-hover);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-2xl);
|
||||
color: var(--color-text-heading);
|
||||
text-decoration: none;
|
||||
overflow: hidden;
|
||||
@@ -367,7 +389,7 @@ body.gallery-mode .share-logo {
|
||||
.file-thumb .video-marker::before {
|
||||
content: "▶";
|
||||
color: var(--color-on-overlay);
|
||||
font-size: 28px;
|
||||
font-size: var(--text-3xl);
|
||||
text-shadow: 0 2px 8px var(--color-overlay-shadow);
|
||||
}
|
||||
.file-card .card-body {
|
||||
@@ -376,15 +398,15 @@ body.gallery-mode .share-logo {
|
||||
}
|
||||
.file-card .card-name {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
font-weight: var(--weight-medium);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.file-card .card-meta {
|
||||
font-size: 0.75rem;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-gray);
|
||||
margin-top: 2px;
|
||||
margin-top: var(--space-0-5);
|
||||
}
|
||||
|
||||
/* ── List view ───────────────────────────────────────────────── */
|
||||
@@ -397,7 +419,7 @@ body[data-share-view="list"] .file-card {
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
margin-bottom: 0.35rem;
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-xl);
|
||||
}
|
||||
body[data-share-view="list"] .file-card:hover {
|
||||
transform: none;
|
||||
@@ -407,14 +429,14 @@ body[data-share-view="list"] .file-thumb {
|
||||
height: 44px;
|
||||
aspect-ratio: 1 / 1;
|
||||
flex: none;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
body[data-share-view="list"] .file-thumb .file-type-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
body[data-share-view="list"] .file-thumb .video-marker::before {
|
||||
font-size: 14px;
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
body[data-share-view="list"] .file-card .card-body {
|
||||
padding: 0;
|
||||
@@ -462,7 +484,7 @@ body[data-share-view="list"] .file-card .card-body {
|
||||
background: var(--color-overlay-button);
|
||||
color: var(--color-on-overlay);
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
border-radius: var(--radius-full);
|
||||
padding: 0.5rem 0.85rem;
|
||||
font-size: 0.85rem;
|
||||
text-decoration: none;
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
.swm-load-more-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 16px 0 24px;
|
||||
padding: var(--space-4) 0 var(--space-6);
|
||||
}
|
||||
|
||||
@@ -9,8 +9,9 @@
|
||||
<link rel="stylesheet" href="/css/views/device-verify.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="dag-card">
|
||||
<div class="dag-card" role="main">
|
||||
<div class="dag-logo">
|
||||
<span class="brand-mark"><svg viewBox="120 120 280 280"><path d="M345 310c32 0 58-26 58-58s-26-58-58-58c-6.2 0-12 0.9-17.5 2.7C318 166 289 143 255 143c-34.3 0-63.1 22.6-73 53.7C176.9 195.7 171 195 165 195c-32 0-58 26-58 58s26 58 58 58h180z"/></svg></span>
|
||||
<h1><span>Oxi</span>Cloud</h1>
|
||||
</div>
|
||||
|
||||
|
||||
+57
-43
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@@ -9,6 +9,20 @@
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<title data-i18n="app.title">OxiCloud</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/logo/logo-plain.svg">
|
||||
<link rel="icon" href="/favicon.ico" sizes="32x32">
|
||||
<link rel="apple-touch-icon" href="/logo/apple-touch-icon.png">
|
||||
<link rel="mask-icon" href="/logo/logo-plain.svg" color="#ff5e3a">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f5f7fa">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0f172a">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="OxiCloud">
|
||||
<meta property="og:description" content="Fast, private cloud storage built with Rust.">
|
||||
<meta property="og:image" content="/logo/og-image.png">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="OxiCloud">
|
||||
<meta name="twitter:description" content="Fast, private cloud storage built with Rust.">
|
||||
<meta name="twitter:image" content="/logo/og-image.png">
|
||||
<!-- Apply saved theme immediately to prevent flash of light mode -->
|
||||
<script src="/js/core/theme-init.js"></script>
|
||||
|
||||
@@ -25,6 +39,7 @@
|
||||
<link rel="stylesheet" href="/css/views/music.css">
|
||||
|
||||
<!-- Scripts (defer: download in parallel, execute in order, after HTML parsed) -->
|
||||
<script defer type="module" src="/js/core/errorBoundary.js"></script>
|
||||
<script defer type="module" src="/js/core/i18n.js"></script>
|
||||
<script defer type="module" src="/js/core/csrf.js"></script>
|
||||
<script defer type="module" src="/js/core/languageSelector.js"></script>
|
||||
@@ -52,6 +67,7 @@
|
||||
<script defer type="module" src="/js/app/navigation.js"></script>
|
||||
<script defer type="module" src="/js/app/authSession.js"></script>
|
||||
<script defer type="module" src="/js/app/userMenu.js"></script>
|
||||
<script defer type="module" src="/js/app/commandPalette.js"></script>
|
||||
<script defer type="module" src="/js/app/filesView.js"></script>
|
||||
<script defer type="module" src="/js/views/trash/trashView.js"></script>
|
||||
<script defer type="module" src="/js/app/searchView.js"></script>
|
||||
@@ -62,6 +78,7 @@
|
||||
<script defer src="/js/core/sw-register.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a href="#main" class="skip-link" data-i18n="a11y.skip_to_content">Skip to content</a>
|
||||
<!-- Mobile sidebar overlay -->
|
||||
<div class="sidebar-overlay" id="sidebar-overlay"></div>
|
||||
<!-- Sidebar -->
|
||||
@@ -76,40 +93,40 @@
|
||||
<div class="app-name">OxiCloud</div>
|
||||
</a>
|
||||
|
||||
<div class="nav-menu">
|
||||
<div class="nav-item">
|
||||
<i class="fas fa-folder"></i>
|
||||
<nav class="nav-menu" aria-label="Primary" data-i18n-aria-label="nav.primary">
|
||||
<button class="nav-item" type="button">
|
||||
<i class="fas fa-folder" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.files">Files</span>
|
||||
</div>
|
||||
<div class="nav-item" id="nav-shared">
|
||||
<i class="fas fa-oxiexport"></i>
|
||||
</button>
|
||||
<button class="nav-item" type="button" id="nav-shared">
|
||||
<i class="fas fa-oxiexport" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.shared">Shared</span>
|
||||
</div>
|
||||
<div class="nav-item" id="nav-sharedwithme">
|
||||
<i class="fas fa-oxiimport"></i>
|
||||
</button>
|
||||
<button class="nav-item" type="button" id="nav-sharedwithme">
|
||||
<i class="fas fa-oxiimport" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.sharedwithme">Shared with me</span>
|
||||
</div>
|
||||
<div class="nav-item">
|
||||
<i class="fas fa-clock"></i>
|
||||
</button>
|
||||
<button class="nav-item" type="button">
|
||||
<i class="fas fa-clock" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.recent">Recent</span>
|
||||
</div>
|
||||
<div class="nav-item">
|
||||
<i class="fas fa-star"></i>
|
||||
</button>
|
||||
<button class="nav-item" type="button">
|
||||
<i class="fas fa-star" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.favorites">Favorites</span>
|
||||
</div>
|
||||
<div class="nav-item" id="nav-photos">
|
||||
<i class="fas fa-images"></i>
|
||||
</button>
|
||||
<button class="nav-item" type="button" id="nav-photos">
|
||||
<i class="fas fa-images" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.photos">Photos</span>
|
||||
</div>
|
||||
<div class="nav-item" id="nav-music">
|
||||
<i class="fas fa-music"></i>
|
||||
</button>
|
||||
<button class="nav-item" type="button" id="nav-music">
|
||||
<i class="fas fa-music" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.music">Music</span>
|
||||
</div>
|
||||
<div class="nav-item">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
<button class="nav-item" type="button">
|
||||
<i class="fas fa-trash" aria-hidden="true"></i>
|
||||
<span data-i18n="nav.trash">Trash</span>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
<div class="storage-container">
|
||||
<div class="storage-title"><i class="fas fa-database"></i> <span data-i18n="storage.title">Storage</span></div>
|
||||
@@ -125,7 +142,7 @@
|
||||
<!-- Top Bar -->
|
||||
<div class="top-bar">
|
||||
<!-- Mobile menu toggle -->
|
||||
<button class="sidebar-toggle" id="sidebar-toggle" aria-label="Toggle navigation menu">
|
||||
<button class="sidebar-toggle" id="sidebar-toggle" aria-label="Toggle navigation menu" aria-controls="sidebar" aria-expanded="false">
|
||||
<i class="fas fa-bars"></i>
|
||||
</button>
|
||||
<!-- Mobile search icon (replaces full bar on small screens) -->
|
||||
@@ -152,8 +169,8 @@
|
||||
<div class="user-controls">
|
||||
<!-- Notification Bell -->
|
||||
<div class="notif-wrapper" id="notif-wrapper">
|
||||
<button class="notif-bell-btn" id="notif-bell-btn" title="Notifications">
|
||||
<i class="fas fa-bell"></i>
|
||||
<button class="notif-bell-btn" id="notif-bell-btn" title="Notifications" aria-label="Notifications" data-i18n-aria-label="notifications.title" aria-haspopup="true">
|
||||
<i class="fas fa-bell" aria-hidden="true"></i>
|
||||
<span class="notif-badge hidden" id="notif-badge">0</span>
|
||||
</button>
|
||||
<div class="notif-panel" id="notif-panel">
|
||||
@@ -173,7 +190,7 @@
|
||||
</div>
|
||||
|
||||
<div class="user-menu-wrapper" id="user-menu-wrapper">
|
||||
<button class="user-avatar-btn" id="user-avatar-btn">
|
||||
<button class="user-avatar-btn" id="user-avatar-btn" aria-label="User menu" aria-haspopup="true">
|
||||
<!-- avatar-only userVignette mounted here by updateUserMenuData() -->
|
||||
</button>
|
||||
<div class="user-menu" id="user-menu">
|
||||
@@ -209,7 +226,7 @@
|
||||
<div class="user-menu-divider hidden" id="user-menu-admin-divider"></div>
|
||||
<div id="language-selector"></div>
|
||||
<div class="user-menu-item user-menu-item--theme">
|
||||
<i class="fas fa-moon"></i>
|
||||
<i class="fas fa-adjust" aria-hidden="true"></i>
|
||||
<span data-i18n="user_menu.appearance">Appearance</span>
|
||||
<div class="theme-segmented" id="user-menu-theme-segmented" role="radiogroup" data-i18n-aria-label="user_menu.appearance" aria-label="Appearance">
|
||||
<button type="button" class="theme-segmented__opt" data-mode="light"
|
||||
@@ -246,7 +263,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-area">
|
||||
<div class="content-area" role="main" id="main">
|
||||
<h1 class="page-title" data-i18n="nav.files">Files</h1>
|
||||
|
||||
<div class="page-sticky-header" id="page-sticky-header">
|
||||
@@ -284,14 +301,14 @@
|
||||
|
||||
<!-- Input Modal (for New Folder, Rename, etc.) -->
|
||||
<div id="input-modal" class="modal-overlay hidden">
|
||||
<div class="modal-container">
|
||||
<div class="modal-container" role="dialog" aria-modal="true" aria-labelledby="modal-title">
|
||||
<div class="modal-header">
|
||||
<div class="modal-icon">
|
||||
<i id="modal-icon" class="fas fa-folder-plus"></i>
|
||||
</div>
|
||||
<h3 id="modal-title" data-i18n="dialogs.new_folder_title">New folder</h3>
|
||||
<button class="modal-close-btn" id="modal-close-btn">
|
||||
<i class="fas fa-times"></i>
|
||||
<h2 id="modal-title" data-i18n="dialogs.new_folder_title">New folder</h2>
|
||||
<button class="modal-close-btn" id="modal-close-btn" aria-label="Close" data-i18n-aria-label="actions.close">
|
||||
<i class="fas fa-times" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@@ -308,11 +325,11 @@
|
||||
|
||||
<!-- About Modal -->
|
||||
<div class="about-modal-overlay hidden" id="about-modal-overlay">
|
||||
<div class="about-modal">
|
||||
<div class="about-modal" role="dialog" aria-modal="true" aria-labelledby="about-modal-title">
|
||||
<div class="about-modal-logo">
|
||||
<i class="fas fa-cloud"></i>
|
||||
<svg viewBox="120 120 280 280"><path d="M345 310c32 0 58-26 58-58s-26-58-58-58c-6.2 0-12 0.9-17.5 2.7C318 166 289 143 255 143c-34.3 0-63.1 22.6-73 53.7C176.9 195.7 171 195 165 195c-32 0-58 26-58 58s26 58 58 58h180z"/></svg>
|
||||
</div>
|
||||
<h2>OxiCloud</h2>
|
||||
<h2 id="about-modal-title">OxiCloud</h2>
|
||||
<div class="about-version" id="about-version">v...</div>
|
||||
<div class="about-description" data-i18n="user_menu.about_description">
|
||||
Cloud storage platform built with Rust & Clean Architecture. Fast, secure, and private.
|
||||
@@ -337,8 +354,5 @@
|
||||
|
||||
<div id="debug"></div>
|
||||
|
||||
<!-- Upload Progress Toast (hidden – driven by notification bell) -->
|
||||
<div class="upload-toast hidden" id="upload-toast"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
// Global command palette (Cmd / Ctrl + K).
|
||||
//
|
||||
// Lists navigation targets and key actions; running one *clicks the existing
|
||||
// control* (nav button, menu item, file input) so the palette can never drift
|
||||
// from the real behaviour. Filtering is a simple case-insensitive substring
|
||||
// match; keyboard: ↑/↓ to move, Enter to run, Esc to close.
|
||||
import { i18n } from '../core/i18n.js';
|
||||
|
||||
/** @typedef {{ label: string, icon: string, run: () => void }} Command */
|
||||
|
||||
const state = {
|
||||
/** @type {HTMLElement | null} */ overlay: null,
|
||||
/** @type {HTMLInputElement | null} */ input: null,
|
||||
/** @type {HTMLElement | null} */ list: null,
|
||||
/** @type {Command[]} */ items: [],
|
||||
/** @type {Command[]} */ filtered: [],
|
||||
index: 0,
|
||||
/** @type {HTMLElement | null} */ prevFocus: null
|
||||
};
|
||||
|
||||
/** Click an element by selector (no-op if absent). */
|
||||
function click(selector) {
|
||||
/** @type {HTMLElement | null} */ (document.querySelector(selector))?.click();
|
||||
}
|
||||
|
||||
/** Activate the sidebar nav button whose label key matches `nav.<section>`. */
|
||||
function navTo(section) {
|
||||
document.querySelectorAll('.nav-item').forEach((it) => {
|
||||
const key = it.querySelector('span[data-i18n]')?.getAttribute('data-i18n');
|
||||
if (key === `nav.${section}`) /** @type {HTMLElement} */ (it).click();
|
||||
});
|
||||
}
|
||||
|
||||
/** @returns {Command[]} */
|
||||
function buildCommands() {
|
||||
/** @type {Command[]} */
|
||||
const cmds = [
|
||||
{ label: i18n.t('nav.files'), icon: 'fa-folder', run: () => navTo('files') },
|
||||
{ label: i18n.t('nav.shared'), icon: 'fa-oxiexport', run: () => navTo('shared') },
|
||||
{ label: i18n.t('nav.sharedwithme'), icon: 'fa-oxiimport', run: () => navTo('sharedwithme') },
|
||||
{ label: i18n.t('nav.recent'), icon: 'fa-clock', run: () => navTo('recent') },
|
||||
{ label: i18n.t('nav.favorites'), icon: 'fa-star', run: () => navTo('favorites') },
|
||||
{ label: i18n.t('nav.photos'), icon: 'fa-images', run: () => navTo('photos') },
|
||||
{ label: i18n.t('nav.music'), icon: 'fa-music', run: () => navTo('music') },
|
||||
{ label: i18n.t('nav.trash'), icon: 'fa-trash', run: () => navTo('trash') },
|
||||
{ label: i18n.t('actions.upload_files'), icon: 'fa-cloud-upload-alt', run: () => click('#file-input') },
|
||||
{ label: i18n.t('user_menu.profile'), icon: 'fa-user-circle', run: () => click('#user-menu-profile') },
|
||||
{ label: i18n.t('user_menu.about'), icon: 'fa-info-circle', run: () => click('#user-menu-about') },
|
||||
{ label: i18n.t('actions.logout'), icon: 'fa-sign-out-alt', run: () => click('#user-menu-logout') }
|
||||
];
|
||||
const adminBtn = document.getElementById('user-menu-admin');
|
||||
if (adminBtn && !adminBtn.classList.contains('hidden')) {
|
||||
cmds.splice(8, 0, {
|
||||
label: i18n.t('user_menu.admin_panel'),
|
||||
icon: 'fa-cogs',
|
||||
run: () => click('#user-menu-admin')
|
||||
});
|
||||
}
|
||||
return cmds;
|
||||
}
|
||||
|
||||
function render() {
|
||||
if (!state.list) return;
|
||||
if (!state.filtered.length) {
|
||||
state.list.innerHTML = `<li class="cmdk-empty">${i18n.t('cmdk.no_results', 'No matching commands')}</li>`;
|
||||
return;
|
||||
}
|
||||
state.list.innerHTML = state.filtered
|
||||
.map(
|
||||
(cmd, i) => `
|
||||
<li class="cmdk-item${i === state.index ? ' is-active' : ''}" role="option" aria-selected="${i === state.index}" data-i="${i}">
|
||||
<i class="fas ${cmd.icon}" aria-hidden="true"></i>
|
||||
<span>${cmd.label}</span>
|
||||
</li>`
|
||||
)
|
||||
.join('');
|
||||
}
|
||||
|
||||
function filter(query) {
|
||||
const q = query.trim().toLowerCase();
|
||||
state.filtered = q ? state.items.filter((c) => c.label.toLowerCase().includes(q)) : state.items.slice();
|
||||
state.index = 0;
|
||||
render();
|
||||
}
|
||||
|
||||
function move(delta) {
|
||||
if (!state.filtered.length) return;
|
||||
state.index = (state.index + delta + state.filtered.length) % state.filtered.length;
|
||||
render();
|
||||
state.list?.querySelector('.is-active')?.scrollIntoView({ block: 'nearest' });
|
||||
}
|
||||
|
||||
function runActive() {
|
||||
const cmd = state.filtered[state.index];
|
||||
close();
|
||||
cmd?.run();
|
||||
}
|
||||
|
||||
/** @param {KeyboardEvent} e */
|
||||
function onKeydown(e) {
|
||||
if (e.key === 'Escape') {
|
||||
e.preventDefault();
|
||||
close();
|
||||
} else if (e.key === 'ArrowDown') {
|
||||
e.preventDefault();
|
||||
move(1);
|
||||
} else if (e.key === 'ArrowUp') {
|
||||
e.preventDefault();
|
||||
move(-1);
|
||||
} else if (e.key === 'Enter') {
|
||||
e.preventDefault();
|
||||
runActive();
|
||||
}
|
||||
}
|
||||
|
||||
function ensureOverlay() {
|
||||
if (state.overlay) return;
|
||||
const overlay = document.createElement('div');
|
||||
overlay.className = 'cmdk-overlay hidden';
|
||||
overlay.setAttribute('role', 'dialog');
|
||||
overlay.setAttribute('aria-modal', 'true');
|
||||
overlay.setAttribute('aria-label', i18n.t('cmdk.title', 'Command palette'));
|
||||
overlay.innerHTML = `
|
||||
<div class="cmdk-panel">
|
||||
<div class="cmdk-search">
|
||||
<i class="fas fa-search" aria-hidden="true"></i>
|
||||
<input type="text" class="cmdk-input" autocomplete="off" spellcheck="false" aria-label="${i18n.t('cmdk.title', 'Command palette')}">
|
||||
</div>
|
||||
<ul class="cmdk-list" role="listbox"></ul>
|
||||
</div>`;
|
||||
document.body.appendChild(overlay);
|
||||
state.overlay = overlay;
|
||||
state.input = /** @type {HTMLInputElement} */ (overlay.querySelector('.cmdk-input'));
|
||||
state.list = /** @type {HTMLElement} */ (overlay.querySelector('.cmdk-list'));
|
||||
state.input.placeholder = i18n.t('cmdk.placeholder', 'Type a command…');
|
||||
|
||||
overlay.addEventListener('click', (e) => {
|
||||
if (e.target === overlay) close();
|
||||
});
|
||||
overlay.addEventListener('keydown', onKeydown);
|
||||
state.input.addEventListener('input', () => filter(state.input?.value ?? ''));
|
||||
state.list.addEventListener('click', (e) => {
|
||||
const li = /** @type {HTMLElement} */ (e.target).closest('.cmdk-item');
|
||||
if (li instanceof HTMLElement) {
|
||||
state.index = Number(li.dataset.i);
|
||||
runActive();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function open() {
|
||||
ensureOverlay();
|
||||
state.prevFocus = /** @type {HTMLElement | null} */ (document.activeElement);
|
||||
state.items = buildCommands();
|
||||
if (state.input) state.input.value = '';
|
||||
filter('');
|
||||
state.overlay?.classList.remove('hidden');
|
||||
requestAnimationFrame(() => state.overlay?.classList.add('active'));
|
||||
state.input?.focus();
|
||||
}
|
||||
|
||||
function close() {
|
||||
if (!state.overlay) return;
|
||||
state.overlay.classList.remove('active');
|
||||
state.overlay.classList.add('hidden');
|
||||
state.prevFocus?.focus?.();
|
||||
state.prevFocus = null;
|
||||
}
|
||||
|
||||
// Global shortcut: Cmd/Ctrl + K toggles the palette.
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if ((e.metaKey || e.ctrlKey) && (e.key === 'k' || e.key === 'K')) {
|
||||
e.preventDefault();
|
||||
if (state.overlay && !state.overlay.classList.contains('hidden')) close();
|
||||
else open();
|
||||
}
|
||||
});
|
||||
@@ -153,6 +153,21 @@ let _groupBy = '';
|
||||
/** Whether the current sort order is reversed. */
|
||||
let _reversed = false;
|
||||
|
||||
/**
|
||||
* Flat column sort set by clicking a list-view header. When non-empty it
|
||||
* overrides the group-by's `orderBy` and forces `_groupBy = ''`, so the list
|
||||
* is a flat sort (no swimlanes) — the Drive/Finder column-sort behaviour.
|
||||
* '' = follow the active group-by.
|
||||
* @type {string}
|
||||
*/
|
||||
let _sortField = '';
|
||||
|
||||
/** The order field the server is currently sorting by (group-by or flat). */
|
||||
function _currentOrderBy() {
|
||||
if (_sortField) return _sortField;
|
||||
return GROUP_BY_DEFS.find((d) => d.key === _groupBy)?.orderBy ?? 'name';
|
||||
}
|
||||
|
||||
// ── Group-by controller (public API, consumed by navigation.js / main.js) ───
|
||||
|
||||
/**
|
||||
@@ -177,8 +192,11 @@ const filesView = {
|
||||
* @param {string} key '' | 'type' | 'modifiedAt' | 'createdAt' | 'size'
|
||||
*/
|
||||
setGroupBy(key) {
|
||||
if (_groupBy === key) return;
|
||||
// Re-pick the same group while a flat column-sort is active → still
|
||||
// exit flat-sort and return to grouping, so don't early-return then.
|
||||
if (_groupBy === key && !_sortField) return;
|
||||
_groupBy = key;
|
||||
_sortField = ''; // grouping takes over → follow the group's order field
|
||||
viewPrefs.save('files', _groupBy, _reversed, viewPrefs.load('files').view);
|
||||
_nextCursor = null;
|
||||
_component?.clear();
|
||||
@@ -197,6 +215,29 @@ const filesView = {
|
||||
_nextCursor = null;
|
||||
_component?.clear();
|
||||
_loadPage({ isFirstPage: true });
|
||||
},
|
||||
|
||||
/**
|
||||
* Flat-sort the list by a column field (clicking a list-view header).
|
||||
* Drops any grouping (no swimlanes); re-picking the active field flips the
|
||||
* direction. Synchronous state update — read `currentSort` right after to
|
||||
* refresh the header arrow, the async reload follows.
|
||||
* @param {string} field 'name' | 'type' | 'size' | 'modified_at'
|
||||
*/
|
||||
setSortField(field) {
|
||||
const sameField = _currentOrderBy() === field;
|
||||
_reversed = sameField ? !_reversed : false;
|
||||
_sortField = field;
|
||||
_groupBy = '';
|
||||
viewPrefs.save('files', _groupBy, _reversed, viewPrefs.load('files').view);
|
||||
_nextCursor = null;
|
||||
_component?.clear();
|
||||
_loadPage({ isFirstPage: true });
|
||||
},
|
||||
|
||||
/** Current effective sort `{ field, reversed }` — for the column-header arrows. */
|
||||
get currentSort() {
|
||||
return { field: _currentOrderBy(), reversed: _reversed };
|
||||
}
|
||||
};
|
||||
|
||||
@@ -315,7 +356,9 @@ async function _loadPage({ isFirstPage = false } = {}) {
|
||||
|
||||
try {
|
||||
const def = GROUP_BY_DEFS.find((d) => d.key === _groupBy);
|
||||
const orderBy = def?.orderBy ?? 'name';
|
||||
// Flat column-sort (`_sortField`) overrides the group's order field. When
|
||||
// it's set, `_groupBy` is '' so `def` has no keyFn → a flat list.
|
||||
const orderBy = _currentOrderBy();
|
||||
|
||||
const { items, nextCursor } = await fetchResourcesPage(app.currentPath, {
|
||||
cursor: _nextCursor,
|
||||
@@ -334,6 +377,10 @@ async function _loadPage({ isFirstPage = false } = {}) {
|
||||
|
||||
if (isFirstPage) {
|
||||
_component?.render(items, def?.keyFn, def?.labelFn);
|
||||
// Keep the list-view column-header arrow in sync however the sort
|
||||
// changed — header click, toolbar group-by, or direction toggle.
|
||||
// No-op in grid view (no sortable headers present).
|
||||
ui.updateListHeaderSort?.();
|
||||
} else {
|
||||
_component?.append(items, def?.keyFn, def?.labelFn);
|
||||
}
|
||||
@@ -399,14 +446,18 @@ async function loadFiles(options = { insertHistory: true }) {
|
||||
_groupBy = _savedPrefs.groupBy;
|
||||
_reversed = _savedPrefs.reversed;
|
||||
|
||||
// Delay spinner so fast loads avoid the flash
|
||||
// Delay the loading skeleton so fast loads avoid a flash of placeholders.
|
||||
// Skeleton cards/rows hold the layout (no empty-list flash) and mirror the
|
||||
// current view; reduced-motion is honoured via the global guard.
|
||||
const spinnerTimeout = setTimeout(() => {
|
||||
ui.showError(`
|
||||
<div class="files-loading-spinner">
|
||||
<div class="spinner"></div>
|
||||
<span>${i18n.t('files.loading')}</span>
|
||||
</div>
|
||||
`);
|
||||
const isList = app.currentView === 'list';
|
||||
const cell = isList
|
||||
? '<div class="skeleton-row"><div class="skeleton skeleton-icon"></div><div class="skeleton skeleton-line skeleton-line--medium"></div><div class="skeleton skeleton-line skeleton-line--short"></div></div>'
|
||||
: '<div class="skeleton-card"><div class="skeleton skeleton-thumb"></div><div class="skeleton skeleton-line skeleton-line--medium"></div><div class="skeleton skeleton-line skeleton-line--short"></div></div>';
|
||||
const wrapper = isList ? 'files-skeleton' : 'files-grid-view files-skeleton';
|
||||
ui.showError(
|
||||
`<div class="${wrapper}" role="status" aria-busy="true" aria-label="${i18n.t('files.loading')}">${cell.repeat(8)}</div>`
|
||||
);
|
||||
}, 100);
|
||||
|
||||
// A temporary guard: _loadPage sets _loading itself, but we need to
|
||||
|
||||
@@ -371,7 +371,7 @@ function setupActionsBarDelegation() {
|
||||
if (recent) {
|
||||
await recent.clearRecentFiles();
|
||||
await recentView.init();
|
||||
ui.showNotification('Cleanup completed', 'Recent files history has been cleared');
|
||||
ui.showNotification(i18n.t('notif.cleanupCompleted'), i18n.t('notif.cleanupCompletedBody'));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -73,16 +73,25 @@ function initSidebarToggle() {
|
||||
|
||||
if (!sidebarToggle || !sidebar || !sidebarOverlay) return;
|
||||
|
||||
/** @type {HTMLElement | null} */
|
||||
let drawerPrevFocus = null;
|
||||
|
||||
function openSidebar() {
|
||||
drawerPrevFocus = /** @type {HTMLElement | null} */ (document.activeElement);
|
||||
sidebar?.classList.add('open');
|
||||
sidebarOverlay?.classList.add('active');
|
||||
document.body.style.overflow = 'hidden';
|
||||
sidebarToggle?.setAttribute('aria-expanded', 'true');
|
||||
/** @type {HTMLElement | null} */ (sidebar?.querySelector('.nav-item'))?.focus();
|
||||
}
|
||||
|
||||
function closeSidebar() {
|
||||
sidebar?.classList.remove('open');
|
||||
sidebarOverlay?.classList.remove('active');
|
||||
document.body.style.overflow = '';
|
||||
sidebarToggle?.setAttribute('aria-expanded', 'false');
|
||||
drawerPrevFocus?.focus?.();
|
||||
drawerPrevFocus = null;
|
||||
}
|
||||
|
||||
function toggleSidebar() {
|
||||
@@ -99,6 +108,24 @@ function initSidebarToggle() {
|
||||
// Close sidebar when clicking overlay
|
||||
sidebarOverlay.addEventListener('click', closeSidebar);
|
||||
|
||||
// Trap Tab focus inside the open drawer (mobile).
|
||||
sidebar.addEventListener('keydown', (e) => {
|
||||
if (e.key !== 'Tab' || !sidebar.classList.contains('open')) return;
|
||||
const f = /** @type {NodeListOf<HTMLElement>} */ (
|
||||
sidebar.querySelectorAll('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])')
|
||||
);
|
||||
if (!f.length) return;
|
||||
const first = f[0];
|
||||
const last = f[f.length - 1];
|
||||
if (e.shiftKey && document.activeElement === first) {
|
||||
e.preventDefault();
|
||||
last.focus();
|
||||
} else if (!e.shiftKey && document.activeElement === last) {
|
||||
e.preventDefault();
|
||||
first.focus();
|
||||
}
|
||||
});
|
||||
|
||||
// Close sidebar on escape key
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Escape' && sidebar.classList.contains('open')) {
|
||||
@@ -155,7 +182,13 @@ function setCurrentSection(section) {
|
||||
// Update nav item active classes by finding matching item from DOM
|
||||
appElements.navItems?.forEach((item) => {
|
||||
const itemSection = getSectionFromNavItem(item);
|
||||
item.classList.toggle('active', itemSection === section);
|
||||
const isActive = itemSection === section;
|
||||
item.classList.toggle('active', isActive);
|
||||
if (isActive) {
|
||||
item.setAttribute('aria-current', 'page');
|
||||
} else {
|
||||
item.removeAttribute('aria-current');
|
||||
}
|
||||
});
|
||||
|
||||
// Update page title
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
* Search view orchestration logic
|
||||
*/
|
||||
|
||||
import { i18n } from '../core/i18n.js';
|
||||
import { search } from '../features/files/search.js';
|
||||
import { resolveHomeFolder } from './authSession.js';
|
||||
import { app } from './state.js';
|
||||
@@ -50,7 +51,7 @@ async function performSearch(query, sortBy) {
|
||||
search.displaySearchResults(searchResults);
|
||||
} catch (error) {
|
||||
console.error('Search error:', error);
|
||||
ui.showNotification('Error', 'Error performing search');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.searchError'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+62
-7
@@ -16,7 +16,7 @@ import { wopiEditor } from '../features/files/wopiEditor.js';
|
||||
import { recent } from '../features/library/recent.js';
|
||||
import { buildBatchDownloadUrl } from '../utils/download.js';
|
||||
import { positionMenu } from '../utils/menuPosition.js';
|
||||
import { loadFiles } from './filesView.js';
|
||||
import { loadFiles, filesView } from './filesView.js';
|
||||
import { updateHistory } from './main.js';
|
||||
import { activateFilesUI, switchToFilesSection, syncViewContainers } from './navigation.js';
|
||||
import { app } from './state.js';
|
||||
@@ -497,10 +497,14 @@ const ui = {
|
||||
separator.textContent = '>';
|
||||
breadcrumb?.appendChild(separator);
|
||||
|
||||
// Segment item
|
||||
// Segment item. The home folder's raw name ("My Folder - admin")
|
||||
// is a technical default — show the friendly "Files" label for it
|
||||
// (the real name stays as the tooltip).
|
||||
const item = document.createElement('span');
|
||||
item.className = 'breadcrumb-item';
|
||||
item.textContent = segment.name;
|
||||
const isHomeFolder = app.userHomeFolderId && segment.id === app.userHomeFolderId;
|
||||
item.textContent = isHomeFolder ? i18n.t('nav.files') : segment.name;
|
||||
if (isHomeFolder) item.title = segment.name;
|
||||
item.dataset.folderId = segment.id;
|
||||
|
||||
if (!isLast) {
|
||||
@@ -1007,29 +1011,80 @@ const ui = {
|
||||
// Let ui.js delegation handle this container again
|
||||
delete filesList.dataset.managedBy;
|
||||
|
||||
// A clickable, flat-sorting column header (Drive-style). The arrow is
|
||||
// shown only on the active column; direction toggles on re-click.
|
||||
const sortCol = (field, key, label) =>
|
||||
`<button type="button" class="list-header-sort" data-sort-field="${field}">` +
|
||||
`<span data-i18n="${key}">${label}</span>` +
|
||||
`<i class="fas fa-arrow-up list-header-sort__arrow hidden" aria-hidden="true"></i></button>`;
|
||||
|
||||
filesList.innerHTML = `
|
||||
<div class="list-header">
|
||||
<div class="list-header-checkbox"><input type="checkbox" id="select-all-checkbox" title="Select all"></div>
|
||||
<div data-i18n="files.name">Name</div>
|
||||
${sortCol('name', 'files.name', 'Name')}
|
||||
<div class="owner-cell${this._ownerVisible ? '' : ' hidden'}" data-i18n="files.owner">Owner</div>
|
||||
<div data-i18n="files.type">Type</div>
|
||||
<div data-i18n="files.size">Size</div>
|
||||
<div data-i18n="files.modified">Modified</div>
|
||||
${sortCol('type', 'files.type', 'Type')}
|
||||
${sortCol('size', 'files.size', 'Size')}
|
||||
${sortCol('modified_at', 'files.modified', 'Modified')}
|
||||
<div></div><!-- actions -->
|
||||
</div>`;
|
||||
|
||||
i18n.translateElement(filesList);
|
||||
|
||||
// Wire column-header sorting; _loadPage doesn't rebuild the header, so
|
||||
// reflect the new sort in-place after each click.
|
||||
filesList.querySelectorAll('.list-header-sort').forEach((el) => {
|
||||
el.addEventListener('click', () => {
|
||||
filesView.setSortField(/** @type {HTMLElement} */ (el).dataset.sortField || 'name');
|
||||
this.updateListHeaderSort();
|
||||
});
|
||||
});
|
||||
this.updateListHeaderSort();
|
||||
|
||||
filesList.classList.remove('hidden');
|
||||
filesContainerError?.classList.add('hidden');
|
||||
},
|
||||
|
||||
/**
|
||||
* Reflect filesView's active sort on the list-view column headers: highlight
|
||||
* the active column, point its arrow, and describe the state for AT.
|
||||
* @returns {void}
|
||||
*/
|
||||
updateListHeaderSort() {
|
||||
const { field, reversed } = filesView.currentSort;
|
||||
document.querySelectorAll('#files-list .list-header-sort').forEach((el) => {
|
||||
const btn = /** @type {HTMLElement} */ (el);
|
||||
const active = btn.dataset.sortField === field;
|
||||
btn.classList.toggle('is-active', active);
|
||||
const colName = btn.querySelector('span')?.textContent || '';
|
||||
btn.setAttribute(
|
||||
'aria-label',
|
||||
active
|
||||
? `${colName}: ${reversed ? i18n.t('sort.desc', 'descending') : i18n.t('sort.asc', 'ascending')}`
|
||||
: colName
|
||||
);
|
||||
const arrow = btn.querySelector('.list-header-sort__arrow');
|
||||
if (arrow) {
|
||||
arrow.classList.toggle('hidden', !active);
|
||||
arrow.classList.toggle('fa-arrow-down', active && reversed);
|
||||
arrow.classList.toggle('fa-arrow-up', !(active && reversed));
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
showEmptyList() {
|
||||
this.showError(`
|
||||
<i class="fas fa-folder-open empty-state-icon"></i>
|
||||
<p data-i18n="files.no_files"></p>
|
||||
<p data-i18n="files.empty_hint"></p>
|
||||
<button type="button" class="btn btn-primary" id="empty-upload-btn">
|
||||
<i class="fas fa-cloud-upload-alt" aria-hidden="true"></i>
|
||||
<span data-i18n="actions.upload_files">Upload files</span>
|
||||
</button>
|
||||
`);
|
||||
document.getElementById('empty-upload-btn')?.addEventListener('click', () => {
|
||||
document.getElementById('file-input')?.click();
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
import { notifications } from '../core/notifications.js';
|
||||
import { announce } from '../core/liveRegion.js';
|
||||
|
||||
const uiNotifications = {
|
||||
/**
|
||||
@@ -40,6 +41,10 @@ const uiNotifications = {
|
||||
title: title || '',
|
||||
text: message || ''
|
||||
});
|
||||
|
||||
// Announce to screen readers — errors interrupt, everything else is polite.
|
||||
const spoken = [title, message].filter(Boolean).join('. ');
|
||||
announce(spoken, { assertive: iconClass === 'error' });
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* User menu, profile modal and logout logic
|
||||
*/
|
||||
|
||||
import { createUserVignette } from '../components/userVignette.js';
|
||||
import { createUserVignette, disposeVignette } from '../components/userVignette.js';
|
||||
import { getCsrfHeaders } from '../core/csrf.js';
|
||||
import { formatFileSize, formatQuotaSize } from '../core/formatters.js';
|
||||
import { i18n } from '../core/i18n.js';
|
||||
@@ -183,11 +183,17 @@ function setupUserMenu() {
|
||||
function _mountAvatarVignettes(userId) {
|
||||
const avatarBtn = document.getElementById('user-avatar-btn');
|
||||
if (avatarBtn) {
|
||||
avatarBtn.replaceChildren(createUserVignette(userId, 'menu', { showName: false }));
|
||||
// Dispose the outgoing vignette's tooltip before replacing it, or its
|
||||
// body-portalled popover orphans (the "email tooltip stays stuck" bug).
|
||||
disposeVignette(/** @type {HTMLElement | null} */ (avatarBtn.firstElementChild));
|
||||
// No hover-tooltip on your own avatar — the email is already in the open
|
||||
// menu header, so it'd be redundant and overlap the notification bell.
|
||||
avatarBtn.replaceChildren(createUserVignette(userId, 'menu', { showName: false, noTooltip: true }));
|
||||
}
|
||||
|
||||
const menuHeader = document.querySelector('.user-menu-header');
|
||||
if (menuHeader) {
|
||||
disposeVignette(/** @type {HTMLElement | null} */ (menuHeader.firstElementChild));
|
||||
menuHeader.replaceChildren(createUserVignette(userId, 'xl', { showName: true, showEmail: true }));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,10 @@ const Modal = {
|
||||
/** @private */
|
||||
_savedBodyHTML: '',
|
||||
|
||||
// Element focused before the modal opened — focus returns here on close.
|
||||
/** @private @type {HTMLElement|null} */
|
||||
_previousFocus: null,
|
||||
|
||||
/**
|
||||
* Initialize modal system
|
||||
*/
|
||||
@@ -80,6 +84,11 @@ const Modal = {
|
||||
}
|
||||
});
|
||||
|
||||
// Trap Tab focus within the dialog while it is open.
|
||||
this.overlay.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Tab') this._trapFocus(e);
|
||||
});
|
||||
|
||||
// Clear inline error as soon as the user starts typing
|
||||
this.input?.addEventListener('input', () => this.clearError());
|
||||
|
||||
@@ -227,12 +236,38 @@ const Modal = {
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Keep Tab focus cycling within the dialog container (focus trap).
|
||||
* @private
|
||||
* @param {KeyboardEvent} e
|
||||
*/
|
||||
_trapFocus(e) {
|
||||
const container = this.overlay?.querySelector('.modal-container');
|
||||
if (!container) return;
|
||||
const focusables = /** @type {NodeListOf<HTMLElement>} */ (
|
||||
container.querySelectorAll(
|
||||
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
||||
)
|
||||
);
|
||||
if (!focusables.length) return;
|
||||
const first = focusables[0];
|
||||
const last = focusables[focusables.length - 1];
|
||||
if (e.shiftKey && document.activeElement === first) {
|
||||
e.preventDefault();
|
||||
last.focus();
|
||||
} else if (!e.shiftKey && document.activeElement === last) {
|
||||
e.preventDefault();
|
||||
first.focus();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Open the modal
|
||||
*/
|
||||
open() {
|
||||
if (!this.overlay) return;
|
||||
|
||||
this._previousFocus = /** @type {HTMLElement|null} */ (document.activeElement);
|
||||
this.confirmBtn.disabled = false;
|
||||
|
||||
// Show overlay
|
||||
@@ -295,6 +330,10 @@ const Modal = {
|
||||
this._panelMode = false;
|
||||
this._savedBodyHTML = '';
|
||||
}
|
||||
|
||||
// Return focus to whatever was focused before the modal opened.
|
||||
this._previousFocus?.focus?.();
|
||||
this._previousFocus = null;
|
||||
}, 200);
|
||||
},
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
// @ts-check
|
||||
|
||||
import { escapeHtml, formatDateTime, formatFileSize } from '../core/formatters.js';
|
||||
import { escapeHtml, formatDateShort, formatDateTime, formatFileSize, formatRelativeTime } from '../core/formatters.js';
|
||||
import { i18n } from '../core/i18n.js';
|
||||
import { systemUsers } from '../model/systemUsers.js';
|
||||
import { buildResourceIcon } from './resourceIcon.js';
|
||||
@@ -37,6 +37,23 @@ import { createUserVignette } from './userVignette.js';
|
||||
*/
|
||||
const JUST_ADDED_KEY = '__oxicloud_just_added__';
|
||||
|
||||
/**
|
||||
* Recency label for a grid card's metadata line: a relative "time ago"
|
||||
* ("hace 3 días") within the last ~30 days — the dominant retrieval cue under
|
||||
* a thumbnail — collapsing to a compact absolute date ("13 jun 2026") beyond
|
||||
* that, so stale files don't read as a vague "hace 8 meses".
|
||||
* @param {number|string|Date|null|undefined} value Unix seconds, ISO string or Date.
|
||||
* @returns {string}
|
||||
*/
|
||||
function gridMetaDate(value) {
|
||||
if (!value) return '';
|
||||
const date =
|
||||
value instanceof Date ? value : new Date(typeof value === 'number' && value < 1e12 ? value * 1000 : value);
|
||||
if (Number.isNaN(date.getTime())) return '';
|
||||
const ageDays = (Date.now() - date.getTime()) / 86_400_000;
|
||||
return ageDays > 30 ? formatDateShort(value) : formatRelativeTime(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef {Object} CustomAction
|
||||
* @property {string} iconHtml - Inner HTML for the button icon (e.g. `<i class="fas fa-undo"></i>`).
|
||||
@@ -681,16 +698,24 @@ export class ResourceListComponent {
|
||||
const isFav = cfg.isFavorite ? cfg.isFavorite(folder.id, 'folder') : false;
|
||||
const isShared = cfg.isShared ? cfg.isShared(folder.id, 'folder') : false;
|
||||
const dateVal = /** @type {Record<string,string>} */ (/** @type {unknown} */ (folder))[cfg.dateField] ?? folder.modified_at;
|
||||
const formattedDate = cfg.dateFormatter ? cfg.dateFormatter(dateVal) : formatDateTime(new Date(dateVal));
|
||||
// Pass the raw value (Unix seconds) straight to formatDateTime — it does
|
||||
// the seconds→ms conversion. Wrapping it in new Date() first treated the
|
||||
// seconds value as milliseconds → every date showed as Jan 1970.
|
||||
const formattedDate = cfg.dateFormatter ? cfg.dateFormatter(dateVal) : formatDateTime(dateVal);
|
||||
const relDate = gridMetaDate(dateVal);
|
||||
|
||||
el.innerHTML = `
|
||||
${cfg.selectable ? '<div class="checkbox-cell"><input type="checkbox" class="item-checkbox"></div>' : ''}
|
||||
<div class="name-cell">
|
||||
<div class="resource-icon-slot"></div>
|
||||
<span>${escapeHtml(folder.name)}</span>
|
||||
<span title="${escapeHtml(folder.name)}">${escapeHtml(folder.name)}</span>
|
||||
${cfg.showFavorite ? `<div class="file-badge file-badge-favorite${isFav ? '' : ' hidden'}"><i class="fas fa-star favorite-star-inline"></i></div>` : ''}
|
||||
${cfg.showShareBadge ? `<div class="file-badge file-badge-shared${isShared ? '' : ' hidden'}"><i class="fas fa-oxiexport"></i></div>` : ''}
|
||||
</div>
|
||||
<div class="grid-meta" title="${escapeHtml(formattedDate)}">
|
||||
<span class="grid-meta__date">${escapeHtml(relDate)}</span>
|
||||
${isShared && folder.owner_id ? `<span class="grid-meta__owner-slot" data-owner-id="${escapeHtml(folder.owner_id)}"></span>` : ''}
|
||||
</div>
|
||||
<div class="owner-cell${this._ownerVisible ? '' : ' hidden'}" data-owner-id="${escapeHtml(folder.owner_id || '')}"></div>
|
||||
${cfg.showPath ? `<div class="path-cell" title="${escapeHtml(folder.path || '')}">${escapeHtml(folder.path || '')}</div>` : ''}
|
||||
${cfg.showType ? `<div class="type-cell">${labels.folderTypeLabel}</div>` : ''}
|
||||
@@ -704,6 +729,9 @@ export class ResourceListComponent {
|
||||
`;
|
||||
|
||||
el.querySelector('.resource-icon-slot')?.replaceWith(buildResourceIcon(folder, 'folder'));
|
||||
if (isShared && folder.owner_id) {
|
||||
el.querySelector('.grid-meta__owner-slot')?.replaceWith(createUserVignette(folder.owner_id, 'xs', { showName: false }));
|
||||
}
|
||||
return el;
|
||||
}
|
||||
|
||||
@@ -718,7 +746,11 @@ export class ResourceListComponent {
|
||||
const typeLabel = labels.fileTypeLabel(file.category || '');
|
||||
const fileSize = file.size_formatted || formatFileSize(file.size);
|
||||
const dateVal = /** @type {Record<string,string>} */ (/** @type {unknown} */ (file))[cfg.dateField] ?? file.modified_at;
|
||||
const formattedDate = cfg.dateFormatter ? cfg.dateFormatter(dateVal) : formatDateTime(new Date(dateVal));
|
||||
// Pass the raw value (Unix seconds) straight to formatDateTime — it does
|
||||
// the seconds→ms conversion. Wrapping it in new Date() first treated the
|
||||
// seconds value as milliseconds → every date showed as Jan 1970.
|
||||
const formattedDate = cfg.dateFormatter ? cfg.dateFormatter(dateVal) : formatDateTime(dateVal);
|
||||
const relDate = gridMetaDate(dateVal);
|
||||
const isFav = cfg.isFavorite ? cfg.isFavorite(file.id, 'file') : false;
|
||||
const isShared = cfg.isShared ? cfg.isShared(file.id, 'file') : false;
|
||||
|
||||
@@ -736,11 +768,16 @@ export class ResourceListComponent {
|
||||
${cfg.selectable ? '<div class="checkbox-cell"><input type="checkbox" class="item-checkbox"></div>' : ''}
|
||||
<div class="name-cell">
|
||||
<div class="resource-icon-slot"></div>
|
||||
<span>${escapeHtml(file.name)}</span>
|
||||
<span title="${escapeHtml(file.name)}">${escapeHtml(file.name)}</span>
|
||||
${cfg.showFavorite ? `<div class="file-badge file-badge-favorite${isFav ? '' : ' hidden'}"><i class="fas fa-star favorite-star-inline"></i></div>` : ''}
|
||||
${cfg.showShareBadge ? `<div class="file-badge file-badge-shared${isShared ? '' : ' hidden'}"><i class="fas fa-oxiexport"></i></div>` : ''}
|
||||
${file.snippet ? `<span class="file-item__snippet" title="${escapeHtml(file.snippet)}">${escapeHtml(file.snippet)}</span>` : ''}
|
||||
</div>
|
||||
<div class="grid-meta" title="${escapeHtml(formattedDate)}">
|
||||
<span class="grid-meta__date">${escapeHtml(relDate)}</span>
|
||||
<span class="grid-meta__size">${escapeHtml(fileSize)}</span>
|
||||
${isShared && file.owner_id ? `<span class="grid-meta__owner-slot" data-owner-id="${escapeHtml(file.owner_id)}"></span>` : ''}
|
||||
</div>
|
||||
<div class="owner-cell${this._ownerVisible ? '' : ' hidden'}" data-owner-id="${escapeHtml(file.owner_id || '')}"></div>
|
||||
${cfg.showPath ? `<div class="path-cell" title="${escapeHtml(file.path || '')}">${escapeHtml(file.path || '')}</div>` : ''}
|
||||
${cfg.showType ? `<div class="type-cell">${typeLabel}</div>` : ''}
|
||||
@@ -754,6 +791,9 @@ export class ResourceListComponent {
|
||||
`;
|
||||
|
||||
el.querySelector('.resource-icon-slot')?.replaceWith(buildResourceIcon(file, 'file'));
|
||||
if (isShared && file.owner_id) {
|
||||
el.querySelector('.grid-meta__owner-slot')?.replaceWith(createUserVignette(file.owner_id, 'xs', { showName: false }));
|
||||
}
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,10 @@ function _applyPhoto(avatar, photoUrl, name) {
|
||||
* When true (and showName is true), the primary email address is shown below
|
||||
* the name in a lighter style. Name and email are wrapped in a
|
||||
* `.user-vignette__info` column. Has no effect when showName is false.
|
||||
* @property {boolean} [noTooltip=false]
|
||||
* When true, skip the email hover-tooltip. Use for the user's own avatar in
|
||||
* the toolbar — the email is already shown in the open menu header, so the
|
||||
* tooltip is redundant (and would overlap the bell).
|
||||
* @property {boolean} [showOrigin=true]
|
||||
* When true (the default), an `is_external` badge overlays the
|
||||
* bottom-right of the avatar for external users only — internal
|
||||
@@ -108,7 +112,14 @@ function _applyPhoto(avatar, photoUrl, name) {
|
||||
* @param {VignetteOptions} [options]
|
||||
* @returns {HTMLElement}
|
||||
*/
|
||||
export function createUserVignette(userId, size = 'sm', { showName = true, showEmail = false, showOrigin = true } = {}) {
|
||||
// Tracks the hover-tooltip cleanup for each vignette so a caller that
|
||||
// re-renders the vignette (e.g. replaceChildren on a storage update) can
|
||||
// dispose the previous tooltip — otherwise its body-portalled popover orphans
|
||||
// and, if it was visible at re-render time, stays stuck on screen.
|
||||
/** @type {WeakMap<HTMLElement, () => void>} */
|
||||
const _tooltipCleanups = new WeakMap();
|
||||
|
||||
export function createUserVignette(userId, size = 'sm', { showName = true, showEmail = false, showOrigin = true, noTooltip = false } = {}) {
|
||||
const colorIdx = _colorIndex(userId);
|
||||
|
||||
const wrapper = /** @type {HTMLElement} */ (document.createElement('span'));
|
||||
@@ -182,9 +193,9 @@ export function createUserVignette(userId, size = 'sm', { showName = true, showE
|
||||
// than the native `title` attribute's ~500–1500 ms wait).
|
||||
// `aria-label` is set in parallel so screen readers still get
|
||||
// the email — popover content is mouse/keyboard-hover only.
|
||||
if (email && !showEmail) {
|
||||
if (email && !showEmail && !noTooltip) {
|
||||
wrapper.setAttribute('aria-label', email);
|
||||
attachTooltip(wrapper, email);
|
||||
_tooltipCleanups.set(wrapper, attachTooltip(wrapper, email));
|
||||
}
|
||||
if (photo) {
|
||||
_applyPhoto(avatar, photo, name);
|
||||
@@ -214,3 +225,18 @@ export function createUserVignette(userId, size = 'sm', { showName = true, showE
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispose a vignette before discarding it: tears down its hover-tooltip and
|
||||
* removes the body-portalled popover so nothing orphans on re-render.
|
||||
* Safe to call on any element (no-op if it has no tracked tooltip).
|
||||
* @param {HTMLElement | null} el
|
||||
*/
|
||||
export function disposeVignette(el) {
|
||||
if (!el) return;
|
||||
const cleanup = _tooltipCleanups.get(el);
|
||||
if (cleanup) {
|
||||
cleanup();
|
||||
_tooltipCleanups.delete(el);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// Global error boundary.
|
||||
//
|
||||
// Surfaces uncaught errors and unhandled promise rejections as a terse,
|
||||
// throttled toast instead of failing silently — the full detail always goes to
|
||||
// the console. Intentionally dependency-free so an error handler can never
|
||||
// itself fail to load.
|
||||
|
||||
let lastShown = 0;
|
||||
|
||||
/** @param {string} message */
|
||||
function showToast(message) {
|
||||
const now = Date.now();
|
||||
if (now - lastShown < 4000) return; // throttle bursts of related errors
|
||||
lastShown = now;
|
||||
|
||||
const el = document.createElement('div');
|
||||
el.className = 'error-toast';
|
||||
el.setAttribute('role', 'alert');
|
||||
el.textContent = message;
|
||||
document.body.appendChild(el);
|
||||
|
||||
requestAnimationFrame(() => el.classList.add('is-visible'));
|
||||
setTimeout(() => {
|
||||
el.classList.remove('is-visible');
|
||||
setTimeout(() => el.remove(), 300);
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
const GENERIC = 'Something went wrong. Please try again.';
|
||||
|
||||
window.addEventListener('error', (event) => {
|
||||
console.error('[error-boundary]', event.error || event.message);
|
||||
showToast(GENERIC);
|
||||
});
|
||||
|
||||
window.addEventListener('unhandledrejection', (event) => {
|
||||
console.error('[error-boundary] unhandled rejection:', event.reason);
|
||||
showToast(GENERIC);
|
||||
});
|
||||
@@ -27,8 +27,11 @@ function formatFileSize(bytes) {
|
||||
const k = 1024;
|
||||
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
||||
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||
const num = new Intl.NumberFormat(i18n.getCurrentLocale(), { maximumFractionDigits: 2 }).format(
|
||||
bytes / k ** i
|
||||
);
|
||||
|
||||
return `${parseFloat((bytes / k ** i).toFixed(2))} ${sizes[i]}`;
|
||||
return `${num} ${sizes[i]}`;
|
||||
}
|
||||
|
||||
/// Formats a byte count for quota display. When bytes is 0, returns "∞" (unlimited).
|
||||
@@ -58,7 +61,8 @@ function formatDateTime(value) {
|
||||
dateValue = new Date(value);
|
||||
}
|
||||
if (Number.isNaN(dateValue.getTime())) return String(value);
|
||||
return `${dateValue.toLocaleDateString()} ${dateValue.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`;
|
||||
const loc = i18n.getCurrentLocale();
|
||||
return `${dateValue.toLocaleDateString(loc)} ${dateValue.toLocaleTimeString(loc, { hour: '2-digit', minute: '2-digit' })}`;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,13 +74,44 @@ function formatDateShort(value) {
|
||||
if (!value) return 'N/A';
|
||||
const dateValue = typeof value === 'number' ? new Date(value * 1000) : new Date(value);
|
||||
if (Number.isNaN(dateValue.getTime())) return String(value);
|
||||
return dateValue.toLocaleDateString(undefined, {
|
||||
return dateValue.toLocaleDateString(i18n.getCurrentLocale(), {
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Locale-aware "time ago" via Intl.RelativeTimeFormat (replaces the per-view
|
||||
* hand-rolled timeAgo helpers).
|
||||
* @param {Date | number | string | null} value
|
||||
* @returns {string}
|
||||
*/
|
||||
function formatRelativeTime(value) {
|
||||
if (!value) return '';
|
||||
const date =
|
||||
value instanceof Date
|
||||
? value
|
||||
: new Date(typeof value === 'number' && value < 1e12 ? value * 1000 : value);
|
||||
if (Number.isNaN(date.getTime())) return String(value);
|
||||
const diffSec = Math.round((date.getTime() - Date.now()) / 1000);
|
||||
const abs = Math.abs(diffSec);
|
||||
const rtf = new Intl.RelativeTimeFormat(i18n.getCurrentLocale(), { numeric: 'auto' });
|
||||
/** @type {Array<[Intl.RelativeTimeFormatUnit, number]>} */
|
||||
const units = [
|
||||
['year', 31536000],
|
||||
['month', 2592000],
|
||||
['week', 604800],
|
||||
['day', 86400],
|
||||
['hour', 3600],
|
||||
['minute', 60]
|
||||
];
|
||||
for (const [unit, secs] of units) {
|
||||
if (abs >= secs) return rtf.format(Math.round(diffSec / secs), unit);
|
||||
}
|
||||
return rtf.format(diffSec, 'second');
|
||||
}
|
||||
|
||||
const TEXT_TYPES = [
|
||||
'application/json',
|
||||
'application/xml',
|
||||
@@ -363,6 +398,7 @@ export {
|
||||
formatExpiryDate,
|
||||
formatFileSize,
|
||||
formatQuotaSize,
|
||||
formatRelativeTime,
|
||||
isEmailValid,
|
||||
isTextViewable,
|
||||
normalizeDateBucket,
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* Global ARIA live region.
|
||||
*
|
||||
* Announces transient UI messages (toasts, notifications) to assistive
|
||||
* technology without any visual footprint. Screen-reader users otherwise
|
||||
* miss feedback that sighted users see in the notification bell / toasts.
|
||||
*
|
||||
* Dependency-free; the region is created lazily on first use so importing
|
||||
* this module has no DOM side effect until something is actually announced.
|
||||
*
|
||||
* @module core/liveRegion
|
||||
*/
|
||||
|
||||
/** @type {HTMLElement | null} */
|
||||
let politeRegion = null;
|
||||
/** @type {HTMLElement | null} */
|
||||
let assertiveRegion = null;
|
||||
|
||||
/**
|
||||
* Find or create the visually-hidden live region for the given urgency.
|
||||
* @param {boolean} assertive
|
||||
* @returns {HTMLElement | null}
|
||||
*/
|
||||
function ensureRegion(assertive) {
|
||||
if (!document.body) return null;
|
||||
if (assertive && assertiveRegion) return assertiveRegion;
|
||||
if (!assertive && politeRegion) return politeRegion;
|
||||
|
||||
const el = document.createElement('div');
|
||||
el.className = 'sr-only';
|
||||
el.id = assertive ? 'a11y-live-assertive' : 'a11y-live-polite';
|
||||
el.setAttribute('aria-live', assertive ? 'assertive' : 'polite');
|
||||
el.setAttribute('aria-atomic', 'true');
|
||||
el.setAttribute('role', assertive ? 'alert' : 'status');
|
||||
document.body.appendChild(el);
|
||||
|
||||
if (assertive) assertiveRegion = el;
|
||||
else politeRegion = el;
|
||||
return el;
|
||||
}
|
||||
|
||||
/**
|
||||
* Announce a message to screen readers.
|
||||
*
|
||||
* @param {string} message - text to announce (empty/whitespace is ignored)
|
||||
* @param {{ assertive?: boolean }} [opts] - `assertive: true` interrupts the
|
||||
* current speech (use for errors); default is polite.
|
||||
*/
|
||||
export function announce(message, opts = {}) {
|
||||
const msg = String(message ?? '').trim();
|
||||
if (!msg) return;
|
||||
const region = ensureRegion(Boolean(opts.assertive));
|
||||
if (!region) return;
|
||||
|
||||
// Clear first, then set on the next frame so the DOM mutation is registered
|
||||
// as a change even when the same message is announced twice in a row.
|
||||
region.textContent = '';
|
||||
requestAnimationFrame(() => {
|
||||
region.textContent = msg;
|
||||
});
|
||||
}
|
||||
@@ -705,6 +705,9 @@ async function showInitialPanel() {
|
||||
showPanel(loginPanel);
|
||||
hidePanel(registerPanel);
|
||||
hidePanel(adminSetupPanel);
|
||||
// Cursor ready on the identifier field (panels start hidden, so a static
|
||||
// `autofocus` attribute wouldn't fire — focus once the panel is shown).
|
||||
/** @type {HTMLInputElement | null} */ (document.getElementById('login-username'))?.focus();
|
||||
|
||||
// Hide the admin setup link if admin already exists
|
||||
const showAdminSetupLink = document.getElementById('show-admin-setup');
|
||||
@@ -807,6 +810,7 @@ function initLoginElements() {
|
||||
showPanel(loginPanel);
|
||||
hidePanel(registerPanel);
|
||||
hidePanel(adminSetupPanel);
|
||||
/** @type {HTMLInputElement | null} */ (document.getElementById('login-username'))?.focus();
|
||||
});
|
||||
|
||||
document.getElementById('show-admin-setup').addEventListener('click', () => {
|
||||
@@ -821,9 +825,119 @@ function initLoginElements() {
|
||||
hidePanel(adminSetupPanel);
|
||||
});
|
||||
|
||||
// UX affordances: password reveal, magic-link disclosure, live match feedback,
|
||||
// Caps-Lock warning on password fields.
|
||||
initPasswordToggles();
|
||||
initMagicLinkDisclosure();
|
||||
initPasswordMatch('register-password', 'register-password-confirm', 'register-match');
|
||||
initPasswordMatch('admin-password', 'admin-password-confirm', 'admin-match');
|
||||
['login-password', 'register-password', 'admin-password'].forEach((id) =>
|
||||
initCapsLockWarning(/** @type {HTMLInputElement | null} */ (document.getElementById(id)))
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wire every password show/hide toggle. Each button sits next to the
|
||||
* <input> it controls inside an `.auth-input-wrap`.
|
||||
*/
|
||||
function initPasswordToggles() {
|
||||
document.querySelectorAll('[data-pw-toggle]').forEach((btn) => {
|
||||
const wrap = btn.closest('.auth-input-wrap');
|
||||
const input = /** @type {HTMLInputElement | null} */ (wrap?.querySelector('input') ?? null);
|
||||
if (!input) return;
|
||||
const sync = () => {
|
||||
const shown = input.type === 'text';
|
||||
btn.setAttribute('aria-pressed', String(shown));
|
||||
btn.setAttribute(
|
||||
'aria-label',
|
||||
shown ? i18n.t('auth.hidePassword', 'Hide password') : i18n.t('auth.showPassword', 'Show password')
|
||||
);
|
||||
};
|
||||
sync();
|
||||
btn.addEventListener('click', () => {
|
||||
input.type = input.type === 'password' ? 'text' : 'password';
|
||||
sync();
|
||||
input.focus();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a "Caps Lock is on" hint under a password field while the key is active
|
||||
* and the field is focused — saves a failed-login round-trip.
|
||||
* @param {HTMLInputElement | null} input
|
||||
*/
|
||||
function initCapsLockWarning(input) {
|
||||
if (!input) return;
|
||||
const warn = document.createElement('div');
|
||||
warn.className = 'auth-caps-warning hidden';
|
||||
warn.setAttribute('role', 'status');
|
||||
const icon = document.createElement('i');
|
||||
icon.className = 'fas fa-arrow-up';
|
||||
icon.setAttribute('aria-hidden', 'true');
|
||||
const text = document.createElement('span');
|
||||
text.textContent = i18n.t('auth.capsLock', 'Caps Lock is on');
|
||||
warn.append(icon, text);
|
||||
input.closest('.auth-input-group')?.appendChild(warn);
|
||||
|
||||
/** @param {KeyboardEvent} e */
|
||||
const sync = (e) => {
|
||||
const on = typeof e.getModifierState === 'function' && e.getModifierState('CapsLock');
|
||||
warn.classList.toggle('hidden', !(on && document.activeElement === input));
|
||||
};
|
||||
input.addEventListener('keydown', sync);
|
||||
input.addEventListener('keyup', sync);
|
||||
input.addEventListener('blur', () => warn.classList.add('hidden'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Progressive disclosure: keep the magic-link form collapsed behind a quiet
|
||||
* toggle so the login screen leads with a single primary path.
|
||||
*/
|
||||
function initMagicLinkDisclosure() {
|
||||
const toggle = document.getElementById('magic-link-toggle');
|
||||
const reveal = document.getElementById('magic-link-reveal');
|
||||
if (!toggle || !reveal) return;
|
||||
toggle.addEventListener('click', () => {
|
||||
// classList.toggle returns true when the class is now PRESENT (collapsed).
|
||||
const open = reveal.classList.toggle('hidden') === false;
|
||||
toggle.setAttribute('aria-expanded', String(open));
|
||||
if (open) {
|
||||
const email = /** @type {HTMLInputElement | null} */ (document.getElementById('magic-link-email'));
|
||||
email?.focus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Live "passwords match" feedback rendered under a confirm field.
|
||||
* @param {string} passId
|
||||
* @param {string} confirmId
|
||||
* @param {string} indicatorId
|
||||
*/
|
||||
function initPasswordMatch(passId, confirmId, indicatorId) {
|
||||
const pass = /** @type {HTMLInputElement | null} */ (document.getElementById(passId));
|
||||
const confirmEl = /** @type {HTMLInputElement | null} */ (document.getElementById(confirmId));
|
||||
const out = document.getElementById(indicatorId);
|
||||
if (!pass || !confirmEl || !out) return;
|
||||
const update = () => {
|
||||
if (!confirmEl.value) {
|
||||
out.className = 'auth-match';
|
||||
out.textContent = '';
|
||||
return;
|
||||
}
|
||||
const ok = pass.value === confirmEl.value;
|
||||
out.className = `auth-match show ${ok ? 'auth-match--ok' : 'auth-match--bad'}`;
|
||||
out.textContent = ok
|
||||
? i18n.t('auth.passwordsMatch', 'Passwords match')
|
||||
: i18n.t('auth.passwords_mismatch', "Passwords don't match");
|
||||
};
|
||||
pass.addEventListener('input', update);
|
||||
confirmEl.addEventListener('input', update);
|
||||
}
|
||||
|
||||
// Initialize login elements if on login page
|
||||
const isLoginPage = initLoginElements();
|
||||
|
||||
@@ -993,6 +1107,13 @@ if (isLoginPage && loginForm) {
|
||||
const username = inputVal('login-username');
|
||||
const password = inputVal('login-password');
|
||||
|
||||
const loginSubmit = /** @type {HTMLButtonElement | null} */ (
|
||||
document.getElementById('login-submit')
|
||||
);
|
||||
loginSubmit?.classList.add('is-loading');
|
||||
loginSubmit?.setAttribute('aria-busy', 'true');
|
||||
if (loginSubmit) loginSubmit.disabled = true;
|
||||
|
||||
try {
|
||||
const data = await login(username, password);
|
||||
|
||||
@@ -1030,6 +1151,10 @@ if (isLoginPage && loginForm) {
|
||||
} catch (error) {
|
||||
loginError.textContent = errMessage(error) || 'Error logging in';
|
||||
loginError.style.display = 'block';
|
||||
} finally {
|
||||
loginSubmit?.classList.remove('is-loading');
|
||||
loginSubmit?.removeAttribute('aria-busy');
|
||||
if (loginSubmit) loginSubmit.disabled = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -202,15 +202,15 @@ const batchToolbar = {
|
||||
showBatchResult(action, result) {
|
||||
if (action === 'copy') {
|
||||
if (result.errors > 0) {
|
||||
ui.showNotification('Batch copy', `${result.success} copied, ${result.errors} failed`);
|
||||
ui.showNotification(i18n.t('notif.batchCopy'), i18n.t('notif.batchCopyBody', { success: result.success, errors: result.errors }));
|
||||
} else {
|
||||
ui.showNotification('Items copied', `${result.success} item${result.success !== 1 ? 's' : ''} copied successfully`);
|
||||
ui.showNotification(i18n.t('notif.itemsCopied'), i18n.t('notif.itemsCopiedBody', { count: result.success }));
|
||||
}
|
||||
} else {
|
||||
if (result.errors > 0) {
|
||||
ui.showNotification('Batch move', `${result.success} moved, ${result.errors} failed`);
|
||||
ui.showNotification(i18n.t('notif.batchMove'), i18n.t('notif.batchMoveBody', { success: result.success, errors: result.errors }));
|
||||
} else {
|
||||
ui.showNotification('Items moved', `${result.success} item${result.success !== 1 ? 's' : ''} moved successfully`);
|
||||
ui.showNotification(i18n.t('notif.itemsMoved'), i18n.t('notif.itemsMovedBody', { count: result.success }));
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -421,13 +421,13 @@ const batchToolbar = {
|
||||
loadFiles();
|
||||
|
||||
if (errors > 0) {
|
||||
ui.showNotification('Batch delete', `${success} moved to trash, ${errors} failed`);
|
||||
ui.showNotification(i18n.t('notif.batchDelete'), i18n.t('notif.batchDeleteBody', { success, errors }));
|
||||
} else {
|
||||
ui.showNotification('Moved to trash', `${success} item${success !== 1 ? 's' : ''} moved to trash`);
|
||||
ui.showNotification(i18n.t('notif.movedToTrash'), i18n.t('notif.movedToTrashBody', { count: success }));
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Batch trash error:', e);
|
||||
ui.showNotification('Error', 'Could not move items to trash');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.trashItemsError'));
|
||||
this.clear();
|
||||
loadFiles();
|
||||
}
|
||||
@@ -458,7 +458,7 @@ const batchToolbar = {
|
||||
const items = this.items;
|
||||
if (items.length === 0) return;
|
||||
|
||||
ui.showNotification('Preparing download', 'Creating ZIP archive...');
|
||||
ui.showNotification(i18n.t('notif.preparingDownload'), i18n.t('notif.preparingDownloadBody'));
|
||||
|
||||
const fileIds = items.filter((i) => i.type === 'file').map((i) => i.id);
|
||||
const folderIds = items.filter((i) => i.type === 'folder').map((i) => i.id);
|
||||
@@ -495,7 +495,7 @@ const batchToolbar = {
|
||||
URL.revokeObjectURL(blobUrl);
|
||||
} catch (e) {
|
||||
console.error('Batch download error:', e);
|
||||
ui.showNotification('Error', 'Could not download selected items');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.downloadItemsError'));
|
||||
}
|
||||
},
|
||||
|
||||
@@ -539,7 +539,7 @@ const batchToolbar = {
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Batch favorites error:', e);
|
||||
ui.showNotification('Error', 'Could not add items to favorites');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.favoritesAddError'));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -744,14 +744,14 @@ const contextMenus = {
|
||||
const shareUrl = app.notificationShareUrl;
|
||||
|
||||
if (!email || !shareUrl) {
|
||||
ui.showNotification('Error', 'Please enter a valid email address');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.invalidEmail'));
|
||||
return;
|
||||
}
|
||||
|
||||
// Validate email format
|
||||
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||
if (!emailRegex.test(email)) {
|
||||
ui.showNotification('Error', 'Please enter a valid email address');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.invalidEmail'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -760,7 +760,7 @@ const contextMenus = {
|
||||
document.getElementById('notification-dialog')?.classList.add('hidden');
|
||||
} catch (error) {
|
||||
console.error('Error sending notification:', error);
|
||||
ui.showNotification('Error', 'Could not send notification');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.notificationSendError'));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -853,7 +853,7 @@ const fileOps = {
|
||||
// — no reload needed since the backend already confirmed creation.
|
||||
filesViewAddItem(folder);
|
||||
|
||||
ui.showNotification('Folder created', `"${name}" created successfully`);
|
||||
ui.showNotification(i18n.t('notif.folderCreated'), i18n.t('notif.folderCreatedBody', { name }));
|
||||
} else {
|
||||
const errorText = await response.text();
|
||||
console.error('Create folder error:', errorText);
|
||||
@@ -894,7 +894,7 @@ const fileOps = {
|
||||
if (response.ok) {
|
||||
// Reload files after moving
|
||||
await loadFiles();
|
||||
ui.showNotification('File moved', 'File moved successfully');
|
||||
ui.showNotification(i18n.t('notif.fileMoved'), i18n.t('notif.fileMovedBody'));
|
||||
return true;
|
||||
} else {
|
||||
let errorMessage = 'Unknown error';
|
||||
@@ -904,12 +904,12 @@ const fileOps = {
|
||||
} catch (_e) {
|
||||
errorMessage = 'Error processing server response';
|
||||
}
|
||||
ui.showNotification('Error', `Error moving the file: ${errorMessage}`);
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.fileMoveError', { error: errorMessage }));
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error moving file:', error);
|
||||
ui.showNotification('Error', 'Error moving the file');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.fileMoveErrorGeneric'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -938,7 +938,7 @@ const fileOps = {
|
||||
invalidateFolderMeta(folderId);
|
||||
// Reload files after moving
|
||||
await loadFiles();
|
||||
ui.showNotification('Folder moved', 'Folder moved successfully');
|
||||
ui.showNotification(i18n.t('notif.folderMoved'), i18n.t('notif.folderMovedBody'));
|
||||
return true;
|
||||
} else {
|
||||
let errorMessage = 'Unknown error';
|
||||
@@ -948,12 +948,12 @@ const fileOps = {
|
||||
} catch (_e) {
|
||||
errorMessage = 'Error processing server response';
|
||||
}
|
||||
ui.showNotification('Error', `Error moving the folder: ${errorMessage}`);
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.folderMoveError', { error: errorMessage }));
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error moving folder:', error);
|
||||
ui.showNotification('Error', 'Error moving the folder');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.folderMoveErrorGeneric'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -1037,7 +1037,7 @@ const fileOps = {
|
||||
await response.json();
|
||||
// Reload files after copying
|
||||
await loadFiles();
|
||||
ui.showNotification('File copied', 'File copied successfully');
|
||||
ui.showNotification(i18n.t('notif.fileCopied'), i18n.t('notif.fileCopiedBody'));
|
||||
return true;
|
||||
} else {
|
||||
let errorMessage = 'Unknown error';
|
||||
@@ -1047,12 +1047,12 @@ const fileOps = {
|
||||
} catch (_e) {
|
||||
errorMessage = 'Error processing server response';
|
||||
}
|
||||
ui.showNotification('Error', `Error copying the file: ${errorMessage}`);
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.fileCopyError', { error: errorMessage }));
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error copying file:', error);
|
||||
ui.showNotification('Error', 'Error copying the file');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.fileCopyErrorGeneric'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -1195,7 +1195,7 @@ const fileOps = {
|
||||
if (response.ok) {
|
||||
// Name changed — drop the cached breadcrumb metadata
|
||||
invalidateFolderMeta(folderId);
|
||||
ui.showNotification('Folder renamed', `Folder renamed to "${newName}"`);
|
||||
ui.showNotification(i18n.t('notif.folderRenamed'), i18n.t('notif.folderRenamedBody', { name: newName }));
|
||||
} else {
|
||||
const errorText = await response.text();
|
||||
console.error('Error response:', errorText);
|
||||
@@ -1239,7 +1239,7 @@ const fileOps = {
|
||||
|
||||
if (response.ok) {
|
||||
loadFiles();
|
||||
ui.showNotification('File moved to trash', `"${fileName}" moved to trash`);
|
||||
ui.showNotification(i18n.t('notif.fileTrashed'), i18n.t('notif.fileTrashedBody', { name: fileName }));
|
||||
return true;
|
||||
} else {
|
||||
// Fallback to direct deletion if trash fails
|
||||
@@ -1250,16 +1250,16 @@ const fileOps = {
|
||||
|
||||
if (fallbackResponse.ok) {
|
||||
loadFiles();
|
||||
ui.showNotification('File deleted', `"${fileName}" deleted successfully`);
|
||||
ui.showNotification(i18n.t('notif.fileDeleted'), i18n.t('notif.fileDeletedBody', { name: fileName }));
|
||||
return true;
|
||||
} else {
|
||||
ui.showNotification('Error', 'Error deleting the file');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.fileDeleteError'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error deleting file:', error);
|
||||
ui.showNotification('Error', 'Error deleting the file');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.fileDeleteError'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -1292,7 +1292,7 @@ const fileOps = {
|
||||
ui.updateBreadcrumb();
|
||||
}
|
||||
loadFiles();
|
||||
ui.showNotification('Folder moved to trash', `"${folderName}" moved to trash`);
|
||||
ui.showNotification(i18n.t('notif.folderTrashed'), i18n.t('notif.folderTrashedBody', { name: folderName }));
|
||||
return true;
|
||||
} else {
|
||||
// Fallback to direct deletion if trash fails
|
||||
@@ -1308,16 +1308,16 @@ const fileOps = {
|
||||
ui.updateBreadcrumb();
|
||||
}
|
||||
loadFiles();
|
||||
ui.showNotification('Folder deleted', `"${folderName}" deleted successfully`);
|
||||
ui.showNotification(i18n.t('notif.folderDeleted'), i18n.t('notif.folderDeletedBody', { name: folderName }));
|
||||
return true;
|
||||
} else {
|
||||
ui.showNotification('Error', 'Error deleting the folder');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.folderDeleteError'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error deleting folder:', error);
|
||||
ui.showNotification('Error', 'Error deleting the folder');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.folderDeleteError'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -1339,15 +1339,15 @@ const fileOps = {
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
ui.showNotification('Item restored', 'Item restored successfully');
|
||||
ui.showNotification(i18n.t('notif.itemRestored'), i18n.t('notif.itemRestoredBody'));
|
||||
return true;
|
||||
} else {
|
||||
ui.showNotification('Error', 'Error restoring the item');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.itemRestoreError'));
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error restoring item from trash:', error);
|
||||
ui.showNotification('Error', 'Error restoring the item');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.itemRestoreError'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -1372,15 +1372,15 @@ const fileOps = {
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
ui.showNotification('Item deleted', 'Item permanently deleted');
|
||||
ui.showNotification(i18n.t('notif.itemDeleted'), i18n.t('notif.itemDeletedBody'));
|
||||
return true;
|
||||
} else {
|
||||
ui.showNotification('Error', 'Error deleting the item');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.itemDeleteError'));
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error deleting item permanently:', error);
|
||||
ui.showNotification('Error', 'Error deleting the item');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.itemDeleteError'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -1404,15 +1404,15 @@ const fileOps = {
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
ui.showNotification('Trash emptied', 'The trash has been emptied successfully');
|
||||
ui.showNotification(i18n.t('notif.trashEmptied'), i18n.t('notif.trashEmptiedBody'));
|
||||
return true;
|
||||
} else {
|
||||
ui.showNotification('Error', 'Error emptying the trash');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.trashEmptyError'));
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error emptying trash:', error);
|
||||
ui.showNotification('Error', 'Error emptying the trash');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.trashEmptyError'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -1435,7 +1435,7 @@ const fileOps = {
|
||||
async downloadFolder(folderId, folderName) {
|
||||
// Show notification to user (the server still has to assemble the
|
||||
// ZIP before the browser's own download UI takes over).
|
||||
ui.showNotification('Preparing download', 'Preparing the folder for download...');
|
||||
ui.showNotification(i18n.t('notif.preparingDownload'), i18n.t('notif.preparingDownloadBody'));
|
||||
triggerBrowserDownload(`/api/folders/${folderId}/download?format=zip`, `${folderName}.zip`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { loadFiles, renderItems } from '../../app/filesView.js';
|
||||
import { app } from '../../app/state.js';
|
||||
import { ui } from '../../app/ui.js';
|
||||
import { i18n } from '../../core/i18n.js';
|
||||
import { getAuthHeaders } from './fileOperations.js';
|
||||
|
||||
/**
|
||||
@@ -69,7 +70,7 @@ const search = {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error performing search:', error);
|
||||
ui.showNotification('Error', 'Error performing search');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.searchError'));
|
||||
return {
|
||||
files: [],
|
||||
folders: [],
|
||||
@@ -216,15 +217,15 @@ const search = {
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
ui.showNotification('Cache cleared', 'Search cache cleared successfully');
|
||||
ui.showNotification(i18n.t('notif.cacheCleared'), i18n.t('notif.cacheClearedBody'));
|
||||
return true;
|
||||
} else {
|
||||
ui.showNotification('Error', 'Error clearing search cache');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.cacheClearError'));
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error clearing search cache:', error);
|
||||
ui.showNotification('Error', 'Error clearing search cache');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.cacheClearError'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
import { loadFiles } from '../../app/filesView.js';
|
||||
import { ui } from '../../app/ui.js';
|
||||
import { i18n } from '../../core/i18n.js';
|
||||
|
||||
class WopiEditor {
|
||||
constructor() {
|
||||
@@ -54,7 +55,7 @@ class WopiEditor {
|
||||
window.open(hostUrl, '_blank');
|
||||
} catch (error) {
|
||||
console.error('Failed to open WOPI editor in tab:', error);
|
||||
ui.showNotification('Could not open the document editor.', 'error');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.wopiOpenError'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -181,6 +181,7 @@ const photosView = {
|
||||
html += '<div class="photos-sentinel"></div>';
|
||||
this._container.innerHTML = html;
|
||||
this._container.onclick = (e) => this._handleClick(e);
|
||||
this._fadeInTiles();
|
||||
this._renderedCount = this.items.length;
|
||||
this._observeSentinel();
|
||||
this._setupVideoThumbnails();
|
||||
@@ -237,6 +238,7 @@ const photosView = {
|
||||
this._renderedCount = this.items.length;
|
||||
this._observeSentinel();
|
||||
this._setupVideoThumbnails(startIndex);
|
||||
this._fadeInTiles();
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -250,12 +252,32 @@ const photosView = {
|
||||
const thumbUrl = cachedThumb || `/api/files/${file.id}/thumbnail/preview`;
|
||||
let h = `<div class="photo-tile${selected}" data-id="${this._escAttr(file.id)}" data-mime="${this._escAttr(file.mime_type)}" data-name="${this._escAttr(file.name)}">`;
|
||||
h += `<div class="photo-check"><i class="fas fa-check"></i></div>`;
|
||||
h += `<img src="${thumbUrl}" loading="lazy" alt="${this._escAttr(file.name)}">`;
|
||||
const srcset = cachedThumb
|
||||
? ''
|
||||
: ` srcset="/api/files/${file.id}/thumbnail/icon 150w, /api/files/${file.id}/thumbnail/preview 400w, /api/files/${file.id}/thumbnail/large 800w" sizes="(max-width: 768px) 33vw, 200px"`;
|
||||
h += `<img src="${thumbUrl}"${srcset} loading="lazy" decoding="async" alt="${this._escAttr(file.name)}">`;
|
||||
if (isVideo) h += `<div class="video-badge"><i class="fas fa-play"></i></div>`;
|
||||
h += `</div>`;
|
||||
return h;
|
||||
},
|
||||
|
||||
/**
|
||||
* Fade tiles in as their thumbnails finish loading (kills the pop-in).
|
||||
* Idempotent — only wires images not already marked loaded.
|
||||
*/
|
||||
_fadeInTiles() {
|
||||
this._container?.querySelectorAll('.photo-tile img:not(.is-loaded)').forEach((el) => {
|
||||
const img = /** @type {HTMLImageElement} */ (el);
|
||||
if (img.complete) {
|
||||
img.classList.add('is-loaded');
|
||||
} else {
|
||||
const done = () => img.classList.add('is-loaded');
|
||||
img.addEventListener('load', done, { once: true });
|
||||
img.addEventListener('error', done, { once: true });
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/** (Re-)observe the sentinel element for infinite scroll */
|
||||
_observeSentinel() {
|
||||
this._destroyObserver();
|
||||
|
||||
@@ -157,6 +157,17 @@ export const photosLightbox = {
|
||||
requestAnimationFrame(() => el.classList.add('active'));
|
||||
},
|
||||
|
||||
/** Preload the immediate prev/next thumbnails so navigation is instant. */
|
||||
_preloadNeighbors() {
|
||||
[this.index - 1, this.index + 1].forEach((i) => {
|
||||
const it = this.items[i];
|
||||
if (it && !it.mime_type?.startsWith('video/')) {
|
||||
const pre = new Image();
|
||||
pre.src = this._thumbUrl(it);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/** Display the current item */
|
||||
_show() {
|
||||
if (!this._overlay || this.index < 0) return;
|
||||
@@ -193,6 +204,9 @@ export const photosLightbox = {
|
||||
const fullResIcon = fullResBtn.querySelector('i');
|
||||
if (fullResIcon) fullResIcon.className = 'fas fa-expand';
|
||||
|
||||
// Preload neighbours so prev/next is instant.
|
||||
this._preloadNeighbors();
|
||||
|
||||
// Load content
|
||||
content.innerHTML = '<div class="photos-loading"><i class="fas fa-spinner"></i></div>';
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import { switchToSharedSection } from '../../app/navigation.js';
|
||||
import { ui } from '../../app/ui.js';
|
||||
import { getCsrfHeaders } from '../../core/csrf.js';
|
||||
import { formatDateTime } from '../../core/formatters.js';
|
||||
import { i18n } from '../../core/i18n.js';
|
||||
|
||||
/**
|
||||
* @import {CreateShare, ShareItem, UpdateShare} from '../../core/types.js'
|
||||
@@ -169,11 +170,11 @@ const fileSharing = {
|
||||
async copyLinkToClipboard(url) {
|
||||
try {
|
||||
await navigator.clipboard.writeText(url);
|
||||
ui.showNotification('Link copied', 'Link copied to clipboard');
|
||||
ui.showNotification(i18n.t('notif.linkCopied'), i18n.t('notif.linkCopiedBody'));
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.error('Error copying to clipboard:', error);
|
||||
ui.showNotification('Error', 'Could not copy link');
|
||||
ui.showNotification(i18n.t('notif.errorTitle'), i18n.t('notif.linkCopyError'));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
@@ -198,7 +199,7 @@ const fileSharing = {
|
||||
async sendShareNotification(shareUrl, recipientEmail, _message = '') {
|
||||
// TODO: implement backend endpoint for email notifications
|
||||
console.log(`Share notification for ${shareUrl} sent to ${recipientEmail}`);
|
||||
ui.showNotification('Notification sent', `Notification sent to ${recipientEmail}`);
|
||||
ui.showNotification(i18n.t('notif.notificationSent'), i18n.t('notif.notificationSentBody', { email: recipientEmail }));
|
||||
return true;
|
||||
},
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getCsrfHeaders } from '../../core/csrf.js';
|
||||
import { escapeHtml } from '../../core/formatters.js';
|
||||
import { escapeHtml, formatRelativeTime } from '../../core/formatters.js';
|
||||
import { i18n } from '../../core/i18n.js';
|
||||
import { oxiIconsInit } from '../../core/icons.js';
|
||||
|
||||
@@ -63,14 +63,7 @@ function formatBytes(bytes) {
|
||||
/** @param {string|null} dateStr */
|
||||
function timeAgo(dateStr) {
|
||||
if (!dateStr) return i18n.t('admin.never');
|
||||
const d = new Date(dateStr);
|
||||
const now = new Date();
|
||||
const secs = Math.floor((now.getTime() - d.getTime()) / 1000);
|
||||
if (secs < 60) return i18n.t('admin.just_now');
|
||||
if (secs < 3600) return i18n.t('admin.minutes_ago', { n: Math.floor(secs / 60) });
|
||||
if (secs < 86400) return i18n.t('admin.hours_ago', { n: Math.floor(secs / 3600) });
|
||||
if (secs < 2592000) return i18n.t('admin.days_ago', { n: Math.floor(secs / 86400) });
|
||||
return d.toLocaleDateString();
|
||||
return formatRelativeTime(dateStr);
|
||||
}
|
||||
|
||||
/* ── Custom confirm modal ── */
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { getCsrfHeaders } from '../../core/csrf.js';
|
||||
import { installFetchInterceptor } from '../../core/fetchWrapper.js';
|
||||
import { i18n } from '../../core/i18n.js';
|
||||
import { formatRelativeTime } from '../../core/formatters.js';
|
||||
import { oxiIconsInit } from '../../core/icons.js';
|
||||
import { resizeImageToDataUrl } from '../../utils/imageResize.js';
|
||||
|
||||
@@ -32,14 +33,7 @@ function formatBytes(bytes) {
|
||||
/** @param {string | null | undefined} dateStr */
|
||||
function timeAgo(dateStr) {
|
||||
if (!dateStr) return i18n.t('profile.never');
|
||||
const d = new Date(dateStr);
|
||||
const now = Date.now();
|
||||
const secs = Math.floor((now - d.valueOf()) / 1000);
|
||||
if (secs < 60) return i18n.t('profile.just_now');
|
||||
if (secs < 3600) return i18n.t('profile.minutes_ago', { n: Math.floor(secs / 60) });
|
||||
if (secs < 86400) return i18n.t('profile.hours_ago', { n: Math.floor(secs / 3600) });
|
||||
if (secs < 2592000) return i18n.t('profile.days_ago', { n: Math.floor(secs / 86400) });
|
||||
return d.toLocaleDateString();
|
||||
return formatRelativeTime(dateStr);
|
||||
}
|
||||
|
||||
// ── Avatar helpers ─────────────────────────────────────────────────────────────
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "إغلاق",
|
||||
"delete_permanently": "حذف نهائياً",
|
||||
"empty_trash": "تفريغ سلة المهملات",
|
||||
"open_parent_folder": "الانتقال إلى المجلد الأصلي"
|
||||
"open_parent_folder": "الانتقال إلى المجلد الأصلي",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "المظهر",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "تم إنشاء رابط المشاركة بنجاح",
|
||||
"shareUpdated": "تم تحديث إعدادات المشاركة بنجاح",
|
||||
"shareRemoved": "تمت إزالة المشاركة بنجاح",
|
||||
"inviteByEmail": "دعوة عبر البريد الإلكتروني — ستُرسل الدعوة"
|
||||
"inviteByEmail": "دعوة عبر البريد الإلكتروني — ستُرسل الدعوة",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "رابط المشاركة",
|
||||
"share_linkLabel": "رابط المشاركة:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "إرسال رابط تسجيل الدخول",
|
||||
"magicLinkSent": "إذا كان هناك حساب لهذا البريد الإلكتروني، فسيتم إرسال رابط تسجيل الدخول. تحقق من صندوق الوارد.",
|
||||
"magicLinkUnavailable": "تسجيل الدخول عبر البريد الإلكتروني غير متاح على هذا الخادم.",
|
||||
"magicLinkNetworkError": "تعذر الوصول إلى الخادم: {{message}}"
|
||||
"magicLinkNetworkError": "تعذر الوصول إلى الخادم: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "التخزين",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "عدد كبير من الإشعارات لهذا المستلم — حاول لاحقًا.",
|
||||
"removeAccess": "إزالة الوصول",
|
||||
"resendInvitation": "إعادة إرسال بريد الدعوة"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "Schließen",
|
||||
"delete_permanently": "Endgültig löschen",
|
||||
"empty_trash": "Papierkorb leeren",
|
||||
"open_parent_folder": "Zum übergeordneten Ordner"
|
||||
"open_parent_folder": "Zum übergeordneten Ordner",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Erscheinungsbild",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "Freigabelink erfolgreich erstellt",
|
||||
"shareUpdated": "Freigabeeinstellungen aktualisiert",
|
||||
"shareRemoved": "Freigabe erfolgreich entfernt",
|
||||
"inviteByEmail": "Per E-Mail einladen — Einladung wird gesendet"
|
||||
"inviteByEmail": "Per E-Mail einladen — Einladung wird gesendet",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Link teilen",
|
||||
"share_linkLabel": "Geteilter Link:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "Anmeldelink senden",
|
||||
"magicLinkSent": "Wenn für diese E-Mail-Adresse ein Konto besteht, wurde ein Anmeldelink gesendet. Überprüfen Sie Ihren Posteingang.",
|
||||
"magicLinkUnavailable": "Die Anmeldung per E-Mail ist auf diesem Server nicht verfügbar.",
|
||||
"magicLinkNetworkError": "Server nicht erreichbar: {{message}}"
|
||||
"magicLinkNetworkError": "Server nicht erreichbar: {{message}}",
|
||||
"magicLinkToggle": "Kein Passwort? Anmeldelink per E-Mail",
|
||||
"passwordsMatch": "Passwörter stimmen überein",
|
||||
"capsLock": "Feststelltaste aktiv"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Speicher",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Zu viele Benachrichtigungen für diesen Empfänger — versuchen Sie es später erneut.",
|
||||
"removeAccess": "Zugriff entfernen",
|
||||
"resendInvitation": "Einladungs-E-Mail erneut senden"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "aufsteigend",
|
||||
"desc": "absteigend"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -167,7 +167,11 @@
|
||||
"close": "Close",
|
||||
"delete_permanently": "Delete permanently",
|
||||
"empty_trash": "Empty trash",
|
||||
"open_parent_folder": "Go to parent folder"
|
||||
"open_parent_folder": "Go to parent folder",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Appearance",
|
||||
@@ -207,7 +211,22 @@
|
||||
"shareCreated": "Share link created successfully",
|
||||
"shareUpdated": "Share settings updated successfully",
|
||||
"shareRemoved": "Share removed successfully",
|
||||
"inviteByEmail": "Invite by email — invitation will be sent"
|
||||
"inviteByEmail": "Invite by email — invitation will be sent",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Share Link",
|
||||
"share_linkLabel": "Share Link:",
|
||||
@@ -470,7 +489,10 @@
|
||||
"magicLinkSubmit": "Send sign-in link",
|
||||
"magicLinkSent": "If an account exists for that email, a sign-in link has been sent. Check your inbox.",
|
||||
"magicLinkUnavailable": "Sign-in by email is not available on this server.",
|
||||
"magicLinkNetworkError": "Could not reach the server: {{message}}"
|
||||
"magicLinkNetworkError": "Could not reach the server: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Storage",
|
||||
@@ -881,5 +903,78 @@
|
||||
"delete_confirm_mismatch": "Type the group name exactly to confirm.",
|
||||
"virtual_internal_name": "Internal",
|
||||
"virtual_internal_explanation": "Every internal user on this server"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -151,7 +151,22 @@
|
||||
"shareCreated": "Enlace compartido creado correctamente",
|
||||
"shareUpdated": "Configuración de compartido actualizada",
|
||||
"shareRemoved": "Compartido eliminado correctamente",
|
||||
"inviteByEmail": "Invitar por correo — se enviará una invitación"
|
||||
"inviteByEmail": "Invitar por correo — se enviará una invitación",
|
||||
"directoryUnavailable": "Directorio de usuarios no disponible",
|
||||
"linkNamePlaceholder": "Nombre del enlace (opcional)",
|
||||
"newLink": "Nuevo enlace",
|
||||
"noExpiry": "Sin caducidad",
|
||||
"pending": "Pendiente",
|
||||
"people": "Personas",
|
||||
"publicLinks": "Enlaces públicos",
|
||||
"role": {
|
||||
"canEdit": "Puede editar",
|
||||
"canManage": "Puede gestionar",
|
||||
"canView": "Puede ver"
|
||||
},
|
||||
"searchPlaceholder": "Buscar personas…",
|
||||
"shareOf": "Compartir:",
|
||||
"sharedLink": "Enlace compartido"
|
||||
},
|
||||
"share_dialogTitle": "Compartir Enlace",
|
||||
"share_linkLabel": "Enlace compartido:",
|
||||
@@ -277,7 +292,11 @@
|
||||
"close": "Cerrar",
|
||||
"delete_permanently": "Eliminar permanentemente",
|
||||
"empty_trash": "Vaciar papelera",
|
||||
"open_parent_folder": "Ir a la carpeta padre"
|
||||
"open_parent_folder": "Ir a la carpeta padre",
|
||||
"add": "Añadir",
|
||||
"apply": "Aplicar",
|
||||
"clear": "Limpiar",
|
||||
"remove": "Quitar"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Apariencia",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "Enviar enlace de inicio de sesión",
|
||||
"magicLinkSent": "Si existe una cuenta para ese correo, se ha enviado un enlace de inicio de sesión. Revisa tu bandeja de entrada.",
|
||||
"magicLinkUnavailable": "El inicio de sesión por correo electrónico no está disponible en este servidor.",
|
||||
"magicLinkNetworkError": "No se pudo conectar con el servidor: {{message}}"
|
||||
"magicLinkNetworkError": "No se pudo conectar con el servidor: {{message}}",
|
||||
"magicLinkToggle": "¿Sin contraseña? Recíbelo por correo",
|
||||
"passwordsMatch": "Las contraseñas coinciden",
|
||||
"capsLock": "Bloq Mayús activado"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Almacenamiento",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Demasiadas notificaciones para este destinatario — inténtalo más tarde.",
|
||||
"removeAccess": "Quitar acceso",
|
||||
"resendInvitation": "Reenviar correo de invitación"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascendente",
|
||||
"desc": "descendente"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error al realizar la búsqueda",
|
||||
"cleanupCompleted": "Limpieza completada",
|
||||
"cleanupCompletedBody": "Se ha borrado el historial de archivos recientes",
|
||||
"batchCopy": "Copia en lote",
|
||||
"batchCopyBody": "{{success}} copiados, {{errors}} fallidos",
|
||||
"itemsCopied": "Elementos copiados",
|
||||
"itemsCopiedBody": "{{count}} elementos copiados correctamente",
|
||||
"batchMove": "Movimiento en lote",
|
||||
"batchMoveBody": "{{success}} movidos, {{errors}} fallidos",
|
||||
"itemsMoved": "Elementos movidos",
|
||||
"itemsMovedBody": "{{count}} elementos movidos correctamente",
|
||||
"batchDelete": "Borrado en lote",
|
||||
"batchDeleteBody": "{{success}} movidos a la papelera, {{errors}} fallidos",
|
||||
"movedToTrash": "Movido a la papelera",
|
||||
"movedToTrashBody": "{{count}} elementos movidos a la papelera",
|
||||
"trashItemsError": "No se pudieron mover los elementos a la papelera",
|
||||
"preparingDownload": "Preparando descarga",
|
||||
"preparingDownloadBody": "Preparando la descarga…",
|
||||
"downloadItemsError": "No se pudieron descargar los elementos seleccionados",
|
||||
"favoritesAddError": "No se pudieron añadir los elementos a favoritos",
|
||||
"invalidEmail": "Introduce una dirección de correo válida",
|
||||
"notificationSendError": "No se pudo enviar la notificación",
|
||||
"folderCreated": "Carpeta creada",
|
||||
"folderCreatedBody": "«{{name}}» creada correctamente",
|
||||
"fileMoved": "Archivo movido",
|
||||
"fileMovedBody": "Archivo movido correctamente",
|
||||
"fileMoveError": "Error al mover el archivo: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error al mover el archivo",
|
||||
"folderMoved": "Carpeta movida",
|
||||
"folderMovedBody": "Carpeta movida correctamente",
|
||||
"folderMoveError": "Error al mover la carpeta: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error al mover la carpeta",
|
||||
"fileCopied": "Archivo copiado",
|
||||
"fileCopiedBody": "Archivo copiado correctamente",
|
||||
"fileCopyError": "Error al copiar el archivo: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error al copiar el archivo",
|
||||
"folderRenamed": "Carpeta renombrada",
|
||||
"folderRenamedBody": "Carpeta renombrada a «{{name}}»",
|
||||
"fileTrashed": "Archivo movido a la papelera",
|
||||
"fileTrashedBody": "«{{name}}» movido a la papelera",
|
||||
"fileDeleted": "Archivo eliminado",
|
||||
"fileDeletedBody": "«{{name}}» eliminado correctamente",
|
||||
"fileDeleteError": "Error al eliminar el archivo",
|
||||
"folderTrashed": "Carpeta movida a la papelera",
|
||||
"folderTrashedBody": "«{{name}}» movida a la papelera",
|
||||
"folderDeleted": "Carpeta eliminada",
|
||||
"folderDeletedBody": "«{{name}}» eliminada correctamente",
|
||||
"folderDeleteError": "Error al eliminar la carpeta",
|
||||
"itemRestored": "Elemento restaurado",
|
||||
"itemRestoredBody": "Elemento restaurado correctamente",
|
||||
"itemRestoreError": "Error al restaurar el elemento",
|
||||
"itemDeleted": "Elemento eliminado",
|
||||
"itemDeletedBody": "Elemento eliminado permanentemente",
|
||||
"itemDeleteError": "Error al eliminar el elemento",
|
||||
"trashEmptied": "Papelera vaciada",
|
||||
"trashEmptiedBody": "La papelera se ha vaciado correctamente",
|
||||
"trashEmptyError": "Error al vaciar la papelera",
|
||||
"cacheCleared": "Caché limpiada",
|
||||
"cacheClearedBody": "Caché de búsqueda limpiada correctamente",
|
||||
"cacheClearError": "Error al limpiar la caché de búsqueda",
|
||||
"wopiOpenError": "No se pudo abrir el editor de documentos.",
|
||||
"linkCopied": "Enlace copiado",
|
||||
"linkCopiedBody": "Enlace copiado al portapapeles",
|
||||
"linkCopyError": "No se pudo copiar el enlace",
|
||||
"notificationSent": "Notificación enviada",
|
||||
"notificationSentBody": "Notificación enviada a {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "بستن",
|
||||
"delete_permanently": "Delete permanently",
|
||||
"empty_trash": "Empty trash",
|
||||
"open_parent_folder": "رفتن به پوشه والد"
|
||||
"open_parent_folder": "رفتن به پوشه والد",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "ظاهر",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "پیوند همرسانی با موفقیت ایجاد شد",
|
||||
"shareUpdated": "تنظیمات همرسانی با موفقیت بهروزرسانی شد",
|
||||
"shareRemoved": "همرسانی با موفقیت پاک شد",
|
||||
"inviteByEmail": "دعوت از طریق ایمیل — دعوت ارسال خواهد شد"
|
||||
"inviteByEmail": "دعوت از طریق ایمیل — دعوت ارسال خواهد شد",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "پیوند همرسانی",
|
||||
"share_linkLabel": "پیوند همرسانی:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "ارسال پیوند ورود",
|
||||
"magicLinkSent": "اگر برای این ایمیل حسابی وجود داشته باشد، پیوند ورود ارسال شده است. صندوق ورودی خود را بررسی کنید.",
|
||||
"magicLinkUnavailable": "ورود با ایمیل در این سرور در دسترس نیست.",
|
||||
"magicLinkNetworkError": "ارتباط با سرور برقرار نشد: {{message}}"
|
||||
"magicLinkNetworkError": "ارتباط با سرور برقرار نشد: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "فضای ذخیرهسازی",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "اعلانهای زیادی برای این گیرنده — بعداً دوباره تلاش کنید.",
|
||||
"removeAccess": "حذف دسترسی",
|
||||
"resendInvitation": "ارسال مجدد ایمیل دعوت"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "Fermer",
|
||||
"delete_permanently": "Supprimer définitivement",
|
||||
"empty_trash": "Vider la corbeille",
|
||||
"open_parent_folder": "Aller au dossier parent"
|
||||
"open_parent_folder": "Aller au dossier parent",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Apparence",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "Lien de partage créé avec succès",
|
||||
"shareUpdated": "Paramètres de partage mis à jour",
|
||||
"shareRemoved": "Partage supprimé avec succès",
|
||||
"inviteByEmail": "Inviter par e-mail — une invitation sera envoyée"
|
||||
"inviteByEmail": "Inviter par e-mail — une invitation sera envoyée",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Lien de partage",
|
||||
"share_linkLabel": "Lien partagé :",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "Envoyer le lien de connexion",
|
||||
"magicLinkSent": "Si un compte existe pour cette adresse, un lien de connexion vient d'être envoyé. Consultez votre boîte de réception.",
|
||||
"magicLinkUnavailable": "La connexion par e-mail n'est pas disponible sur ce serveur.",
|
||||
"magicLinkNetworkError": "Impossible de joindre le serveur : {{message}}"
|
||||
"magicLinkNetworkError": "Impossible de joindre le serveur : {{message}}",
|
||||
"magicLinkToggle": "Pas de mot de passe ? Recevez un lien par e-mail",
|
||||
"passwordsMatch": "Les mots de passe correspondent",
|
||||
"capsLock": "Verr. Maj activé"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Stockage",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Trop de notifications pour ce destinataire — réessayez plus tard.",
|
||||
"removeAccess": "Retirer l'accès",
|
||||
"resendInvitation": "Renvoyer l'e-mail d'invitation"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "croissant",
|
||||
"desc": "décroissant"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "बंद करें",
|
||||
"delete_permanently": "स्थायी रूप से हटाएँ",
|
||||
"empty_trash": "रद्दी खाली करें",
|
||||
"open_parent_folder": "मूल फ़ोल्डर पर जाएं"
|
||||
"open_parent_folder": "मूल फ़ोल्डर पर जाएं",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "दिखावट",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "शेयर लिंक सफलतापूर्वक बनाया गया",
|
||||
"shareUpdated": "शेयर सेटिंग्स सफलतापूर्वक अपडेट हुईं",
|
||||
"shareRemoved": "शेयर सफलतापूर्वक हटाया गया",
|
||||
"inviteByEmail": "ईमेल द्वारा आमंत्रित करें — आमंत्रण भेजा जाएगा"
|
||||
"inviteByEmail": "ईमेल द्वारा आमंत्रित करें — आमंत्रण भेजा जाएगा",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "शेयर लिंक",
|
||||
"share_linkLabel": "शेयर लिंक:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "साइन-इन लिंक भेजें",
|
||||
"magicLinkSent": "यदि उस ईमेल के लिए कोई खाता मौजूद है, तो एक साइन-इन लिंक भेज दिया गया है। अपना इनबॉक्स देखें।",
|
||||
"magicLinkUnavailable": "इस सर्वर पर ईमेल द्वारा साइन-इन उपलब्ध नहीं है।",
|
||||
"magicLinkNetworkError": "सर्वर से कनेक्ट नहीं हो सका: {{message}}"
|
||||
"magicLinkNetworkError": "सर्वर से कनेक्ट नहीं हो सका: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "स्टोरेज",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "इस प्राप्तकर्ता के लिए बहुत अधिक सूचनाएँ — बाद में पुनः प्रयास करें।",
|
||||
"removeAccess": "पहुँच हटाएँ",
|
||||
"resendInvitation": "आमंत्रण ईमेल पुनः भेजें"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "Chiudi",
|
||||
"delete_permanently": "Elimina definitivamente",
|
||||
"empty_trash": "Svuota il cestino",
|
||||
"open_parent_folder": "Vai alla cartella padre"
|
||||
"open_parent_folder": "Vai alla cartella padre",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Aspetto",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "Link di condivisione creato con successo",
|
||||
"shareUpdated": "Impostazioni di condivisione aggiornate con successo",
|
||||
"shareRemoved": "Condivisione rimossa con successo",
|
||||
"inviteByEmail": "Invita via email — verrà inviato un invito"
|
||||
"inviteByEmail": "Invita via email — verrà inviato un invito",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Link di condivisione",
|
||||
"share_linkLabel": "Link di condivisione:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "Invia link di accesso",
|
||||
"magicLinkSent": "Se esiste un account per questa email, è stato inviato un link di accesso. Controlla la tua casella di posta.",
|
||||
"magicLinkUnavailable": "L'accesso tramite email non è disponibile su questo server.",
|
||||
"magicLinkNetworkError": "Impossibile raggiungere il server: {{message}}"
|
||||
"magicLinkNetworkError": "Impossibile raggiungere il server: {{message}}",
|
||||
"magicLinkToggle": "Nessuna password? Ricevi un link via e-mail",
|
||||
"passwordsMatch": "Le password corrispondono",
|
||||
"capsLock": "Bloc Maiusc attivo"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Archiviazione",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Troppe notifiche per questo destinatario — riprova più tardi.",
|
||||
"removeAccess": "Rimuovi accesso",
|
||||
"resendInvitation": "Reinvia email di invito"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "crescente",
|
||||
"desc": "decrescente"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "閉じる",
|
||||
"delete_permanently": "完全に削除",
|
||||
"empty_trash": "ゴミ箱を空にする",
|
||||
"open_parent_folder": "親フォルダへ移動"
|
||||
"open_parent_folder": "親フォルダへ移動",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "外観",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "共有リンクが正常に作成されました",
|
||||
"shareUpdated": "共有設定が正常に更新されました",
|
||||
"shareRemoved": "共有が正常に削除されました",
|
||||
"inviteByEmail": "メールで招待 — 招待を送信します"
|
||||
"inviteByEmail": "メールで招待 — 招待を送信します",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "共有リンク",
|
||||
"share_linkLabel": "共有リンク:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "サインインリンクを送信",
|
||||
"magicLinkSent": "そのメールアドレスのアカウントが存在する場合、サインインリンクが送信されました。受信トレイをご確認ください。",
|
||||
"magicLinkUnavailable": "このサーバーではメールでのサインインは利用できません。",
|
||||
"magicLinkNetworkError": "サーバーに接続できませんでした: {{message}}"
|
||||
"magicLinkNetworkError": "サーバーに接続できませんでした: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "ストレージ",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "この受信者への通知が多すぎます — しばらくしてから再試行してください。",
|
||||
"removeAccess": "アクセスを削除",
|
||||
"resendInvitation": "招待メールを再送信"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "닫기",
|
||||
"delete_permanently": "영구 삭제",
|
||||
"empty_trash": "휴지통 비우기",
|
||||
"open_parent_folder": "상위 폴더로 이동"
|
||||
"open_parent_folder": "상위 폴더로 이동",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "외관",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "공유 링크가 성공적으로 생성되었습니다",
|
||||
"shareUpdated": "공유 설정이 성공적으로 업데이트되었습니다",
|
||||
"shareRemoved": "공유가 성공적으로 삭제되었습니다",
|
||||
"inviteByEmail": "이메일로 초대 — 초대장이 전송됩니다"
|
||||
"inviteByEmail": "이메일로 초대 — 초대장이 전송됩니다",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "공유 링크",
|
||||
"share_linkLabel": "공유 링크:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "로그인 링크 보내기",
|
||||
"magicLinkSent": "해당 이메일에 대한 계정이 있는 경우 로그인 링크가 전송되었습니다. 받은편지함을 확인하세요.",
|
||||
"magicLinkUnavailable": "이 서버에서는 이메일 로그인을 사용할 수 없습니다.",
|
||||
"magicLinkNetworkError": "서버에 연결할 수 없습니다: {{message}}"
|
||||
"magicLinkNetworkError": "서버에 연결할 수 없습니다: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "저장소",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "이 수신자에게 알림이 너무 많습니다 — 나중에 다시 시도하세요.",
|
||||
"removeAccess": "액세스 제거",
|
||||
"resendInvitation": "초대 이메일 다시 보내기"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+102
-7
@@ -157,7 +157,11 @@
|
||||
"close": "Sluiten",
|
||||
"delete_permanently": "Permanent verwijderen",
|
||||
"empty_trash": "Prullenbak legen",
|
||||
"open_parent_folder": "Naar bovenliggende map"
|
||||
"open_parent_folder": "Naar bovenliggende map",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Weergave",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "Deellink succesvol aangemaakt",
|
||||
"shareUpdated": "Deelinstellingen bijgewerkt",
|
||||
"shareRemoved": "Delen verwijderd",
|
||||
"inviteByEmail": "Uitnodigen via e-mail — uitnodiging wordt verzonden"
|
||||
"inviteByEmail": "Uitnodigen via e-mail — uitnodiging wordt verzonden",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Deellink",
|
||||
"share_linkLabel": "Deellink:",
|
||||
@@ -460,12 +479,15 @@
|
||||
"magicLinkSubmit": "Aanmeldlink versturen",
|
||||
"magicLinkSent": "Als er een account bestaat voor dat e-mailadres, is een aanmeldlink verzonden. Controleer uw inbox.",
|
||||
"magicLinkUnavailable": "Aanmelden per e-mail is niet beschikbaar op deze server.",
|
||||
"magicLinkNetworkError": "Kan de server niet bereiken: {{message}}"
|
||||
"magicLinkNetworkError": "Kan de server niet bereiken: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Opslag",
|
||||
"calculating": "Bezig met berekenen...",
|
||||
"used": "{percentage}% gebruikt ({used} / {total})"
|
||||
"used": "{{percentage}}% gebruikt ({{used}} / {{total}})"
|
||||
},
|
||||
"viewer": {
|
||||
"unsupported_file": "Dit bestandstype kan niet bekeken worden.",
|
||||
@@ -532,9 +554,9 @@
|
||||
},
|
||||
"batch": {
|
||||
"one_selected": "1 item geselecteerd",
|
||||
"n_selected": "{count} items geselecteerd",
|
||||
"confirm_delete": "Weet je zeker dat je {count} items naar de prullenbak wilt verplaatsen?",
|
||||
"move_title": "Verplaats {count} item(s)",
|
||||
"n_selected": "{{count}} items geselecteerd",
|
||||
"confirm_delete": "Weet je zeker dat je {{count}} items naar de prullenbak wilt verplaatsen?",
|
||||
"move_title": "Verplaats {{count}} item(s)",
|
||||
"add_favorites": "Toevoegen aan favorieten",
|
||||
"move_copy": "Verplaatsen of kopiëren"
|
||||
},
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Te veel notificaties voor deze ontvanger — probeer het later opnieuw.",
|
||||
"removeAccess": "Toegang verwijderen",
|
||||
"resendInvitation": "Uitnodigingsmail opnieuw verzenden"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "Zamknij",
|
||||
"delete_permanently": "Usuń trwale",
|
||||
"empty_trash": "Opróżnij kosz",
|
||||
"open_parent_folder": "Przejdź do folderu nadrzędnego"
|
||||
"open_parent_folder": "Przejdź do folderu nadrzędnego",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Wygląd",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "Link udostępniania utworzony pomyślnie",
|
||||
"shareUpdated": "Ustawienia udostępniania zaktualizowane pomyślnie",
|
||||
"shareRemoved": "Udostępnienie usunięte pomyślnie",
|
||||
"inviteByEmail": "Zaproś przez e-mail — zaproszenie zostanie wysłane"
|
||||
"inviteByEmail": "Zaproś przez e-mail — zaproszenie zostanie wysłane",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Link udostępniania",
|
||||
"share_linkLabel": "Link udostępniania:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "Wyślij link do logowania",
|
||||
"magicLinkSent": "Jeśli konto dla tego adresu istnieje, link do logowania został wysłany. Sprawdź swoją skrzynkę odbiorczą.",
|
||||
"magicLinkUnavailable": "Logowanie e-mailem nie jest dostępne na tym serwerze.",
|
||||
"magicLinkNetworkError": "Nie udało się połączyć z serwerem: {{message}}"
|
||||
"magicLinkNetworkError": "Nie udało się połączyć z serwerem: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Pamięć masowa",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Zbyt wiele powiadomień dla tego odbiorcy — spróbuj ponownie później.",
|
||||
"removeAccess": "Usuń dostęp",
|
||||
"resendInvitation": "Wyślij ponownie e-mail z zaproszeniem"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "Fechar",
|
||||
"delete_permanently": "Excluir permanentemente",
|
||||
"empty_trash": "Esvaziar lixeira",
|
||||
"open_parent_folder": "Ir para a pasta pai"
|
||||
"open_parent_folder": "Ir para a pasta pai",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Aparência",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "Link de compartilhamento criado com sucesso",
|
||||
"shareUpdated": "Configurações de compartilhamento atualizadas",
|
||||
"shareRemoved": "Compartilhamento removido com sucesso",
|
||||
"inviteByEmail": "Convidar por e-mail — o convite será enviado"
|
||||
"inviteByEmail": "Convidar por e-mail — o convite será enviado",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Link de compartilhamento",
|
||||
"share_linkLabel": "Link compartilhado:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "Enviar link de acesso",
|
||||
"magicLinkSent": "Se existir uma conta para este e-mail, um link de acesso foi enviado. Verifique sua caixa de entrada.",
|
||||
"magicLinkUnavailable": "O acesso por e-mail não está disponível neste servidor.",
|
||||
"magicLinkNetworkError": "Não foi possível conectar ao servidor: {{message}}"
|
||||
"magicLinkNetworkError": "Não foi possível conectar ao servidor: {{message}}",
|
||||
"magicLinkToggle": "Sem palavra-passe? Receba um link por e-mail",
|
||||
"passwordsMatch": "As palavras-passe coincidem",
|
||||
"capsLock": "Caps Lock ativado"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Armazenamento",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Demasiadas notificações para este destinatário — tente novamente mais tarde.",
|
||||
"removeAccess": "Remover acesso",
|
||||
"resendInvitation": "Reenviar e-mail de convite"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascendente",
|
||||
"desc": "descendente"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "Закрыть",
|
||||
"delete_permanently": "Удалить навсегда",
|
||||
"empty_trash": "Очистить корзину",
|
||||
"open_parent_folder": "Перейти в родительскую папку"
|
||||
"open_parent_folder": "Перейти в родительскую папку",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "Оформление",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "Ссылка для общего доступа успешно создана",
|
||||
"shareUpdated": "Настройки общего доступа успешно обновлены",
|
||||
"shareRemoved": "Общий доступ успешно удалён",
|
||||
"inviteByEmail": "Пригласить по e-mail — приглашение будет отправлено"
|
||||
"inviteByEmail": "Пригласить по e-mail — приглашение будет отправлено",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "Ссылка для обмена",
|
||||
"share_linkLabel": "Ссылка:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "Отправить ссылку для входа",
|
||||
"magicLinkSent": "Если для этого адреса существует учётная запись, ссылка для входа отправлена. Проверьте входящие.",
|
||||
"magicLinkUnavailable": "Вход по электронной почте недоступен на этом сервере.",
|
||||
"magicLinkNetworkError": "Не удалось подключиться к серверу: {{message}}"
|
||||
"magicLinkNetworkError": "Не удалось подключиться к серверу: {{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "Хранилище",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "Слишком много уведомлений для этого получателя — попробуйте позже.",
|
||||
"removeAccess": "Отозвать доступ",
|
||||
"resendInvitation": "Отправить приглашение повторно"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,7 +157,11 @@
|
||||
"close": "關閉",
|
||||
"delete_permanently": "永久刪除",
|
||||
"empty_trash": "清空回收站",
|
||||
"open_parent_folder": "轉到父資料夾"
|
||||
"open_parent_folder": "轉到父資料夾",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "外觀",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "共享連結建立成功",
|
||||
"shareUpdated": "共享設定更新成功",
|
||||
"shareRemoved": "共享已移除",
|
||||
"inviteByEmail": "透過郵件邀請 — 將傳送邀請"
|
||||
"inviteByEmail": "透過郵件邀請 — 將傳送邀請",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "共享連結",
|
||||
"share_linkLabel": "共享連結:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "傳送登入連結",
|
||||
"magicLinkSent": "若該電子郵件存在帳號,登入連結已發送。請查收您的收件匣。",
|
||||
"magicLinkUnavailable": "此伺服器不支援電子郵件登入。",
|
||||
"magicLinkNetworkError": "無法連線到伺服器:{{message}}"
|
||||
"magicLinkNetworkError": "無法連線到伺服器:{{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "儲存空間",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "對此收件者的通知過多 — 請稍後重試。",
|
||||
"removeAccess": "移除存取權限",
|
||||
"resendInvitation": "重新傳送邀請郵件"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+98
-3
@@ -157,7 +157,11 @@
|
||||
"close": "关闭",
|
||||
"delete_permanently": "Delete permanently",
|
||||
"empty_trash": "Empty trash",
|
||||
"open_parent_folder": "转到父文件夹"
|
||||
"open_parent_folder": "转到父文件夹",
|
||||
"add": "Add",
|
||||
"apply": "Apply",
|
||||
"clear": "Clear",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"user_menu": {
|
||||
"appearance": "外观",
|
||||
@@ -197,7 +201,22 @@
|
||||
"shareCreated": "共享链接创建成功",
|
||||
"shareUpdated": "共享设置更新成功",
|
||||
"shareRemoved": "共享已移除",
|
||||
"inviteByEmail": "通过邮件邀请 — 将发送邀请"
|
||||
"inviteByEmail": "通过邮件邀请 — 将发送邀请",
|
||||
"directoryUnavailable": "User directory unavailable",
|
||||
"linkNamePlaceholder": "Link name (optional)",
|
||||
"newLink": "New link",
|
||||
"noExpiry": "No expiry",
|
||||
"pending": "Pending",
|
||||
"people": "People",
|
||||
"publicLinks": "Public links",
|
||||
"role": {
|
||||
"canEdit": "Can edit",
|
||||
"canManage": "Can manage",
|
||||
"canView": "Can view"
|
||||
},
|
||||
"searchPlaceholder": "Search people…",
|
||||
"shareOf": "Share of:",
|
||||
"sharedLink": "Shared link"
|
||||
},
|
||||
"share_dialogTitle": "共享链接",
|
||||
"share_linkLabel": "共享链接:",
|
||||
@@ -460,7 +479,10 @@
|
||||
"magicLinkSubmit": "发送登录链接",
|
||||
"magicLinkSent": "如果该邮箱存在账户,登录链接已发送。请查收您的收件箱。",
|
||||
"magicLinkUnavailable": "此服务器不支持邮箱登录。",
|
||||
"magicLinkNetworkError": "无法连接到服务器:{{message}}"
|
||||
"magicLinkNetworkError": "无法连接到服务器:{{message}}",
|
||||
"magicLinkToggle": "No password? Email me a sign-in link",
|
||||
"passwordsMatch": "Passwords match",
|
||||
"capsLock": "Caps Lock is on"
|
||||
},
|
||||
"storage": {
|
||||
"title": "存储空间",
|
||||
@@ -881,5 +903,78 @@
|
||||
"notifyRateLimited": "对此收件人的通知过多 — 请稍后重试。",
|
||||
"removeAccess": "移除访问权限",
|
||||
"resendInvitation": "重新发送邀请邮件"
|
||||
},
|
||||
"sort": {
|
||||
"asc": "ascending",
|
||||
"desc": "descending"
|
||||
},
|
||||
"notif": {
|
||||
"errorTitle": "Error",
|
||||
"searchError": "Error performing search",
|
||||
"cleanupCompleted": "Cleanup completed",
|
||||
"cleanupCompletedBody": "Recent files history has been cleared",
|
||||
"batchCopy": "Batch copy",
|
||||
"batchCopyBody": "{{success}} copied, {{errors}} failed",
|
||||
"itemsCopied": "Items copied",
|
||||
"itemsCopiedBody": "{{count}} items copied successfully",
|
||||
"batchMove": "Batch move",
|
||||
"batchMoveBody": "{{success}} moved, {{errors}} failed",
|
||||
"itemsMoved": "Items moved",
|
||||
"itemsMovedBody": "{{count}} items moved successfully",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteBody": "{{success}} moved to trash, {{errors}} failed",
|
||||
"movedToTrash": "Moved to trash",
|
||||
"movedToTrashBody": "{{count}} items moved to trash",
|
||||
"trashItemsError": "Could not move items to trash",
|
||||
"preparingDownload": "Preparing download",
|
||||
"preparingDownloadBody": "Preparing your download…",
|
||||
"downloadItemsError": "Could not download selected items",
|
||||
"favoritesAddError": "Could not add items to favorites",
|
||||
"invalidEmail": "Please enter a valid email address",
|
||||
"notificationSendError": "Could not send notification",
|
||||
"folderCreated": "Folder created",
|
||||
"folderCreatedBody": "\"{{name}}\" created successfully",
|
||||
"fileMoved": "File moved",
|
||||
"fileMovedBody": "File moved successfully",
|
||||
"fileMoveError": "Error moving the file: {{error}}",
|
||||
"fileMoveErrorGeneric": "Error moving the file",
|
||||
"folderMoved": "Folder moved",
|
||||
"folderMovedBody": "Folder moved successfully",
|
||||
"folderMoveError": "Error moving the folder: {{error}}",
|
||||
"folderMoveErrorGeneric": "Error moving the folder",
|
||||
"fileCopied": "File copied",
|
||||
"fileCopiedBody": "File copied successfully",
|
||||
"fileCopyError": "Error copying the file: {{error}}",
|
||||
"fileCopyErrorGeneric": "Error copying the file",
|
||||
"folderRenamed": "Folder renamed",
|
||||
"folderRenamedBody": "Folder renamed to \"{{name}}\"",
|
||||
"fileTrashed": "File moved to trash",
|
||||
"fileTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"fileDeleted": "File deleted",
|
||||
"fileDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"fileDeleteError": "Error deleting the file",
|
||||
"folderTrashed": "Folder moved to trash",
|
||||
"folderTrashedBody": "\"{{name}}\" moved to trash",
|
||||
"folderDeleted": "Folder deleted",
|
||||
"folderDeletedBody": "\"{{name}}\" deleted successfully",
|
||||
"folderDeleteError": "Error deleting the folder",
|
||||
"itemRestored": "Item restored",
|
||||
"itemRestoredBody": "Item restored successfully",
|
||||
"itemRestoreError": "Error restoring the item",
|
||||
"itemDeleted": "Item deleted",
|
||||
"itemDeletedBody": "Item permanently deleted",
|
||||
"itemDeleteError": "Error deleting the item",
|
||||
"trashEmptied": "Trash emptied",
|
||||
"trashEmptiedBody": "The trash has been emptied successfully",
|
||||
"trashEmptyError": "Error emptying the trash",
|
||||
"cacheCleared": "Cache cleared",
|
||||
"cacheClearedBody": "Search cache cleared successfully",
|
||||
"cacheClearError": "Error clearing search cache",
|
||||
"wopiOpenError": "Could not open the document editor.",
|
||||
"linkCopied": "Link copied",
|
||||
"linkCopiedBody": "Link copied to clipboard",
|
||||
"linkCopyError": "Could not copy link",
|
||||
"notificationSent": "Notification sent",
|
||||
"notificationSentBody": "Notification sent to {{email}}"
|
||||
}
|
||||
}
|
||||
|
||||
+181
-115
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@@ -9,6 +9,20 @@
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<title data-i18n="app.title">OxiCloud - Login</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/logo/logo-plain.svg">
|
||||
<link rel="icon" href="/favicon.ico" sizes="32x32">
|
||||
<link rel="apple-touch-icon" href="/logo/apple-touch-icon.png">
|
||||
<link rel="mask-icon" href="/logo/logo-plain.svg" color="#ff5e3a">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f5f7fa">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0f172a">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="OxiCloud">
|
||||
<meta property="og:description" content="Fast, private cloud storage built with Rust.">
|
||||
<meta property="og:image" content="/logo/og-image.png">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="OxiCloud">
|
||||
<meta name="twitter:description" content="Fast, private cloud storage built with Rust.">
|
||||
<meta name="twitter:image" content="/logo/og-image.png">
|
||||
<!-- Apply saved theme immediately to prevent flash of light mode -->
|
||||
<script src="/js/core/theme-init.js"></script>
|
||||
|
||||
@@ -20,7 +34,8 @@
|
||||
<script type="module" src="/js/features/auth/auth.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="auth-container">
|
||||
<div class="auth-container" role="main">
|
||||
<h1 class="sr-only" data-i18n="app.title">OxiCloud</h1>
|
||||
<!-- Language Selector Panel - Shown first on fresh install -->
|
||||
<div class="auth-panel language-selector-panel hidden" id="language-panel">
|
||||
<div class="auth-logo">
|
||||
@@ -29,7 +44,7 @@
|
||||
<path d="M345 310c32 0 58-26 58-58s-26-58-58-58c-6.2 0-12 0.9-17.5 2.7C318 166 289 143 255 143c-34.3 0-63.1 22.6-73 53.7C176.9 195.7 171 195 165 195c-32 0-58 26-58 58s26 58 58 58h180z" fill="#fff"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="auth-logo-text">OxiCloud</div>
|
||||
<div class="auth-logo-text"><span class="brand-oxi">Oxi</span>Cloud</div>
|
||||
</div>
|
||||
|
||||
<h2 class="auth-title" id="language-title">Welcome!</h2>
|
||||
@@ -63,7 +78,7 @@
|
||||
<path d="M345 310c32 0 58-26 58-58s-26-58-58-58c-6.2 0-12 0.9-17.5 2.7C318 166 289 143 255 143c-34.3 0-63.1 22.6-73 53.7C176.9 195.7 171 195 165 195c-32 0-58 26-58 58s26 58 58 58h180z" fill="#fff"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="auth-logo-text">OxiCloud</div>
|
||||
<div class="auth-logo-text"><span class="brand-oxi">Oxi</span>Cloud</div>
|
||||
</div>
|
||||
|
||||
<h2 class="auth-title" data-i18n="auth.login_title">Log in</h2>
|
||||
@@ -73,28 +88,35 @@
|
||||
<form class="auth-form" id="login-form">
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="login-username" data-i18n="auth.login_identifier">Username or email</label>
|
||||
<input
|
||||
type="text"
|
||||
id="login-username"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.login_identifier_placeholder"
|
||||
placeholder="Enter your username or email"
|
||||
required
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--user">
|
||||
<input
|
||||
type="text"
|
||||
id="login-username"
|
||||
class="auth-input"
|
||||
autocomplete="username"
|
||||
data-i18n-placeholder="auth.login_identifier_placeholder"
|
||||
placeholder="Enter your username or email"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="login-password" data-i18n="auth.password">Password</label>
|
||||
<input
|
||||
type="password"
|
||||
id="login-password"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.password_placeholder"
|
||||
placeholder="Enter your password"
|
||||
required
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--lock has-toggle">
|
||||
<input
|
||||
type="password"
|
||||
id="login-password"
|
||||
autocomplete="current-password"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.password_placeholder"
|
||||
placeholder="Enter your password"
|
||||
required
|
||||
>
|
||||
<button type="button" class="auth-pw-toggle" data-pw-toggle aria-pressed="false" aria-label="Show password"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit" class="auth-button" id="login-submit" data-i18n="auth.login_button">Log in</button>
|
||||
</form>
|
||||
|
||||
@@ -119,30 +141,46 @@
|
||||
<div class="auth-divider">
|
||||
<span data-i18n="auth.or">or</span>
|
||||
</div>
|
||||
<p class="auth-hint" data-i18n="auth.magicLinkHint">
|
||||
No password? Enter your email and we'll send you a one-time sign-in link.
|
||||
</p>
|
||||
<form class="auth-form" id="magic-link-form">
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="magic-link-email" data-i18n="auth.magicLinkEmailLabel">
|
||||
Email address
|
||||
</label>
|
||||
<input
|
||||
type="email"
|
||||
id="magic-link-email"
|
||||
class="auth-input"
|
||||
name="email"
|
||||
required
|
||||
autocomplete="email"
|
||||
placeholder="you@example.com"
|
||||
data-i18n-placeholder="auth.magicLinkEmailPlaceholder"
|
||||
>
|
||||
</div>
|
||||
<button type="submit" class="auth-button" id="magic-link-submit" data-i18n="auth.magicLinkSubmit">
|
||||
Send sign-in link
|
||||
</button>
|
||||
</form>
|
||||
<div id="magic-link-status" class="auth-status hidden" role="status"></div>
|
||||
<!-- Progressive disclosure: the form stays collapsed behind a
|
||||
quiet link so the screen leads with one clear primary path. -->
|
||||
<button
|
||||
type="button"
|
||||
class="auth-magic-toggle"
|
||||
id="magic-link-toggle"
|
||||
aria-expanded="false"
|
||||
aria-controls="magic-link-reveal"
|
||||
data-i18n="auth.magicLinkToggle"
|
||||
>
|
||||
No password? Email me a sign-in link
|
||||
</button>
|
||||
<div class="auth-magic-reveal hidden" id="magic-link-reveal">
|
||||
<p class="auth-hint" data-i18n="auth.magicLinkHint">
|
||||
No password? Enter your email and we'll send you a one-time sign-in link.
|
||||
</p>
|
||||
<form class="auth-form" id="magic-link-form">
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="magic-link-email" data-i18n="auth.magicLinkEmailLabel">
|
||||
Email address
|
||||
</label>
|
||||
<div class="auth-input-wrap auth-input-wrap--mail">
|
||||
<input
|
||||
type="email"
|
||||
id="magic-link-email"
|
||||
class="auth-input"
|
||||
name="email"
|
||||
autocomplete="email"
|
||||
required
|
||||
placeholder="you@example.com"
|
||||
data-i18n-placeholder="auth.magicLinkEmailPlaceholder"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="auth-button auth-button-secondary" id="magic-link-submit" data-i18n="auth.magicLinkSubmit">
|
||||
Send sign-in link
|
||||
</button>
|
||||
</form>
|
||||
<div id="magic-link-status" class="auth-status hidden" role="status"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-toggle">
|
||||
@@ -163,7 +201,7 @@
|
||||
<path d="M345 310c32 0 58-26 58-58s-26-58-58-58c-6.2 0-12 0.9-17.5 2.7C318 166 289 143 255 143c-34.3 0-63.1 22.6-73 53.7C176.9 195.7 171 195 165 195c-32 0-58 26-58 58s26 58 58 58h180z" fill="#fff"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="auth-logo-text">OxiCloud</div>
|
||||
<div class="auth-logo-text"><span class="brand-oxi">Oxi</span>Cloud</div>
|
||||
</div>
|
||||
|
||||
<h2 class="auth-title" data-i18n="auth.register_title">Create account</h2>
|
||||
@@ -174,53 +212,67 @@
|
||||
<form class="auth-form" id="register-form">
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="register-username" data-i18n="auth.username">Username</label>
|
||||
<input
|
||||
type="text"
|
||||
id="register-username"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.username_placeholder"
|
||||
placeholder="Enter a username"
|
||||
required
|
||||
minlength="3"
|
||||
maxlength="32"
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--user">
|
||||
<input
|
||||
type="text"
|
||||
id="register-username"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.username_placeholder"
|
||||
placeholder="Enter a username"
|
||||
required
|
||||
minlength="3"
|
||||
maxlength="32"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="register-email" data-i18n="auth.email">Email</label>
|
||||
<input
|
||||
type="email"
|
||||
id="register-email"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.email_placeholder"
|
||||
placeholder="Enter your email"
|
||||
required
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--mail">
|
||||
<input
|
||||
type="email"
|
||||
id="register-email"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.email_placeholder"
|
||||
placeholder="Enter your email"
|
||||
autocomplete="email"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="register-password" data-i18n="auth.password">Password</label>
|
||||
<input
|
||||
type="password"
|
||||
id="register-password"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.password_placeholder"
|
||||
placeholder="Enter a secure password"
|
||||
required
|
||||
minlength="8"
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--lock has-toggle">
|
||||
<input
|
||||
type="password"
|
||||
id="register-password"
|
||||
class="auth-input"
|
||||
autocomplete="new-password"
|
||||
data-i18n-placeholder="auth.password_placeholder"
|
||||
placeholder="Enter a secure password"
|
||||
required
|
||||
minlength="8"
|
||||
>
|
||||
<button type="button" class="auth-pw-toggle" data-pw-toggle aria-pressed="false" aria-label="Show password"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="register-password-confirm" data-i18n="auth.confirm_password">Confirm password</label>
|
||||
<input
|
||||
type="password"
|
||||
id="register-password-confirm"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.confirm_password_placeholder"
|
||||
placeholder="Confirm your password"
|
||||
required
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--lock has-toggle">
|
||||
<input
|
||||
type="password"
|
||||
id="register-password-confirm"
|
||||
class="auth-input"
|
||||
autocomplete="new-password"
|
||||
data-i18n-placeholder="auth.confirm_password_placeholder"
|
||||
placeholder="Confirm your password"
|
||||
required
|
||||
>
|
||||
<button type="button" class="auth-pw-toggle" data-pw-toggle aria-pressed="false" aria-label="Show password"></button>
|
||||
</div>
|
||||
<div class="auth-match" id="register-match" aria-live="polite"></div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="auth-button" data-i18n="auth.register_button">Create account</button>
|
||||
@@ -239,7 +291,7 @@
|
||||
<path d="M345 310c32 0 58-26 58-58s-26-58-58-58c-6.2 0-12 0.9-17.5 2.7C318 166 289 143 255 143c-34.3 0-63.1 22.6-73 53.7C176.9 195.7 171 195 165 195c-32 0-58 26-58 58s26 58 58 58h180z" fill="#fff"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="auth-logo-text">OxiCloud</div>
|
||||
<div class="auth-logo-text"><span class="brand-oxi">Oxi</span>Cloud</div>
|
||||
</div>
|
||||
|
||||
<h2 class="auth-title" data-i18n="auth.setup_title">Initial setup</h2>
|
||||
@@ -265,50 +317,64 @@
|
||||
<form class="auth-form" id="admin-setup-form">
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="admin-username" data-i18n="auth.admin_username">Administrator username</label>
|
||||
<input
|
||||
type="text"
|
||||
id="admin-username"
|
||||
class="auth-input"
|
||||
value="admin"
|
||||
readonly
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--user">
|
||||
<input
|
||||
type="text"
|
||||
id="admin-username"
|
||||
class="auth-input"
|
||||
value="admin"
|
||||
readonly
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="admin-email" data-i18n="auth.admin_email">Administrator email</label>
|
||||
<input
|
||||
type="email"
|
||||
id="admin-email"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.email_placeholder"
|
||||
placeholder="Enter the administrator email"
|
||||
required
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--mail">
|
||||
<input
|
||||
type="email"
|
||||
id="admin-email"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.email_placeholder"
|
||||
placeholder="Enter the administrator email"
|
||||
autocomplete="email"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="admin-password" data-i18n="auth.admin_password">Administrator password</label>
|
||||
<input
|
||||
type="password"
|
||||
id="admin-password"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.password_placeholder"
|
||||
placeholder="Enter a secure password"
|
||||
required
|
||||
minlength="8"
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--lock has-toggle">
|
||||
<input
|
||||
type="password"
|
||||
id="admin-password"
|
||||
class="auth-input"
|
||||
autocomplete="new-password"
|
||||
data-i18n-placeholder="auth.password_placeholder"
|
||||
placeholder="Enter a secure password"
|
||||
required
|
||||
minlength="8"
|
||||
>
|
||||
<button type="button" class="auth-pw-toggle" data-pw-toggle aria-pressed="false" aria-label="Show password"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-input-group">
|
||||
<label class="auth-label" for="admin-password-confirm" data-i18n="auth.confirm_password">Confirm password</label>
|
||||
<input
|
||||
type="password"
|
||||
id="admin-password-confirm"
|
||||
class="auth-input"
|
||||
data-i18n-placeholder="auth.confirm_password_placeholder"
|
||||
placeholder="Confirm the password"
|
||||
required
|
||||
>
|
||||
<div class="auth-input-wrap auth-input-wrap--lock has-toggle">
|
||||
<input
|
||||
type="password"
|
||||
id="admin-password-confirm"
|
||||
class="auth-input"
|
||||
autocomplete="new-password"
|
||||
data-i18n-placeholder="auth.confirm_password_placeholder"
|
||||
placeholder="Confirm the password"
|
||||
required
|
||||
>
|
||||
<button type="button" class="auth-pw-toggle" data-pw-toggle aria-pressed="false" aria-label="Show password"></button>
|
||||
</div>
|
||||
<div class="auth-match" id="admin-match" aria-live="polite"></div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="auth-button" data-i18n="auth.create_admin">Create administrator</button>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Maskable PWA icon: full-bleed accent tile with the cloud mark inside the
|
||||
~80% safe zone, so platform crops (circle/squircle) never clip it. -->
|
||||
<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient id="oxi-maskable-bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#ff5e3a"/>
|
||||
<stop offset="1" stop-color="#ff8a5c"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="500" height="500" fill="url(#oxi-maskable-bg)"/>
|
||||
<g transform="translate(250 250) scale(0.55) translate(-250 -250)">
|
||||
<path
|
||||
d="m 364.14537,344.11776 c 40.65049,0 73.64219,-32.99169 73.64219,-73.64218 0,-40.65047 -32.9917,-73.64217 -73.64219,-73.64217 -7.80607,0 -15.17028,1.17827 -22.23993,3.38754 -11.04633,-40.94506 -47.57285,-69.6655 -91.16903,-69.6655 -43.59616,0 -80.12268,28.72044 -92.64185,68.19265 -7.06965,-0.73642 -14.43386,-1.91469 -22.23994,-1.91469 -40.65049,0 -73.64218,32.9917 -73.64218,73.64217 0,40.65049 32.99169,73.64218 73.64218,73.64218 z"
|
||||
fill="#ffffff"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 190 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user