From 189554dbd4c9a25ac6872eb5ba4d7b9ccc1af4ab Mon Sep 17 00:00:00 2001 From: Arne Date: Sun, 15 Nov 2026 11:31:59 +0100 Subject: [PATCH 1/3] fix(icons): the expenses icon shows a euro sign, not a dollar Refs #186 Co-Authored-By: Claude Opus 5.5 --- huismus/templates/icons.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huismus/templates/icons.svg b/huismus/templates/icons.svg index f28fad0..f17ba22 100644 --- a/huismus/templates/icons.svg +++ b/huismus/templates/icons.svg @@ -6,7 +6,7 @@ - + From 77631e7e9ce6f2dc388c554b149a967a39eedf02 Mon Sep 17 00:00:00 2001 From: Arne Date: Sun, 15 Nov 2026 11:31:59 +0100 Subject: [PATCH 2/3] fix(design): the owner's findings on the new layout - a notice's hover is clearly visible, and the update notice's link covers the whole block like the other notices; - the Openstaand block keeps its white text on hover; - a bigger sparrow and name in the menu; - more room around the Terug link at the top of a page; - a setting that is on or complete is beak yellow (pill-on); - Nieuwe factuur is back on the invoice list as the page's violet button; - lists turn into stacked rows below 720 px wide instead of 560, so a quote list on a medium screen no longer cuts off its amounts. Refs #186 Co-Authored-By: Claude Opus 5.5 --- docs/design/componenten.html | 5 +++-- huismus/business/topics.py | 2 +- huismus/core/static/core/huismus.css | 17 +++++++++++++---- huismus/templates/base.html | 4 ++-- huismus/templates/documents/list.html | 7 ++++--- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/docs/design/componenten.html b/docs/design/componenten.html index abaf684..4924b73 100644 --- a/docs/design/componenten.html +++ b/docs/design/componenten.html @@ -126,13 +126,14 @@

Statuslabels

GecrediteerdCreditnota's dekken het hele factuurbedrag.Rand, geen kleur. DefinitiefUitgegeven: staat vast.Rustig: slotje en gedempte tekst, geen vlak. BetaaldHelemaal betaald.Rustig: een vinkje, gedempte tekst. -GeaccepteerdOfferte geaccepteerd. Ook: een instelling die aan staat.Rustig: een vinkje. +GeaccepteerdOfferte geaccepteerd.Rustig: een vinkje. +AanEen instelling die aan staat of compleet is.Snavelgeel: in één oogopslag zie je wat aan staat. AfgewezenOfferte afgewezen.Rustig: rode stip, geen vlak. VerlopenOfferte verlopen. Ook: niet gekoppeld, niet beschikbaar.Rustig: open stip. NakijkenUitgave die een AI-assistent invulde; weg na "Klopt" of Opslaan.Amber vlak, zoals Onbetaald: er moet nog iets gebeuren. overgeslagenVariant zonder stip (.no-dot), bijv. in het importrapport.Zoals de basis, zonder stip. -
12 dagen te laatOnbetaaldDeels betaaldVerzondenConceptGeïmporteerdCreditnotaGecrediteerdDefinitiefBetaaldGeaccepteerdAfgewezenVerlopenovergeslagenNakijken
+
12 dagen te laatOnbetaaldDeels betaaldVerzondenConceptGeïmporteerdCreditnotaGecrediteerdDefinitiefBetaaldGeaccepteerdAanAfgewezenVerlopenovergeslagenNakijken
diff --git a/huismus/business/topics.py b/huismus/business/topics.py index 2ea1825..8ead7cf 100644 --- a/huismus/business/topics.py +++ b/huismus/business/topics.py @@ -120,7 +120,7 @@ def cards(settings: Settings, theme: str = "") -> list[dict]: """The overview: per topic its line and, where it says something, a pill (its text and huismus.css class). theme: the signed-in user's, for the card Weergave.""" - ok, warn, off = "pill-accepted", "pill-unpaid", "pill-expired" + ok, warn, off = "pill-on", "pill-unpaid", "pill-expired" # A context of their own: "Aan" is also "To" (a mail's recipient). on_text, off_text = pgettext_lazy("setting", "Aan"), pgettext_lazy("setting", "Uit") summary = {} diff --git a/huismus/core/static/core/huismus.css b/huismus/core/static/core/huismus.css index ae9029a..e6cdeb0 100644 --- a/huismus/core/static/core/huismus.css +++ b/huismus/core/static/core/huismus.css @@ -167,7 +167,7 @@ a:hover { color: var(--primary-hover); } } .sidebar :focus-visible { outline-color: var(--panel-text); } .sidebar > * { flex-shrink: 0; } -.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px; color: inherit; text-decoration: none; font-weight: var(--fw-bold); font-size: 1.1875rem; letter-spacing: -0.02em; } +.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px; color: inherit; text-decoration: none; font-weight: var(--fw-heavy); font-size: 1.5rem; letter-spacing: -0.02em; } .brand:hover { color: inherit; } .nav { display: flex; flex-direction: column; gap: 2px; } .nav a { @@ -216,7 +216,7 @@ a:hover { color: var(--primary-hover); } .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); } .page-head .titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .page-head .actions { display: flex; gap: var(--s-2); flex-wrap: wrap; } -.back { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--text-muted); text-decoration: none; font-weight: var(--fw-medium); } +.back { display: inline-flex; align-items: center; gap: 4px; padding-block: 6px; margin-bottom: 6px; font-size: var(--fs-sm); color: var(--text-muted); text-decoration: none; font-weight: var(--fw-medium); } .back:hover { color: var(--text); } .lede { color: var(--text-muted); max-width: 62ch; } @@ -433,7 +433,8 @@ a:hover { color: var(--primary-hover); } .table .draft-no { color: var(--text-muted); font-style: italic; font-weight: var(--fw-medium); } .table tfoot td { font-weight: var(--fw-bold); border-top: 1px solid var(--border-strong); border-bottom: 0; } /* Mobiel: rijen stapelen tot kaarten */ -@container (max-width: 560px) { +/* 720: met de letter van 16 px past een rij van vijf kolommen daaronder niet meer naast elkaar. */ +@container (max-width: 720px) { .table.stackable thead { display: none; } .table.stackable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); } .table.stackable tbody tr:last-child { border-bottom: 0; } @@ -504,6 +505,9 @@ a:hover { color: var(--primary-hover); } .pill-unpaid, .pill-sent, .pill-final, .pill-paid, .pill-accepted, .pill-rejected, .pill-expired { --pill-bg: transparent; padding-inline: 0; font-weight: var(--fw-medium); } .pill-unpaid, .pill-sent { --pill-fg: var(--text); } /* loopt nog: wachten op de ander */ .pill-final, .pill-paid, .pill-accepted, .pill-rejected, .pill-expired { --pill-fg: var(--text-muted); } /* afgerond */ +/* Een instelling die aan staat of klaar is: snavelgeel, zodat je in één oogopslag ziet wat aan staat (de eigenaar, 2026-11-15). */ +.pill-on { --pill-bg: var(--accent-soft); --pill-fg: var(--accent-ink); } +.pill-on::before { width: 10px; height: 6px; border-radius: 0; background: transparent; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); } /* Open stip: nog niet afgerond, of verlopen. */ .pill-unpaid::before, .pill-sent::before, .pill-expired::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; } /* Betaald en geaccepteerd: een vinkje, getekend als de linker- en onderrand van een @@ -753,6 +757,7 @@ a:hover { color: var(--primary-hover); } .kpi-hero { background: var(--primary); color: var(--on-primary); border-color: transparent; } .kpi-hero .kpi-label, .kpi-hero .kpi-sub { color: color-mix(in oklab, var(--on-primary) 82%, var(--primary)); } .kpi-hero a { color: var(--on-primary); } +a.kpi-hero:hover { color: var(--on-primary); background: var(--primary-hover); } /* A notice is a quiet block like the other cards: no border, no stripe. Its kind shows only in the round icon; the link is violet, and red only for a real problem (huismus-intern/besluiten.md, 2026-10-30; the owner, 2026-11-15). */ @@ -763,7 +768,11 @@ a:hover { color: var(--primary-hover); } border: 0; font-weight: var(--fw-medium); text-decoration: none; transition: background .15s; } -a.hint-banner:hover { color: var(--text); background: color-mix(in oklab, var(--surface) 92%, var(--primary)); } +a.hint-banner:hover, div.hint-banner:has(> a):hover { color: var(--text); background: var(--primary-soft); } +/* A notice with a close button is a div: its link covers the whole block, the close button stays on top. */ +div.hint-banner:has(> a) { position: relative; } +div.hint-banner > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } +div.hint-banner > form { position: relative; z-index: 1; } .hint-banner > .i { box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 50%; color: var(--hb-ink); background: var(--hb-chip); flex: none; } .hint-banner .spacer { flex: 1; } .hint-banner .spacer + span, .hint-banner a { color: var(--hb-link); font-weight: var(--fw-semibold); } diff --git a/huismus/templates/base.html b/huismus/templates/base.html index cfe81e7..02dd867 100644 --- a/huismus/templates/base.html +++ b/huismus/templates/base.html @@ -30,7 +30,7 @@ {% include "icons.svg" %}
- Huismus + Huismus
{# The tab bar has no sub-items: every expenses page marks "Uitgaven". #}
+ {% if has_any %}{% endif %} {% if not has_any %} From 0cdf598eda6aa8040d87022c2bc94e8f7952b2ec Mon Sep 17 00:00:00 2001 From: Arne Date: Sun, 15 Nov 2026 11:53:44 +0100 Subject: [PATCH 3/3] fix(design): a calmer layout, as the owner asked Back to 15 px text and bold (700) instead of extra bold headings and amounts; the Openstaand block is white with only its amount in violet, since the menu is violet already; the menu panel a tint lighter; softer lines between rows, no line under a card's heading or above its foot, and a little more room between blocks. Refs #186 Co-Authored-By: Claude Opus 5.5 --- docs/design/componenten.html | 2 +- huismus/core/static/core/huismus.css | 39 ++++++++++++++-------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/docs/design/componenten.html b/docs/design/componenten.html index 4924b73..972677d 100644 --- a/docs/design/componenten.html +++ b/docs/design/componenten.html @@ -95,7 +95,7 @@

Letters, ruimte, vormen

--fs-sm
13, labels en bijtekst
Vervaldatum
--fs-xs
12
Verloopt over 3 dagen
--lh, --lh-tight
1,5 en 1,2
-
--fw-medium, --fw-semibold, --fw-bold, --fw-heavy
550, 620, 700, 800
Aa Aa Aa Aa
+
--fw-medium, --fw-semibold, --fw-bold
550, 620, 700
Aa Aa Aa
--s-1 … --s-16
4, 8, 12, 16, 20, 24, 32, 40, 48, 64 (--s-2 --s-3 --s-4 --s-5 --s-6 --s-8 --s-10 --s-12)
--r-sm --r-md --r-lg --r-xl --r-pill
6, 10, 14, 20, rond
--sh-1 --sh-2 --sh-paper --sh-pop
kaart, zwevend, vel papier, dialoog
diff --git a/huismus/core/static/core/huismus.css b/huismus/core/static/core/huismus.css index e6cdeb0..8d65494 100644 --- a/huismus/core/static/core/huismus.css +++ b/huismus/core/static/core/huismus.css @@ -16,17 +16,16 @@ --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --fs-xs: 0.75rem; /* 12 */ --fs-sm: 0.8125rem; /* 13 */ - --fs-md: 1rem; /* 16: basis */ + --fs-md: 0.9375rem; /* 15: basis */ --fs-lg: 1.0625rem; /* 17 */ --fs-xl: 1.375rem; /* 22 */ - --fs-2xl: 1.875rem; /* 30 */ + --fs-2xl: 1.75rem; /* 28 */ --fs-3xl: 2.25rem; /* 36 */ --lh-tight: 1.2; --lh: 1.5; --fw-medium: 550; --fw-semibold: 620; --fw-bold: 700; - --fw-heavy: 800; /* Spacing (4px-raster) */ --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; @@ -61,7 +60,7 @@ --mark-wing: light-dark(#A98BF5, #CBB8FA); /* vleugel van de mus: lichter dan het lijf */ /* Het diepviolette menu op een breed scherm */ - --panel: light-dark(#2A1670, #2F1D80); + --panel: light-dark(#3B2694, #2F1D80); /* een tint lichter dan het ontwerp: rustiger (de eigenaar, 2026-11-15) */ --panel-text: light-dark(#FFFFFF, #FFFFFF); --panel-muted: light-dark(#CFC4F2, #CFC4F2); --panel-wing: light-dark(#CBB8FA, #CBB8FA); @@ -106,7 +105,7 @@ body { -webkit-font-smoothing: antialiased; } h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); font-weight: var(--fw-semibold); letter-spacing: -0.015em; text-wrap: balance; } -h1 { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); letter-spacing: -0.022em; } +h1 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.022em; } h2 { font-size: var(--fs-lg); } h3 { font-size: var(--fs-md); } p { margin: 0; text-wrap: pretty; } @@ -123,9 +122,9 @@ a:hover { color: var(--primary-hover); } .stack { display: flex; flex-direction: column; gap: var(--s-4); } .row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; } .spacer { flex: 1; } -.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } -.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } -.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; } +.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } +.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } +.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; } .split-rev { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); align-items: start; } .split-even { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-6); align-items: start; } @media (max-width: 980px) { .split-rev > .aside-first { order: -1; } } @@ -167,7 +166,7 @@ a:hover { color: var(--primary-hover); } } .sidebar :focus-visible { outline-color: var(--panel-text); } .sidebar > * { flex-shrink: 0; } -.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px; color: inherit; text-decoration: none; font-weight: var(--fw-heavy); font-size: 1.5rem; letter-spacing: -0.02em; } +.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px; color: inherit; text-decoration: none; font-weight: var(--fw-bold); font-size: 1.375rem; letter-spacing: -0.02em; } .brand:hover { color: inherit; } .nav { display: flex; flex-direction: column; gap: 2px; } .nav a { @@ -201,7 +200,7 @@ a:hover { color: var(--primary-hover); } .panel-owed { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3) 10px var(--s-2); color: inherit; text-decoration: none; border-radius: var(--r-lg); } .panel-owed:hover { color: inherit; background: var(--panel-hover); } .panel-owed-label, .panel-owed-sub { color: var(--panel-muted); font-size: var(--fs-sm); } -.panel-owed-amount { font-size: 2rem; font-weight: var(--fw-heavy); letter-spacing: -0.025em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; } +.panel-owed-amount { font-size: 1.75rem; font-weight: var(--fw-bold); letter-spacing: -0.025em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; } .panel-owed-sub:empty { display: none; } #plus-menu { inset: auto 0 calc(72px + env(safe-area-inset-bottom)); margin: 0 auto; } #meer-menu { inset: auto 12px calc(72px + env(safe-area-inset-bottom)) auto; max-height: calc(100dvh - 140px); overflow-y: auto; } @@ -227,7 +226,7 @@ a:hover { color: var(--primary-hover); } .sidebar { display: none; } .content { padding: var(--s-5) var(--s-4) 112px; } .app-footer { padding: var(--s-4) var(--s-4) 96px; } - h1 { font-size: 1.625rem; } + h1 { font-size: 1.5rem; } .main { padding-top: 56px; } .mtop { display: flex; align-items: center; gap: 10px; position: fixed; top: 0; left: 0; right: 0; z-index: 20; @@ -397,9 +396,9 @@ a:hover { color: var(--primary-hover); } /* Blokken zonder rand, met ronde hoeken, op de lila achtergrond */ .card { background: var(--surface); border: 0; border-radius: var(--r-xl); min-width: 0; } .card-pad { padding: var(--s-5) var(--s-6); } -.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); } +.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5) var(--s-2); } .card-head h2 { font-size: var(--fs-md); } -.card-foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); font-size: var(--fs-sm); } +.card-foot { padding: var(--s-3) var(--s-5) var(--s-4); font-size: var(--fs-sm); } /* Een kopje per groep in een lijst (Te laat, Wacht op betaling, ...) */ .list-group-title { padding: var(--s-5) var(--s-5) var(--s-2); font-size: var(--fs-md); font-weight: var(--fw-bold); } .imported { display: block; } @@ -411,7 +410,8 @@ a:hover { color: var(--primary-hover); } .table-wrap { container-type: inline-size; overflow-x: auto; } .table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); } .table th { text-align: left; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; } -.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; } +/* Lijnen tussen rijen: zacht, zodat een lijst rustig blijft. */ +.table td { padding: 14px 16px; border-bottom: 1px solid color-mix(in oklab, var(--border) 55%, transparent); vertical-align: middle; } /* Op de telefoon: een tabel met bedragen naast elkaar (zoals het jaaroverzicht) krijgt kleinere letters en minder ruimte, zodat er meer kolommen in beeld passen. */ @media (max-width: 760px) { @@ -689,7 +689,7 @@ a:hover { color: var(--primary-hover); } /* Wat de focus krijgt (ook met Tab), schuift boven de balk en de tabbalk. */ html:has(.actionbar-editor) { scroll-padding-bottom: 190px; } .actionbar-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); flex-basis: 100%; } - .actionbar-total strong { font-size: var(--fs-lg); font-weight: var(--fw-heavy); } + .actionbar-total strong { font-size: var(--fs-lg); font-weight: var(--fw-bold); } } /* Extra actions in the editor's bar. On a wide screen the popover's own box is dissolved (display: contents), so its buttons sit in the bar; on a @@ -752,12 +752,11 @@ a:hover { color: var(--primary-hover); } /* ---------- 13. Dashboard & jaaroverzicht ---------- */ .kpi { padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: 6px; } .kpi-label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: var(--fw-medium); display: flex; align-items: center; gap: 8px; } -.kpi-value { white-space: nowrap; font-size: var(--fs-2xl); font-weight: var(--fw-heavy); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.15; } +.kpi-value { white-space: nowrap; font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.15; } .kpi-sub { font-size: var(--fs-sm); color: var(--text-muted); } -.kpi-hero { background: var(--primary); color: var(--on-primary); border-color: transparent; } -.kpi-hero .kpi-label, .kpi-hero .kpi-sub { color: color-mix(in oklab, var(--on-primary) 82%, var(--primary)); } -.kpi-hero a { color: var(--on-primary); } -a.kpi-hero:hover { color: var(--on-primary); background: var(--primary-hover); } +.kpi-hero { color: var(--text); } /* wit blok, alleen het bedrag violet: het menu is al violet (de eigenaar, 2026-11-15) */ +.kpi-hero .kpi-value { color: var(--primary-ink); } +a.kpi-hero:hover { color: var(--text); background: var(--primary-soft); } /* A notice is a quiet block like the other cards: no border, no stripe. Its kind shows only in the round icon; the link is violet, and red only for a real problem (huismus-intern/besluiten.md, 2026-10-30; the owner, 2026-11-15). */