- Add sort_order column to pages table for drag & drop reordering
- Rewrite _sidebar_data with recursive _build_page_tree for nested hierarchy
- Add tree toggle buttons (▶ collapsed / ▼ expanded) on parent items
- Alpine.js expandedNodes state with toggleTreeNode() for expand/collapse
- Jinja2 recursive macro render_tree_item for proper nesting + indentation
- SortableJS integration on .sidebar-items for drag & drop repositioning
- New PUT /board/api/pages/{id}/move API for persisting moves
- Auto-set sort_order on page creation (max+1 for same parent)
- CSS: .tree-toggle, .tree-toggle-placeholder, grab cursor on page-icon
- 28/28 tests pass, all endpoints healthy
1503 lines
31 KiB
CSS
1503 lines
31 KiB
CSS
/* ═══════════════════════════════════════════════════════════
|
|
FlowDeck Notion UI — Design System
|
|
Référence: Notion Dark Mode (analysé 2026-07-08)
|
|
Couleurs: #191919 fond, #222 sidebar, #333 actif, #FFF texte
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
/* ===== Couleurs Notion Dark Mode ===== */
|
|
--bg-primary: #191919;
|
|
--bg-secondary: #1f1f1f;
|
|
--bg-sidebar: #222222;
|
|
--bg-tertiary: #333333;
|
|
--bg-hover: #2a2a2a;
|
|
--bg-active: #2F2E2E;
|
|
--bg-modal: #252525;
|
|
|
|
--text-primary: #FFFFFF;
|
|
--text-secondary: #A0A0A0;
|
|
--text-dim: #6B6B6B;
|
|
|
|
--border: #333333;
|
|
--border-light: #3a3a3a;
|
|
|
|
/* ===== Couleurs d'accent Notion ===== */
|
|
--blue: #3366CC;
|
|
--blue-bg: #1a2744;
|
|
--green: #00CC66;
|
|
--green-bg: #1a332a;
|
|
--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;
|
|
|
|
/* ===== Dimensions ===== */
|
|
--sidebar-width: 240px;
|
|
--sidebar-collapsed: 0px;
|
|
--topbar-height: 44px;
|
|
--radius-sm: 4px;
|
|
--radius-md: 6px;
|
|
--radius-lg: 8px;
|
|
|
|
/* ===== Espacements ===== */
|
|
--space-xs: 4px;
|
|
--space-sm: 8px;
|
|
--space-md: 12px;
|
|
--space-lg: 16px;
|
|
--space-xl: 24px;
|
|
|
|
/* ===== Transitions ===== */
|
|
--transition: 0.15s ease;
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--bg-primary: #FFFFFF;
|
|
--bg-secondary: #FBFBFA;
|
|
--bg-sidebar: #F7F6F3;
|
|
--bg-tertiary: #EDEDEC;
|
|
--bg-hover: #EFEFEE;
|
|
--bg-active: #E8E7E4;
|
|
--bg-modal: #FFFFFF;
|
|
--text-primary: #1A1A1A;
|
|
--text-secondary: #6B6B6B;
|
|
--text-dim: #9B9B9B;
|
|
--border: #E0E0E0;
|
|
--border-light: #EDEDEC;
|
|
--blue-bg: #E8F0FE;
|
|
--green-bg: #E6F4EA;
|
|
}
|
|
|
|
/* ===== 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 {
|
|
width: var(--sidebar-width);
|
|
min-width: var(--sidebar-width);
|
|
height: 100vh;
|
|
background: var(--bg-sidebar);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
flex-shrink: 0;
|
|
user-select: none;
|
|
padding-bottom: var(--space-sm);
|
|
}
|
|
|
|
.sidebar.collapsed {
|
|
width: 0;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Workspace header */
|
|
.sidebar-workspace {
|
|
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);
|
|
}
|
|
|
|
.sidebar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.sidebar-action-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.sidebar-action-btn:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* 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 {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: 6px 8px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
transition: background var(--transition);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sidebar-nav-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.sidebar-nav-item.active {
|
|
background: var(--bg-active);
|
|
}
|
|
|
|
.sidebar-nav-item .nav-icon {
|
|
font-size: 16px;
|
|
width: 20px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 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);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.sidebar-section-header:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.sidebar-section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-dim);
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.sidebar-section-title .chevron {
|
|
font-size: 10px;
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.sidebar-section-title .chevron.open {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.sidebar-section-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
opacity: 0;
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.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-secondary);
|
|
font-size: 14px;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.section-action-btn:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* Sidebar items (pages) */
|
|
.sidebar-items {
|
|
list-style: none;
|
|
}
|
|
|
|
.sidebar-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: 3px 6px;
|
|
padding-left: 8px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
min-height: 28px;
|
|
}
|
|
|
|
.sidebar-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.sidebar-item:active .page-icon {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.sidebar-item .page-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.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-invite {
|
|
background: var(--bg-hover);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-sm) var(--space-md);
|
|
margin-bottom: var(--space-sm);
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar-invite-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.sidebar-invite-desc {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar-invite-close {
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 6px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.sidebar-new-chat {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px var(--space-md);
|
|
background: var(--bg-hover);
|
|
border-radius: var(--radius-md);
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
width: 100%;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.sidebar-new-chat:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.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);
|
|
min-width: 200px;
|
|
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;
|
|
}
|
|
|
|
/* 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-center {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
}
|
|
|
|
.topbar-page-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.topbar-page-title .page-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.topbar-page-status {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.topbar-breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.topbar-breadcrumb a:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Content area */
|
|
.content-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Page header */
|
|
.page-header {
|
|
padding: var(--space-xl) var(--space-xl) var(--space-md);
|
|
}
|
|
|
|
.page-cover {
|
|
width: 100%;
|
|
height: 160px;
|
|
background: linear-gradient(135deg, #2a2a2a, #333333);
|
|
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;
|
|
}
|
|
|
|
/* Card colors by status */
|
|
.card-status-todo {
|
|
background: var(--bg-secondary);
|
|
border-left: 3px solid var(--gray);
|
|
}
|
|
|
|
.card-status-progress {
|
|
background: var(--blue-bg);
|
|
border-left: 3px solid var(--blue);
|
|
}
|
|
|
|
.card-status-complete {
|
|
background: var(--green-bg);
|
|
border-left: 3px solid var(--green);
|
|
}
|
|
|
|
/* 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);
|
|
}
|
|
|
|
/* Panel dropdown */
|
|
.dropdown-panel {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
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);
|
|
min-width: 220px;
|
|
z-index: 100;
|
|
display: none;
|
|
}
|
|
|
|
.dropdown-panel.visible {
|
|
display: block;
|
|
}
|
|
|
|
.dropdown-search {
|
|
padding: var(--space-sm);
|
|
}
|
|
|
|
.dropdown-search input {
|
|
width: 100%;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 6px var(--space-sm);
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
}
|
|
|
|
.dropdown-search input:focus {
|
|
border-color: var(--blue);
|
|
}
|
|
|
|
.dropdown-option-list {
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.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%;
|
|
}
|
|
|
|
.dropdown-footer {
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.dropdown-footer button {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropdown-footer button:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Sort panel */
|
|
.sort-panel {
|
|
position: relative;
|
|
}
|
|
|
|
.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.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 500;
|
|
}
|
|
|
|
.modal-container {
|
|
background: var(--bg-modal);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: 0 16px 48px rgba(0,0,0,0.5);
|
|
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; }
|
|
.flex-col { flex-direction: column; }
|
|
.items-center { align-items: center; }
|
|
.gap-xs { gap: var(--space-xs); }
|
|
.gap-sm { gap: var(--space-sm); }
|
|
.gap-md { gap: var(--space-md); }
|
|
.text-dim { color: var(--text-secondary); }
|
|
.text-xs { font-size: 12px; }
|
|
.text-sm { font-size: 13px; }
|
|
.font-semibold { font-weight: 600; }
|
|
.ml-auto { margin-left: auto; }
|
|
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* 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: 0 8px 24px rgba(0,0,0,0.4) !important; }
|