UI redesign: condensed-sans ledger style with logo in the zero hero (#18)
4
.gitignore
vendored
|
|
@ -68,6 +68,10 @@ quartermaster.db-journal
|
||||||
backups/
|
backups/
|
||||||
docs/wiki/
|
docs/wiki/
|
||||||
|
|
||||||
|
# Brand source assets (optimised versions live in src/quartermaster/static/brand/)
|
||||||
|
/logo.png
|
||||||
|
*:Zone.Identifier
|
||||||
|
|
||||||
# Flask stuff:
|
# Flask stuff:
|
||||||
instance/
|
instance/
|
||||||
.webassets-cache
|
.webassets-cache
|
||||||
|
|
|
||||||
BIN
docs/mockups/assets/logo-full.png
Normal file
|
After Width: | Height: | Size: 398 KiB |
BIN
docs/mockups/assets/logo-mark-128.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
docs/mockups/assets/logo-mark-wide.png
Normal file
|
After Width: | Height: | Size: 302 KiB |
BIN
docs/mockups/assets/logo-mark.png
Normal file
|
After Width: | Height: | Size: 354 KiB |
BIN
docs/mockups/assets/logo-shield-wide.png
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
docs/mockups/assets/logo-shield.png
Normal file
|
After Width: | Height: | Size: 275 KiB |
814
docs/mockups/month-condensed-sans.html
Normal file
|
|
@ -0,0 +1,814 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<title>Quartermaster · April 2026 · Condensed Ledger</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600&family=Barlow:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--paper: #f5efe0;
|
||||||
|
--paper-deep: #efe7d4;
|
||||||
|
--paper-soft: #faf5e8;
|
||||||
|
--paper-stripe: #f1ead9;
|
||||||
|
--ink: #1a1814;
|
||||||
|
--ink-soft: #3a362e;
|
||||||
|
--muted: #7e7668;
|
||||||
|
--rule: #c8bfa8;
|
||||||
|
--rule-soft: #dcd4bf;
|
||||||
|
|
||||||
|
--accent: #732629;
|
||||||
|
--accent-dark: #4d1214;
|
||||||
|
--accent-soft: #a13a40;
|
||||||
|
--ochre: #9c6b1a;
|
||||||
|
--sage: #2d4a30;
|
||||||
|
--sage-soft: #6a8870;
|
||||||
|
--indigo: #353a5e;
|
||||||
|
|
||||||
|
--sans: "Barlow Condensed", "Oswald", sans-serif;
|
||||||
|
--sans-wide: "Barlow", "Helvetica Neue", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
*, *::before, *::after { box-sizing: border-box; }
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
color: var(--ink);
|
||||||
|
background: var(--paper);
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 400;
|
||||||
|
font-feature-settings: "lnum" 1;
|
||||||
|
line-height: 1.35;
|
||||||
|
background-image:
|
||||||
|
radial-gradient(circle at 18% 10%, rgba(200, 191, 168, 0.16) 0, transparent 42%),
|
||||||
|
radial-gradient(circle at 84% 82%, rgba(200, 191, 168, 0.12) 0, transparent 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
max-width: 880px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 1.25rem 1.25rem 3rem;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== MONTH NAV — top line =============== */
|
||||||
|
.month-line {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto 1fr auto auto;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 0.4rem 0 0.55rem;
|
||||||
|
border-bottom: 1px solid var(--ink);
|
||||||
|
}
|
||||||
|
.nav-month {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--muted);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.12s;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
.nav-month:hover { color: var(--ink); }
|
||||||
|
.nav-month.prev { text-align: right; }
|
||||||
|
.nav-month .chev { font-style: normal; margin: 0 0.25em; }
|
||||||
|
|
||||||
|
.month-title {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1.45rem;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.month-title .year {
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: italic;
|
||||||
|
margin-left: 0.35em;
|
||||||
|
letter-spacing: 0.06em;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.state {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--sage);
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.state::before { content: "· "; opacity: 0.5; letter-spacing: 0; }
|
||||||
|
.state::after { content: " ·"; opacity: 0.5; letter-spacing: 0; }
|
||||||
|
.state.planning { color: var(--indigo); }
|
||||||
|
.state.closed { color: var(--muted); }
|
||||||
|
|
||||||
|
.btn-close {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--ink);
|
||||||
|
background: var(--paper-soft);
|
||||||
|
border: 1px solid var(--ink);
|
||||||
|
padding: 0.25rem 0.9rem 0.3rem;
|
||||||
|
cursor: pointer;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
transition: background 0.12s ease, color 0.12s ease;
|
||||||
|
}
|
||||||
|
.btn-close:hover { background: var(--ink); color: var(--paper); }
|
||||||
|
.btn-close::after { content: " →"; margin-left: 0.15em; font-weight: 400; }
|
||||||
|
|
||||||
|
.back-link-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 0.3rem 0 0;
|
||||||
|
}
|
||||||
|
.back-link {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.back-link:hover { color: var(--ink); }
|
||||||
|
|
||||||
|
/* =============== ZERO HERO — logo left + applied / zero / planned =============== */
|
||||||
|
.zero {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr auto 1fr;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.8rem;
|
||||||
|
padding: 1rem 0.25rem 1rem;
|
||||||
|
border-bottom: 3px double var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.zero .brand {
|
||||||
|
justify-self: start;
|
||||||
|
}
|
||||||
|
.zero .brand img {
|
||||||
|
height: 132px;
|
||||||
|
width: auto;
|
||||||
|
display: block;
|
||||||
|
mix-blend-mode: multiply;
|
||||||
|
}
|
||||||
|
|
||||||
|
.zero .side {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.05rem;
|
||||||
|
}
|
||||||
|
.zero .side.left { text-align: right; padding-right: 0.3rem; }
|
||||||
|
.zero .side.right { text-align: left; padding-left: 0.3rem; }
|
||||||
|
|
||||||
|
.zero .sublabel {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
letter-spacing: 0.3em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
.zero .subvalue {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1.45rem;
|
||||||
|
color: var(--ink);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.zero .subvalue .cent { font-size: 0.7em; vertical-align: 0.4em; color: var(--muted); margin-left: 0.08em; }
|
||||||
|
|
||||||
|
.zero .center { text-align: center; padding: 0 0.4rem; }
|
||||||
|
.zero .zlabel {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.72rem;
|
||||||
|
letter-spacing: 0.36em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
margin: 0 0 0.15rem;
|
||||||
|
}
|
||||||
|
.zero .zvalue {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: clamp(3rem, 7vw, 4.4rem);
|
||||||
|
line-height: 0.95;
|
||||||
|
letter-spacing: -0.015em;
|
||||||
|
margin: 0;
|
||||||
|
color: var(--sage);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.zero .zvalue .dollar { font-size: 0.5em; vertical-align: 0.4em; color: var(--muted); margin-right: 0.04em; font-weight: 400; }
|
||||||
|
.zero .zvalue .cent { font-size: 0.38em; vertical-align: 1em; color: var(--muted); margin-left: 0.05em; font-weight: 400; }
|
||||||
|
.zero .zvalue.positive { color: var(--ochre); }
|
||||||
|
.zero .zvalue.negative { color: var(--accent); }
|
||||||
|
.zero .zcaption {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.88rem;
|
||||||
|
color: var(--muted);
|
||||||
|
margin: 0.2rem 0 0;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== GROUPS =============== */
|
||||||
|
.ledger-group { border-bottom: 1px solid var(--ink); }
|
||||||
|
.ledger-group[open] { padding-bottom: 0.6rem; }
|
||||||
|
|
||||||
|
.ledger-group > summary {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr auto;
|
||||||
|
gap: 0.75rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.6rem 0 0.4rem;
|
||||||
|
cursor: pointer;
|
||||||
|
list-style: none;
|
||||||
|
user-select: none;
|
||||||
|
border-bottom: 1px solid var(--rule);
|
||||||
|
}
|
||||||
|
.ledger-group > summary::-webkit-details-marker { display: none; }
|
||||||
|
.ledger-group[open] > summary { border-bottom: none; }
|
||||||
|
|
||||||
|
.ledger-group .chev {
|
||||||
|
display: inline-block;
|
||||||
|
width: 0.7rem;
|
||||||
|
height: 0.7rem;
|
||||||
|
position: relative;
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
transition: transform 0.15s ease;
|
||||||
|
}
|
||||||
|
.ledger-group .chev::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute; top: 50%; left: 0;
|
||||||
|
width: 0.7rem; height: 1px;
|
||||||
|
background: var(--ink); transform: translateY(-0.5px);
|
||||||
|
}
|
||||||
|
.ledger-group .chev::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute; top: 50%; left: 50%;
|
||||||
|
width: 1px; height: 0.7rem;
|
||||||
|
background: var(--ink); transform: translate(-50%, -50%);
|
||||||
|
transition: opacity 0.15s ease;
|
||||||
|
}
|
||||||
|
.ledger-group[open] > summary .chev { transform: rotate(0); }
|
||||||
|
.ledger-group[open] > summary .chev::after { opacity: 0; }
|
||||||
|
|
||||||
|
.group-name {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-total {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.group-total .slash { color: var(--rule); margin: 0 0.15em; font-weight: 300; }
|
||||||
|
.group-total .planned { color: var(--muted); font-size: 0.92em; font-weight: 400; }
|
||||||
|
|
||||||
|
/* =============== SECTIONS =============== */
|
||||||
|
.ledger-section {
|
||||||
|
padding: 0.4rem 0 0.4rem;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
.ledger-section + .ledger-section { border-top: 1px dashed var(--rule); }
|
||||||
|
|
||||||
|
.section-header {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto;
|
||||||
|
gap: 0.5rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.15rem 0.25rem 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.72rem;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.26em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-subtotal {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.section-subtotal .slash { color: var(--rule); margin: 0 0.2em; font-weight: 300; }
|
||||||
|
.section-subtotal .planned { color: var(--muted); font-weight: 400; }
|
||||||
|
|
||||||
|
/* =============== ENTRY ROWS — very dense =============== */
|
||||||
|
.entries { display: grid; grid-template-columns: minmax(0, 1fr); }
|
||||||
|
|
||||||
|
.entry {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem 1.2rem;
|
||||||
|
gap: 0.6rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.26rem 0.25rem 0.28rem;
|
||||||
|
position: relative;
|
||||||
|
border-bottom: 1px dotted var(--rule);
|
||||||
|
}
|
||||||
|
.entry:hover { background: var(--paper-stripe); }
|
||||||
|
|
||||||
|
.entry::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0; right: 0; bottom: -1px;
|
||||||
|
height: 2px;
|
||||||
|
background: var(--sage-soft);
|
||||||
|
width: min(100%, calc(var(--ratio, 1) * 100%));
|
||||||
|
transition: width 0.25s ease;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.entry.over::after { background: var(--accent); opacity: 0.85; width: 100%; }
|
||||||
|
.entry.over::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0; right: 0; bottom: -3px;
|
||||||
|
height: 2px;
|
||||||
|
background: var(--accent);
|
||||||
|
width: calc((var(--ratio, 1) - 1) * 100%);
|
||||||
|
transform: translateX(100%);
|
||||||
|
transform-origin: left;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.entry.under::after { background: var(--ochre); opacity: 0.5; }
|
||||||
|
.entry.at::after { background: var(--sage); opacity: 0.85; }
|
||||||
|
|
||||||
|
.entry-name {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1.02rem;
|
||||||
|
color: var(--ink);
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.entry-name input {
|
||||||
|
font: inherit;
|
||||||
|
color: inherit;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.12s;
|
||||||
|
}
|
||||||
|
.entry-name input:hover { border-bottom-color: var(--rule); }
|
||||||
|
.entry-name input:focus { border-bottom-color: var(--ink); }
|
||||||
|
|
||||||
|
.entry-num {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--ink);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
text-align: right;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.entry-num input {
|
||||||
|
font: inherit;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
color: inherit;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
text-align: right;
|
||||||
|
transition: border-color 0.12s;
|
||||||
|
}
|
||||||
|
.entry-num input:hover { border-bottom-color: var(--rule); }
|
||||||
|
.entry-num input:focus { border-bottom-color: var(--ink); }
|
||||||
|
.entry-num.planned { color: var(--muted); font-weight: 400; }
|
||||||
|
.entry-num.planned input { color: var(--muted); font-weight: 400; }
|
||||||
|
|
||||||
|
.entry .delete {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 1.2rem;
|
||||||
|
line-height: 1;
|
||||||
|
color: var(--rule);
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
opacity: 0;
|
||||||
|
transition: color 0.12s ease, opacity 0.12s ease;
|
||||||
|
align-self: center;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.entry:hover .delete { opacity: 1; }
|
||||||
|
.entry .delete:hover { color: var(--accent); }
|
||||||
|
|
||||||
|
.entry-notes {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--muted);
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
.entry-notes input {
|
||||||
|
font: inherit;
|
||||||
|
font-style: italic;
|
||||||
|
color: inherit;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
.entry-notes input::placeholder {
|
||||||
|
color: var(--rule);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.entry-notes:has(input:placeholder-shown) { display: none; }
|
||||||
|
.entry:hover .entry-notes:has(input:placeholder-shown) { display: block; opacity: 0.5; }
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.58rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.26em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 0.03rem 0.4rem 0.05rem;
|
||||||
|
margin-left: 0.45rem;
|
||||||
|
vertical-align: 0.15em;
|
||||||
|
border: 1px solid currentColor;
|
||||||
|
color: var(--ochre);
|
||||||
|
}
|
||||||
|
.tag.new { color: var(--indigo); }
|
||||||
|
|
||||||
|
/* =============== PRIMARY DEBT TARGET =============== */
|
||||||
|
.target-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem 1.2rem;
|
||||||
|
gap: 0.6rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.4rem 0.25rem 0.4rem 0.75rem;
|
||||||
|
border-left: 3px solid var(--accent);
|
||||||
|
background: linear-gradient(90deg, rgba(115, 38, 41, 0.05), transparent 40%);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.target-row::before {
|
||||||
|
content: "↳";
|
||||||
|
position: absolute;
|
||||||
|
left: -1.1rem;
|
||||||
|
top: 0.35rem;
|
||||||
|
color: var(--accent);
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.target-row .label {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.68rem;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.26em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--accent);
|
||||||
|
margin-right: 0.6rem;
|
||||||
|
}
|
||||||
|
.target-row .name {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1.02rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
}
|
||||||
|
.target-row .detail {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: var(--muted);
|
||||||
|
font-style: italic;
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
}
|
||||||
|
.target-row .amount {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== ADD LINK =============== */
|
||||||
|
.add-link {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--muted);
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 0.15rem 0.25rem;
|
||||||
|
cursor: pointer;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
transition: color 0.12s ease;
|
||||||
|
text-align: left;
|
||||||
|
justify-self: start;
|
||||||
|
}
|
||||||
|
.add-link:hover { color: var(--ink); }
|
||||||
|
.add-link::before { content: "+ "; font-style: normal; color: var(--rule); }
|
||||||
|
|
||||||
|
/* =============== COLOPHON =============== */
|
||||||
|
.colophon {
|
||||||
|
text-align: center;
|
||||||
|
margin: 2rem 0 0;
|
||||||
|
padding-top: 1rem;
|
||||||
|
border-top: 1px solid var(--rule);
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--muted);
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
}
|
||||||
|
.colophon .signoff {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.62rem;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.3em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
margin-top: 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== RESPONSIVE =============== */
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.zero { grid-template-columns: 1fr; gap: 0.5rem; text-align: center; padding: 0.75rem 0.25rem; }
|
||||||
|
.zero .brand { justify-self: center; }
|
||||||
|
.zero .brand img { height: 100px; }
|
||||||
|
.zero .side.left, .zero .side.right { text-align: center; padding: 0; }
|
||||||
|
.zero .center { padding: 0.25rem 0; }
|
||||||
|
}
|
||||||
|
@media (max-width: 520px) {
|
||||||
|
.page { padding: 1rem 0.85rem 2rem; }
|
||||||
|
.month-line { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
|
||||||
|
.month-line .month-title { grid-column: 1 / -1; text-align: center; font-size: 1.1rem; }
|
||||||
|
.month-line .state,
|
||||||
|
.month-line .btn-close { grid-column: 1 / -1; text-align: center; justify-self: center; }
|
||||||
|
.entry { grid-template-columns: minmax(0, 1fr) 4.6rem 4.6rem 1rem; gap: 0.4rem; }
|
||||||
|
.target-row { grid-template-columns: minmax(0, 1fr) 4.6rem 4.6rem 1rem; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="page">
|
||||||
|
|
||||||
|
<!-- MONTH NAV — top line -->
|
||||||
|
<nav class="month-line">
|
||||||
|
<a class="nav-month prev" href="#"><span class="chev">←</span> <em>March</em></a>
|
||||||
|
<h2 class="month-title">April<span class="year">MMXXVI</span></h2>
|
||||||
|
<a class="nav-month next" href="#"><em>May</em> <span class="chev">→</span></a>
|
||||||
|
<span class="state">Active</span>
|
||||||
|
<button class="btn-close">Close month</button>
|
||||||
|
</nav>
|
||||||
|
<div class="back-link-row">
|
||||||
|
<a class="back-link" href="#">Back to Budget ›</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ZERO HERO with logo on left -->
|
||||||
|
<section class="zero">
|
||||||
|
<div class="brand">
|
||||||
|
<img src="assets/logo-full.png" alt="Quartermaster">
|
||||||
|
</div>
|
||||||
|
<div class="side left">
|
||||||
|
<div class="sublabel">Applied</div>
|
||||||
|
<div class="subvalue">$2,500<span class="cent">.00</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="center">
|
||||||
|
<p class="zlabel">Zero Amount</p>
|
||||||
|
<h2 class="zvalue"><span class="dollar">$</span>0<span class="cent">.00</span></h2>
|
||||||
|
<p class="zcaption">the month balances</p>
|
||||||
|
</div>
|
||||||
|
<div class="side right">
|
||||||
|
<div class="sublabel">Planned</div>
|
||||||
|
<div class="subvalue">$2,500<span class="cent">.00</span></div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- INCOME -->
|
||||||
|
<details class="ledger-group" open>
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Income</span>
|
||||||
|
<span class="group-total">$2,500.00 <span class="slash">/</span> <span class="planned">$2,500.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Incomes</h3>
|
||||||
|
<div class="section-subtotal">$2,500.00 <span class="slash">/</span> <span class="planned">$2,500.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Paycheck" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="2500.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="2500.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="biweekly deposit, direct to checking" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add income</button>
|
||||||
|
</section>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<!-- COMMITTED -->
|
||||||
|
<details class="ledger-group" open>
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Committed</span>
|
||||||
|
<span class="group-total">$1,720.00 <span class="slash">/</span> <span class="planned">$1,720.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Fixed Amount Bills</h3>
|
||||||
|
<div class="section-subtotal">$1,280.00 <span class="slash">/</span> <span class="planned">$1,280.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Rent" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="1200.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="1200.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="ACH 1st, acct …4421" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Internet" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="80.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="80.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add fixed bill</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Debt Minimums</h3>
|
||||||
|
<div class="section-subtotal">$70.00 <span class="slash">/</span> <span class="planned">$70.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Card B" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="30.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="30.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="15.99% APR, min only" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Card C" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="40.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="40.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="21.4% APR, min only" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add debt minimum</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="target-row">
|
||||||
|
<span><span class="label">Primary Debt Target</span><span class="name">Card A</span><span class="detail">28.9% APR · avalanche focus</span></span>
|
||||||
|
<span class="amount planned" style="color: var(--muted); font-weight: 400;">370.00</span>
|
||||||
|
<span class="amount">370.00</span>
|
||||||
|
<span></span>
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<!-- SAVINGS (collapsed) -->
|
||||||
|
<details class="ledger-group">
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Savings</span>
|
||||||
|
<span class="group-total">$300.00 <span class="slash">/</span> <span class="planned">$300.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Sinking Funds</h3>
|
||||||
|
<div class="section-subtotal">$300.00 <span class="slash">/</span> <span class="planned">$300.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Emergency fund" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="300.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="300.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="target: 3 mo expenses (~$11k)" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add sinking fund</button>
|
||||||
|
</section>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<!-- FLEXIBLE -->
|
||||||
|
<details class="ledger-group" open>
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Flexible</span>
|
||||||
|
<span class="group-total">$480.00 <span class="slash">/</span> <span class="planned">$470.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Food and Essentials</h3>
|
||||||
|
<div class="section-subtotal">$430.00 <span class="slash">/</span> <span class="planned">$400.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry over" style="--ratio: 1.075">
|
||||||
|
<span class="entry-name"><input value="Groceries" aria-label="Name"><span class="tag">modified</span></span>
|
||||||
|
<span class="entry-num planned"><input value="400.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="430.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="over by $30, store run 28th" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add food entry</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Subscriptions</h3>
|
||||||
|
<div class="section-subtotal">$30.00 <span class="slash">/</span> <span class="planned">$40.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Streaming" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="15.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="15.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry under" style="--ratio: 0.6">
|
||||||
|
<span class="entry-name"><input value="Cloud backup" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="25.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="15.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="prorated, billed mid-cycle" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add subscription</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Other</h3>
|
||||||
|
<div class="section-subtotal">$20.00 <span class="slash">/</span> <span class="planned">$30.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry under" style="--ratio: 0.666">
|
||||||
|
<span class="entry-name"><input value="Parking" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="30.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="20.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Mother's Day gift" aria-label="Name"><span class="tag new">new this month</span></span>
|
||||||
|
<span class="entry-num planned"><input value="0.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="0.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="~$40 first week of May" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add other</button>
|
||||||
|
</section>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<footer class="colophon">
|
||||||
|
the art of giving every dollar a job
|
||||||
|
<div class="signoff">Quartermaster · MMXXVI</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
877
docs/mockups/month-editorial-ledger-dense.html
Normal file
|
|
@ -0,0 +1,877 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<title>Quartermaster · April 2026 · Editorial Ledger (dense)</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,30..100,0..1;1,9..144,300..900,30..100,0..1&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--paper: #f5efe0;
|
||||||
|
--paper-deep: #efe7d4;
|
||||||
|
--paper-soft: #faf5e8;
|
||||||
|
--paper-stripe: #f1ead9;
|
||||||
|
--ink: #1a1814;
|
||||||
|
--ink-soft: #3a362e;
|
||||||
|
--muted: #7e7668;
|
||||||
|
--rule: #c8bfa8;
|
||||||
|
--rule-soft: #dcd4bf;
|
||||||
|
|
||||||
|
--accent: #732629; /* sampled from logo shield */
|
||||||
|
--accent-dark: #4d1214;
|
||||||
|
--accent-soft: #a13a40;
|
||||||
|
--ochre: #9c6b1a;
|
||||||
|
--sage: #2d4a30;
|
||||||
|
--sage-soft: #6a8870;
|
||||||
|
--indigo: #353a5e;
|
||||||
|
|
||||||
|
--serif: "Fraunces", "Georgia", serif;
|
||||||
|
--sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
*, *::before, *::after { box-sizing: border-box; }
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
color: var(--ink);
|
||||||
|
background: var(--paper);
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-variation-settings: "opsz" 14, "SOFT" 50, "WONK" 0;
|
||||||
|
font-feature-settings: "onum" 1, "ss01" 1;
|
||||||
|
line-height: 1.4;
|
||||||
|
background-image:
|
||||||
|
radial-gradient(circle at 18% 10%, rgba(200, 191, 168, 0.16) 0, transparent 42%),
|
||||||
|
radial-gradient(circle at 84% 82%, rgba(200, 191, 168, 0.12) 0, transparent 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Full-spread watermark pinned to the viewport so it stays put as content scrolls */
|
||||||
|
.watermark {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.watermark img {
|
||||||
|
width: 75%;
|
||||||
|
max-width: 640px; /* ~75% of the 860px content column */
|
||||||
|
height: auto;
|
||||||
|
opacity: 0.045;
|
||||||
|
mix-blend-mode: multiply;
|
||||||
|
filter: saturate(0.6);
|
||||||
|
max-height: 85vh;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
max-width: 860px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 1.5rem 1.25rem 3rem;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== MASTHEAD — logo + folio =============== */
|
||||||
|
.masthead {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 1rem;
|
||||||
|
border-bottom: 3px double var(--ink);
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
min-height: 96px;
|
||||||
|
}
|
||||||
|
.masthead .brand {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.7rem;
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.masthead .logo {
|
||||||
|
height: 96px;
|
||||||
|
width: auto;
|
||||||
|
display: block;
|
||||||
|
/* Printed-on-paper feel: slight multiply to drop the bg into the paper */
|
||||||
|
mix-blend-mode: multiply;
|
||||||
|
}
|
||||||
|
.masthead .edition {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
color: var(--muted);
|
||||||
|
font-variation-settings: "opsz" 48, "SOFT" 50;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
margin-left: 0.3rem;
|
||||||
|
}
|
||||||
|
.folio {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.66rem;
|
||||||
|
font-style: italic;
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
font-feature-settings: "lnum" 1;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.folio .sep { margin: 0 0.4em; opacity: 0.5; }
|
||||||
|
.folio .line2 { display: block; margin-top: 0.15rem; color: var(--accent); letter-spacing: 0.18em; }
|
||||||
|
|
||||||
|
/* =============== MONTH BANNER =============== */
|
||||||
|
.month-line {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto 1fr auto auto;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 0.55rem 0 0.5rem;
|
||||||
|
border-bottom: 1px solid var(--rule);
|
||||||
|
}
|
||||||
|
.nav-month {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--muted);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.12s;
|
||||||
|
}
|
||||||
|
.nav-month:hover { color: var(--ink); }
|
||||||
|
.nav-month.prev { text-align: right; }
|
||||||
|
.nav-month .chev { font-size: 0.85em; margin: 0 0.25em; }
|
||||||
|
|
||||||
|
.month-title {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
letter-spacing: 0.09em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-feature-settings: "lnum" 1;
|
||||||
|
}
|
||||||
|
.month-title .year {
|
||||||
|
font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
|
||||||
|
font-style: italic;
|
||||||
|
margin-left: 0.3em;
|
||||||
|
letter-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.82rem;
|
||||||
|
color: var(--sage);
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
font-variation-settings: "opsz" 48, "SOFT" 40;
|
||||||
|
}
|
||||||
|
.state::before { content: "— "; opacity: 0.7; }
|
||||||
|
.state::after { content: " —"; opacity: 0.7; }
|
||||||
|
.state.planning { color: var(--indigo); }
|
||||||
|
.state.closed { color: var(--muted); }
|
||||||
|
|
||||||
|
.btn-close {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.82rem;
|
||||||
|
color: var(--ink);
|
||||||
|
background: var(--paper-soft);
|
||||||
|
border: 1px solid var(--ink);
|
||||||
|
padding: 0.22rem 0.8rem 0.26rem;
|
||||||
|
cursor: pointer;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
transition: background 0.12s ease, color 0.12s ease;
|
||||||
|
font-variation-settings: "opsz" 48, "SOFT" 30;
|
||||||
|
}
|
||||||
|
.btn-close:hover { background: var(--ink); color: var(--paper); }
|
||||||
|
.btn-close::after { content: " →"; font-style: normal; margin-left: 0.1em; }
|
||||||
|
|
||||||
|
.back-link {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.62rem;
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.back-link:hover { color: var(--ink); }
|
||||||
|
|
||||||
|
/* =============== ZERO AMOUNT — tighter =============== */
|
||||||
|
.zero {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto 1fr;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.5rem;
|
||||||
|
padding: 1rem 0.5rem 0.9rem;
|
||||||
|
border-bottom: 3px double var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.zero .side {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.05rem;
|
||||||
|
}
|
||||||
|
.zero .side.left { text-align: right; }
|
||||||
|
.zero .side.right { text-align: left; }
|
||||||
|
|
||||||
|
.zero .sublabel {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.6rem;
|
||||||
|
letter-spacing: 0.28em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
.zero .subvalue {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
color: var(--ink);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.zero .subvalue .cent {
|
||||||
|
font-size: 0.72em;
|
||||||
|
vertical-align: 0.3em;
|
||||||
|
margin-left: 0.08em;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.zero .center { text-align: center; }
|
||||||
|
.zero .zlabel {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.62rem;
|
||||||
|
letter-spacing: 0.32em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
margin: 0 0 0.1rem;
|
||||||
|
}
|
||||||
|
.zero .zvalue {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: clamp(2.6rem, 6vw, 3.6rem);
|
||||||
|
line-height: 0.95;
|
||||||
|
letter-spacing: -0.015em;
|
||||||
|
margin: 0;
|
||||||
|
color: var(--sage);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.zero .zvalue .dollar { font-size: 0.55em; vertical-align: 0.25em; color: var(--muted); margin-right: 0.04em; }
|
||||||
|
.zero .zvalue .cent { font-size: 0.42em; vertical-align: 0.9em; color: var(--muted); margin-left: 0.05em; }
|
||||||
|
.zero .zvalue.positive { color: var(--ochre); }
|
||||||
|
.zero .zvalue.negative { color: var(--accent); }
|
||||||
|
.zero .zcaption {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--muted);
|
||||||
|
margin: 0.2rem 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== GROUPS — tight =============== */
|
||||||
|
.ledger-group { border-bottom: 1px solid var(--ink); }
|
||||||
|
.ledger-group[open] { padding-bottom: 0.6rem; }
|
||||||
|
|
||||||
|
.ledger-group > summary {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr auto;
|
||||||
|
gap: 0.75rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.55rem 0 0.35rem;
|
||||||
|
cursor: pointer;
|
||||||
|
list-style: none;
|
||||||
|
user-select: none;
|
||||||
|
border-bottom: 1px solid var(--rule);
|
||||||
|
}
|
||||||
|
.ledger-group > summary::-webkit-details-marker { display: none; }
|
||||||
|
.ledger-group[open] > summary { border-bottom: none; }
|
||||||
|
|
||||||
|
.ledger-group .chev {
|
||||||
|
display: inline-block;
|
||||||
|
width: 0.7rem;
|
||||||
|
height: 0.7rem;
|
||||||
|
position: relative;
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
transition: transform 0.15s ease;
|
||||||
|
}
|
||||||
|
.ledger-group .chev::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute; top: 50%; left: 0;
|
||||||
|
width: 0.7rem; height: 1px;
|
||||||
|
background: var(--ink); transform: translateY(-0.5px);
|
||||||
|
}
|
||||||
|
.ledger-group .chev::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute; top: 50%; left: 50%;
|
||||||
|
width: 1px; height: 0.7rem;
|
||||||
|
background: var(--ink); transform: translate(-50%, -50%);
|
||||||
|
transition: opacity 0.15s ease;
|
||||||
|
}
|
||||||
|
.ledger-group[open] > summary .chev { transform: rotate(0); }
|
||||||
|
.ledger-group[open] > summary .chev::after { opacity: 0; }
|
||||||
|
|
||||||
|
.group-name {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-total {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.group-total .slash { color: var(--rule); margin: 0 0.15em; font-style: italic; font-weight: 300; }
|
||||||
|
.group-total .planned { color: var(--muted); font-size: 0.92em; }
|
||||||
|
|
||||||
|
/* =============== SECTIONS — table-like =============== */
|
||||||
|
.ledger-section {
|
||||||
|
padding: 0.4rem 0 0.4rem;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
.ledger-section + .ledger-section { border-top: 1px dashed var(--rule); }
|
||||||
|
|
||||||
|
.section-header {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto;
|
||||||
|
gap: 0.5rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.15rem 0.25rem 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.66rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.26em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-subtotal {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
}
|
||||||
|
.section-subtotal .slash { color: var(--rule); margin: 0 0.2em; font-weight: 300; font-style: italic; }
|
||||||
|
.section-subtotal .planned { color: var(--muted); }
|
||||||
|
|
||||||
|
/* =============== ENTRY ROWS — very dense =============== */
|
||||||
|
.entries { display: grid; grid-template-columns: minmax(0, 1fr); }
|
||||||
|
|
||||||
|
.entry {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem 1.2rem;
|
||||||
|
gap: 0.6rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.28rem 0.25rem 0.3rem;
|
||||||
|
position: relative;
|
||||||
|
border-bottom: 1px dotted var(--rule);
|
||||||
|
}
|
||||||
|
.entry:hover { background: var(--paper-stripe); }
|
||||||
|
|
||||||
|
/* Progress indicator rides the bottom border of the row */
|
||||||
|
.entry::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0; right: 0; bottom: -1px;
|
||||||
|
height: 2px;
|
||||||
|
background: var(--sage-soft);
|
||||||
|
width: min(100%, calc(var(--ratio, 1) * 100%));
|
||||||
|
transition: width 0.25s ease;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.entry.over::after { background: var(--accent); opacity: 0.85; width: 100%; }
|
||||||
|
.entry.over::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0; right: 0; bottom: -3px;
|
||||||
|
height: 2px;
|
||||||
|
background: var(--accent);
|
||||||
|
width: calc((var(--ratio, 1) - 1) * 100%);
|
||||||
|
transform: translateX(100%);
|
||||||
|
transform-origin: left;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.entry.under::after { background: var(--ochre); opacity: 0.5; }
|
||||||
|
.entry.at::after { background: var(--sage); opacity: 0.85; }
|
||||||
|
|
||||||
|
.entry-name {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.98rem;
|
||||||
|
color: var(--ink);
|
||||||
|
letter-spacing: 0.005em;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.entry-name input {
|
||||||
|
font: inherit;
|
||||||
|
color: inherit;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.12s;
|
||||||
|
}
|
||||||
|
.entry-name input:hover { border-bottom-color: var(--rule); }
|
||||||
|
.entry-name input:focus { border-bottom-color: var(--ink); }
|
||||||
|
|
||||||
|
.entry-num {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
color: var(--ink);
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
text-align: right;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.entry-num input {
|
||||||
|
font: inherit;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
color: inherit;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
text-align: right;
|
||||||
|
transition: border-color 0.12s;
|
||||||
|
}
|
||||||
|
.entry-num input:hover { border-bottom-color: var(--rule); }
|
||||||
|
.entry-num input:focus { border-bottom-color: var(--ink); }
|
||||||
|
.entry-num.planned { color: var(--muted); font-weight: 300; }
|
||||||
|
.entry-num.planned input { color: var(--muted); font-weight: 300; }
|
||||||
|
|
||||||
|
.entry .delete {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-size: 1.1rem;
|
||||||
|
line-height: 1;
|
||||||
|
color: var(--rule);
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
opacity: 0;
|
||||||
|
transition: color 0.12s ease, opacity 0.12s ease;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
.entry:hover .delete { opacity: 1; }
|
||||||
|
.entry .delete:hover { color: var(--accent); }
|
||||||
|
|
||||||
|
/* Notes — hidden when empty, inline italic when filled */
|
||||||
|
.entry-notes {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--muted);
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 1.3;
|
||||||
|
font-variation-settings: "opsz" 14, "SOFT" 50;
|
||||||
|
}
|
||||||
|
.entry-notes input {
|
||||||
|
font: inherit;
|
||||||
|
font-style: italic;
|
||||||
|
color: inherit;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
.entry-notes:has(input:placeholder-shown) { display: none; }
|
||||||
|
.entry:hover .entry-notes:has(input:placeholder-shown) { display: block; opacity: 0.5; }
|
||||||
|
|
||||||
|
/* Tags inline */
|
||||||
|
.tag {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.54rem;
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 0.03rem 0.38rem 0.05rem;
|
||||||
|
margin-left: 0.4rem;
|
||||||
|
vertical-align: 0.12em;
|
||||||
|
border: 1px solid currentColor;
|
||||||
|
color: var(--ochre);
|
||||||
|
}
|
||||||
|
.tag.new { color: var(--indigo); }
|
||||||
|
|
||||||
|
/* =============== PRIMARY DEBT TARGET =============== */
|
||||||
|
.target-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem 1.2rem;
|
||||||
|
gap: 0.6rem;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0.35rem 0.25rem 0.35rem 0.75rem;
|
||||||
|
border-left: 3px solid var(--accent);
|
||||||
|
background: linear-gradient(90deg, rgba(122, 31, 40, 0.04), transparent 40%);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.target-row::before {
|
||||||
|
content: "↳";
|
||||||
|
position: absolute;
|
||||||
|
left: -1.1rem;
|
||||||
|
top: 0.3rem;
|
||||||
|
color: var(--accent);
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
.target-row .label {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.6rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.26em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--accent);
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
.target-row .name {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.98rem;
|
||||||
|
font-variation-settings: "opsz" 48, "SOFT" 50;
|
||||||
|
}
|
||||||
|
.target-row .detail {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: var(--muted);
|
||||||
|
font-style: italic;
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
|
.target-row .amount {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-feature-settings: "lnum" 1, "tnum" 1;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== ADD LINK =============== */
|
||||||
|
.add-link {
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--muted);
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 0.15rem 0.25rem;
|
||||||
|
cursor: pointer;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
font-variation-settings: "opsz" 48, "SOFT" 50;
|
||||||
|
transition: color 0.12s ease;
|
||||||
|
text-align: left;
|
||||||
|
justify-self: start;
|
||||||
|
}
|
||||||
|
.add-link:hover { color: var(--ink); }
|
||||||
|
.add-link::before { content: "+ "; font-style: normal; color: var(--rule); }
|
||||||
|
|
||||||
|
/* =============== COLOPHON =============== */
|
||||||
|
.colophon {
|
||||||
|
text-align: center;
|
||||||
|
margin: 2rem 0 0;
|
||||||
|
padding-top: 1rem;
|
||||||
|
border-top: 1px solid var(--rule);
|
||||||
|
font-family: var(--serif);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.72rem;
|
||||||
|
color: var(--muted);
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
font-variation-settings: "opsz" 48, "SOFT" 50;
|
||||||
|
}
|
||||||
|
.colophon .signoff {
|
||||||
|
font-family: var(--sans);
|
||||||
|
font-size: 0.58rem;
|
||||||
|
font-style: normal;
|
||||||
|
letter-spacing: 0.28em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
margin-top: 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============== RESPONSIVE =============== */
|
||||||
|
@media (max-width: 520px) {
|
||||||
|
.watermark img { width: 90%; max-width: 420px; opacity: 0.035; }
|
||||||
|
.page { padding: 1rem 0.85rem 2rem; }
|
||||||
|
.masthead { flex-direction: column; gap: 0.4rem; align-items: center; text-align: center; }
|
||||||
|
.masthead .logo { height: 72px; }
|
||||||
|
.masthead .edition { display: none; }
|
||||||
|
.folio { text-align: center; }
|
||||||
|
.month-line { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
|
||||||
|
.month-line .month-title { grid-column: 1 / -1; text-align: center; font-size: 1.1rem; }
|
||||||
|
.month-line .state,
|
||||||
|
.month-line .btn-close,
|
||||||
|
.month-line .back-link { grid-column: 1 / -1; text-align: center; justify-self: center; }
|
||||||
|
.zero { grid-template-columns: 1fr; gap: 0.4rem; }
|
||||||
|
.zero .side.left, .zero .side.right { text-align: center; }
|
||||||
|
.entry { grid-template-columns: minmax(0, 1fr) 4.6rem 4.6rem 1rem; gap: 0.4rem; }
|
||||||
|
.target-row { grid-template-columns: minmax(0, 1fr) 4.6rem 4.6rem 1rem; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="watermark" aria-hidden="true">
|
||||||
|
<img src="assets/logo-mark-wide.png" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="page">
|
||||||
|
|
||||||
|
<!-- MASTHEAD -->
|
||||||
|
<header class="masthead">
|
||||||
|
<a class="brand" href="/" aria-label="Quartermaster home">
|
||||||
|
<img class="logo" src="assets/logo-full.png" alt="Quartermaster">
|
||||||
|
<span class="edition">— the monthly reckoning</span>
|
||||||
|
</a>
|
||||||
|
<div class="folio">
|
||||||
|
Vol. MMXXVI<span class="sep">·</span>No. 04
|
||||||
|
<span class="line2">Active · balanced</span>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- MONTH BANNER — one row -->
|
||||||
|
<nav class="month-line">
|
||||||
|
<a class="nav-month prev" href="#"><span class="chev">←</span> <em>March</em></a>
|
||||||
|
<h2 class="month-title">April<span class="year">MMXXVI</span></h2>
|
||||||
|
<a class="nav-month next" href="#"><em>May</em> <span class="chev">→</span></a>
|
||||||
|
<span class="state">Active</span>
|
||||||
|
<button class="btn-close">Close month</button>
|
||||||
|
</nav>
|
||||||
|
<div style="display: flex; justify-content: flex-end; padding: 0.25rem 0.25rem 0; font-size: 0;">
|
||||||
|
<a class="back-link" href="#">Back to Budget</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ZERO AMOUNT — one row with flanking applied / planned -->
|
||||||
|
<section class="zero">
|
||||||
|
<div class="side left">
|
||||||
|
<div class="sublabel">Applied</div>
|
||||||
|
<div class="subvalue">$2,500<span class="cent">.00</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="center">
|
||||||
|
<p class="zlabel">Zero Amount</p>
|
||||||
|
<h2 class="zvalue"><span class="dollar">$</span>0<span class="cent">.00</span></h2>
|
||||||
|
<p class="zcaption">the month balances</p>
|
||||||
|
</div>
|
||||||
|
<div class="side right">
|
||||||
|
<div class="sublabel">Planned</div>
|
||||||
|
<div class="subvalue">$2,500<span class="cent">.00</span></div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- INCOME -->
|
||||||
|
<details class="ledger-group" open>
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Income</span>
|
||||||
|
<span class="group-total">$2,500.00 <span class="slash">/</span> <span class="planned">$2,500.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Incomes</h3>
|
||||||
|
<div class="section-subtotal">$2,500.00 <span class="slash">/</span> <span class="planned">$2,500.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Paycheck" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="2500.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="2500.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="biweekly deposit, direct to checking" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add income</button>
|
||||||
|
</section>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<!-- COMMITTED -->
|
||||||
|
<details class="ledger-group" open>
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Committed</span>
|
||||||
|
<span class="group-total">$1,720.00 <span class="slash">/</span> <span class="planned">$1,720.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Fixed Amount Bills</h3>
|
||||||
|
<div class="section-subtotal">$1,280.00 <span class="slash">/</span> <span class="planned">$1,280.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Rent" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="1200.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="1200.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="ACH 1st, acct …4421" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Internet" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="80.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="80.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add fixed bill</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Debt Minimums</h3>
|
||||||
|
<div class="section-subtotal">$70.00 <span class="slash">/</span> <span class="planned">$70.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Card B" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="30.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="30.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="15.99% APR, min only" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Card C" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="40.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="40.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="21.4% APR, min only" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add debt minimum</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="target-row">
|
||||||
|
<span><span class="label">Primary Debt Target</span><span class="name">Card A</span><span class="detail">28.9% APR · avalanche focus</span></span>
|
||||||
|
<span class="amount planned" style="color: var(--muted); font-weight: 300;">370.00</span>
|
||||||
|
<span class="amount">370.00</span>
|
||||||
|
<span></span>
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<!-- SAVINGS (collapsed) -->
|
||||||
|
<details class="ledger-group">
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Savings</span>
|
||||||
|
<span class="group-total">$300.00 <span class="slash">/</span> <span class="planned">$300.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Sinking Funds</h3>
|
||||||
|
<div class="section-subtotal">$300.00 <span class="slash">/</span> <span class="planned">$300.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Emergency fund" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="300.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="300.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="target: 3 mo expenses (~$11k)" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add sinking fund</button>
|
||||||
|
</section>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<!-- FLEXIBLE -->
|
||||||
|
<details class="ledger-group" open>
|
||||||
|
<summary>
|
||||||
|
<span class="chev" aria-hidden="true"></span>
|
||||||
|
<span class="group-name">Flexible</span>
|
||||||
|
<span class="group-total">$480.00 <span class="slash">/</span> <span class="planned">$470.00</span></span>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Food and Essentials</h3>
|
||||||
|
<div class="section-subtotal">$430.00 <span class="slash">/</span> <span class="planned">$400.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry over" style="--ratio: 1.075">
|
||||||
|
<span class="entry-name"><input value="Groceries" aria-label="Name"><span class="tag">modified</span></span>
|
||||||
|
<span class="entry-num planned"><input value="400.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="430.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="over by $30, store run 28th" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add food entry</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Subscriptions</h3>
|
||||||
|
<div class="section-subtotal">$30.00 <span class="slash">/</span> <span class="planned">$40.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Streaming" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="15.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="15.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry under" style="--ratio: 0.6">
|
||||||
|
<span class="entry-name"><input value="Cloud backup" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="25.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="15.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="prorated, billed mid-cycle" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add subscription</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="ledger-section">
|
||||||
|
<header class="section-header">
|
||||||
|
<h3 class="section-title">Other</h3>
|
||||||
|
<div class="section-subtotal">$20.00 <span class="slash">/</span> <span class="planned">$30.00</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="entries">
|
||||||
|
<div class="entry under" style="--ratio: 0.666">
|
||||||
|
<span class="entry-name"><input value="Parking" aria-label="Name"></span>
|
||||||
|
<span class="entry-num planned"><input value="30.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="20.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
<div class="entry at" style="--ratio: 1">
|
||||||
|
<span class="entry-name"><input value="Mother's Day gift" aria-label="Name"><span class="tag new">new this month</span></span>
|
||||||
|
<span class="entry-num planned"><input value="0.00" aria-label="Planned"></span>
|
||||||
|
<span class="entry-num"><input value="0.00" aria-label="Applied"></span>
|
||||||
|
<button class="delete" aria-label="Delete">×</button>
|
||||||
|
<p class="entry-notes"><input value="~$40 first week of May" aria-label="Notes" placeholder="notes..."></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-link">add other</button>
|
||||||
|
</section>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<footer class="colophon">
|
||||||
|
the art of giving every dollar a job
|
||||||
|
<div class="signoff">Quartermaster · MMXXVI</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1055
docs/mockups/month-editorial-ledger.html
Normal file
|
|
@ -83,6 +83,19 @@ def shift_year_month(year_month: str, delta: int) -> str:
|
||||||
return f"{new_year:04d}-{new_month0 + 1:02d}"
|
return f"{new_year:04d}-{new_month0 + 1:02d}"
|
||||||
|
|
||||||
|
|
||||||
|
_MONTH_NAMES = [
|
||||||
|
"", "January", "February", "March", "April", "May", "June",
|
||||||
|
"July", "August", "September", "October", "November", "December",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def pretty_year_month(year_month: str) -> str:
|
||||||
|
if not valid_year_month(year_month):
|
||||||
|
return year_month
|
||||||
|
year, month = year_month.split("-")
|
||||||
|
return f"{_MONTH_NAMES[int(month)]} {year}"
|
||||||
|
|
||||||
|
|
||||||
def get_month(db: Session, year_month: str) -> Month | None:
|
def get_month(db: Session, year_month: str) -> Month | None:
|
||||||
stmt = select(Month).where(Month.year_month == year_month)
|
stmt = select(Month).where(Month.year_month == year_month)
|
||||||
return db.scalar(stmt)
|
return db.scalar(stmt)
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,9 @@ def view_month(
|
||||||
"month_create.html",
|
"month_create.html",
|
||||||
{
|
{
|
||||||
"year_month": year_month,
|
"year_month": year_month,
|
||||||
|
"pretty_year_month": month_service.pretty_year_month(year_month),
|
||||||
|
"pretty_prev": month_service.pretty_year_month(prev_ym),
|
||||||
|
"pretty_next": month_service.pretty_year_month(next_ym),
|
||||||
"prev_year_month": prev_ym,
|
"prev_year_month": prev_ym,
|
||||||
"next_year_month": next_ym,
|
"next_year_month": next_ym,
|
||||||
"all_months": all_months,
|
"all_months": all_months,
|
||||||
|
|
@ -148,6 +151,9 @@ def view_month(
|
||||||
{
|
{
|
||||||
"month": month,
|
"month": month,
|
||||||
"year_month": year_month,
|
"year_month": year_month,
|
||||||
|
"pretty_year_month": month_service.pretty_year_month(year_month),
|
||||||
|
"pretty_prev": month_service.pretty_year_month(prev_ym),
|
||||||
|
"pretty_next": month_service.pretty_year_month(next_ym),
|
||||||
"prev_year_month": prev_ym,
|
"prev_year_month": prev_ym,
|
||||||
"next_year_month": next_ym,
|
"next_year_month": next_ym,
|
||||||
"all_months": all_months,
|
"all_months": all_months,
|
||||||
|
|
|
||||||
BIN
src/quartermaster/static/brand/logo-full.png
Normal file
|
After Width: | Height: | Size: 398 KiB |
BIN
src/quartermaster/static/brand/logo-mark-wide.png
Normal file
|
After Width: | Height: | Size: 302 KiB |
BIN
src/quartermaster/static/brand/logo-shield-wide.png
Normal file
|
After Width: | Height: | Size: 163 KiB |
|
|
@ -4,14 +4,14 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<title>Quartermaster</title>
|
<title>Quartermaster</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600&family=Barlow:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="{{ url_for('static', path='app.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', path='app.css') }}">
|
||||||
|
<link rel="icon" type="image/png" href="{{ url_for('static', path='brand/logo-shield-wide.png') }}">
|
||||||
<script src="https://unpkg.com/htmx.org@2.0.3" defer></script>
|
<script src="https://unpkg.com/htmx.org@2.0.3" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
|
||||||
<h1>Quartermaster</h1>
|
|
||||||
<p class="subtitle">Household budget</p>
|
|
||||||
</header>
|
|
||||||
<main>
|
<main>
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="budget">
|
<div class="page">
|
||||||
<nav class="month-nav budget-nav">
|
<nav class="budget-nav">
|
||||||
<span class="month-label">Budget configuration</span>
|
<span class="month-label">Budget <span class="year">MMXXVI</span></span>
|
||||||
<span class="spacer"></span>
|
<a class="nav-link" href="/month/{{ current_year_month }}">This month ({{ current_year_month }}) →</a>
|
||||||
<a class="nav-link" href="/month/{{ current_year_month }}">This month ({{ current_year_month }})</a>
|
|
||||||
{% if all_months %}
|
{% if all_months %}
|
||||||
<select
|
<select
|
||||||
class="month-picker"
|
class="month-picker"
|
||||||
|
|
@ -18,13 +17,15 @@
|
||||||
</select>
|
</select>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{% include "partials/budget_zero.html" %}
|
{% include "partials/budget_zero.html" %}
|
||||||
|
|
||||||
{% for g in groups %}
|
{% for g in groups %}
|
||||||
<details class="group" id="group-{{ g.group.value }}"{% if g.default_open %} open{% endif %}>
|
<details class="group" id="group-{{ g.group.value }}"{% if g.default_open %} open{% endif %}>
|
||||||
<summary class="group-header">
|
<summary>
|
||||||
<span class="chevron" aria-hidden="true"></span>
|
<span class="chevron" aria-hidden="true"></span>
|
||||||
<span class="group-name">{{ g.label }}</span>
|
<span class="group-name">{{ g.label }}</span>
|
||||||
<span class="group-total" id="group-total-{{ g.group.value }}">${{ '%.2f' | format(g.total) }}</span>
|
<span class="group-total" id="group-total-{{ g.group.value }}">${{ '{:,.2f}'.format(g.total) }}</span>
|
||||||
</summary>
|
</summary>
|
||||||
{% for section in g.sections %}
|
{% for section in g.sections %}
|
||||||
{% include "partials/section.html" %}
|
{% include "partials/section.html" %}
|
||||||
|
|
@ -34,5 +35,10 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</details>
|
</details>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
<footer class="colophon">
|
||||||
|
the art of giving every dollar a job
|
||||||
|
<div class="signoff">Quartermaster</div>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,22 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="budget">
|
<div class="page">
|
||||||
{% include "partials/month_nav.html" %}
|
{% include "partials/month_nav.html" %}
|
||||||
|
<div class="back-link-row">
|
||||||
|
<a class="back-link" href="/">Back to Budget ›</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% include "partials/month_zero.html" %}
|
{% include "partials/month_zero.html" %}
|
||||||
|
|
||||||
{% for g in groups %}
|
{% for g in groups %}
|
||||||
<details class="group" id="group-{{ g.group.value }}"{% if g.default_open %} open{% endif %}>
|
<details class="group" id="group-{{ g.group.value }}"{% if g.default_open %} open{% endif %}>
|
||||||
<summary class="group-header">
|
<summary>
|
||||||
<span class="chevron" aria-hidden="true"></span>
|
<span class="chevron" aria-hidden="true"></span>
|
||||||
<span class="group-name">{{ g.label }}</span>
|
<span class="group-name">{{ g.label }}</span>
|
||||||
<span class="group-total" id="group-total-{{ g.group.value }}">
|
<span class="group-total" id="group-total-{{ g.group.value }}">
|
||||||
<span class="applied">${{ '%.2f' | format(g.total_applied) }}</span>
|
<span class="applied">${{ '{:,.2f}'.format(g.total_applied) }}</span>
|
||||||
<span class="divider">/</span>
|
<span class="divider">/</span>
|
||||||
<span class="planned">${{ '%.2f' | format(g.total_planned) }}</span>
|
<span class="planned">${{ '{:,.2f}'.format(g.total_planned) }}</span>
|
||||||
</span>
|
</span>
|
||||||
</summary>
|
</summary>
|
||||||
{% for section in g.sections %}
|
{% for section in g.sections %}
|
||||||
|
|
@ -22,5 +27,10 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</details>
|
</details>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
<footer class="colophon">
|
||||||
|
the art of giving every dollar a job
|
||||||
|
<div class="signoff">Quartermaster · {{ year_month }}</div>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="budget">
|
<div class="page">
|
||||||
{% include "partials/month_nav.html" %}
|
{% include "partials/month_nav.html" %}
|
||||||
<section class="section month-missing">
|
<div class="back-link-row">
|
||||||
<div class="section-header">
|
<a class="back-link" href="/">Back to Budget ›</a>
|
||||||
<h2>No snapshot yet</h2>
|
</div>
|
||||||
</div>
|
|
||||||
|
<section class="month-missing">
|
||||||
|
<h2>No snapshot yet</h2>
|
||||||
<p class="month-missing-body">
|
<p class="month-missing-body">
|
||||||
This month has not been created. Creating it will snapshot the current
|
This month has not been created. Creating it will snapshot the current
|
||||||
budget: every entry, its planned amount, and the current Primary Debt
|
budget: every entry, its planned amount, notes, and the current Primary
|
||||||
Target. Applied amounts start at $0.00.
|
Debt Target. Applied amounts start at $0.00.
|
||||||
</p>
|
</p>
|
||||||
<form
|
<form
|
||||||
hx-post="/month/{{ year_month }}/create"
|
hx-post="/month/{{ year_month }}/create"
|
||||||
|
|
@ -19,5 +21,10 @@
|
||||||
<button type="submit">Create {{ year_month }}</button>
|
<button type="submit">Create {{ year_month }}</button>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<footer class="colophon">
|
||||||
|
the art of giving every dollar a job
|
||||||
|
<div class="signoff">Quartermaster</div>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,22 @@
|
||||||
<section class="zero-widget" id="zero-widget" hx-swap-oob="outerHTML">
|
<section class="zero-widget" id="zero-widget" hx-swap-oob="outerHTML">
|
||||||
<div class="zero-label">Zero Amount</div>
|
<div class="zero-brand">
|
||||||
<div class="zero-value tone-{{ tone }}">${{ '%.2f' | format(zero) }}</div>
|
<img src="{{ url_for('static', path='brand/logo-full.png') }}" alt="Quartermaster">
|
||||||
|
</div>
|
||||||
|
<div class="zero-side left">
|
||||||
|
<div class="zero-sublabel">Budget balance</div>
|
||||||
|
<div class="zero-subvalue">{% if zero >= 0 %}unassigned{% else %}over-allocated{% endif %}</div>
|
||||||
|
</div>
|
||||||
|
<div class="zero-center">
|
||||||
|
<p class="zero-label">Zero Amount</p>
|
||||||
|
<h2 class="zero-value tone-{{ tone }}">
|
||||||
|
<span class="dollar">$</span>{{ '{:,.2f}'.format(zero).split('.')[0] }}<span class="cent">.{{ '{:,.2f}'.format(zero).split('.')[1] }}</span>
|
||||||
|
</h2>
|
||||||
|
<p class="zero-caption">
|
||||||
|
{% if tone == 'zero' %}every dollar has a home{% elif tone == 'positive' %}unassigned income remains{% else %}over-allocated, plan exceeds income{% endif %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="zero-side right">
|
||||||
|
<div class="zero-sublabel">Planning for</div>
|
||||||
|
<div class="zero-subvalue">{{ current_year_month }}</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,27 @@
|
||||||
<nav class="month-nav">
|
<nav class="month-line">
|
||||||
<a class="nav-link" href="/month/{{ prev_year_month }}" aria-label="Previous month">← {{ prev_year_month }}</a>
|
<a class="nav-month prev" href="/month/{{ prev_year_month }}" aria-label="Previous month">
|
||||||
<span class="month-label">{{ year_month }}</span>
|
<span class="chev">←</span> <em>{{ pretty_prev or prev_year_month }}</em>
|
||||||
<a class="nav-link" href="/month/{{ next_year_month }}" aria-label="Next month">{{ next_year_month }} →</a>
|
</a>
|
||||||
|
<h2 class="month-title">{{ pretty_year_month or year_month }}</h2>
|
||||||
|
<a class="nav-month next" href="/month/{{ next_year_month }}" aria-label="Next month">
|
||||||
|
<em>{{ pretty_next or next_year_month }}</em> <span class="chev">→</span>
|
||||||
|
</a>
|
||||||
{% if state %}
|
{% if state %}
|
||||||
<span class="state-badge state-{{ state }}">
|
<span class="state-badge state-{{ state }}">
|
||||||
{% if state == 'closed' and month.closed_at %}
|
{% if state == 'closed' and month and month.closed_at %}
|
||||||
Closed {{ month.closed_at.strftime('%Y-%m-%d') }}
|
Closed {{ month.closed_at.strftime('%Y-%m-%d') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ state | capitalize }}
|
{{ state }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
{% if state == 'planning' %}
|
{% if state == 'planning' %}
|
||||||
<form class="lifecycle-form" hx-post="/month/{{ year_month }}/activate" hx-swap="none">
|
<form class="lifecycle-form" hx-post="/month/{{ year_month }}/activate" hx-swap="none">
|
||||||
<button type="submit" class="primary">Activate</button>
|
<button type="submit">Activate</button>
|
||||||
</form>
|
</form>
|
||||||
{% elif state == 'active' %}
|
{% elif state == 'active' %}
|
||||||
<form class="lifecycle-form" hx-post="/month/{{ year_month }}/close" hx-swap="none">
|
<form class="lifecycle-form" hx-post="/month/{{ year_month }}/close" hx-swap="none">
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="primary"
|
|
||||||
{% if not can_close %}disabled title="Applied balance must equal $0.00 to close"{% endif %}
|
{% if not can_close %}disabled title="Applied balance must equal $0.00 to close"{% endif %}
|
||||||
>Close</button>
|
>Close</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -27,13 +30,16 @@
|
||||||
<button type="submit" class="secondary">Reopen</button>
|
<button type="submit" class="secondary">Reopen</button>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="spacer"></span>
|
{% if all_months and all_months|length > 1 %}
|
||||||
{% if all_months %}
|
|
||||||
<select
|
<select
|
||||||
class="month-picker"
|
class="month-picker"
|
||||||
onchange="if(this.value){window.location=this.value}"
|
onchange="if(this.value){window.location=this.value}"
|
||||||
aria-label="Jump to month"
|
aria-label="Jump to month"
|
||||||
|
style="grid-column: 1 / -1; justify-self: end; margin-top: 0.3rem;"
|
||||||
>
|
>
|
||||||
<option value="">Jump to...</option>
|
<option value="">Jump to...</option>
|
||||||
{% for m in all_months %}
|
{% for m in all_months %}
|
||||||
|
|
@ -44,5 +50,4 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="nav-link" href="/">Budget config</a>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,22 @@
|
||||||
<section class="zero-widget zero-widget-pair" id="zero-widget" hx-swap-oob="outerHTML">
|
<section class="zero-widget" id="zero-widget" hx-swap-oob="outerHTML">
|
||||||
<div class="zero-label">Zero Amount</div>
|
<div class="zero-brand">
|
||||||
<div class="zero-values">
|
<img src="{{ url_for('static', path='brand/logo-full.png') }}" alt="Quartermaster">
|
||||||
<div class="zero-cell">
|
</div>
|
||||||
<div class="zero-sublabel">Planned</div>
|
<div class="zero-side left">
|
||||||
<div class="zero-value tone-{{ planned_tone }}">${{ '%.2f' | format(zero.planned) }}</div>
|
<div class="zero-sublabel">Applied</div>
|
||||||
</div>
|
<div class="zero-subvalue">${{ '{:,.2f}'.format(zero.applied).split('.')[0] }}<span class="cent">.{{ '{:,.2f}'.format(zero.applied).split('.')[1] }}</span></div>
|
||||||
<div class="zero-cell">
|
</div>
|
||||||
<div class="zero-sublabel">Applied</div>
|
<div class="zero-center">
|
||||||
<div class="zero-value tone-{{ applied_tone }}">${{ '%.2f' | format(zero.applied) }}</div>
|
<p class="zero-label">Zero Amount</p>
|
||||||
</div>
|
<h2 class="zero-value tone-{{ applied_tone }}">
|
||||||
|
<span class="dollar">$</span>{{ '{:,.2f}'.format(zero.applied).split('.')[0] }}<span class="cent">.{{ '{:,.2f}'.format(zero.applied).split('.')[1] }}</span>
|
||||||
|
</h2>
|
||||||
|
<p class="zero-caption">
|
||||||
|
{% if applied_tone == 'zero' %}the month balances{% elif applied_tone == 'positive' %}unassigned income remains{% else %}applied exceeds income{% endif %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="zero-side right">
|
||||||
|
<div class="zero-sublabel">Planned</div>
|
||||||
|
<div class="zero-subvalue">${{ '{:,.2f}'.format(zero.planned).split('.')[0] }}<span class="cent">.{{ '{:,.2f}'.format(zero.planned).split('.')[1] }}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,16 @@
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<h2>{{ section.label }}</h2>
|
<h2>{{ section.label }}</h2>
|
||||||
<span class="total" data-testid="total-{{ section.section.value }}">
|
<span class="total" data-testid="total-{{ section.section.value }}">
|
||||||
${{ '%.2f' | format(section.total) }}
|
${{ '{:,.2f}'.format(section.total) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<table class="entries">
|
<table class="entries">
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for entry in section.entries %}
|
{% for entry in section.entries %}
|
||||||
<tr class="entry">
|
<tr class="entry state-unchanged" style="--ratio: 1">
|
||||||
<td class="entry-name">{{ entry.name }}</td>
|
<td class="entry-name">{{ entry.name }}</td>
|
||||||
<td class="entry-amount">${{ '%.2f' | format(entry.amount) }}</td>
|
<td class="entry-amount">${{ '{:,.2f}'.format(entry.amount) }}</td>
|
||||||
|
<td class="entry-amount"></td>
|
||||||
<td class="entry-actions">
|
<td class="entry-actions">
|
||||||
<button
|
<button
|
||||||
class="delete"
|
class="delete"
|
||||||
|
|
@ -23,7 +24,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="entry-notes-row">
|
<tr class="entry-notes-row">
|
||||||
<td colspan="3">
|
<td colspan="4">
|
||||||
<input
|
<input
|
||||||
class="notes-input"
|
class="notes-input"
|
||||||
type="text"
|
type="text"
|
||||||
|
|
@ -39,10 +40,10 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
{% else %}
|
||||||
<tr class="empty"><td colspan="3">No entries yet.</td></tr>
|
<tr class="empty"><td colspan="4">No entries yet.</td></tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<tr class="add-row">
|
<tr class="add-row">
|
||||||
<td colspan="3">
|
<td colspan="4">
|
||||||
<form
|
<form
|
||||||
class="add-form"
|
class="add-form"
|
||||||
hx-post="/sections/{{ section.section.value }}/entries"
|
hx-post="/sections/{{ section.section.value }}/entries"
|
||||||
|
|
|
||||||
|
|
@ -2,35 +2,37 @@
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<h2>Primary Debt Target</h2>
|
<h2>Primary Debt Target</h2>
|
||||||
{% if target.entry %}
|
{% if target.entry %}
|
||||||
<span class="total">${{ '%.2f' | format(target.entry.amount) }}</span>
|
<span class="total">${{ '{:,.2f}'.format(target.entry.amount) }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="total empty">$0.00</span>
|
<span class="total empty">$0.00</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<table class="entries">
|
<table class="entries">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="entry">
|
<tr class="entry" style="--ratio: 1">
|
||||||
<td class="entry-name">
|
<td class="entry-name">
|
||||||
{% if target.entry %}{{ target.entry.name }}{% else %}<span class="muted">No target selected.</span>{% endif %}
|
{% if target.entry %}{{ target.entry.name }}{% else %}<span class="muted">No target selected.</span>{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="entry-amount"></td>
|
<td class="entry-amount"></td>
|
||||||
|
<td class="entry-amount"></td>
|
||||||
<td class="entry-actions"></td>
|
<td class="entry-actions"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="add-row">
|
<tr class="add-row">
|
||||||
<td colspan="3">
|
<td colspan="4">
|
||||||
<form
|
<form
|
||||||
class="target-form"
|
class="target-form"
|
||||||
hx-post="/debt-target"
|
hx-post="/debt-target"
|
||||||
hx-target="#section-debt_target"
|
hx-target="#section-debt_target"
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
>
|
>
|
||||||
<select name="debt_minimum_id">
|
<label for="debt-target-select">Choose from Debt Minimums</label>
|
||||||
|
<select id="debt-target-select" name="debt_minimum_id">
|
||||||
<option value="">(none)</option>
|
<option value="">(none)</option>
|
||||||
{% for dm in debt_minimums %}
|
{% for dm in debt_minimums %}
|
||||||
<option
|
<option
|
||||||
value="{{ dm.id }}"
|
value="{{ dm.id }}"
|
||||||
{% if target.debt_minimum_id == dm.id %}selected{% endif %}
|
{% if target.debt_minimum_id == dm.id %}selected{% endif %}
|
||||||
>{{ dm.name }}: ${{ '%.2f' | format(dm.amount) }}</option>
|
>{{ dm.name }}: ${{ '{:,.2f}'.format(dm.amount) }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<button type="submit">Set</button>
|
<button type="submit">Set</button>
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,6 @@ def test_month_page_renders_paired_zero_widget(client):
|
||||||
client.post("/month/2026-04/create")
|
client.post("/month/2026-04/create")
|
||||||
response = client.get("/month/2026-04")
|
response = client.get("/month/2026-04")
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
assert "zero-widget-pair" in response.text
|
assert 'id="zero-widget"' in response.text
|
||||||
assert response.text.count("Planned") >= 1
|
assert response.text.count("Planned") >= 1
|
||||||
assert response.text.count("Applied") >= 1
|
assert response.text.count("Applied") >= 1
|
||||||
|
|
|
||||||