diff --git a/static/styles.css b/static/styles.css index 5ff70fd..f9fe7af 100644 --- a/static/styles.css +++ b/static/styles.css @@ -27,7 +27,13 @@ * { box-sizing: border-box; } -body { margin: 0; min-width: 320px; } +/* The page is a column that fills the window, so the footer sits at the bottom + even when the content is short. `dvh` follows a mobile browser's own height + where it is supported, and `vh` is the fallback. */ +body { margin: 0; min-width: 320px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; } +/* The page body takes the room that is left between the top bar and the + footer. */ +main { flex: 1 1 auto; } a { color: var(--title); } /* The window chrome: a navy title bar, the way the desktop showed one. */ @@ -44,7 +50,10 @@ a { color: var(--title); } } .brand { display: inline-flex; align-items: center; gap: 6px; color: var(--title-text); font-size: 13px; font-weight: 700; text-decoration: none; } -.brand-mark { display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; color: #000000; background: var(--face); font-size: 11px; font-weight: 700; } +/* The brand mark is the app icon, so it is a small image on a raised face, not + a letter. `image-rendering: pixelated` keeps the flat retro drawing crisp + when it is scaled down (section 32.1). */ +.brand-mark { width: 18px; height: 18px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; background: var(--face); image-rendering: pixelated; } .topbar .back-link { color: var(--title-text); font-weight: 400; } .topbar .back-link:hover { text-decoration: underline; } .muted-label { color: var(--muted); font-size: 12px; }