From 58390deb1ed03b317e548cba048ac157e034c779 Mon Sep 17 00:00:00 2001 From: Etienne Delvarre Date: Thu, 28 May 2026 16:15:19 +0200 Subject: [PATCH] Increase font sizes and card dimensions --- public/index.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/public/index.html b/public/index.html index 47e1475..fe4aa9e 100644 --- a/public/index.html +++ b/public/index.html @@ -62,27 +62,27 @@ /* Sidebar */ .sidebar { width: 220px; background: var(--bg-alt); border-right: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; display: flex; flex-direction: column; } - .sidebar-logo { padding: 0 22px 20px; font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--brown); } - .sidebar-project { padding: 10px 16px; margin: 0 14px 18px; background: var(--bg-card); border-radius: 10px; font-size: 14px; color: var(--brown); border: 1px solid var(--border); } - .nav-item { padding: 10px 18px; margin: 2px 14px; border-radius: 10px; font-size: 15px; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 10px; } + .sidebar-logo { padding: 0 22px 20px; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brown); } + .sidebar-project { padding: 12px 16px; margin: 0 14px 18px; background: var(--bg-card); border-radius: 10px; font-size: 16px; color: var(--brown); border: 1px solid var(--border); } + .nav-item { padding: 12px 18px; margin: 2px 14px; border-radius: 10px; font-size: 17px; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 10px; } .nav-item:hover { background: var(--border); color: var(--text); } .nav-item.active { background: var(--border); color: var(--text); font-weight: 500; } - .nav-icon { width: 30px; height: 30px; font-size: 15px; background: var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; } - .sidebar-footer { margin-top: auto; padding: 16px 22px; font-size: 11px; color: var(--text-hint); } + .nav-icon { width: 34px; height: 34px; font-size: 17px; background: var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; } + .sidebar-footer { margin-top: auto; padding: 16px 22px; font-size: 13px; color: var(--text-hint); } /* Main */ .main { flex: 1; display: flex; flex-direction: column; overflow: hidden; } /* Topbar */ - .topbar { height: 52px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; } - .topbar-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; } - .topbar-right { display: flex; align-items: center; gap: 12px; } - .btn-new { padding: 7px 16px; background: var(--accent); color: var(--bg); border: none; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: 'Lora', serif; cursor: pointer; } + .topbar { height: 58px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; flex-shrink: 0; } + .topbar-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; } + .topbar-right { display: flex; align-items: center; gap: 14px; } + .btn-new { padding: 9px 20px; background: var(--accent); color: var(--bg); border: none; border-radius: 8px; font-size: 15px; font-weight: 600; font-family: 'Lora', serif; cursor: pointer; } .btn-new:hover { background: var(--accent-hover); } .dark-toggle { width: 36px; height: 20px; background: var(--border); border-radius: 10px; position: relative; cursor: pointer; border: none; flex-shrink: 0; } .dark-toggle::after { content: '☀'; font-size: 12px; position: absolute; top: 2px; left: 3px; width: 16px; height: 16px; background: var(--bg-card); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: left 0.2s; } .dark .dark-toggle::after { content: '☾'; left: 17px; } - .avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; } + .avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; } .avatar.e { background: #5c3d2e; } .avatar.m { background: #b85c3a; } @@ -96,7 +96,7 @@ .acte-markers { display: flex; gap: 0; min-width: min-content; margin-bottom: 0; position: relative; } .acte-section { min-width: 200px; flex-shrink: 0; position: relative; } .acte-header { text-align: center; padding-bottom: 12px; } - .acte-label { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; } + .acte-label { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; } .acte-section[data-acte="Avant l'histoire"] .acte-label { color: var(--blue-grey); } .acte-section[data-acte="Acte 1"] .acte-label { color: var(--brown); } .acte-section[data-acte="Acte 2"] .acte-label { color: var(--terra); } @@ -111,17 +111,17 @@ .acte-section[data-acte="Acte 3"] .timeline-segment { background: var(--olive); } /* Cards row under each acte */ - .cards-row { display: flex; gap: 10px; padding: 14px 8px 8px; min-height: 120px; align-items: flex-start; } + .cards-row { display: flex; gap: 14px; padding: 16px 10px 10px; min-height: 140px; align-items: flex-start; } /* Cards */ - .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: grab; border-top: 3px solid var(--border); width: 170px; min-width: 170px; flex-shrink: 0; box-shadow: 0 1px 4px var(--shadow); transition: box-shadow 0.15s; } + .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; cursor: grab; border-top: 4px solid var(--border); width: 220px; min-width: 220px; flex-shrink: 0; box-shadow: 0 1px 4px var(--shadow); transition: box-shadow 0.15s; } .card:hover { box-shadow: 0 4px 14px var(--shadow-hover); } .card.sortable-ghost { opacity: 0.3; } .card.sortable-chosen { box-shadow: 0 6px 20px var(--shadow-hover); } - .card-title { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text); } - .card-summary { font-size: 11px; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } - .card-meta { display: flex; gap: 4px; flex-wrap: wrap; } - .card-badge { font-size: 9px; padding: 2px 6px; border-radius: 6px; font-weight: 500; } + .card-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); } + .card-summary { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } + .card-meta { display: flex; gap: 5px; flex-wrap: wrap; } + .card-badge { font-size: 11px; padding: 3px 8px; border-radius: 8px; font-weight: 500; } /* Type colors on card top border */ .card[data-type="Scène"] { border-top-color: var(--brown); } @@ -144,9 +144,9 @@ /* ── Waiting zone (bottom) ── */ .waiting-zone { border-top: 2px dashed var(--border); padding: 14px 24px; background: var(--bg-alt); flex-shrink: 0; } - .waiting-header { font-size: 11px; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; font-weight: 600; } - .waiting-cards { display: flex; gap: 10px; overflow-x: auto; min-height: 80px; padding: 4px 0; align-items: flex-start; } - .waiting-cards .card { border-style: dashed; border-top: 3px dashed var(--border); } + .waiting-header { font-size: 13px; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; font-weight: 600; } + .waiting-cards { display: flex; gap: 12px; overflow-x: auto; min-height: 100px; padding: 4px 0; align-items: flex-start; } + .waiting-cards .card { border-style: dashed; border-top: 4px dashed var(--border); } /* ── Modal ── */ .modal-overlay { display: none; position: fixed; inset: 0; background: var(--overlay); z-index: 100; align-items: center; justify-content: center; } @@ -337,7 +337,7 @@ function renderFrise() { section.className = 'acte-section'; section.dataset.acte = acte; // Width adapts to content - const minW = Math.max(200, acteRecords.length * 180 + 20); + const minW = Math.max(240, acteRecords.length * 234 + 20); section.style.width = minW + 'px'; section.innerHTML = `