diff --git a/static/css/style.css b/static/css/style.css index 59f9ca9..0795c7c 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,8 +1,13 @@ /* ═══════════════════════════════════════════════ - Kanbante — design system 0.4 - Thème agent (draco-barre, Console v7.2) : charbon neutre, - surfaces grises chaudes, accent rose Spark — plus de - dominante bleu/mauve (issue #49). + Kanbante — design system + Charbon neutre, surfaces grises chaudes, accent vert + Kanbante (#0d9488). Échelle fermée (#57) : + - typographie : xs 0.78 / sm 0.85 / base 1 / lg 1.18 / xl 1.55rem + - rayons : sm 10 / md 12 / base 14 / full 999px + - ombres : sm / base / lg ; espacements : 4/8/12/16/24/32px + - police : pile système (Inter déclarée mais jamais chargée + avant la 0.42.0 — #61 : on assume la pile système, pas de + CDN tiers pour une app auto-hébergée). ═══════════════════════════════════════════════ */ :root { @@ -19,6 +24,21 @@ --text-3: #8b9089; --accent: #0d9488; --accent-2: #14b8a6; + --accent-text: #14b8a6; + --radius-md: 12px; + --radius-full: 999px; + --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5); + --font-xs: 0.78rem; + --font-sm: 0.85rem; + --font-base: 1rem; + --font-lg: 1.18rem; + --font-xl: 1.55rem; + --space-1: 4px; + --space-2: 8px; + --space-3: 12px; + --space-4: 16px; + --space-6: 24px; + --space-8: 32px; --green: #10b981; --yellow: #f59e0b; --red: #ef4444; @@ -34,7 +54,7 @@ html { scroll-behavior: smooth; } body { - font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; background: radial-gradient(900px 480px at 12% -8%, var(--bg-glow-1), transparent 60%), radial-gradient(820px 460px at 88% -10%, var(--bg-glow-2), transparent 60%), @@ -50,7 +70,7 @@ body { ::selection { background: rgba(13, 148, 136, 0.45); } -a { color: var(--accent-2); text-decoration: none; } +a { color: var(--accent-text); text-decoration: none; } a:hover { text-decoration: underline; } :focus-visible { @@ -134,7 +154,7 @@ header h1 { font-size: 1.2rem; font-weight: 600; } .nav-pills, nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .nav-pill { padding: 7px 14px; - border-radius: 999px; + border-radius: var(--radius-full); font-size: 0.86rem; font-weight: 500; color: var(--text-2); @@ -145,13 +165,13 @@ header h1 { font-size: 1.2rem; font-weight: 600; } .nav-pill:hover { color: var(--text); background: var(--surface-2); text-decoration: none; } .nav-pill.active { color: #fff; - background: linear-gradient(135deg, rgba(13,148,136,.85), rgba(20,184,166,.85)); + background: var(--accent); border-color: rgba(255,255,255,0.12); } .badge { padding: 4px 12px; - border-radius: 999px; + border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 18%, transparent); @@ -161,7 +181,7 @@ header h1 { font-size: 1.2rem; font-weight: 600; } .btn-sm { padding: 7px 14px; - border-radius: 999px; + border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; background: var(--surface-2); @@ -171,6 +191,26 @@ header h1 { font-size: 1.2rem; font-weight: 600; } transition: background 0.15s, border-color 0.15s, transform 0.1s; } .btn-sm:hover { background: var(--surface-3); border-color: var(--border-strong); text-decoration: none; } +/* Système de boutons (#58) : primary uni (pas de dégradé), + secondary (= .btn-sm), danger, icon 36px. États unifiés. */ +.btn-primary, .btn-save { + background: var(--accent); color: #fff; border: none; + border-radius: var(--radius-sm); cursor: pointer; + transition: filter 0.15s, transform 0.1s; +} +.btn-primary:hover, .btn-save:hover { filter: brightness(1.12); } +.btn-primary:active, .btn-save:active { transform: scale(0.98); } +.btn-primary:disabled, .btn-save:disabled { opacity: 0.45; cursor: not-allowed; } +.btn-secondary { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); } +.btn-danger { border-color: #e5534b; color: #e5534b; background: transparent; } +.btn-danger:hover { background: rgba(229, 83, 75, 0.12); border-color: #e5534b; color: #e5534b; } +.btn-icon { + width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; + background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); + color: var(--text-2); cursor: pointer; flex-shrink: 0; +} +.btn-icon:hover { background: var(--surface-2); color: var(--text); } +.btn-icon svg { width: 20px; height: 20px; display: block; } .btn-sm:active { transform: scale(0.97); } /* ── En-tête de page Projets (0.20.0) ───────── @@ -310,13 +350,13 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .mini-progress { display: flex; gap: 4px; } .chip { padding: 2px 9px; - border-radius: 999px; + border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; } .progress { height: 6px; - border-radius: 999px; + border-radius: var(--radius-full); background: var(--surface-3); overflow: hidden; margin-bottom: 12px; @@ -324,13 +364,13 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .progress > span { display: block; height: 100%; - border-radius: 999px; + border-radius: var(--radius-full); background: linear-gradient(90deg, var(--green), #34d399); transition: width 0.4s ease; } .progress-lg { height: 10px; flex: 1; margin-bottom: 0; } -.empty-state { +.empty-state, .focus-empty { grid-column: 1 / -1; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); @@ -352,7 +392,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .milestone-label { font-size: 0.82rem; color: var(--text-2); font-weight: 600; margin-right: 2px; } .milestone-chip { padding: 6px 13px; - border-radius: 999px; + border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); @@ -363,7 +403,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .milestone-chip:hover { color: var(--text); text-decoration: none; border-color: var(--border-strong); } .milestone-chip.active { color: #fff; - background: linear-gradient(135deg, rgba(13,148,136,.9), rgba(20,184,166,.9)); + background: var(--accent); border-color: transparent; } .milestone-banner { @@ -392,7 +432,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .board-toolbar input[type="text"], .board-toolbar select { padding: 10px 15px; - border-radius: 999px; + border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); color: var(--text); @@ -405,7 +445,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .board-toolbar select:focus { border-color: var(--accent); box-shadow: var(--ring); } .board-toolbar form { display: flex; gap: 8px; flex: 1; min-width: 260px; } .board-toolbar form input { flex: 1; } -.btn-inline { margin-top: 0; padding: 10px 20px; border-radius: 999px; } +.btn-inline { margin-top: 0; padding: 10px 20px; border-radius: var(--radius-full); } /* ── Kanban board ───────────────────────────── */ .board-container { @@ -445,7 +485,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .column-count { background: var(--surface-3); padding: 2px 10px; - border-radius: 999px; + border-radius: var(--radius-full); font-size: 0.74rem; font-weight: 600; color: var(--text-2); @@ -503,7 +543,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; } .label-tag { padding: 1px 8px; - border-radius: 999px; + border-radius: var(--radius-full); font-size: 0.64rem; font-weight: 700; } @@ -521,7 +561,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } background: color-mix(in srgb, var(--yellow) 18%, transparent); color: #fcd34d; padding: 1px 8px; - border-radius: 999px; + border-radius: var(--radius-full); font-weight: 700; } .age-badge.stale { @@ -558,7 +598,7 @@ a.kpi:hover { background: var(--surface-2); text-decoration: none; } .btn-save { margin-top: 10px; padding: 10px 18px; - background: linear-gradient(135deg, var(--accent), var(--accent-2)); + background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); @@ -609,9 +649,9 @@ footer { transform: translateX(-50%); z-index: 1000; padding: 11px 20px; - border-radius: 999px; + border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.18); - background: linear-gradient(135deg, var(--accent), var(--accent-2)); + background: var(--accent); color: #fff; font-size: 0.87rem; font-weight: 600; @@ -749,7 +789,7 @@ footer { .search-hero input { flex: 1; padding: 13px 18px; - border-radius: 999px; + border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); color: var(--text); @@ -775,7 +815,7 @@ footer { .issue-main:hover { color: #14b8a6; text-decoration: none; } .col-chip { padding: 2px 10px; - border-radius: 999px; + border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; } @@ -926,8 +966,8 @@ footer { /* ── Wallboard (0.6.0) : affichage plein écran, lisible à 3 mètres ── */ .wall-body { - background: #101211; - color: #eceee9; + background: var(--bg, #101211); + color: var(--text, #eceee9); margin: 0; font-family: inherit; height: 100vh; @@ -987,7 +1027,7 @@ footer { } .wall-card-col { border: 1.5px solid var(--col); color: var(--col); - border-radius: 999px; padding: 4px 14px; + border-radius: var(--radius-full); padding: 4px 14px; font-size: 0.62em; font-weight: 700; white-space: nowrap; } .wall-card-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @@ -1083,8 +1123,8 @@ footer { .triage-main { max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; } .triage-head h1 { margin: 0 0 12px; font-size: 1.4rem; } .triage-progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; } -.triage-progress { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-3, #20221f); overflow: hidden; } -.triage-progress-bar { height: 100%; width: 0; background: var(--good, #3fb950); border-radius: 99px; transition: width 0.25s ease; } +.triage-progress { flex: 1; height: 10px; border-radius: var(--radius-full); background: var(--surface-3, #20221f); overflow: hidden; } +.triage-progress-bar { height: 100%; width: 0; background: var(--good, #3fb950); border-radius: var(--radius-full); transition: width 0.25s ease; } .triage-progress-label { color: var(--text-3); font-size: 0.85rem; white-space: nowrap; } .triage-card { background: var(--surface-1, #1a1c1a); @@ -1118,7 +1158,7 @@ footer { .triage-labels-list { display: flex; gap: 8px; flex-wrap: wrap; } .triage-label-chip { background: var(--surface-3, #20221f); color: var(--text-1); - border: 1px solid var(--border, #2e302c); border-radius: 99px; + border: 1px solid var(--border, #2e302c); border-radius: var(--radius-full); padding: 5px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; } .triage-label-chip.on { border-color: var(--good, #3fb950); color: var(--good, #3fb950); } @@ -1155,18 +1195,28 @@ footer { .wall-paused { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: rgba(19, 26, 41, 0.85); color: #f0b429; - border: 1px solid rgba(240, 180, 41, 0.55); border-radius: 99px; + border: 1px solid rgba(240, 180, 41, 0.55); border-radius: var(--radius-full); padding: 6px 16px; font-size: 0.95rem; z-index: 51; } /* ── Focus du jour (0.12.0, #5) ── */ .pin-btn { background: transparent; border: none; cursor: pointer; - font-size: 0.82rem; padding: 0 2px; margin-left: auto; opacity: 0.45; + padding: 0 2px; margin-left: auto; opacity: 0.45; + display: inline-flex; align-items: center; } .pin-btn:hover { opacity: 1; transform: scale(1.15); } +.pin-btn svg { width: 18px; height: 18px; display: block; } +.kanban-card .card-title { + display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; + overflow: hidden; line-height: 1.35; +} +.kanban-card .card-code { opacity: 0.8; } +.label-tag, .chip, .col-chip { color: var(--text); } .today-main { max-width: 880px; margin: 0 auto; padding: 28px 16px 44px; } -.today-title { font-size: 1.9rem; margin: 0 0 4px; text-transform: capitalize; } +.today-main .page-head { padding: 0 0 8px; } +.today-title { font-size: var(--font-xl); margin: 0 0 4px; text-transform: capitalize; } +.focus-main .page-head { padding: 22px 24px 0; } .today-sub { color: var(--text-3); margin: 0 0 22px; } .today-picks { display: grid; gap: 14px; margin-bottom: 20px; } .today-card { @@ -1198,7 +1248,7 @@ footer { .sprint-render a { color: var(--accent, #0d9488); } /* ── Code lié (0.13.0, #1) ── */ -.card-code { font-size: 0.78rem; color: var(--accent, #0d9488); margin-top: 5px; } +.card-code { font-size: 0.78rem; color: var(--accent-text, #14b8a6); margin-top: 5px; } .detail-code { margin: 10px 0; } .code-line { padding: 3px 0; font-size: 0.9rem; color: var(--text-2, #a6aba2); } .code-line a { color: var(--accent, #0d9488); text-decoration: none; } @@ -1412,14 +1462,14 @@ body.sidebar-collapsed .side-foot { justify-content: center; } .proj-sub { color: var(--text-2); margin: 6px 0 0; } .health-chip { display: inline-flex; align-items: center; gap: 8px; - border: 1px solid var(--border); border-radius: 999px; + border: 1px solid var(--border); border-radius: var(--radius-full); padding: 7px 14px; color: var(--text); background: var(--surface-1); font-size: 0.88rem; font-weight: 600; } .health-chip:hover { text-decoration: none; border-color: var(--accent, #0d9488); } .proj-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; } .proj-actions .nav-pill { border: 1px solid var(--border); } -.proj-primary { background: linear-gradient(135deg, rgba(13,148,136,.85), rgba(20,184,166,.85)); color: #fff !important; } +.proj-primary { background: var(--accent); color: #fff !important; } .proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; } .proj-panel { background: var(--surface-1); border: 1px solid var(--border); @@ -1464,7 +1514,7 @@ body.sidebar-collapsed .side-foot { justify-content: center; } .seg-count { font-size: 0.74rem; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, 0.08); color: var(--text-2); - border-radius: 999px; padding: 1px 7px; + border-radius: var(--radius-full); padding: 1px 7px; } .seg-tabs button.active .seg-count { background: rgba(13, 148, 136, 0.22); color: var(--text); } .dash-toolbar .toolbar-search { padding: 0; flex: 1 1 200px; } @@ -1582,7 +1632,7 @@ body.sidebar-collapsed .side-foot { justify-content: center; } .pilot-progress { min-width: 90px; } .forecast-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; } .forecast-summary .chip { - font-size: 12.5px; padding: 3px 10px; border-radius: 999px; + font-size: 12.5px; padding: 3px 10px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .07); border: 1px solid var(--border, #2e302c); } .forecast-summary .chip-late { background: rgba(248, 81, 73, .15); } @@ -1591,7 +1641,7 @@ body.sidebar-collapsed .side-foot { justify-content: center; } .forecast-filter input { width: 100%; } .forecast-proj-name { font-weight: 600; min-width: 180px; } .verdict { - font-size: 12.5px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; + font-size: 12.5px; padding: 2px 9px; border-radius: var(--radius-full); white-space: nowrap; background: rgba(255, 255, 255, .06); } .verdict-late { background: rgba(248, 81, 73, .18); } @@ -1732,10 +1782,10 @@ body.sidebar-collapsed .ws-switch { display: none; } .btn-mini:hover { border-color: var(--accent, #0d9488); } .btn-mini:disabled { opacity: 0.45; cursor: not-allowed; } .btn-danger:hover { border-color: #e5534b; color: #e5534b; } -.chip-ok { display: inline-block; padding: 4px 10px; border-radius: 999px; +.chip-ok { display: inline-block; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.5); } .admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } -.conn-badge { font-size: 0.78em; padding: 1px 7px; border-radius: 999px; +.conn-badge { font-size: 0.78em; padding: 1px 7px; border-radius: var(--radius-full); border: 1px solid var(--border, #2e302c); white-space: nowrap; } .seg-link { align-self: center; margin-left: 8px; font-size: 0.85em; text-decoration: none; } @@ -1776,12 +1826,12 @@ body.sidebar-collapsed .ws-switch { display: none; } .my-filters-row + .my-filters-row { margin-top: 10px; } .my-search-wrap { position: relative; flex: 1 1 280px; } .my-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.65; pointer-events: none; } -.my-search-wrap input[type="search"] { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px 9px 38px; color: inherit; font-size: 0.92rem; } +.my-search-wrap input[type="search"] { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 9px 14px 9px 38px; color: inherit; font-size: 0.92rem; } .my-search-wrap input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25); } .my-filters select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; color: inherit; font-size: 0.9rem; } .my-filters select:focus { outline: none; border-color: var(--accent); } .my-col-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; } -.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); color: inherit; border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; } +.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); color: inherit; border-radius: var(--radius-full); padding: 5px 12px; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; } .filter-chip:hover { border-color: var(--border-strong); } .filter-chip.on { background: rgba(13, 148, 136, 0.18); border-color: var(--accent); font-weight: 600; } .filter-chip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } @@ -1815,7 +1865,7 @@ html[data-theme="light"] { --bg: #f2f2f0; --surface: #ffffff; --surface-2: #e9eae6; --surface-3: #f6f6f3; --border: #dedfd9; --border-strong: #c9cbc2; --text: #1b1d1a; --text-2: #5c615a; --text-3: #787d75; - --accent: #0d9488; --accent-2: #0f766e; + --accent: #0d9488; --accent-2: #0f766e; --accent-text: #0f766e; --shadow: 0 8px 28px rgba(0, 0, 0, 0.12); --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08); color-scheme: light; @@ -1838,3 +1888,25 @@ html[data-theme="light"] .draco-bar { --bg: #f2f2f0; --surface: #ffffff; --surface-2: #e9eae6; --surface-3: #f6f6f3; --ink: #1b1d1a; --ink-2: #5c615a; --ink-3: #787d75; --line: #dedfd9; } + +/* Squelette de chargement (#65) : tuiles et colonnes, sans JS. */ +.skeleton { background: var(--surface-2); border-radius: var(--radius); animation: skeleton-pulse 1.4s ease-in-out infinite; } +@keyframes skeleton-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } } +@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } } + +/* Mobile (#64) : cibles tactiles 44px, tableau lisible. */ +@media (max-width: 640px) { + .btn-icon, .pin-btn, .side-collapse, .nav-burger { min-width: 44px; min-height: 44px; } + .page-head { padding: 16px 16px 0; } + .page-title h1 { font-size: 1.35rem; } + .kpi-strip { flex-wrap: wrap; } +} + +/* Formulaires (#66) : champ en erreur — bordure + message, jamais la couleur seule. */ +.field-error input, .field-error textarea, .field-error select { border-color: #e5534b !important; } +.field-error-msg { color: #e5534b; font-size: var(--font-xs); margin-top: 4px; } + +/* Thème clair (#68) : le wallboard et la connexion ne restent plus + sombres par défaut — ils suivent html[data-theme]. */ +html[data-theme="light"] .wall-body { background: #f2f2f0; color: #1b1d1a; } +html[data-theme="light"] .login-body { background: #f2f2f0; }