Acte-based card colors + larger fonts and cards

- Card top border now reflects the Acte color (blue-grey, brown, terra, olive)
  instead of the Type
- Increased card width to 260px, title to 18px, summary to 15px, badges to 13px
- Bumped acte labels, topbar title, sidebar logo, button sizes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Etienne Delvarre
2026-05-28 16:30:47 +02:00
parent 58390deb1e
commit 717f20cc73
+17 -17
View File
@@ -62,7 +62,7 @@
/* Sidebar */ /* 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 { 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: 20px; font-weight: 700; color: var(--brown); } .sidebar-logo { padding: 0 22px 20px; font-family: 'Playfair Display', serif; font-size: 22px; 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); } .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 { 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:hover { background: var(--border); color: var(--text); }
@@ -75,9 +75,9 @@
/* Topbar */ /* Topbar */
.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 { 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-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; } .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 { padding: 10px 22px; background: var(--accent); color: var(--bg); border: none; border-radius: 8px; font-size: 16px; font-weight: 600; font-family: 'Lora', serif; cursor: pointer; }
.btn-new:hover { background: var(--accent-hover); } .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 { 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-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; }
@@ -96,7 +96,7 @@
.acte-markers { display: flex; gap: 0; min-width: min-content; margin-bottom: 0; position: relative; } .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-section { min-width: 200px; flex-shrink: 0; position: relative; }
.acte-header { text-align: center; padding-bottom: 12px; } .acte-header { text-align: center; padding-bottom: 12px; }
.acte-label { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; } .acte-label { font-family: 'Playfair Display', serif; font-size: 18px; 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="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 1"] .acte-label { color: var(--brown); }
.acte-section[data-acte="Acte 2"] .acte-label { color: var(--terra); } .acte-section[data-acte="Acte 2"] .acte-label { color: var(--terra); }
@@ -114,22 +114,21 @@
.cards-row { display: flex; gap: 14px; padding: 16px 10px 10px; min-height: 140px; align-items: flex-start; } .cards-row { display: flex; gap: 14px; padding: 16px 10px 10px; min-height: 140px; align-items: flex-start; }
/* Cards */ /* Cards */
.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 { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; cursor: grab; border-top: 5px solid var(--border); width: 260px; min-width: 260px; 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:hover { box-shadow: 0 4px 14px var(--shadow-hover); }
.card.sortable-ghost { opacity: 0.3; } .card.sortable-ghost { opacity: 0.3; }
.card.sortable-chosen { box-shadow: 0 6px 20px var(--shadow-hover); } .card.sortable-chosen { box-shadow: 0 6px 20px var(--shadow-hover); }
.card-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); } .card-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; margin-bottom: 8px; 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-summary { font-size: 15px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 5px; flex-wrap: wrap; } .card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.card-badge { font-size: 11px; padding: 3px 8px; border-radius: 8px; font-weight: 500; } .card-badge { font-size: 13px; padding: 4px 10px; border-radius: 8px; font-weight: 500; }
/* Type colors on card top border */ /* Acte colors on card top border */
.card[data-type="Scène"] { border-top-color: var(--brown); } .card[data-acte="Avant l'histoire"] { border-top-color: var(--blue-grey); }
.card[data-type="Événement"] { border-top-color: var(--terra); } .card[data-acte="Acte 1"] { border-top-color: var(--brown); }
.card[data-type="Personnage"] { border-top-color: #7a8a5a; } .card[data-acte="Acte 2"] { border-top-color: var(--terra); }
.card[data-type="Lieu"] { border-top-color: var(--blue-grey); } .card[data-acte="Acte 3"] { border-top-color: var(--olive); }
.card[data-type="Thème"] { border-top-color: #8a6a7a; } .card[data-acte="En attente"] { border-top-color: var(--border); }
.card[data-type="Élément d'univers"] { border-top-color: #c49060; }
/* Status badge colors */ /* Status badge colors */
.badge-germe { background: var(--border); color: var(--text-muted); } .badge-germe { background: var(--border); color: var(--text-muted); }
@@ -302,6 +301,7 @@ function makeCard(r) {
card.className = 'card'; card.className = 'card';
card.dataset.id = r.Id; card.dataset.id = r.Id;
card.dataset.type = r.Type || ''; card.dataset.type = r.Type || '';
card.dataset.acte = r.Acte || 'En attente';
card.onclick = () => openEdit(r.Id); card.onclick = () => openEdit(r.Id);
const persos = r.Personnage ? r.Personnage.split(',').map(p => const persos = r.Personnage ? r.Personnage.split(',').map(p =>
@@ -337,7 +337,7 @@ function renderFrise() {
section.className = 'acte-section'; section.className = 'acte-section';
section.dataset.acte = acte; section.dataset.acte = acte;
// Width adapts to content // Width adapts to content
const minW = Math.max(240, acteRecords.length * 234 + 20); const minW = Math.max(280, acteRecords.length * 274 + 20);
section.style.width = minW + 'px'; section.style.width = minW + 'px';
section.innerHTML = ` section.innerHTML = `