Size adoption report for letter paper

This commit is contained in:
Corey Blais
2026-06-02 17:10:55 -04:00
committed by blaisadmin
parent 6918b55a58
commit b76ad35c07
+39 -38
View File
@@ -4228,11 +4228,12 @@ function App() {
box-sizing: border-box; box-sizing: border-box;
color: var(--ink); color: var(--ink);
font-family: Inter, Arial, sans-serif; font-family: Inter, Arial, sans-serif;
line-height: 1.45; font-size: 13px;
line-height: 1.38;
margin: 0 auto; margin: 0 auto;
max-width: 1080px; max-width: 8.5in;
min-height: 100vh; min-height: 100vh;
padding: 32px; padding: 0.4in;
position: relative; position: relative;
} }
*, *::before, *::after { box-sizing: inherit; } *, *::before, *::after { box-sizing: inherit; }
@@ -4244,29 +4245,29 @@ function App() {
border-radius: 16px; border-radius: 16px;
box-shadow: 0 16px 34px rgba(86, 63, 34, 0.14); box-shadow: 0 16px 34px rgba(86, 63, 34, 0.14);
display: grid; display: grid;
gap: 22px; gap: 14px;
grid-template-columns: minmax(150px, 190px) minmax(240px, 1fr) minmax(190px, 240px); grid-template-columns: 1.35in minmax(2.1in, 1fr) 1.65in;
min-height: 214px; min-height: 1.62in;
padding: 18px; padding: 0.16in;
} }
h1, h2, h3, p { margin: 0; } h1, h2, h3, p { margin: 0; }
h1 { color: var(--red); font-size: 34px; letter-spacing: 0; } h1 { color: var(--red); font-size: 24px; letter-spacing: 0; }
h2 { h2 {
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
color: var(--green); color: var(--green);
font-size: 19px; font-size: 16px;
margin: 28px 0 12px; margin: 20px 0 8px;
padding-bottom: 8px; padding-bottom: 6px;
} }
h3 { color: var(--blue); font-size: 14px; margin: 18px 0 8px; text-transform: uppercase; } h3 { color: var(--blue); font-size: 12px; margin: 14px 0 6px; text-transform: uppercase; }
.muted { color: var(--muted); margin-top: 6px; } .muted { color: var(--muted); margin-top: 6px; }
.brand-logo { .brand-logo {
align-self: center; align-self: center;
height: auto; height: auto;
justify-self: start; justify-self: start;
max-height: 190px; max-height: 1.3in;
object-fit: contain; object-fit: contain;
width: 190px; width: 1.3in;
} }
.report-title { .report-title {
align-self: center; align-self: center;
@@ -4278,23 +4279,23 @@ function App() {
aspect-ratio: 1; aspect-ratio: 1;
background: #fff; background: #fff;
border: 3px solid var(--paper); border: 3px solid var(--paper);
border-radius: 18px; border-radius: 14px;
box-shadow: 0 10px 22px rgba(86, 63, 34, 0.16); box-shadow: 0 10px 22px rgba(86, 63, 34, 0.16);
height: 132px; height: 0.95in;
margin: 0 auto 12px; margin: 0 auto 8px;
object-fit: cover; object-fit: cover;
width: 132px; width: 0.95in;
} }
.qr { align-self: center; justify-self: end; max-width: 240px; text-align: center; width: 100%; } .qr { align-self: center; justify-self: end; max-width: 1.65in; text-align: center; width: 100%; }
.qr svg { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; width: 128px; } .qr svg { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; width: 0.92in; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; overflow-wrap: anywhere; } .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.qr-join-label { .qr-join-label {
color: var(--green); color: var(--green);
font-size: 12px; font-size: 10px;
font-weight: 800; font-weight: 800;
letter-spacing: 0.08em; letter-spacing: 0.08em;
line-height: 1; line-height: 1;
margin-bottom: -18px; margin-bottom: -14px;
position: relative; position: relative;
text-transform: uppercase; text-transform: uppercase;
z-index: 1; z-index: 1;
@@ -4302,41 +4303,41 @@ function App() {
.qr-wordmark { .qr-wordmark {
display: block; display: block;
height: auto; height: auto;
margin: -18px auto -8px; margin: -14px auto -6px;
max-height: 96px; max-height: 0.74in;
object-fit: contain; object-fit: contain;
width: min(100%, 240px); width: min(100%, 1.65in);
} }
.qr-note { .qr-note {
color: var(--blue); color: var(--blue);
font-family: "Avenir Next", "Arial Rounded MT Bold", Arial, sans-serif; font-family: "Avenir Next", "Arial Rounded MT Bold", Arial, sans-serif;
font-size: 12px; font-size: 10px;
font-weight: 800; font-weight: 800;
letter-spacing: 0; letter-spacing: 0;
line-height: 1.28; line-height: 1.28;
margin-top: 8px; margin-top: 5px;
} }
.grid { stroke: rgba(53, 129, 98, 0.16); } .grid { stroke: rgba(53, 129, 98, 0.16); }
.current { fill: none; stroke: ${escapeReportHtml(selectedBird.chartColor)}; stroke-linecap: round; stroke-width: 4; } .current { fill: none; stroke: ${escapeReportHtml(selectedBird.chartColor)}; stroke-linecap: round; stroke-width: 4; }
.historical { fill: none; opacity: .45; stroke: ${escapeReportHtml(selectedBird.chartColor)}; stroke-linecap: round; stroke-width: 3; } .historical { fill: none; opacity: .45; stroke: ${escapeReportHtml(selectedBird.chartColor)}; stroke-linecap: round; stroke-width: 3; }
.dot { fill: ${escapeReportHtml(selectedBird.chartColor)}; stroke: white; stroke-width: 2; } .dot { fill: ${escapeReportHtml(selectedBird.chartColor)}; stroke: white; stroke-width: 2; }
.facts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { background: ${panelBackground}; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; } .fact { background: ${panelBackground}; border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; }
.fact span { color: var(--muted); display: block; font-size: 12px; margin-bottom: 4px; text-transform: uppercase; } .fact span { color: var(--muted); display: block; font-size: 10px; margin-bottom: 3px; text-transform: uppercase; }
table { border-collapse: collapse; width: 100%; } table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--border); padding: 9px 8px; text-align: left; vertical-align: top; } th, td { border-bottom: 1px solid var(--border); padding: 6px 7px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; } th { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.note { border-bottom: 1px solid var(--border); padding: 10px 0; } .note { border-bottom: 1px solid var(--border); padding: 7px 0; }
.note p { margin-top: 6px; white-space: pre-wrap; } .note p { margin-top: 4px; white-space: pre-wrap; }
main { margin-top: 24px; } main { margin-top: 16px; }
@media print { @media print {
@page { margin: 14mm; } @page { margin: 0.4in; size: letter; }
body { margin: 0 auto; padding: 0; } body { margin: 0 auto; padding: 0; }
header { box-shadow: none; break-inside: avoid; } header { box-shadow: none; break-inside: avoid; }
button { display: none; } button { display: none; }
} }
@media (max-width: 820px) { @media (max-width: 820px) {
body { padding: 20px; } body { padding: 18px; }
header { header {
grid-template-columns: 1fr; grid-template-columns: 1fr;
justify-items: center; justify-items: center;