- Barre flottante défilante sous le curseur (mobile ≤ 768 px) au lieu de la popup desktop, 15 boutons dans l'ordre de la description : +▾, Turn into▾, @, 💬, 🖼, 🗑, ←, →, ↑, ↓, ↩, ↪, Color▾, More▾, ⌨ - +▾ → feuille plein écran « Insert block » (titre centré, Cancel bleu, groupes Basic blocks / AI writing / Media / Data / Synced / Actions, raccourcis markdown à droite) ; items partagés avec la popup desktop (SM._slashItemHtml) - Turn into ▾ / Color ▾ → feuilles réutilisant les générateurs extraits _blockTurnItems / _blockColorItems (extraits de _blockTurnMenuOpen / _blockColorMenuOpen, comportement desktop inchangé) - More ▾ → menu contextuel de bloc existant ; @ insère + ouvre les mentions ; 💬 commentaire ; 🖼 bloc image ; 🗑 suppression ; ⌨ masque le clavier ; ↩ ↪ annuler/rétablir - moveBlock(bid, dir) : ↑↓ réordonne (racine + enfants toggle/columns), → indent dans le frère précédent, ← outdent, garde-fous avec toast - Fermeture auto de la barre quand le « / » n'est plus en tête de bloc ; taps dans la barre/les feuilles exclus du handler « clic hors-zone » ; Cancel ne referme que la feuille (la barre reste tant que le / est tapé) - Raccourcis slash alignés sur les préfixes markdown (-, [], >, ---), groupe SYNCED libellé « Synced » - Tests : tests/test_v763_mobile_menus.py (ordre, câblage, structure, styles + moveBlock exécuté sous node), e2e/v763_mobile_menus.spec.js (390×844, 1 passed) ; test_v761 adapté aux extractions ; suite complète 1375 passed / 0 failed, ruff OK, OpenAPI 7.63.0 (525 chemins)
4961 lines
127 KiB
CSS
4961 lines
127 KiB
CSS
/* ═══════════════════════════════════════════════════════════
|
|
FlowDeck Notion UI — Design System
|
|
Référence: Notion Light Mode (par défaut)
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
/* Inter auto-hébergé — remplace l'@import Google Fonts que la CSP bloque
|
|
(style-src sans fonts.googleapis depuis v7.27). Police variable v20 :
|
|
une face par sous-ensemble, font-weight 100-900. */
|
|
@font-face {
|
|
font-family: 'Inter';
|
|
font-style: normal;
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
src: url('/static/fonts/inter-latin-ext.woff2') format('woff2');
|
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
}
|
|
@font-face {
|
|
font-family: 'Inter';
|
|
font-style: normal;
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
src: url('/static/fonts/inter-latin.woff2') format('woff2');
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===== LIGHT THEME (default) ===== */
|
|
:root {
|
|
--bg-primary: #FFFFFF;
|
|
--bg-secondary: #FBFBFA;
|
|
--bg-sidebar: #F7F6F3;
|
|
--bg-tertiary: #EDEDEC;
|
|
--bg-hover: #EFEFED;
|
|
--bg-active: #E8E7E4;
|
|
--bg-modal: #FFFFFF;
|
|
|
|
--text-primary: #37352F;
|
|
--text-secondary: #6B6B6B;
|
|
--text-dim: #9B9A97;
|
|
--text-muted: #B0B0B0;
|
|
--text: #37352F;
|
|
|
|
--border: #EDEDED;
|
|
--border-color: rgba(0,0,0,0.06);
|
|
--border-light: #EDEDEC;
|
|
--border-strong: #D3D3D0;
|
|
|
|
/* ===== Couleurs d'accent Notion ===== */
|
|
--accent: #2383E2;
|
|
--accent-hover: #1a6bc0;
|
|
--danger: #E03E3E;
|
|
--danger-hover: #C93535;
|
|
|
|
--blue: #3366CC;
|
|
--blue-bg: #E8F0FE;
|
|
--green: #00CC66;
|
|
--green-bg: #E6F4EA;
|
|
--yellow: #FFD700;
|
|
--orange: #D9730D;
|
|
--red: #E03E3E;
|
|
--purple: #9B72F0;
|
|
--pink: #E255A1;
|
|
--gray: #787774;
|
|
--brown: #9D6E4A;
|
|
|
|
/* ===== Typographie ===== */
|
|
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
--font-mono: 'SF Mono', 'Fira Code', monospace;
|
|
|
|
--font-h1: 40px;
|
|
--font-h2: 30px;
|
|
--font-h3: 24px;
|
|
--font-body: 16px;
|
|
--font-small: 14px;
|
|
--font-tiny: 12px;
|
|
|
|
/* ===== Dimensions ===== */
|
|
--sidebar-width: 240px;
|
|
--sidebar-collapsed: 0px;
|
|
--topbar-height: 45px;
|
|
--radius-sm: 3px;
|
|
--radius-md: 4px;
|
|
--radius-lg: 6px;
|
|
--radius: 6px;
|
|
|
|
/* ===== Espacements ===== */
|
|
--space-xs: 4px;
|
|
--space-sm: 8px;
|
|
--space-md: 12px;
|
|
--space-lg: 16px;
|
|
--space-xl: 24px;
|
|
|
|
/* ===== Ombres ===== */
|
|
--shadow-popover: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08);
|
|
--shadow-modal: 0 12px 32px rgba(0,0,0,0.12);
|
|
--shadow-drag: 0 8px 24px rgba(0,0,0,0.12);
|
|
|
|
/* ===== Transitions ===== */
|
|
--transition: 0.1s ease;
|
|
--transition-slow: 0.2s ease;
|
|
|
|
/* ===== Toast colors ===== */
|
|
--toast-success-bg: #0F7B6C;
|
|
--toast-success-text: #FFFFFF;
|
|
--toast-error-bg: #E03E3E;
|
|
--toast-error-text: #FFFFFF;
|
|
--toast-info-bg: #2383E2;
|
|
--toast-info-text: #FFFFFF;
|
|
}
|
|
|
|
/* ===== DARK THEME ===== */
|
|
[data-theme="dark"] {
|
|
--bg-primary: #191919;
|
|
--bg-secondary: #1F1F1F;
|
|
--bg-sidebar: #202020;
|
|
--bg-tertiary: #2D2D2D;
|
|
--bg-hover: #2A2A2A;
|
|
--bg-active: #2F2E2E;
|
|
--bg-modal: #252525;
|
|
|
|
--text-primary: #FFFFFF;
|
|
--text-secondary: #A0A0A0;
|
|
--text-dim: #6B6B6B;
|
|
--text-muted: #4A4A4A;
|
|
--text: #FFFFFF;
|
|
|
|
--border: #333333;
|
|
--border-color: rgba(255,255,255,0.06);
|
|
--border-light: #3a3a3a;
|
|
--border-strong: #4A4A4A;
|
|
|
|
--blue-bg: #1a2744;
|
|
--green-bg: #1a332a;
|
|
}
|
|
|
|
/* ===== Reset & Base ===== */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-family: var(--font-sans);
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a { color: inherit; text-decoration: none; }
|
|
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
|
|
input, select, textarea { font-family: inherit; color: inherit; }
|
|
|
|
/* ===== Layout Principal ===== */
|
|
.app-layout {
|
|
display: flex;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
SIDEBAR
|
|
═══════════════════════════════════════════════════════════ */
|
|
.sidebar {
|
|
position: relative;
|
|
width: var(--sidebar-width);
|
|
min-width: var(--sidebar-width);
|
|
height: 100vh;
|
|
background: var(--bg-sidebar);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: visible;
|
|
flex-shrink: 0;
|
|
user-select: none;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
.sidebar-scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding-bottom: var(--space-sm);
|
|
}
|
|
|
|
/* ── Hidden state: flush collapse, no separator ── */
|
|
.sidebar.collapsed {
|
|
width: 0;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
border-right: none;
|
|
}
|
|
|
|
/* ── Notion-style collapsed peek (hover the left edge) ──
|
|
Floating card: inset from the screen, rounded corners, right shadow. */
|
|
.sidebar-peek-zone {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 8px;
|
|
z-index: 1000;
|
|
}
|
|
.sidebar.peeking {
|
|
position: fixed;
|
|
top: 18px;
|
|
left: 0;
|
|
bottom: 18px;
|
|
height: auto;
|
|
width: var(--sidebar-width);
|
|
min-width: var(--sidebar-width);
|
|
max-width: calc(100vw - 16px);
|
|
z-index: 1001;
|
|
border-right: none;
|
|
border-radius: 14px 20px 20px 14px;
|
|
overflow: hidden;
|
|
box-shadow: 8px 0 26px rgba(0, 0, 0, .16), 0 4px 16px rgba(0, 0, 0, .10);
|
|
animation: fd-sidebar-peek-in .16s ease-out;
|
|
}
|
|
|
|
/* ── Right-edge resize handle (fixed + floating) ── */
|
|
.sidebar-resize-handle {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 6px;
|
|
z-index: 40;
|
|
cursor: col-resize;
|
|
}
|
|
.sidebar-resize-handle::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 2px;
|
|
width: 2px;
|
|
background: transparent;
|
|
border-radius: 2px;
|
|
transition: background .12s ease;
|
|
}
|
|
.sidebar-resize-handle:hover::before,
|
|
body.fd-sidebar-resizing .sidebar-resize-handle::before {
|
|
background: var(--accent);
|
|
}
|
|
body.fd-sidebar-resizing { cursor: col-resize !important; user-select: none; }
|
|
body.fd-sidebar-resizing * { cursor: col-resize !important; }
|
|
|
|
/* ── Resize / close contextual tooltip ── */
|
|
.sidebar-resize-tip {
|
|
position: fixed;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
z-index: 1200;
|
|
min-width: 200px;
|
|
padding: 8px 10px;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-modal);
|
|
pointer-events: none;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
.srt-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 2px 0;
|
|
}
|
|
.srt-key { color: var(--text); font-weight: 600; }
|
|
.srt-action { color: var(--text-dim); white-space: nowrap; }
|
|
.srt-kbd {
|
|
display: inline-block;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 0 4px;
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Statusbar follows the hidden sidebar */
|
|
html.fd-sidebar-collapsed .editor-statusbar { left: 0; }
|
|
@keyframes fd-sidebar-peek-in {
|
|
from { transform: translateX(-100%); }
|
|
to { transform: translateX(0); }
|
|
}
|
|
|
|
/* Workspace header — Notion style */
|
|
.sidebar-workspace-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 4px 8px;
|
|
margin: 4px 8px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: background 150ms;
|
|
min-height: 32px;
|
|
position: relative;
|
|
}
|
|
.sidebar-workspace-header:hover,
|
|
.sidebar-workspace-header.hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.sidebar-collapse-inline {
|
|
width: 22px; height: 22px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: none; border: none; border-radius: 4px;
|
|
color: var(--text-dim); cursor: pointer; flex-shrink: 0;
|
|
opacity: 0; transition: opacity 150ms;
|
|
}
|
|
.sidebar-workspace-header:hover .sidebar-collapse-inline,
|
|
.sidebar-workspace-header.hover .sidebar-collapse-inline {
|
|
opacity: 1;
|
|
}
|
|
/* Floating state: the pin (>>) stays visible so it is easy to lock open */
|
|
.sidebar.peeking .sidebar-collapse-inline {
|
|
opacity: 1;
|
|
}
|
|
.sidebar-collapse-inline:hover {
|
|
background: var(--bg-active);
|
|
color: var(--text);
|
|
}
|
|
.sidebar-workspace {
|
|
/* keep for backward compat */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-md);
|
|
min-height: var(--topbar-height);
|
|
}
|
|
|
|
.workspace-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.workspace-avatar {
|
|
width: 22px;
|
|
height: 22px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.workspace-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.workspace-chevron {
|
|
font-size: 10px;
|
|
color: var(--text-dim);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
.workspace-chevron.open {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* User menu dropdown */
|
|
.user-menu-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 8px;
|
|
right: 8px;
|
|
margin-top: 4px;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 10px;
|
|
box-shadow: var(--shadow-modal);
|
|
z-index: 400;
|
|
padding: 4px 0;
|
|
overflow: hidden;
|
|
}
|
|
.um-user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 14px;
|
|
}
|
|
.um-avatar {
|
|
width: 28px; height: 28px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 14px; font-weight: 600; color: var(--text);
|
|
flex-shrink: 0;
|
|
}
|
|
.um-name { font-size: 14px; font-weight: 600; color: var(--text); }
|
|
.um-plan { font-size: 12px; color: var(--text-dim); margin-top: 1px; }
|
|
.um-sep { height: 1px; background: var(--border); margin: 3px 0; }
|
|
.um-item {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 7px 14px; font-size: 13px; color: var(--text);
|
|
text-decoration: none; cursor: pointer; transition: background 100ms;
|
|
}
|
|
.um-item svg { flex-shrink: 0; }
|
|
.um-item:hover { background: var(--bg-hover); }
|
|
.um-danger { color: var(--danger); }
|
|
.um-danger:hover { background: rgba(255,80,80,.1); }
|
|
.um-version { font-size: 11px; color: var(--text-dim); padding: 4px 14px 2px; }
|
|
.um-section-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; padding: 4px 14px 2px; }
|
|
|
|
/* Navigation items */
|
|
.sidebar-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: 0 var(--space-md);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.sidebar-nav-item .nav-icon {
|
|
font-size: 16px;
|
|
width: 20px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Navigation icon row (Notion top bar) */
|
|
.sidebar-nav-row {
|
|
display: flex; align-items: center; gap: 3px;
|
|
padding: 6px 6px; margin: 0 2px;
|
|
}
|
|
.nav-icon-btn {
|
|
position: relative;
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 6px; border-radius: 6px;
|
|
color: var(--text-secondary); transition: background 0.15s, color 0.15s;
|
|
border: none; background: none; cursor: pointer; font-family: inherit;
|
|
text-decoration: none;
|
|
}
|
|
.nav-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
.nav-icon-btn.active { background: var(--bg-active); color: var(--text-primary); }
|
|
/* Home button: icon + text */
|
|
.nav-icon-btn.home-btn {
|
|
padding: 6px 8px; gap: 8px;
|
|
font-size: 14px; font-weight: 500;
|
|
}
|
|
/* Collapse button on the right */
|
|
.nav-icon-btn.collapse-btn { margin-left: auto; }
|
|
|
|
/* ── Collapsible tabs (Home / Chat / Meeting / Inbox) ──
|
|
The active tab expands into a pill showing icon + label, the inactive ones
|
|
collapse to the bare icon so the row stays compact. */
|
|
.nav-tab-btn {
|
|
gap: 0;
|
|
padding: 6px;
|
|
min-width: 30px;
|
|
justify-content: center;
|
|
border-radius: 15px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
.nav-tab-btn .nav-tab-label {
|
|
display: none;
|
|
max-width: 110px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.nav-tab-btn.active {
|
|
background: var(--bg-active);
|
|
color: var(--text-primary);
|
|
gap: 7px;
|
|
padding: 6px 12px 6px 10px;
|
|
}
|
|
.nav-tab-btn.active .nav-tab-label { display: inline-block; }
|
|
.nav-tab-badge {
|
|
position: absolute;
|
|
top: -1px; right: -1px;
|
|
min-width: 15px; height: 15px;
|
|
padding: 0 4px;
|
|
border-radius: 8px;
|
|
background: var(--text-dim);
|
|
color: var(--bg-primary);
|
|
font-size: 10px; font-weight: 700; line-height: 15px;
|
|
text-align: center;
|
|
}
|
|
.nav-tab-badge-accent { background: #E03E3E; color: #fff; }
|
|
.nav-tab-btn.active .nav-tab-badge { display: none; }
|
|
|
|
/* Tab panels — one replaces the whole sidebar content at a time */
|
|
.sidebar-tab-panel { display: flex; flex-direction: column; gap: 2px; }
|
|
.sb-panel-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 6px 10px 4px;
|
|
}
|
|
.sb-panel-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
|
|
.sb-panel-count { color: var(--text-secondary); font-weight: 600; }
|
|
.sb-panel-action {
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
min-width: 22px; height: 22px; padding: 0 5px;
|
|
border: none; border-radius: 5px; background: none;
|
|
color: var(--text-secondary); font-size: 11px; cursor: pointer;
|
|
}
|
|
.sb-panel-action:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
.sb-filter-row { display: flex; gap: 4px; padding: 2px 8px 6px; }
|
|
.sb-filter-chip {
|
|
padding: 3px 10px; border: 1px solid var(--border); border-radius: 12px;
|
|
background: none; color: var(--text-secondary);
|
|
font-size: 11px; cursor: pointer;
|
|
}
|
|
.sb-filter-chip.active { background: var(--bg-active); color: var(--text-primary); border-color: transparent; }
|
|
.sb-quick-actions { display: flex; flex-direction: column; gap: 2px; padding: 2px 6px 8px; }
|
|
.sb-quick-btn {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 5px 8px; border: none; border-radius: 6px; background: none;
|
|
color: var(--text-secondary); font-size: 12px; text-align: left; cursor: pointer;
|
|
}
|
|
.sb-quick-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
.sb-hidden-input { display: none; }
|
|
.sb-agent-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
|
|
.sb-agent-avatar {
|
|
width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
|
|
background: var(--bg-hover); cursor: pointer; font-size: 15px; line-height: 1;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.sb-agent-avatar:hover { border-color: var(--accent); }
|
|
.sb-item-meta { margin-left: auto; font-size: 11px; color: var(--text-dim); flex-shrink: 0; }
|
|
.sb-item-sub {
|
|
display: block; font-size: 11px; color: var(--text-dim);
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.sb-item-unread { background: rgba(35, 131, 226, .10); }
|
|
|
|
/* Empty hint */
|
|
.sidebar-item.empty-hint { color: var(--text-dim); font-size: 12px; cursor: default; }
|
|
.sidebar-item.empty-hint:hover { background: none; }
|
|
.sidebar-item.empty-hint .page-name { font-size: 12px; }
|
|
|
|
/* Shared subgroups (Par moi / Avec moi) */
|
|
.sidebar-subgroup {
|
|
padding-top: 2px;
|
|
}
|
|
.sidebar-subgroup + .sidebar-subgroup {
|
|
margin-top: 6px;
|
|
padding-top: 6px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.sidebar-subgroup-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
/* Sections */
|
|
.sidebar-section {
|
|
padding: var(--space-xs) var(--space-md);
|
|
}
|
|
|
|
.sidebar-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 4px 6px;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
user-select: none;
|
|
}
|
|
|
|
.sidebar-section-header:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.sidebar-section-header:active {
|
|
background: var(--bg-active);
|
|
transform: scale(0.995);
|
|
}
|
|
|
|
.sidebar-section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-dim);
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar-section-title .chevron {
|
|
font-size: 8px;
|
|
width: 14px;
|
|
height: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: var(--text-muted);
|
|
transition: transform 180ms ease, color var(--transition);
|
|
will-change: transform;
|
|
}
|
|
|
|
.sidebar-section-title .chevron.open {
|
|
transform: rotate(90deg);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar-section-title .section-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: var(--text-muted);
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.sidebar-section-header:hover .section-icon {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar-section-title .section-label {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--text-dim);
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.sidebar-section-header:hover .section-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar-section-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1px;
|
|
opacity: 0;
|
|
transition: opacity 120ms ease;
|
|
}
|
|
|
|
.sidebar-section-header:hover .sidebar-section-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.section-action-btn {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
.section-action-btn:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Section menu (⋮) button */
|
|
.section-menu-btn {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.section-menu-btn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Section menu dropdown */
|
|
.section-menu-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 999;
|
|
}
|
|
|
|
.section-menu {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
min-width: 200px;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.section-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
transition: background 120ms;
|
|
}
|
|
|
|
.section-menu-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.section-menu-item .smi-icon {
|
|
width: 18px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.section-menu-item .smi-label {
|
|
flex: 1;
|
|
}
|
|
|
|
.section-menu-item .smi-check {
|
|
color: var(--accent);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.section-menu-sep {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 4px 8px;
|
|
}
|
|
|
|
.section-menu-customize {
|
|
border-top: 1px solid var(--border);
|
|
margin-top: 2px;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
/* Customize Sidebar Panel */
|
|
.sidebar-customize-panel {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.scp-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.scp-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.scp-done {
|
|
font-size: 13px;
|
|
color: var(--accent);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 4px 12px;
|
|
border-radius: 6px;
|
|
transition: background 120ms;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.scp-done:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.scp-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
|
|
.scp-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: background 120ms;
|
|
}
|
|
|
|
.scp-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.scp-item-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.scp-item-icon {
|
|
font-size: 16px;
|
|
width: 22px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.scp-item-name {
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.scp-item-eye {
|
|
font-size: 16px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.scp-item-eye-off {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.customize-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.3);
|
|
z-index: 998;
|
|
}
|
|
|
|
/* x-cloak for Alpine.js */
|
|
[x-cloak] { display: none !important; }
|
|
|
|
/* Sidebar items (pages) */
|
|
.sidebar-items {
|
|
list-style: none;
|
|
}
|
|
|
|
.sidebar-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 4px;
|
|
padding-left: 4px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
min-height: 24px;
|
|
}
|
|
|
|
.sidebar-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Shared badge — black & white (grayscale) */
|
|
.page-shared-badge {
|
|
flex-shrink: 0;
|
|
margin-right: 2px;
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
filter: grayscale(1) brightness(1.6);
|
|
}
|
|
|
|
.sidebar-item.active {
|
|
background: var(--bg-active);
|
|
}
|
|
|
|
/* Tree toggle button (▶/▼ chevron) */
|
|
.tree-toggle {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
font-size: 9px;
|
|
flex-shrink: 0;
|
|
transition: transform 0.15s ease, background var(--transition);
|
|
padding: 0;
|
|
margin: 0;
|
|
background: none;
|
|
border: none;
|
|
}
|
|
|
|
.tree-toggle:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tree-toggle.expanded {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.tree-toggle-placeholder {
|
|
width: 18px;
|
|
height: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Tree children wrapper */
|
|
.tree-children-wrapper {
|
|
list-style: none;
|
|
}
|
|
|
|
.tree-children-wrapper .sidebar-items {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.sidebar-item .page-icon {
|
|
font-size: 14px;
|
|
width: 18px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
cursor: grab;
|
|
}
|
|
|
|
/* Outline SVG icons (from _icons.html / getSvgIcon) */
|
|
.page-icon-svg {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
.page-icon-svg svg {
|
|
vertical-align: middle;
|
|
}
|
|
.nav-icon-inline { margin-right: 6px; vertical-align: middle; display: inline-flex; align-items: center; }
|
|
.nav-icon-inline svg { vertical-align: middle; }
|
|
|
|
.sidebar-item:active .page-icon {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.sidebar-item .page-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Tree chevron for expand/collapse */
|
|
.tree-chevron {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
font-size: 8px;
|
|
padding: 0;
|
|
border-radius: 3px;
|
|
transition: transform 150ms, color 100ms;
|
|
}
|
|
.tree-chevron:hover {
|
|
color: var(--text);
|
|
background: var(--bg-hover);
|
|
}
|
|
.tree-chevron.open {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* Folder link styling */
|
|
.tree-folder-link {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
}
|
|
.tree-folder-link:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.sidebar-item .item-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
opacity: 0;
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.sidebar-item:hover .item-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.item-action-btn {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.item-action-btn:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* Sidebar footer */
|
|
.sidebar-footer {
|
|
margin-top: auto;
|
|
padding: var(--space-sm) var(--space-md);
|
|
}
|
|
|
|
.sidebar-new-chat .shortcut {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
CONTEXT MENU
|
|
═══════════════════════════════════════════════════════════ */
|
|
.context-menu {
|
|
position: fixed;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
|
|
width: max-content;
|
|
max-width: 240px;
|
|
padding: var(--space-xs) 0;
|
|
z-index: 1000;
|
|
display: none;
|
|
}
|
|
|
|
.context-menu.visible {
|
|
display: block;
|
|
}
|
|
|
|
.context-menu-section {
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.context-menu-section + .context-menu-section {
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.context-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: 6px var(--space-md);
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.context-menu-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.context-menu-item .menu-icon {
|
|
width: 18px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.context-menu-item .menu-shortcut {
|
|
margin-left: auto;
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.context-menu-label {
|
|
padding: 4px var(--space-md);
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
TOOLTIP
|
|
═══════════════════════════════════════════════════════════ */
|
|
.tooltip {
|
|
position: fixed;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-sm);
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
|
z-index: 2000;
|
|
pointer-events: none;
|
|
display: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
MAIN CONTENT
|
|
═══════════════════════════════════════════════════════════ */
|
|
.main-wrapper {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Conteneur standard des pages listes (Library, Trash, …) — largeur unique
|
|
1100px, centrée. Défini ici (global) et non dans le <style> de
|
|
library.html, sinon /trash rendait la classe sans style = pleine largeur. */
|
|
.lib-container{max-width:1100px;margin:0 auto;padding:20px 24px;}
|
|
|
|
/* Topbar */
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
height: var(--topbar-height);
|
|
min-height: var(--topbar-height);
|
|
padding: 0 var(--space-lg);
|
|
gap: var(--space-md);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.topbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.topbar-page-title .page-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.topbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.topbar-btn {
|
|
height: 28px;
|
|
min-width: 28px;
|
|
padding: 0 8px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
.topbar-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.topbar-btn.share-btn {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.topbar-btn.share-btn:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ── Unified Header Breadcrumb ── */
|
|
.header-breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
font-size: 13px;
|
|
overflow: visible;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.crumb-cell {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
}
|
|
|
|
.crumb-anchor {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-page-icon {
|
|
font-size: 16px;
|
|
flex-shrink: 0;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.breadcrumb-link {
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
max-width: 220px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 2px 6px;
|
|
border: none;
|
|
background: transparent;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: background 100ms, color 100ms;
|
|
}
|
|
|
|
.breadcrumb-link:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.breadcrumb-link.disabled {
|
|
cursor: default;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.crumb-ellipsis {
|
|
font-weight: 600;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.breadcrumb-sep {
|
|
color: var(--text-tertiary);
|
|
flex-shrink: 0;
|
|
font-size: 13px;
|
|
margin: 0 1px;
|
|
user-select: none;
|
|
}
|
|
|
|
.breadcrumb-current {
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
button.breadcrumb-current { max-width: 260px; }
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ── Breadcrumb navigation dropdown (Notion-style) ── */
|
|
.fd-nav-menu {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
min-width: 200px;
|
|
max-width: 280px;
|
|
overflow: visible;
|
|
background: var(--bg-modal, #fff);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg, 8px);
|
|
box-shadow: var(--shadow-popover, 0 6px 24px rgba(0,0,0,0.25));
|
|
z-index: 2000;
|
|
padding: 4px;
|
|
}
|
|
|
|
.fd-nav-submenu {
|
|
top: -4px;
|
|
left: calc(100% + 2px);
|
|
}
|
|
|
|
.fd-nav-section {
|
|
padding: 3px 8px 4px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text-tertiary);
|
|
text-transform: none;
|
|
}
|
|
|
|
.fd-nav-empty {
|
|
padding: 6px 8px;
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.fd-nav-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 6px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: background 100ms;
|
|
}
|
|
|
|
.fd-nav-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.fd-nav-ico {
|
|
font-size: 14px;
|
|
width: 18px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.fd-nav-label {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.fd-nav-arrow {
|
|
color: var(--text-tertiary);
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
/* ── Dropdown panel (reusable) ── */
|
|
.dropdown-panel {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
display: none;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-popover);
|
|
z-index: 1000;
|
|
padding: 4px 0;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.dropdown-panel.visible {
|
|
display: block;
|
|
}
|
|
|
|
.dropdown-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.dropdown-option:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Content area */
|
|
.content-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 0;
|
|
}
|
|
|
|
.page-cover {
|
|
width: 100%;
|
|
height: 160px;
|
|
background: linear-gradient(135deg, var(--bg-tertiary), var(--border-strong));
|
|
border-radius: 0;
|
|
position: relative;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.page-cover-actions {
|
|
position: absolute;
|
|
top: var(--space-sm);
|
|
right: var(--space-sm);
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.cover-btn {
|
|
padding: 4px 10px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.cover-btn:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.page-title-area {
|
|
padding: 0 var(--space-xl);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.page-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.page-title .page-icon-lg {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.page-title h1 {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
border: none;
|
|
background: none;
|
|
outline: none;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.page-description {
|
|
padding: 0 var(--space-xl);
|
|
margin-bottom: var(--space-md);
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
max-width: 800px;
|
|
}
|
|
|
|
/* View tabs */
|
|
.view-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 0 var(--space-xl);
|
|
margin-bottom: var(--space-xs);
|
|
border-bottom: 1px solid var(--border);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.view-tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
transition: background var(--transition), color var(--transition);
|
|
white-space: nowrap;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.view-tab:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.view-tab.active {
|
|
color: var(--text-primary);
|
|
background: var(--bg-tertiary);
|
|
border-bottom-color: var(--text-primary);
|
|
}
|
|
|
|
.view-tab .tab-icon {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.view-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-sm) var(--space-xl);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.view-toolbar-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.toolbar-btn {
|
|
height: 28px;
|
|
min-width: 28px;
|
|
padding: 0 8px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
.toolbar-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toolbar-btn.active {
|
|
background: var(--bg-active);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-new {
|
|
background: var(--blue) !important;
|
|
color: #FFFFFF !important;
|
|
padding: 6px 12px !important;
|
|
border-radius: var(--radius-sm);
|
|
font-weight: 500;
|
|
height: 28px;
|
|
}
|
|
|
|
.btn-new:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
KANBAN
|
|
═══════════════════════════════════════════════════════════ */
|
|
.kanban-container {
|
|
display: flex;
|
|
gap: 0;
|
|
padding: 0 var(--space-sm);
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.kanban-column {
|
|
min-width: 260px;
|
|
max-width: 320px;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 var(--space-xs);
|
|
}
|
|
|
|
.kanban-column-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-xs) var(--space-sm);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.kanban-column-header:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.kanban-column-header .col-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.kanban-column-header .col-count {
|
|
font-weight: 400;
|
|
color: var(--text-dim);
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Group headers */
|
|
.kanban-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-xs) var(--space-sm);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.kanban-group-header:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.kanban-group-header .group-chevron {
|
|
font-size: 10px;
|
|
transition: transform var(--transition);
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.kanban-group-header .group-count {
|
|
font-weight: 400;
|
|
color: var(--text-dim);
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Cards */
|
|
.kanban-cards {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-xs) 0;
|
|
min-height: 20px;
|
|
}
|
|
|
|
.kanban-card {
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
cursor: grab;
|
|
transition: box-shadow var(--transition), border-color var(--transition);
|
|
position: relative;
|
|
}
|
|
|
|
.kanban-card:hover {
|
|
border-color: var(--border-light);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.kanban-card:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.kanban-card .card-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--space-sm);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.kanban-card .card-icon {
|
|
font-size: 16px;
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.kanban-card .card-title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
line-height: 1.4;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.kanban-card .card-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.kanban-card .card-assignee {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.kanban-card .card-avatar {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: var(--bg-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.kanban-card .card-date {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.kanban-card .card-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 1px 6px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* New card button */
|
|
.kanban-new-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-xs) var(--space-md);
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
.kanban-new-card:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.kanban-new-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm) var(--space-md);
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: background var(--transition);
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.kanban-new-group:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
TABLE VIEW
|
|
═══════════════════════════════════════════════════════════ */
|
|
.table-container {
|
|
padding: 0 var(--space-xl);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.data-table th {
|
|
text-align: left;
|
|
padding: var(--space-sm) var(--space-md);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-dim);
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
}
|
|
|
|
.data-table th:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.data-table th .th-icon {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.data-table td {
|
|
padding: var(--space-sm) var(--space-md);
|
|
font-size: 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.data-table tr:hover td {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.table-name-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.table-name-cell .item-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
STATUS OVERVIEW (Donut Chart)
|
|
═══════════════════════════════════════════════════════════ */
|
|
.status-overview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: var(--space-xl);
|
|
gap: var(--space-xl);
|
|
}
|
|
|
|
.donut-container {
|
|
position: relative;
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
|
|
.donut-center {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
}
|
|
|
|
.donut-total {
|
|
font-size: 36px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.donut-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-md);
|
|
justify-content: center;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.legend-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
TEAM LOAD (Barres)
|
|
═══════════════════════════════════════════════════════════ */
|
|
.team-load {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: var(--space-xl);
|
|
padding: var(--space-xl);
|
|
min-height: 300px;
|
|
}
|
|
|
|
.team-member {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.team-bar-stack {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
width: 48px;
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
min-height: 40px;
|
|
}
|
|
|
|
.team-bar-segment {
|
|
width: 100%;
|
|
transition: height var(--transition);
|
|
}
|
|
|
|
.team-bar-segment.todo { background: var(--blue); }
|
|
.team-bar-segment.progress { background: var(--orange); }
|
|
.team-bar-segment.done { background: var(--green); }
|
|
|
|
.team-avatar {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: var(--bg-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.team-count {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
FILTERS & SORT PANELS
|
|
═══════════════════════════════════════════════════════════ */
|
|
.filter-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-sm) var(--space-xl);
|
|
flex-wrap: wrap;
|
|
min-height: 32px;
|
|
}
|
|
|
|
.filter-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 8px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.filter-pill:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.filter-pill .remove-filter {
|
|
font-size: 14px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.filter-pill .remove-filter:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.filter-add-btn {
|
|
padding: 3px 8px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-sm);
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
.filter-add-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.filter-reset-btn {
|
|
margin-left: auto;
|
|
padding: 3px 8px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-sm);
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.filter-reset-btn:hover {
|
|
color: var(--red);
|
|
}
|
|
|
|
.dropdown-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: 6px var(--space-md);
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.dropdown-option:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.dropdown-option .option-icon {
|
|
width: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.dropdown-option .option-checkbox {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 1px solid var(--text-dim);
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background var(--transition), border-color var(--transition);
|
|
}
|
|
|
|
.dropdown-option.selected .option-checkbox {
|
|
background: var(--blue);
|
|
border-color: var(--blue);
|
|
}
|
|
|
|
.dropdown-option .option-color-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.sort-list {
|
|
padding: var(--space-xs) 0;
|
|
}
|
|
|
|
.sort-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: 6px var(--space-md);
|
|
}
|
|
|
|
.sort-item .sort-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex: 1;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.sort-item .sort-direction {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.sort-item .sort-direction:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.sort-delete {
|
|
color: var(--text-dim);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
.sort-delete:hover {
|
|
color: var(--red);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
MODAL / DIALOG
|
|
═══════════════════════════════════════════════════════════ */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 500;
|
|
}
|
|
|
|
.modal-container {
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-modal);
|
|
max-width: 600px;
|
|
width: 90%;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-md) var(--space-lg);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-close {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: var(--space-lg);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
UTILITIES
|
|
═══════════════════════════════════════════════════════════ */
|
|
.flex { display: flex; }
|
|
.text-dim { color: var(--text-secondary); }
|
|
.text-xs { font-size: 12px; }
|
|
.text-sm { font-size: 13px; }
|
|
.lib-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.lib-col-name { flex: 1.5; display: flex; align-items: center; gap: 10px; }
|
|
.lib-col-author { width: 140px; font-size: 13px; color: var(--text-dim); }
|
|
.lib-col-source { width: 120px; font-size: 13px; color: var(--text-dim); }
|
|
.lib-col-edited { width: 140px; font-size: 13px; color: var(--text-dim); }
|
|
.lib-empty { text-align: center; padding: 48px; color: var(--text-dim); }
|
|
.lib-empty h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-primary); }
|
|
.lib-empty p { font-size: 13px; }
|
|
|
|
/* Trash */
|
|
.trash-filter {
|
|
display: flex; align-items: center; gap: 6px;
|
|
padding: 6px 12px; border-radius: 6px;
|
|
font-size: 13px; color: var(--text-primary);
|
|
background: var(--bg-tertiary); transition: background 0.15s;
|
|
}
|
|
.trash-filter:hover { background: var(--bg-hover); }
|
|
.trash-filter.active { color: var(--accent); background: rgba(35,131,226,0.1); }
|
|
.trash-item {
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 10px 12px; border-radius: 6px; transition: background 0.15s;
|
|
}
|
|
.trash-item:hover { background: var(--bg-hover); }
|
|
.trash-item-icon { font-size: 18px; flex-shrink: 0; }
|
|
.trash-item-info { flex: 1; min-width: 0; }
|
|
.trash-item-name { display: block; font-size: 14px; color: var(--text-primary); font-weight: 500; }
|
|
.trash-item-path { display: block; font-size: 12px; color: var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
.trash-item-btn {
|
|
width: 32px; height: 32px; border-radius: 6px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 14px; color: var(--text-secondary); transition: background 0.15s;
|
|
}
|
|
.trash-item-btn:hover { background: var(--bg-tertiary); }
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
|
|
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
|
|
|
|
/* Sortable ghost */
|
|
.sortable-ghost { opacity: 0.4; }
|
|
.sortable-drag { box-shadow: var(--shadow-drag) !important; }
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
NOTION-STYLE BLOCK EDITOR
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
/* Editor wrapper */
|
|
.page-editor-wrapper {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Page title area */
|
|
.page-cover-area {
|
|
padding: 48px 64px 12px;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.page-title-block {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
position: relative;
|
|
}
|
|
|
|
.page-icon-emoji {
|
|
font-size: 36px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
padding-top: 2px;
|
|
user-select: none;
|
|
}
|
|
|
|
.page-title-input {
|
|
flex: 1;
|
|
font-size: 40px;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
min-height: 50px;
|
|
padding: 0;
|
|
border: none;
|
|
word-break: break-word;
|
|
}
|
|
.page-title-input.empty::before,
|
|
.page-title-input:empty::before {
|
|
content: attr(data-placeholder);
|
|
color: var(--text-secondary);
|
|
opacity: .75;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Blocks container */
|
|
.blocks-container {
|
|
padding: 8px 64px 96px;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
min-height: 300px;
|
|
}
|
|
|
|
/* Page de base (premier bloc = embed collection) : le titre et le tableau
|
|
s'alignent sur la marge gauche de la topbar (16px) au lieu d'être centrés
|
|
dans la colonne 900px — le tableau démarre au ras du sidebar et prend la
|
|
LARGEUR DU DOCUMENT (les colonnes dictent le scroll horizontal). */
|
|
.page-editor-wrapper.db-first .page-cover-area,
|
|
.page-editor-wrapper.db-first .page-title-block,
|
|
.page-editor-wrapper.db-first .blocks-container {
|
|
max-width: 100%;
|
|
margin: 0;
|
|
padding-left: var(--space-lg);
|
|
padding-right: var(--space-lg);
|
|
}
|
|
|
|
/* Une base embarquée ne doit jamais déborder de sa colonne de blocs :
|
|
.db-table-wrapper interne gère déjà le scroll horizontal. */
|
|
.block-embed-collection { max-width: 100%; overflow: hidden; }
|
|
|
|
/* Titre des pages de base dédiées (page_editor_collection.html) — même
|
|
liseré gauche que .database-table-container. */
|
|
.database-page-title {
|
|
max-width: 100%;
|
|
margin: 0;
|
|
padding: 28px var(--space-lg) 0;
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.blocks-empty {
|
|
padding: 40px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Block wrapper */
|
|
.block-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
padding: 2px 0;
|
|
margin: 1px 0;
|
|
border-radius: 4px;
|
|
transition: background 0.1s ease;
|
|
}
|
|
.block-wrapper:hover {
|
|
background: rgba(0,0,0,0.02);
|
|
}
|
|
.block-wrapper:hover .block-handle,
|
|
.block-wrapper:focus-within .block-handle {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 6-dot drag handle */
|
|
.block-handle {
|
|
position: absolute;
|
|
left: -40px;
|
|
top: 4px;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: grab;
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease;
|
|
border-radius: 3px;
|
|
fill: var(--text-dim);
|
|
}
|
|
|
|
/* Align page title content with blocks (accounting for drag handle offset) */
|
|
.page-title-block::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -40px;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.page-title-block .page-icon-emoji {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.page-title-block .page-title-input {
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.block-handle.visible {
|
|
opacity: 1;
|
|
}
|
|
.block-handle:hover {
|
|
background: var(--bg-hover);
|
|
fill: var(--text-secondary);
|
|
}
|
|
.block-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* + « ajouter un bloc dessous » — juste à gauche du handle (gouttière 64px) */
|
|
.block-insert-btn {
|
|
position: absolute;
|
|
left: -64px;
|
|
top: 5px;
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: none;
|
|
border: none;
|
|
border-radius: 3px;
|
|
color: var(--text-dim);
|
|
font-size: 17px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
.block-wrapper:hover .block-insert-btn,
|
|
.block-wrapper:focus-within .block-insert-btn {
|
|
opacity: 1;
|
|
}
|
|
.block-insert-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ── v5.10.0: selection multiple + menu contexte bloc ── */
|
|
.block-wrapper.selected {
|
|
background: rgba(35,131,226,0.06);
|
|
box-shadow: inset 0 0 0 1px rgba(35,131,226,0.35);
|
|
}
|
|
.block-wrapper.selected .block-handle { opacity: 1; fill: var(--accent, #2383E2); }
|
|
|
|
.block-menu {
|
|
background: var(--bg-modal, #1b1b1b);
|
|
border: 1px solid var(--border-light, #333);
|
|
border-radius: 10px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,.5);
|
|
padding: 6px;
|
|
min-width: 200px;
|
|
max-width: 260px;
|
|
}
|
|
.block-menu .bm-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 7px 9px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.block-menu .bm-item:hover { background: var(--bg-hover); }
|
|
.block-menu .bm-item .bm-ico { width: 18px; text-align: center; color: var(--text-secondary); flex-shrink: 0; }
|
|
.block-menu .bm-item .bm-arrow { margin-left: auto; color: var(--text-tertiary); font-size: 11px; }
|
|
.block-menu .bm-item .bm-hint { margin-left: auto; font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono, monospace); opacity: .7; }
|
|
.block-menu .bm-item.bm-danger { color: #e5484d; }
|
|
.block-menu .bm-item.bm-danger .bm-ico { color: #e5484d; }
|
|
.block-menu .bm-item.bm-danger:hover { background: rgba(229,72,77,.12); }
|
|
.block-menu .bm-sep { height: 1px; background: var(--border, #2a2a2a); margin: 5px 4px; }
|
|
/* ── v7.61 : menu contextuel type Notion — recherche, sections, pied, sous-menus ── */
|
|
.block-menu .bm-group {
|
|
padding: 9px 9px 3px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
}
|
|
.block-menu .bm-foot {
|
|
border-top: 1px solid var(--border, #2a2a2a);
|
|
margin-top: 6px;
|
|
padding: 8px 9px 6px;
|
|
font-size: 11.5px;
|
|
line-height: 1.55;
|
|
color: var(--text-tertiary);
|
|
}
|
|
.block-menu .bm-check { margin-left: auto; color: var(--accent, #2383e2); font-size: 12px; }
|
|
.block-menu .bm-item.bm-current { background: var(--bg-secondary); }
|
|
.block-menu .bm-dot {
|
|
display: inline-block; width: 12px; height: 12px; border-radius: 3px;
|
|
border: 1px solid var(--border, #333); vertical-align: -2px;
|
|
}
|
|
.block-menu .bm-search:focus { border-color: var(--accent, #2383e2); }
|
|
.block-menu .bm-colors { padding: 6px 9px; }
|
|
.block-menu .bm-colors-label { font-size: 10px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
|
|
.block-menu .bm-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.block-menu .bm-swatch {
|
|
width: 20px; height: 20px; border-radius: 50%;
|
|
border: 1px solid var(--border-light, #333);
|
|
cursor: pointer; padding: 0; flex-shrink: 0;
|
|
}
|
|
.block-menu .bm-swatch:hover { border-color: var(--text-secondary); }
|
|
.block-menu .bm-swatch.bm-default { display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--text-secondary); background: var(--bg-secondary); }
|
|
|
|
.block-menu .bm-page {
|
|
display: block; width: 100%; text-align: left; padding: 8px 10px;
|
|
font-size: 13px; color: var(--text-primary);
|
|
background: var(--bg-hover, transparent);
|
|
border: none; border-radius: 6px; cursor: pointer; margin-bottom: 4px;
|
|
}
|
|
.block-menu .bm-page:hover { background: var(--bg-secondary); }
|
|
.block-menu .bm-page-list { max-height: 240px; overflow-y: auto; margin: 8px 0; }
|
|
.block-menu .bm-empty { font-size: 12px; color: var(--text-tertiary); padding: 12px; line-height: 1.5; }
|
|
.block-menu .bm-search {
|
|
width: 100%; box-sizing: border-box; padding: 8px 10px; margin-bottom: 6px;
|
|
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px;
|
|
color: var(--text-primary); font-size: 13px; outline: none;
|
|
}
|
|
.block-menu .bm-cancel {
|
|
width: 100%; text-align: center; padding: 7px; border: none; background: transparent;
|
|
color: var(--text-secondary); cursor: pointer; font-size: 12px; border-radius: 6px;
|
|
}
|
|
.block-menu .bm-cancel:hover { background: var(--bg-hover); }
|
|
.block-menu-sub { min-width: 230px; max-height: 60vh; overflow-y: auto; }
|
|
|
|
.ftable-hdr-toggle { margin-left: 12px; font-size: 12px; color: var(--text-tertiary); display:inline-flex; align-items:center; gap:2px; }
|
|
.ftable-hdr-toggle label { display:inline-flex; align-items:center; gap:4px; cursor:pointer; }
|
|
.ftable-hdr-toggle input { cursor:pointer; }
|
|
|
|
/* Block actions (+ button) */
|
|
.block-actions {
|
|
position: absolute;
|
|
right: -60px;
|
|
top: 2px;
|
|
display: flex;
|
|
gap: 2px;
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
.block-actions.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
.block-add-btn {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-dim);
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
}
|
|
.block-add-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Block content (base) */
|
|
.block-content {
|
|
flex: 1;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
padding: 3px 2px;
|
|
min-height: 28px;
|
|
word-break: break-word;
|
|
}
|
|
.block-content:focus-within [data-bid].empty::before {
|
|
content: attr(data-placeholder);
|
|
color: var(--text-secondary);
|
|
opacity: .75;
|
|
pointer-events: none;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Bulleted list */
|
|
.block-bullet {
|
|
padding-left: 18px;
|
|
position: relative;
|
|
}
|
|
.block-bullet::before {
|
|
content: '\2022';
|
|
position: absolute;
|
|
left: 2px;
|
|
top: 3px;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Numbered list — data-num est calculé au rendu (rangée contiguë) */
|
|
.block-numbered {
|
|
padding-left: 32px;
|
|
position: relative;
|
|
}
|
|
.block-numbered[data-num]::before {
|
|
content: attr(data-num) ". ";
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
min-width: 24px;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* To-do */
|
|
.block-todo {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
padding: 2px 2px;
|
|
}
|
|
.block-todo .todo-checkbox {
|
|
margin-top: 5px;
|
|
width: 16px;
|
|
height: 16px;
|
|
accent-color: var(--blue);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
.block-todo div {
|
|
flex: 1;
|
|
outline: none;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
min-height: 26px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Toggle */
|
|
.block-toggle {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 2px;
|
|
}
|
|
.toggle-title-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
}
|
|
.toggle-chevron {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-primary);
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
margin-top: 4px;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
.toggle-chevron.open {
|
|
transform: rotate(90deg);
|
|
}
|
|
.toggle-chevron:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.block-toggle .toggle-title {
|
|
flex: 1;
|
|
outline: none;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
min-height: 26px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Code block */
|
|
.block-code {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
margin: 8px 0;
|
|
overflow: hidden;
|
|
}
|
|
.code-lang-label {
|
|
padding: 4px 12px;
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.block-code pre {
|
|
margin: 0;
|
|
padding: 12px 16px;
|
|
overflow-x: auto;
|
|
}
|
|
.block-code code {
|
|
outline: none;
|
|
font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
color: var(--text-primary);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
display: block;
|
|
min-height: 28px;
|
|
}
|
|
.block-code:focus-within code:empty::before {
|
|
content: 'Type code...';
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Divider */
|
|
.block-divider {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 8px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Callout */
|
|
.block-callout {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 14px 16px;
|
|
border-radius: 4px;
|
|
margin: 4px 0;
|
|
position: relative;
|
|
}
|
|
.block-callout .callout-icon {
|
|
font-size: 20px;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
transition: transform .1s ease;
|
|
}
|
|
.block-callout .callout-icon:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
.block-callout > div[data-bid] {
|
|
flex: 1;
|
|
outline: none;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
min-height: 24px;
|
|
}
|
|
.callout-icon-picker {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 12px;
|
|
z-index: 50;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
width: 236px;
|
|
max-width: 90%;
|
|
padding: 8px;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-modal);
|
|
}
|
|
.callout-icon-opt {
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 18px;
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.callout-icon-opt:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Toggle children */
|
|
.toggle-children {
|
|
margin-left: 22px;
|
|
padding-left: 12px;
|
|
border-left: 1px solid var(--border);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* Table of Contents */
|
|
.block-toc {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 16px 20px;
|
|
margin: 4px 0;
|
|
}
|
|
.block-toc-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
color: var(--text-dim);
|
|
margin-bottom: 10px;
|
|
}
|
|
.block-toc-item {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
padding: 5px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
line-height: 1.4;
|
|
}
|
|
.block-toc-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--accent);
|
|
}
|
|
.block-toc-empty {
|
|
color: var(--text-dim);
|
|
font-size: 14px;
|
|
font-style: italic;
|
|
padding: 12px 16px;
|
|
}
|
|
.math-display {
|
|
min-height: 40px;
|
|
padding: 10px 14px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
overflow-x: auto;
|
|
font-size: 15px;
|
|
}
|
|
.math-editor {
|
|
width: 100%;
|
|
margin-top: 6px;
|
|
padding: 8px 10px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px dashed var(--border);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-size: 13px;
|
|
outline: none;
|
|
resize: vertical;
|
|
min-height: 40px;
|
|
box-sizing: border-box;
|
|
}
|
|
.math-editor:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* Column list */
|
|
.block-columns {
|
|
margin: 8px 0 16px;
|
|
}
|
|
.columns-add-bar {
|
|
margin-bottom: 4px;
|
|
}
|
|
.columns-add-btn {
|
|
background: transparent;
|
|
border: 1px dashed var(--border);
|
|
color: var(--text-dim);
|
|
padding: 6px 14px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: border-color .15s, color .15s;
|
|
}
|
|
.columns-add-btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
.columns-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
.column-cell {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.block-column-wrapper {
|
|
position: relative;
|
|
padding: 10px 12px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.block-column-wrapper:hover .block-handle {
|
|
opacity: 1;
|
|
}
|
|
.block-column-wrapper .block-actions {
|
|
right: -8px;
|
|
top: -8px;
|
|
}
|
|
.block-column-wrapper .block-add-btn {
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
width: 20px;
|
|
height: 20px;
|
|
font-size: 13px;
|
|
border-radius: 50%;
|
|
line-height: 1;
|
|
}
|
|
.block-column {
|
|
outline: none;
|
|
min-height: 24px;
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
word-break: break-word;
|
|
}
|
|
.block-columns .block-wrapper {
|
|
margin: 0;
|
|
background: transparent;
|
|
}
|
|
.block-columns .block-handle {
|
|
opacity: 0;
|
|
}
|
|
.block-nested {
|
|
outline: none;
|
|
min-height: 24px;
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
word-break: break-word;
|
|
}
|
|
.nested-block {
|
|
margin: 2px 0;
|
|
}
|
|
.nested-block .block-handle {
|
|
display: none;
|
|
}
|
|
|
|
/* SLASH COMMAND MENU */
|
|
.slash-menu {
|
|
position: fixed;
|
|
z-index: 999;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
|
|
width: 320px;
|
|
max-height: 400px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.slash-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
border-radius: 0;
|
|
}
|
|
.slash-item:hover,
|
|
.slash-item.selected {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.slash-item-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
.slash-item-name {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* FORMAT TOOLBAR (FLOATING) — menu contextuel au highlight (v7.62, façon Notion) */
|
|
.format-toolbar {
|
|
position: fixed;
|
|
z-index: 998;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 1px;
|
|
min-width: 216px;
|
|
max-height: calc(100vh - 16px);
|
|
overflow-y: auto;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
|
|
padding: 6px;
|
|
}
|
|
|
|
.format-toolbar .ft-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.format-toolbar .ft-item {
|
|
height: 28px;
|
|
min-width: 28px;
|
|
padding: 0 7px;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
}
|
|
.format-toolbar .ft-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.format-toolbar .ft-item svg {
|
|
display: block;
|
|
}
|
|
|
|
/* Ligne 1 : style de texte (libellé du type de bloc + sous-menu) */
|
|
.format-toolbar .ft-style {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
.format-toolbar .ft-style-ico {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
.format-toolbar .ft-style-name {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
.format-toolbar .ft-caret {
|
|
color: var(--text-dim);
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* « A » : couleur du texte (barre colorée sous la lettre) */
|
|
.format-toolbar .ft-a-letter {
|
|
position: relative;
|
|
font-weight: 600;
|
|
}
|
|
.format-toolbar .ft-a-letter::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 1px;
|
|
right: 1px;
|
|
bottom: -4px;
|
|
height: 3px;
|
|
border-radius: 2px;
|
|
background: var(--accent);
|
|
}
|
|
.format-toolbar .ft-tx,
|
|
.format-toolbar .ft-code-ico {
|
|
font-size: 12px;
|
|
font-family: var(--font-mono, monospace);
|
|
}
|
|
.format-toolbar .ft-hl {
|
|
border-radius: 2px;
|
|
padding: 0 3px;
|
|
background: rgba(255,197,61,.28);
|
|
}
|
|
.format-toolbar .ft-more {
|
|
font-size: 16px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* Séparateurs, groupe « Skills », pied de page */
|
|
.format-toolbar .ft-sep {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 5px 2px;
|
|
}
|
|
.format-toolbar .ft-group {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
padding: 3px 7px 2px;
|
|
cursor: default;
|
|
}
|
|
.format-toolbar .ft-skill {
|
|
height: 26px;
|
|
justify-content: flex-start;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
.format-toolbar .ft-foot {
|
|
height: 26px;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
.format-toolbar .ft-foot kbd {
|
|
font-family: inherit;
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
/* Info-bulle des éléments du menu de sélection : bulle claire, à droite */
|
|
.tooltip.tooltip-light {
|
|
background: #ffffff;
|
|
border-color: #e3e3e3;
|
|
color: #191919;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
|
|
white-space: normal;
|
|
max-width: 240px;
|
|
line-height: 1.35;
|
|
}
|
|
.tooltip.tooltip-light em {
|
|
color: #6b6b6b;
|
|
}
|
|
|
|
/* ══ v7.63 — Menus mobiles façon Notion : barre horizontale au « / » ══
|
|
(défilement latéral) + feuille plein écran Insert block / Turn into / Color ══ */
|
|
.fd-mtb {
|
|
position: fixed;
|
|
z-index: 1300;
|
|
display: none;
|
|
gap: 2px;
|
|
padding: 5px 6px;
|
|
max-width: calc(100vw - 16px);
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
-webkit-overflow-scrolling: touch;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 10px;
|
|
box-shadow: 0 6px 20px rgba(0,0,0,.45);
|
|
}
|
|
.fd-mtb::-webkit-scrollbar { display: none; }
|
|
.fd-mtb .fd-mtb-item {
|
|
flex: 0 0 auto;
|
|
min-width: 38px;
|
|
height: 38px;
|
|
padding: 0 8px;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
cursor: pointer;
|
|
}
|
|
.fd-mtb .fd-mtb-item:active { background: var(--bg-hover); }
|
|
.fd-mtb .fd-mtb-wide { font-size: 13px; font-weight: 600; padding: 0 10px; }
|
|
.fd-mtb .fd-mtb-caret { font-size: 10px; color: var(--text-dim); }
|
|
|
|
/* Feuille plein écran (titre centré + Cancel bleu à droite, liste qui défile) */
|
|
.fd-msheet {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1500;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary, #191919);
|
|
}
|
|
.fd-msheet-head {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex: 0 0 auto;
|
|
}
|
|
.fd-msheet-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
|
|
.fd-msheet-cancel {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: none;
|
|
border: none;
|
|
color: var(--accent, #2383E2);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
padding: 6px;
|
|
cursor: pointer;
|
|
}
|
|
/* la liste porte la classe block-menu (hérite des styles .bm-item/.bm-group)
|
|
mais doit couvrir tout l'écran, sans la chrome du menu flottant */
|
|
.fd-msheet-list.block-menu {
|
|
max-width: none;
|
|
min-width: 0;
|
|
background: none;
|
|
border: none;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
padding: 6px 8px 40px;
|
|
flex: 1 1 auto;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.fd-msheet .bm-item { padding: 12px 10px; font-size: 15px; }
|
|
.fd-msheet .bm-group { padding: 14px 10px 4px; }
|
|
.fd-msheet .sm-group {
|
|
padding: 14px 10px 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: .4px;
|
|
}
|
|
.fd-msheet .slash-item { padding: 12px 10px; font-size: 15px; }
|
|
.fd-msheet .slash-item:active { background: var(--bg-hover); }
|
|
|
|
/* EDITOR STATUSBAR */
|
|
.editor-statusbar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
right: 0;
|
|
left: var(--sidebar-width);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 4px 16px;
|
|
background: var(--bg-primary);
|
|
border-top: 1px solid var(--border);
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
z-index: 50;
|
|
height: 28px;
|
|
}
|
|
.statusbar-right {
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* Inline formatting inside blocks */
|
|
.block-content strong { font-weight: 700; }
|
|
.block-content em { font-style: italic; }
|
|
.block-content code {
|
|
background: var(--bg-tertiary);
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
font-size: 0.9em;
|
|
font-family: var(--font-mono);
|
|
color: var(--pink);
|
|
}
|
|
.block-content s { text-decoration: line-through; }
|
|
.block-content u { text-decoration: underline; }
|
|
.block-content a { color: var(--blue); text-decoration: underline; }
|
|
|
|
/* Mobile adjustments */
|
|
@media (max-width: 768px) {
|
|
.page-cover-area { padding: 32px 16px 8px; }
|
|
.page-title-input { font-size: 28px; }
|
|
.blocks-container { padding: 8px 16px 96px; }
|
|
.block-handle { display: none; }
|
|
.block-insert-btn { display: none; }
|
|
.block-actions { display: none; }
|
|
.editor-statusbar { left: 0; }
|
|
}
|
|
|
|
/* ═══════════ Get Started Toolbar (bottom, pill buttons) ═══════════ */
|
|
.get-started-toolbar {
|
|
position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 12px 0 16px; flex-wrap: wrap;
|
|
justify-content: center; z-index: 10;
|
|
pointer-events: auto;
|
|
}
|
|
.gs-label {
|
|
font-size: 13px; color: var(--text-dim); margin-right: 4px;
|
|
}
|
|
.gs-pill {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 8px 16px; background: var(--bg-secondary);
|
|
border: 1px solid var(--border); border-radius: 9999px;
|
|
color: var(--text-primary); font-size: 13px; cursor: pointer;
|
|
white-space: nowrap; transition: background 0.15s;
|
|
}
|
|
.gs-pill:hover { background: var(--bg-hover); }
|
|
.gs-icon { font-size: 15px; }
|
|
.gs-pill .chevron-down { font-size: 10px; opacity: 0.5; }
|
|
|
|
.gs-more-dropdown {
|
|
position: absolute; bottom: 100%; left: 0; margin-bottom: 4px;
|
|
background: var(--bg-secondary); border: 1px solid var(--border);
|
|
border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
|
|
min-width: 180px; z-index: 100; padding: 4px 0;
|
|
}
|
|
.gs-more-item {
|
|
padding: 8px 14px; font-size: 13px; color: var(--text-primary);
|
|
cursor: pointer; display: flex; align-items: center; gap: 8px;
|
|
}
|
|
.gs-more-item:hover { background: var(--bg-hover); }
|
|
.gs-more-sep { height: 1px; background: var(--border); margin: 4px 0; }
|
|
|
|
/* ═══════════ AI Meeting Note — widget réunion (v4.12.0) ═══════════ */
|
|
.block-meeting { cursor: default; }
|
|
.fm {
|
|
background: var(--bg-secondary, #1f1f1f); border: 1px solid var(--border, #333);
|
|
border-radius: 12px; padding: 12px 14px; font-size: 13px;
|
|
color: var(--text-primary, #eee); display: flex; flex-direction: column; gap: 10px;
|
|
}
|
|
.fm-loading { color: var(--text-dim); font-size: 13px; padding: 8px 2px; }
|
|
.fm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.fm-ico { font-size: 20px; }
|
|
.fm-title {
|
|
flex: 1; min-width: 160px; background: transparent; border: 1px solid transparent;
|
|
color: var(--text-primary); font-size: 14px; font-weight: 600; outline: none;
|
|
border-radius: 6px; padding: 3px 6px; font-family: inherit;
|
|
}
|
|
.fm-title:focus { border-color: var(--accent); background: var(--bg-tertiary); }
|
|
.fm-date { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
|
|
.fm-pill {
|
|
font-size: 11px; padding: 3px 10px; border-radius: 99px;
|
|
background: var(--bg-tertiary); color: var(--text-secondary); white-space: nowrap;
|
|
}
|
|
.fm-pill-ok { color: #2ea043; }
|
|
.fm-step-title {
|
|
font-size: 12px; font-weight: 600; color: var(--text-dim);
|
|
text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px;
|
|
}
|
|
.fm-step-desc { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
|
|
.fm-radio {
|
|
display: flex; gap: 8px; align-items: center; font-size: 13px;
|
|
color: var(--text-primary); padding: 4px 2px; cursor: pointer;
|
|
}
|
|
.fm-radio input { accent-color: var(--accent); }
|
|
.fm-btn {
|
|
background: var(--bg-tertiary); border: 1px solid var(--border);
|
|
color: var(--text-primary); border-radius: 8px; padding: 7px 14px;
|
|
font-size: 13px; cursor: pointer; font-family: inherit;
|
|
}
|
|
.fm-btn:hover { background: var(--bg-hover); }
|
|
.fm-btn-primary { background: var(--accent, #2383E2); border-color: transparent; color: #fff; font-weight: 600; }
|
|
.fm-btn-primary:hover { background: #2C8CEB; }
|
|
.fm-btn:disabled { opacity: .55; cursor: not-allowed; }
|
|
.fm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.fm-wave {
|
|
font-family: monospace; letter-spacing: 2px; color: var(--accent);
|
|
font-size: 14px; padding: 2px 0;
|
|
}
|
|
.fm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-top: 2px; }
|
|
.fm-tab {
|
|
background: none; border: none; color: var(--text-dim); font-size: 12.5px;
|
|
cursor: pointer; padding: 6px 12px; border-radius: 7px; font-weight: 500;
|
|
}
|
|
.fm-tab.active { background: var(--bg-tertiary); color: var(--text-primary); }
|
|
.fm-empty { color: var(--text-dim); font-size: 12.5px; padding: 8px 0; }
|
|
.fm-error { color: #e5484d; font-size: 12.5px; padding: 8px 0; }
|
|
.fm-line { display: flex; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--text-primary); }
|
|
.fm-line .fm-ts { color: var(--text-dim); font-family: monospace; font-size: 11px; flex-shrink: 0; padding-top: 2px; }
|
|
.fm-line .fm-who { color: var(--accent); font-weight: 600; flex-shrink: 0; }
|
|
.fm-interim { opacity: .55; font-style: italic; }
|
|
.fm-area {
|
|
width: 100%; box-sizing: border-box; background: var(--bg-tertiary);
|
|
border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary);
|
|
font-size: 13px; padding: 8px 10px; outline: none; font-family: inherit; resize: vertical;
|
|
}
|
|
.fm-area:focus { border-color: var(--accent); }
|
|
.fm-manual { margin-top: 8px; }
|
|
.fm-manual-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
|
|
.fm-transcript { max-height: 40vh; overflow-y: auto; }
|
|
.topbar-edited {
|
|
font-size: 12px; color: var(--text-dim); margin-right: 8px;
|
|
}
|
|
.page-action-btn {
|
|
display: inline-flex; align-items: center; gap: 4px;
|
|
padding: 5px 10px; border: none; border-radius: 6px;
|
|
background: transparent; color: var(--text-primary);
|
|
font-size: 13px; cursor: pointer; white-space: nowrap;
|
|
}
|
|
.page-action-btn:hover { background: var(--bg-hover); }
|
|
.share-btn { font-weight: 500; }
|
|
.page-action-btn .chevron-down { font-size: 9px; opacity: 0.5; margin-left: 2px; }
|
|
.star-btn { font-size: 16px; padding: 4px 8px; }
|
|
.star-btn .starred { color: var(--yellow); }
|
|
|
|
/* ═══════════ Share / Publish Dialog ═══════════ */
|
|
.share-dialog {
|
|
position: absolute; top: calc(100% + 8px); right: 72px;
|
|
width: 440px; max-height: 65vh; overflow-y: auto;
|
|
background: var(--bg-modal); border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg); box-shadow: var(--shadow-modal);
|
|
z-index: 999;
|
|
}
|
|
/* Page editor: these popovers are children of .page-editor-wrapper (a scroll
|
|
container), so absolute top:100% anchored them BELOW the viewport. Pin them
|
|
fixed under the topbar instead. Scoped to the editor wrapper so other pages
|
|
(library, local_workspace) keep their relative-positioned .more-menu. */
|
|
.page-editor-wrapper > .share-dialog,
|
|
.page-editor-wrapper > .more-menu,
|
|
.page-editor-wrapper > .activity-popover,
|
|
.page-editor-wrapper > .move-dialog {
|
|
position: fixed !important;
|
|
top: calc(var(--topbar-height) + 6px) !important;
|
|
}
|
|
.page-editor-wrapper > .share-dialog { right: 72px; }
|
|
.page-editor-wrapper > .more-menu { right: 16px; }
|
|
.page-editor-wrapper > .activity-popover,
|
|
.page-editor-wrapper > .move-dialog { right: 16px !important; }
|
|
@media (max-width: 768px) {
|
|
/* Keep editor popovers centered/stacked on mobile (base.html media rule
|
|
uses !important; mirror the specificity so it still wins here). */
|
|
.page-editor-wrapper > .share-dialog,
|
|
.page-editor-wrapper > .more-menu,
|
|
.page-editor-wrapper > .activity-popover,
|
|
.page-editor-wrapper > .move-dialog {
|
|
right: auto !important;
|
|
top: 50% !important;
|
|
width: 92vw !important;
|
|
max-width: 400px;
|
|
transform: translate(-50%, -50%) !important;
|
|
}
|
|
.page-editor-wrapper > .more-menu,
|
|
.page-editor-wrapper > .activity-popover { top: 60px !important; transform: none !important; left: auto !important; right: 12px !important; width: auto !important; }
|
|
}
|
|
/* Header with tabs */
|
|
.sd-header {
|
|
display: flex; align-items: center; height: 56px;
|
|
padding: 0 8px; border-bottom: 1px solid var(--border);
|
|
}
|
|
.sd-tab {
|
|
height: 56px; padding: 0 14px; display: flex; align-items: center; gap: 6px;
|
|
font-size: 14px; font-weight: 500; cursor: pointer;
|
|
background: none; border: none;
|
|
color: var(--text-dim); position: relative;
|
|
transition: color var(--transition);
|
|
}
|
|
.sd-tab.active { color: var(--text-primary); }
|
|
.sd-tab.active::after {
|
|
content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
|
|
height: 2px; background: var(--text-primary); transition: var(--transition);
|
|
}
|
|
.sd-tab:hover { color: var(--text-secondary); }
|
|
.sd-badge {
|
|
width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
|
|
display: inline-block;
|
|
}
|
|
.sd-close {
|
|
margin-left: auto; background: none; border: none;
|
|
color: var(--text-dim); font-size: 16px; cursor: pointer;
|
|
padding: 8px; border-radius: var(--radius-sm);
|
|
}
|
|
.sd-close:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
|
|
/* Body */
|
|
.sd-body { padding: 16px 20px; }
|
|
|
|
/* Invite row */
|
|
.sd-invite-row { display: flex; gap: 8px; margin-bottom: 12px; }
|
|
.sd-input {
|
|
flex: 1; height: 40px; padding: 0 14px;
|
|
background: var(--bg-secondary); border: 1px solid var(--border);
|
|
border-radius: var(--radius-md); color: var(--text-primary); font-size: 13px; outline: none;
|
|
transition: border-color var(--transition), box-shadow var(--transition);
|
|
}
|
|
.sd-input::placeholder { color: var(--text-dim); }
|
|
.sd-input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
|
|
.sd-btn-primary {
|
|
height: 40px; padding: 0 16px; background: var(--accent); color: #fff;
|
|
border: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
|
|
cursor: pointer; transition: background var(--transition); white-space: nowrap;
|
|
}
|
|
.sd-btn-primary:hover { background: var(--accent-hover); }
|
|
.sd-btn-full { width: 100%; height: 46px; font-size: 14px; }
|
|
|
|
/* Invite wrap + existing users autocomplete */
|
|
.sd-invite-wrap { position: relative; margin-bottom: 12px; }
|
|
.sd-invite-wrap .sd-invite-row { margin-bottom: 0; }
|
|
.sd-user-suggest {
|
|
position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 999;
|
|
max-height: 220px; overflow-y: auto; padding: 4px;
|
|
background: var(--bg-modal); border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg); box-shadow: var(--shadow-popover);
|
|
}
|
|
.sd-user-item {
|
|
display: flex; align-items: center; gap: 10px; padding: 7px 10px;
|
|
border-radius: var(--radius-md); cursor: pointer;
|
|
}
|
|
.sd-user-item:hover, .sd-user-item.active { background: var(--bg-hover); }
|
|
.sd-user-avatar {
|
|
width: 28px; height: 28px; border-radius: 50%; color: #fff; flex: none;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 12px; font-weight: 700; overflow: hidden;
|
|
}
|
|
.sd-user-meta { min-width: 0; }
|
|
.sd-user-login { font-size: 13px; font-weight: 500; color: var(--text-primary); }
|
|
.sd-user-name {
|
|
font-size: 11px; color: var(--text-secondary);
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.sd-user-add { margin-left: auto; font-size: 11px; color: var(--accent); flex: none; }
|
|
.sd-user-empty { padding: 10px; font-size: 13px; color: var(--text-dim); }
|
|
|
|
/* Context card */
|
|
.sd-context-card {
|
|
background: var(--bg-secondary); border-radius: var(--radius-md);
|
|
padding: 12px; font-size: 13px; color: var(--text-secondary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Section */
|
|
.sd-section { margin: 8px 0; }
|
|
.sd-section-title {
|
|
font-size: 12px; color: var(--text-secondary); margin-bottom: 6px;
|
|
}
|
|
.sd-sep { height: 1px; background: var(--border); margin: 12px 0; }
|
|
|
|
/* Access button */
|
|
.sd-access-btn {
|
|
width: 100%; display: flex; align-items: center; justify-content: space-between;
|
|
padding: 10px 14px; background: var(--bg-secondary);
|
|
border: 1px solid var(--border); border-radius: var(--radius-md);
|
|
color: var(--text-primary); font-size: 13px; cursor: pointer;
|
|
}
|
|
.sd-access-btn:hover { background: var(--bg-hover); }
|
|
.sd-access-menu {
|
|
position: absolute; top: calc(100% + 2px); left: 0; right: 0;
|
|
background: var(--bg-modal) !important; border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg); box-shadow: var(--shadow-popover);
|
|
z-index: 999; padding: 4px 0;
|
|
}
|
|
|
|
/* Permissions */
|
|
.sd-select-sm {
|
|
padding: 4px 8px; background: var(--bg-secondary);
|
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
color: var(--text-primary); font-size: 12px; outline: none;
|
|
}
|
|
|
|
/* Participants */
|
|
.sd-participants { margin-bottom: 8px; }
|
|
.sd-participant {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 8px 0;
|
|
position: relative;
|
|
}
|
|
.sd-participant-info { display: flex; align-items: center; gap: 10px; }
|
|
.sd-avatar {
|
|
width: 32px; height: 32px; border-radius: 50%;
|
|
background: var(--accent); color: #fff;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 13px; font-weight: 600;
|
|
}
|
|
.sd-participant-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
|
|
.sd-participant-email { font-size: 13px; color: var(--text-secondary); }
|
|
.sd-perm-btn {
|
|
padding: 4px 10px; background: var(--bg-secondary);
|
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
color: var(--text-secondary); font-size: 12px; cursor: pointer;
|
|
}
|
|
.sd-perm-btn:hover { background: var(--bg-hover); }
|
|
.sd-perm-menu {
|
|
position: absolute; top: 100%; right: 0; width: 280px;
|
|
background: var(--bg-modal); border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg); box-shadow: var(--shadow-popover);
|
|
z-index: 211; padding: 4px 0;
|
|
}
|
|
.sd-perm-option {
|
|
padding: 10px 16px; cursor: pointer;
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.sd-perm-option span:first-child { font-size: 14px; color: var(--text-primary); }
|
|
.sd-perm-option:hover { background: var(--bg-hover); }
|
|
.sd-perm-option.active { background: rgba(35,131,226,.15); }
|
|
.sd-perm-option.danger:hover { background: rgba(224,62,62,.15); }
|
|
.sd-perm-option.danger span:first-child { color: var(--danger); }
|
|
.sd-perm-desc { font-size: 12px !important; color: var(--text-dim) !important; margin-top: 2px; }
|
|
.sd-perm-sep { height: 1px; background: var(--border); margin: 4px 0; }
|
|
|
|
/* Footer */
|
|
.sd-footer {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
}
|
|
.sd-footer-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
|
|
.sd-footer-link:hover { color: var(--text-primary); }
|
|
.sd-footer-action {
|
|
padding: 6px 14px; background: var(--bg-secondary);
|
|
border: 1px solid var(--border); border-radius: var(--radius-md);
|
|
color: var(--text-primary); font-size: 13px; cursor: pointer;
|
|
display: flex; align-items: center; gap: 6px;
|
|
}
|
|
.sd-footer-action:hover { background: var(--bg-hover); }
|
|
|
|
/* Publish tab */
|
|
.sd-publish-hero {
|
|
display: flex; flex-direction: column; align-items: center;
|
|
text-align: center; padding: 16px 0;
|
|
}
|
|
.sd-publish-preview {
|
|
width: 100%; height: 200px; background: var(--bg-secondary);
|
|
border-radius: var(--radius-md); margin-bottom: 20px;
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
}
|
|
.sd-preview-bar {
|
|
width: 100%; height: 32px; background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; align-items: center; padding: 0 12px;
|
|
gap: 6px;
|
|
}
|
|
.sd-preview-title { font-size: 16px; color: var(--text-secondary); margin-top: 20px; }
|
|
.sd-publish-heading { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0 0 8px; }
|
|
.sd-publish-desc { font-size: 13px; color: var(--text-secondary); margin: 0 0 16px; line-height: 1.5; }
|
|
.sd-publish-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; }
|
|
|
|
/* URL bar (after publish) */
|
|
.sd-url-bar {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 8px; background: var(--bg-secondary);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
.sd-url-input {
|
|
flex: 1; height: 32px; padding: 0 10px;
|
|
background: transparent; border: none;
|
|
color: var(--text-secondary); font-size: 13px; outline: none;
|
|
}
|
|
|
|
/* Settings rows */
|
|
.sd-settings { margin: 4px 0; }
|
|
.sd-setting-row {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
height: 40px; padding: 0 4px;
|
|
font-size: 14px; color: var(--text-primary); cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
.sd-setting-row:hover { background: var(--bg-hover); }
|
|
.sd-danger-btn {
|
|
width: 100%; padding: 10px; background: none;
|
|
border: 1px solid var(--border); border-radius: var(--radius-md);
|
|
color: var(--text-secondary); font-size: 13px; cursor: pointer;
|
|
}
|
|
.sd-danger-btn:hover { background: rgba(224,62,62,.1); color: var(--danger); }
|
|
|
|
/* Toast */
|
|
.sd-toast {
|
|
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
|
|
background: var(--bg-secondary); color: var(--text-primary); padding: 10px 18px;
|
|
border-radius: var(--radius-md); font-size: 13px; z-index: 300;
|
|
}
|
|
|
|
/* ── More menu dropdown ── */
|
|
.more-menu {
|
|
position: absolute; top: calc(100% + 4px); right: 0;
|
|
background: var(--bg-modal); border: 1px solid var(--border);
|
|
border-radius: var(--radius-md); box-shadow: var(--shadow-popover);
|
|
min-width: unset; width: max-content; z-index: 100; padding: 4px 0;
|
|
}
|
|
.more-menu-item {
|
|
padding: 8px 14px; font-size: 13px; color: var(--text-primary);
|
|
cursor: pointer; display: flex; align-items: center; gap: 8px;
|
|
}
|
|
.more-menu-item:hover { background: var(--bg-hover); }
|
|
.more-menu-item.danger { color: var(--danger); }
|
|
.more-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
|
|
|
|
/* ── More menu sub-section (e.g. Export formats) ── */
|
|
.more-menu-sub {
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-secondary);
|
|
margin: 2px 0; padding: 2px 0 2px 6px;
|
|
}
|
|
.more-menu-sub .more-menu-item { font-size: 12.5px; padding: 6px 12px; }
|
|
|
|
/* ── Toggle switch ── */
|
|
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
|
|
.toggle-switch.sm { width: 32px; height: 18px; }
|
|
.toggle-switch input { opacity: 0; width: 0; height: 0; }
|
|
.toggle-slider {
|
|
position: absolute; inset: 0; cursor: pointer;
|
|
background: var(--text-dim); border-radius: 20px;
|
|
transition: background var(--transition);
|
|
}
|
|
.toggle-slider:before {
|
|
content: ''; position: absolute; height: 16px; width: 16px;
|
|
left: 2px; bottom: 2px; background: #fff;
|
|
border-radius: 50%; transition: transform var(--transition);
|
|
}
|
|
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
|
|
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); }
|
|
.toggle-switch.sm { width: 32px; height: 18px; }
|
|
.toggle-switch.sm .toggle-slider:before { height: 14px; width: 14px; }
|
|
.toggle-switch.sm input:checked + .toggle-slider:before { transform: translateX(14px); }
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
RESPONSIVE — MOBILE-FIRST DESIGN SYSTEM
|
|
Breakpoints: ≤480px phone | ≤768px tablet | ≤1024px small desktop
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
/* ── Hamburger Menu Button ── */
|
|
.hamburger-btn {
|
|
display: none;
|
|
width: 36px; height: 36px;
|
|
border-radius: var(--radius-sm);
|
|
align-items: center; justify-content: center;
|
|
color: var(--text-primary); font-size: 20px;
|
|
cursor: pointer; flex-shrink: 0;
|
|
transition: background var(--transition);
|
|
}
|
|
.hamburger-btn:hover { background: var(--bg-hover); }
|
|
|
|
/* Show the hamburger on desktop only when the sidebar is collapsed,
|
|
so it can be reopened from the top-left corner. */
|
|
@media (min-width: 769px) {
|
|
.hamburger-btn.hamburger-desktop-show { display: flex; }
|
|
}
|
|
|
|
/* ── Mobile Sidebar Overlay ── */
|
|
.sidebar-overlay {
|
|
display: none;
|
|
position: fixed; inset: 0;
|
|
background: rgba(0,0,0,0.5);
|
|
z-index: 998;
|
|
opacity: 0; transition: opacity 0.2s ease;
|
|
pointer-events: none;
|
|
}
|
|
.sidebar-overlay.visible {
|
|
opacity: 1; pointer-events: auto;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
TABLET (≤1024px)
|
|
═══════════════════════════════════════════════════════════ */
|
|
@media (max-width: 1024px) {
|
|
:root {
|
|
--sidebar-width: 220px;
|
|
--space-xl: 20px;
|
|
}
|
|
|
|
.page-cover-area { padding: 32px 32px 8px; }
|
|
.blocks-container { padding: 8px 32px 80px; }
|
|
.block-handle { left: -32px; }
|
|
.block-insert-btn { left: -56px; }
|
|
.page-title-block::before { left: -32px; }
|
|
.page-title-input { font-size: 32px; }
|
|
|
|
.kanban-column { min-width: 240px; max-width: 300px; }
|
|
.data-table { font-size: 13px; }
|
|
.data-table th, .data-table td { padding: 6px 8px; }
|
|
|
|
.status-overview { padding: var(--space-lg); }
|
|
.team-load { padding: var(--space-lg); gap: var(--space-lg); }
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
TABLET PORTRAIT / PHONE LARGE (≤768px)
|
|
═══════════════════════════════════════════════════════════ */
|
|
@media (max-width: 768px) {
|
|
/* ── Layout ── */
|
|
html, body { overflow: auto; }
|
|
.app-layout { position: relative; }
|
|
|
|
.hamburger-btn { display: flex; }
|
|
.sidebar-overlay { display: block; }
|
|
|
|
/* ── Sidebar mobile ── */
|
|
.sidebar {
|
|
display: flex; flex-direction: column; /* block cassait flex:1 de .sidebar-scroll → drawer impossible à scroller */
|
|
position: fixed !important;
|
|
top: 0; left: 0;
|
|
bottom: 0; width: 85vw; max-width: 320px;
|
|
z-index: 999;
|
|
transform: translateX(-100%);
|
|
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 4px 0 24px rgba(0,0,0,0.4);
|
|
}
|
|
.sidebar.mobile-open {
|
|
transform: translateX(0);
|
|
}
|
|
.sidebar.collapsed {
|
|
width: 85vw; max-width: 320px;
|
|
min-width: 0; padding: 0; overflow: hidden;
|
|
}
|
|
.sidebar-back-btn { display: flex; }
|
|
.sidebar-uncollapse-btn { display: none !important; }
|
|
.sidebar-peek-zone { display: none; }
|
|
.sidebar-resize-handle { display: none; }
|
|
.sidebar.peeking {
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
height: 100vh;
|
|
width: 85vw;
|
|
max-width: 320px;
|
|
min-width: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* ── Topbar ── */
|
|
.topbar {
|
|
padding: 0 12px;
|
|
gap: 8px;
|
|
height: 48px; min-height: 48px;
|
|
}
|
|
.topbar-left {
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
max-width: 40%;
|
|
}
|
|
.topbar-center { display: none; }
|
|
.topbar-right {
|
|
flex-shrink: 0;
|
|
gap: 2px;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.topbar-right .topbar-btn {
|
|
min-width: 36px; height: 36px;
|
|
padding: 0 6px;
|
|
font-size: 14px;
|
|
}
|
|
.topbar-right .topbar-btn.share-btn {
|
|
font-size: 11px; padding: 0 8px;
|
|
}
|
|
.topbar-right span.text-xs { display: none; }
|
|
.topbar-breadcrumb { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* ── Content ── */
|
|
.content-area { overflow-y: auto; }
|
|
.page-cover-area { padding: 24px 16px 8px; }
|
|
.page-title-input { font-size: 24px; }
|
|
.blocks-container { padding: 8px 16px 96px; }
|
|
.block-handle { display: none; }
|
|
.block-insert-btn { display: none; }
|
|
.block-actions { display: none; }
|
|
.page-title-block::before { display: none; }
|
|
.page-title-block .page-icon-emoji { margin-left: 0; }
|
|
.page-title-block .page-title-input { padding-left: 0; }
|
|
.editor-statusbar { left: 0; }
|
|
|
|
/* ── View Tabs ── */
|
|
.view-tabs {
|
|
padding: 0 12px;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.view-tab { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
|
|
.view-toolbar { padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
|
|
|
|
/* ── Kanban ── */
|
|
.kanban-container {
|
|
padding: 0 4px;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scroll-snap-type: x mandatory;
|
|
}
|
|
.kanban-column {
|
|
min-width: 85vw;
|
|
max-width: 85vw;
|
|
padding: 0 4px;
|
|
scroll-snap-align: start;
|
|
}
|
|
.kanban-column-header { padding: 10px 8px; font-size: 14px; }
|
|
.kanban-card { padding: 10px 12px; }
|
|
.kanban-card .card-title { font-size: 14px; }
|
|
.kanban-new-card { padding: 10px 12px; }
|
|
|
|
/* ── Table ── */
|
|
.table-container {
|
|
padding: 0 4px;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.data-table { min-width: 600px; }
|
|
.data-table th { font-size: 11px; padding: 6px; }
|
|
.data-table td { font-size: 13px; padding: 8px 6px; }
|
|
|
|
/* ── Status / Team Load ── */
|
|
.status-overview { padding: 16px; }
|
|
.donut-container { width: 160px; height: 160px; }
|
|
.donut-total { font-size: 28px; }
|
|
.team-load { padding: 16px; gap: 12px; flex-wrap: wrap; min-height: auto; }
|
|
.team-bar-stack { width: 40px; }
|
|
.status-legend { gap: 8px; }
|
|
|
|
/* ── Filters ── */
|
|
.filter-bar { padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
|
|
.filter-pill { font-size: 11px; padding: 4px 8px; }
|
|
|
|
/* ── Modal ── */
|
|
.modal-container { width: 95%; max-width: 95%; max-height: 90vh; border-radius: var(--radius-md); }
|
|
.modal-header { padding: 12px; }
|
|
.modal-body { padding: 12px; }
|
|
|
|
/* ── Library ── */
|
|
.library-table-header { font-size: 11px; padding: 8px 8px; }
|
|
.library-table-row { padding: 8px; }
|
|
.lib-col-author, .lib-col-source, .lib-col-edited, .lib-col-visited { display: none; }
|
|
.lib-col-name { flex: 1; }
|
|
|
|
/* ── Dashboard ── */
|
|
.project-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
|
|
|
|
/* ── Share Dialog ── */
|
|
.share-dialog {
|
|
width: 92vw; max-width: 92vw;
|
|
right: -16px; max-height: 80vh;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
/* ── Get Started Toolbar ── */
|
|
.get-started-toolbar {
|
|
flex-wrap: wrap; justify-content: center;
|
|
padding: 8px 12px 12px; gap: 6px;
|
|
}
|
|
.gs-pill { font-size: 12px; padding: 6px 12px; }
|
|
|
|
/* ── Slash Menu ── */
|
|
.slash-menu { width: 90vw; max-width: 90vw; left: 5vw !important; }
|
|
|
|
/* ── Format Toolbar ── */
|
|
.format-toolbar { left: 8px !important; right: 8px; }
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
PHONE (≤480px)
|
|
═══════════════════════════════════════════════════════════ */
|
|
@media (max-width: 480px) {
|
|
:root {
|
|
--space-xl: 16px;
|
|
--space-lg: 12px;
|
|
}
|
|
|
|
.sidebar { width: 90vw; max-width: 300px; }
|
|
.sidebar.mobile-open { width: 90vw; max-width: 300px; }
|
|
|
|
.hamburger-btn { width: 44px; height: 44px; }
|
|
.topbar {
|
|
padding: 0 8px;
|
|
height: 48px; min-height: 48px;
|
|
}
|
|
.topbar-btn { min-width: 40px; height: 40px; }
|
|
|
|
.page-cover-area { padding: 20px 12px 6px; }
|
|
.page-title-input { font-size: 22px; }
|
|
.blocks-container { padding: 6px 12px 80px; }
|
|
.page-icon-emoji { font-size: 28px; }
|
|
.page-title-block::before { display: none; }
|
|
.page-title-block .page-icon-emoji { margin-left: 0; }
|
|
.page-title-block .page-title-input { padding-left: 0; }
|
|
|
|
.kanban-column {
|
|
min-width: 92vw;
|
|
max-width: 92vw;
|
|
}
|
|
|
|
.data-table { min-width: 500px; font-size: 12px; }
|
|
.donut-container { width: 140px; height: 140px; }
|
|
.donut-total { font-size: 24px; }
|
|
|
|
.modal-container { width: 100%; max-width: 100%; border-radius: 0; }
|
|
|
|
.sidebar-item { min-height: 44px; padding: 8px 8px; }
|
|
.sidebar-nav-item { min-height: 40px; }
|
|
.sidebar-section-header { padding: 8px 6px; min-height: 40px; }
|
|
.tree-toggle { width: 32px; height: 32px; }
|
|
|
|
.view-tab { padding: 8px; font-size: 11px; }
|
|
|
|
.btn-new { height: 36px; padding: 8px 12px !important; }
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
SHARED COMPONENTS (migrated from design-tokens.css)
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
[x-cloak] { display: none !important; }
|
|
|
|
/* Skeleton */
|
|
.skeleton {
|
|
background: var(--bg-tertiary);
|
|
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
@keyframes skeleton-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: .5; }
|
|
}
|
|
|
|
.skeleton-file {
|
|
padding: 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--bg-secondary);
|
|
max-height: 70vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Toast */
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
z-index: 9999;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast {
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
font-family: var(--font-sans);
|
|
max-width: 400px;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,.4);
|
|
pointer-events: auto;
|
|
animation: toast-slide-in 0.25s ease-out;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.toast-success {
|
|
background: var(--toast-success-bg);
|
|
color: var(--toast-success-text);
|
|
}
|
|
|
|
@keyframes toast-slide-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px) scale(0.96);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
border: 1px solid var(--border);
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
font-family: var(--font-sans);
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-primary {
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
border: none;
|
|
font-weight: 500;
|
|
font-family: var(--font-sans);
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover { background: var(--accent-hover); }
|
|
|
|
.btn-primary:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: rgba(255,80,80,.15);
|
|
color: var(--danger);
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-family: var(--font-sans);
|
|
}
|
|
|
|
.btn-danger:hover { background: rgba(255,80,80,.25); }
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-family: var(--font-sans);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.btn-secondary:hover { background: var(--bg-hover); }
|
|
|
|
.btn-sm {
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
cursor: pointer;
|
|
font-family: var(--font-sans);
|
|
}
|
|
|
|
.btn-sm:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-sm-danger {
|
|
color: var(--danger);
|
|
border-color: rgba(255,80,80,.3);
|
|
}
|
|
|
|
/* Forms */
|
|
.settings-input {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
padding: 6px 10px;
|
|
outline: none;
|
|
width: 100%;
|
|
font-family: var(--font-sans);
|
|
}
|
|
|
|
.settings-input:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px rgba(35,131,226,.15);
|
|
}
|
|
|
|
/* Dialog */
|
|
.dialog-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 500;
|
|
}
|
|
|
|
.dialog-box {
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
width: 400px;
|
|
max-width: 90vw;
|
|
box-shadow: var(--shadow-modal);
|
|
}
|
|
|
|
.dialog-box h3 {
|
|
margin-bottom: 16px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.dialog-input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
margin-bottom: 12px;
|
|
outline: none;
|
|
font-family: var(--font-sans);
|
|
}
|
|
|
|
.dialog-input:focus { border-color: var(--accent); }
|
|
|
|
.dialog-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.modal-box {
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
min-width: 320px;
|
|
max-width: 90vw;
|
|
box-shadow: var(--shadow-modal);
|
|
}
|
|
|
|
/* Empty state */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.empty-state h2 {
|
|
font-size: 18px;
|
|
margin-bottom: 8px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Text utilities */
|
|
.text-dim { color: var(--text-dim); }
|
|
.text-xs { font-size: 12px; }
|
|
.text-secondary { color: var(--text-secondary); }
|
|
|
|
/* Password toggle */
|
|
.pw-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.pw-toggle {
|
|
position: absolute;
|
|
right: 6px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 4px;
|
|
color: var(--text-dim);
|
|
font-family: var(--font-sans);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
Database Table View (Notion-style)
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
/* Base = viewport du contenu ; les vues tabulaires larges (bases de
|
|
données) prennent la LARGEUR DU DOCUMENT (les colonnes dictent le scroll
|
|
horizontal), alignées à gauche au ras de la marge. */
|
|
.database-table-container {
|
|
width: 100%;
|
|
margin: 0;
|
|
/* var(--space-lg) = padding de .topbar : le bord gauche du tableau
|
|
s'aligne sur le titre du fil d'ariane, au ras de la marge. */
|
|
padding: 0 var(--space-lg);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* ── View Bar ── */
|
|
.db-view-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 4px 0 8px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.db-view-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.db-view-tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
.db-view-tab.active {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
.db-view-tab:hover { background: var(--bg-hover); }
|
|
|
|
.db-view-add {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px; height: 28px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-family: var(--font-sans);
|
|
}
|
|
.db-view-add:hover { background: var(--bg-hover); }
|
|
|
|
.db-view-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.db-btn-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px; height: 28px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
cursor: pointer;
|
|
}
|
|
.db-btn-icon:hover { background: var(--bg-hover); }
|
|
|
|
.db-btn-new {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 5px 12px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: var(--accent);
|
|
color: white;
|
|
font-size: 13px;
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
.db-btn-new:hover { opacity: 0.9; }
|
|
.db-new-icon { display: flex; align-items: center; }
|
|
|
|
/* ── Table ── */
|
|
.db-table-wrapper {
|
|
overflow-x: auto;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.db-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: auto;
|
|
}
|
|
|
|
.db-header-row {
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.db-th {
|
|
padding: 0;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
}
|
|
|
|
.db-th-handle {
|
|
width: 32px;
|
|
min-width: 32px;
|
|
}
|
|
|
|
.db-th-property {
|
|
min-width: 200px;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
.db-th-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
font-weight: 500;
|
|
font-family: var(--font-sans);
|
|
}
|
|
|
|
.db-prop-type-icon {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.db-prop-name {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.db-th-add-prop {
|
|
min-width: 140px;
|
|
}
|
|
|
|
.db-add-prop-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 5px 8px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: color 0.15s;
|
|
}
|
|
.db-add-prop-btn:hover { color: var(--text-primary); }
|
|
|
|
/* ── Rows ── */
|
|
.db-row {
|
|
border-bottom: 1px solid var(--border-light, #EDEDEC);
|
|
transition: background 0.1s;
|
|
}
|
|
.db-row:hover { background: var(--bg-hover); }
|
|
.db-row-new { border-bottom: 1px solid var(--border); }
|
|
.db-row-empty { height: 32px; }
|
|
|
|
.db-td {
|
|
padding: 3px 8px;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
height: 32px;
|
|
}
|
|
|
|
.db-td-handle {
|
|
width: 32px;
|
|
min-width: 32px;
|
|
text-align: center;
|
|
padding: 3px 0;
|
|
}
|
|
|
|
.db-drag-handle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: grab;
|
|
color: var(--text-dim);
|
|
opacity: 0.6;
|
|
transition: opacity 0.1s;
|
|
}
|
|
.db-drag-handle:hover { opacity: 1; }
|
|
|
|
.db-plus-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.db-new-page-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
font-size: 14px;
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
.db-new-page-btn:hover { color: var(--text-primary); }
|
|
|
|
.db-td-cell {
|
|
min-width: 200px;
|
|
border-right: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.db-cell-content {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 22px;
|
|
padding: 0 2px;
|
|
border-radius: 3px;
|
|
}
|
|
.db-cell-content:hover { background: var(--bg-hover); }
|
|
|
|
.db-cell-editing .db-cell-value { display: none; }
|
|
|
|
.db-cell-value {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
font-family: var(--font-sans);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.db-cell-input {
|
|
width: 100%;
|
|
padding: 3px 6px;
|
|
border: 1px solid var(--accent, #2383E2);
|
|
border-radius: 3px;
|
|
font-size: 14px;
|
|
font-family: var(--font-sans);
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.db-td-open {
|
|
width: 40px;
|
|
min-width: 40px;
|
|
text-align: center;
|
|
padding: 3px 0;
|
|
}
|
|
|
|
.db-open-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px; height: 28px;
|
|
border-radius: 4px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
cursor: pointer;
|
|
}
|
|
.db-open-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
|
|
|
|
/* ── Dropdown ── */
|
|
.db-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
margin-top: 4px;
|
|
min-width: 200px;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
z-index: 500;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.db-dropdown-header {
|
|
padding: 6px 12px;
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
font-family: var(--font-sans);
|
|
}
|
|
|
|
.db-dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
}
|
|
.db-dropdown-item:hover { background: var(--bg-hover); }
|
|
|
|
/* ── Modal ── */
|
|
.db-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.3);
|
|
z-index: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.db-modal {
|
|
background: var(--bg-modal);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
|
|
width: 420px;
|
|
max-width: 90vw;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.db-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.db-modal-header h3 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-family: var(--font-sans);
|
|
color: var(--text-primary);
|
|
}
|
|
.db-modal-header button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px; height: 28px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
color: var(--text-dim);
|
|
}
|
|
.db-modal-header button:hover { background: var(--bg-hover); }
|
|
|
|
.db-modal-body { padding: 16px; }
|
|
|
|
.db-modal-field {
|
|
margin-bottom: 12px;
|
|
}
|
|
.db-modal-field label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
font-family: var(--font-sans);
|
|
}
|
|
.db-modal-field input,
|
|
.db-modal-field select {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-family: var(--font-sans);
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
}
|
|
.db-modal-field input:focus,
|
|
.db-modal-field select:focus {
|
|
border-color: var(--accent, #2383E2);
|
|
}
|
|
|
|
.db-modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.db-btn-cancel {
|
|
padding: 6px 14px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-primary);
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
}
|
|
.db-btn-cancel:hover { background: var(--bg-hover); }
|
|
|
|
.db-btn-create {
|
|
padding: 6px 14px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: var(--accent, #2383E2);
|
|
color: white;
|
|
font-size: 13px;
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
}
|
|
.db-btn-create:hover { opacity: 0.9; }
|
|
|
|
/* ── Column Resize Handle ── */
|
|
.db-col-resize-handle {
|
|
position: absolute;
|
|
top: 0; right: 0;
|
|
width: 5px; height: 100%;
|
|
cursor: col-resize;
|
|
z-index: 2;
|
|
transition: background 0.1s;
|
|
}
|
|
.db-col-resize-handle:hover,
|
|
.db-col-resize-handle:active {
|
|
background: var(--accent, #2383E2);
|
|
}
|
|
|
|
/* ── Column Header Context Menu ── */
|
|
.db-col-menu {
|
|
position: fixed;
|
|
min-width: 240px;
|
|
max-width: 320px;
|
|
background: var(--bg-modal);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.14);
|
|
z-index: 800;
|
|
padding: 4px 0;
|
|
font-family: var(--font-sans);
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.db-col-menu-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
font-weight: 600;
|
|
}
|
|
.db-col-menu-icon { display: flex; align-items: center; color: var(--text-dim); }
|
|
.db-col-menu-name { flex: 1; }
|
|
.db-col-menu-info { font-size: 11px; color: var(--text-dim); }
|
|
|
|
.db-col-menu-sep {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.db-col-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
position: relative;
|
|
}
|
|
.db-col-menu-item:hover { background: var(--bg-hover); }
|
|
.db-col-menu-item.has-sub { justify-content: space-between; }
|
|
|
|
.db-col-menu-toggle { font-size: 11px; font-weight: 600; }
|
|
.db-col-menu-toggle.on { color: var(--accent, #2383E2); }
|
|
.db-col-menu-toggle.off { color: var(--text-dim); }
|
|
|
|
.db-col-menu-hint { font-size: 11px; color: var(--text-dim); margin-left: auto; margin-right: 4px; }
|
|
.db-col-menu-arrow { font-size: 14px; color: var(--text-dim); }
|
|
.db-col-menu-tag {
|
|
font-size: 10px;
|
|
background: var(--accent, #2383E2);
|
|
color: white;
|
|
padding: 1px 6px;
|
|
border-radius: 8px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.db-col-menu-sub {
|
|
border-left: 1px solid var(--border);
|
|
margin-left: 0;
|
|
}
|
|
.db-col-menu-sub .sub-item { padding-left: 28px; }
|
|
.db-col-menu-sub .sub-item.checked { font-weight: 600; }
|
|
|
|
.db-col-menu-subnote {
|
|
padding: 4px 12px 4px 28px;
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* ── Responsive ── */
|
|
@media (max-width: 768px) {
|
|
.database-table-container { padding: 0 16px; }
|
|
.db-side-peek { width: 100vw; max-width: 100vw; }
|
|
.db-th-property { min-width: 120px; }
|
|
.db-td-cell { min-width: 120px; }
|
|
}
|
|
|
|
/* ── Database Side Peek Panel ── */
|
|
.db-side-peek {
|
|
position: fixed; top: 0; right: 0;
|
|
width: 560px; max-width: 90vw; height: 100vh;
|
|
background: var(--bg-modal);
|
|
border-left: 1px solid var(--border);
|
|
box-shadow: -8px 0 32px rgba(0,0,0,0.25);
|
|
z-index: 500;
|
|
display: flex; flex-direction: column;
|
|
transform: translateX(100%);
|
|
transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
|
|
}
|
|
.db-side-peek.open { transform: translateX(0); }
|
|
/* Poignée partagée des side peeks (bases) — les autres peeks portent la
|
|
même géométrie en style en ligne. */
|
|
.peek-resize-handle {
|
|
position: absolute; left: -4px; top: 0;
|
|
width: 8px; height: 100%; cursor: col-resize;
|
|
z-index: 501;
|
|
}
|
|
.peek-resize-handle:hover { background: var(--accent, #2383E2); }
|
|
.db-side-peek-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 12px 16px; border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.db-side-peek-close, .db-side-peek-full {
|
|
display: flex; align-items: center; justify-content: center;
|
|
width: 28px; height: 28px; border-radius: 6px;
|
|
border: none; background: transparent; cursor: pointer;
|
|
font-size: 18px; color: var(--text-dim);
|
|
}
|
|
.db-side-peek-close:hover, .db-side-peek-full:hover { background: var(--bg-hover); }
|
|
.db-side-peek-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
.db-side-peek-loading { text-align: center; padding: 40px; color: var(--text-dim); }
|
|
.db-side-peek iframe { flex: 1; min-height: 0; }
|
|
|
|
@media (max-width: 768px) {
|
|
.db-side-peek { width: 100vw; max-width: 100vw; }
|
|
}
|
|
|
|
/* ─── Simple Table block (v4.8.0) ─── */
|
|
.ftable-editor { flex: 1; min-width: 0; min-height: 0; padding: 4px 2px; }
|
|
.ftable-editor table.ftable-edit { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
|
|
.ftable-edit th.ftable-cell, .ftable-edit td.ftable-cell {
|
|
border: 1px solid var(--border); padding: 6px 10px; vertical-align: top;
|
|
font-size: 15px; line-height: 1.5; color: var(--text-primary);
|
|
outline: none; text-align: left; word-break: break-word; overflow-wrap: break-word;
|
|
}
|
|
.ftable-edit th.ftable-cell { background: var(--bg-secondary); font-weight: 600; position: relative; }
|
|
.ftable-edit .ftable-cell:hover { background: var(--bg-hover); }
|
|
.ftable-edit .ftable-cell:focus { background: var(--bg-hover); box-shadow: inset 0 0 0 1px var(--blue); }
|
|
.ftable-edit .ftable-resize {
|
|
position: absolute; top: 0; bottom: 0; right: -3px; width: 7px;
|
|
cursor: col-resize; z-index: 3;
|
|
}
|
|
.ftable-edit .ftable-resize::after {
|
|
content: ""; position: absolute; top: 0; bottom: 0; right: 3px; width: 1px;
|
|
background: transparent; transition: background .12s ease;
|
|
}
|
|
.ftable-editor:hover .ftable-resize::after { background: var(--border); }
|
|
.ftable-edit .ftable-resize:hover::after { background: var(--accent); }
|
|
.ftable-editor .ftable-flex { display: flex; align-items: stretch; gap: 4px; }
|
|
.ftable-editor .ftable-flex-main { flex: 1 1 auto; min-width: 0; }
|
|
.ftable-editor .ftable-addcolwrap { flex: 0 0 auto; display: flex; align-items: center; }
|
|
.ftable-editor .ftable-addcol {
|
|
width: 26px; min-height: 64px; border: none; background: transparent;
|
|
color: var(--text-dim); font-size: 18px; cursor: pointer; border-radius: 6px;
|
|
opacity: 0; transition: opacity .12s ease;
|
|
}
|
|
.ftable-editor:hover .ftable-addcol { opacity: 1; }
|
|
.ftable-editor .ftable-addcol:hover { background: var(--bg-hover); color: var(--accent); }
|
|
.ftable-editor .ftable-colbar { display: flex; margin: 0 0 3px; }
|
|
.ftable-editor .ftable-colcell { flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-end; }
|
|
.ftable-editor .ftable-colgrip {
|
|
width: 22px; height: 22px; margin: 0 2px 0 auto; display: flex; align-items: center;
|
|
justify-content: center; color: var(--text-dim); cursor: pointer; border-radius: 4px;
|
|
background: transparent; border: none; opacity: 0; transition: opacity .12s ease;
|
|
}
|
|
.ftable-editor .ftable-colcell:hover .ftable-colgrip,
|
|
.ftable-editor .ftable-colgrip:hover,
|
|
.ftable-editor .ftable-colgrip:focus-visible { opacity: 1; }
|
|
.ftable-editor .ftable-colgrip:hover { background: var(--bg-hover); color: var(--text-secondary); }
|
|
.ftable-editor .ftable-rowbar { display: flex; justify-content: center; margin-top: 2px; opacity: 0; transition: opacity .12s ease; }
|
|
.ftable-editor:hover .ftable-rowbar { opacity: 1; }
|
|
.ftable-editor .ftable-addrow {
|
|
border: none; background: transparent; color: var(--text-dim); cursor: pointer;
|
|
font-size: 13px; padding: 4px 12px; border-radius: 6px;
|
|
}
|
|
.ftable-editor .ftable-addrow:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
.ftable-menu {
|
|
min-width: 190px; background: var(--bg-modal); border: 1px solid var(--border);
|
|
border-radius: 8px; box-shadow: var(--shadow-modal); padding: 4px;
|
|
font-size: 13.5px; color: var(--text-primary);
|
|
}
|
|
.ftable-menu-item { padding: 6px 12px; border-radius: 5px; cursor: pointer; user-select: none; }
|
|
.ftable-menu-item:hover { background: var(--bg-hover); }
|
|
.ftable-menu-item.danger { color: var(--danger); }
|
|
.ftable-menu-item.danger:hover { background: rgba(229,72,77,.1); }
|
|
.ftable-menu-sep { height: 1px; background: var(--border); margin: 4px 8px; }
|
|
@media (max-width: 768px) {
|
|
.ftable-editor .ftable-colgrip { opacity: 1; }
|
|
.ftable-editor .ftable-rowbar { opacity: 1; }
|
|
.ftable-editor .ftable-addcol { opacity: 1; }
|
|
}
|
|
|
|
/* ── v5.2.0: Notion AI-style block editor ── */
|
|
@keyframes ai-pulse { 0%,100%{opacity:.45} 50%{opacity:1} }
|
|
.slash-menu { flex-direction: column; }
|
|
.slash-menu .sm-footer:hover { background: var(--bg-hover); }
|
|
.slash-item.selected { background: rgba(35,131,226,.16) !important; box-shadow: inset 2px 0 0 var(--accent,#2383E2) !important; }
|
|
.slash-item.selected .slash-item-name { color: var(--text); }
|
|
.slash-item-hint { font-size: 12px; color: var(--text-dim); opacity: .7; }
|
|
.sm-preview { font-family: inherit; }
|
|
.sm-preview h2 { margin: 0 0 6px; }
|
|
.sm-preview .sm-pv-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .4px; margin: 8px 0 2px; }
|
|
#_aiC { font-family: inherit; }
|
|
|
|
/* No focus "contour" on selected/editable blocks */
|
|
.block-content:focus,
|
|
.block-content:focus-visible,
|
|
[data-bid]:focus,
|
|
[data-bid]:focus-visible,
|
|
.page-title-input:focus { outline: none !important; box-shadow: none !important; }
|
|
|
|
/* Drag handle: keep hover-visible but drop the invisible default outside gutter */
|
|
.block-handle { opacity: .0; }
|
|
.block-wrapper:hover .block-handle,
|
|
.block-wrapper:focus-within .block-handle { opacity: 1; }
|
|
.aici-result p { margin: 0 0 8px; }
|
|
.aici-result h1,.aici-result h2,.aici-result h3,.aici-result h4 { margin: 10px 0 6px; font-weight: 700; }
|
|
.aici-result h1{font-size:1.4em}.aici-result h2{font-size:1.25em}.aici-result h3{font-size:1.1em}.aici-result h4{font-size:1em}
|
|
.aici-result ul,.aici-result ol { margin: 0 0 8px; padding-left: 22px; }
|
|
.aici-result li { margin: 2px 0; }
|
|
.aici-result code { background: rgba(127,127,127,.18); border-radius: 4px; padding: 1px 5px; font-size: .9em; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
|
|
.aici-result blockquote { border-left: 3px solid var(--accent,#2383E2); margin: 8px 0; padding: 2px 12px; color: var(--text-dim); }
|
|
.aici-result a { color: var(--accent,#2383E2); }
|
|
.aici-fb:disabled { opacity:.4; cursor:default; }
|
|
@media (max-width:768px){ #_aiC { width: 92vw; } }
|
|
|
|
/* v5.5.0 — Image lightbox */
|
|
.fd-lightbox { user-select: none; }
|
|
.fd-lightbox-img { animation: fdLbIn .12s ease-out; }
|
|
@keyframes fdLbIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
|
|
.fd-lightbox-nav {
|
|
position: absolute; top: 50%; transform: translateY(-50%);
|
|
width: 48px; height: 48px; border-radius: 50%;
|
|
border: none; background: rgba(255,255,255,.12); color: #fff;
|
|
font-size: 30px; line-height: 1; cursor: pointer;
|
|
display: flex; align-items: center; justify-content: center;
|
|
transition: background .15s ease;
|
|
}
|
|
.fd-lightbox-nav:hover { background: rgba(255,255,255,.25); }
|
|
.fd-lightbox-nav[data-nav="prev"] { left: 24px; }
|
|
.fd-lightbox-nav[data-nav="next"] { right: 24px; }
|
|
|
|
/* ═══════════ v5.11.0 Wiki-links & mentions ═══════════ */
|
|
.fd-wiki-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: var(--bg-hover, rgba(35, 131, 226, 0.12));
|
|
color: var(--accent, #2383e2);
|
|
border-radius: 4px;
|
|
padding: 0 4px;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
max-width: 320px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.fd-wiki-chip:hover { background: rgba(35, 131, 226, 0.2); }
|
|
.fd-wiki-date {
|
|
display: inline-block;
|
|
background: var(--bg-secondary, #f1f1ef);
|
|
border-radius: 4px;
|
|
padding: 0 4px;
|
|
font-weight: 500;
|
|
}
|
|
a.fd-wiki-link { color: var(--accent, #2383e2); text-decoration: none; border-bottom: 1px solid rgba(35, 131, 226, 0.35); }
|
|
a.fd-wiki-link:hover { border-bottom-color: var(--accent, #2383e2); }
|
|
.mention-group-label {
|
|
padding: 6px 10px 2px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-dim, #999);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
/* ═══════════ v5.12.0 Page lock + layout options ═══════════ */
|
|
.fd-lock-banner {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 24px;
|
|
background: rgba(217, 115, 13, 0.12);
|
|
border-bottom: 1px solid rgba(217, 115, 13, 0.35);
|
|
color: #d9730d;
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
}
|
|
body.page-locked .block-handle,
|
|
body.page-locked .block-add-btn,
|
|
body.page-locked .format-toolbar,
|
|
body.page-locked .get-started-toolbar { display: none !important; }
|
|
.page-editor-wrapper.full-width .page-cover-area,
|
|
.page-editor-wrapper.full-width .page-title-block,
|
|
.page-editor-wrapper.full-width .blocks-container { max-width: min(1200px, 100%); }
|
|
.page-editor-wrapper.small-text .block-content,
|
|
.page-editor-wrapper.small-text .page-title-input { font-size: 13.5px; }
|
|
.page-editor-wrapper.small-text .blocks-container { line-height: 1.5; }
|
|
|
|
/* Template picker modal (v5.12.0) */
|
|
.tpl-picker-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1500;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding: 12vh 16px 16px;
|
|
}
|
|
.tpl-picker-modal {
|
|
width: 560px;
|
|
max-width: 94vw;
|
|
max-height: 68vh;
|
|
overflow-y: auto;
|
|
background: var(--bg-modal, #fff);
|
|
border: 1px solid var(--border, #e3e3e0);
|
|
border-radius: 14px;
|
|
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
|
|
padding: 18px;
|
|
}
|
|
.tpl-picker-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
|
|
.tpl-picker-sub { font-size: 12px; color: var(--text-dim, #999); margin-bottom: 14px; }
|
|
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
|
|
.tpl-card {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
padding: 12px;
|
|
border: 1px solid var(--border, #e3e3e0);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
background: var(--bg-secondary, #fafafa);
|
|
}
|
|
.tpl-card:hover { border-color: var(--accent, #2383e2); background: var(--bg-hover, #f0f7ff); }
|
|
.tpl-card-icon { font-size: 20px; line-height: 1.2; }
|
|
.tpl-card-name { font-size: 13.5px; font-weight: 600; }
|
|
.tpl-card-desc { font-size: 12px; color: var(--text-dim, #999); margin-top: 2px; }
|