Use organization-neutral names in code and browser keys

- The timeline's ngu-tl classes and keyframes are site-tl; nguLogo is
  siteLogo; the event card's ngu grid area is org; window.__NGU_SITE__
  is window.__SITE__; QR downloads are qr-<page>.png
- Browser keys (theme, closed banner and privacy notice, chunk reload)
  start site-; the page's first script moves any old ngu- values over
  once, so nobody loses their theme or sees a closed notice again
- Session and Google sign-in cookies are site_session and site_oauth
  (__Host- over https); everyone signs in again once

Record ids, server paths, the service and the database file keep
their names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 09:23:29 -05:00
parent 92e7938b64
commit 2b009beac1
23 changed files with 191 additions and 181 deletions

View file

@ -1,5 +1,5 @@
/**
* History timeline, scoped under .ngu-tl.
* History timeline, scoped under .site-tl.
*
* Everything themeable is a custom property with a fallback, so rewiring to the
* site tokens is a one-block edit at the top. Typefaces are deliberately not
@ -7,7 +7,7 @@
* and tracking.
*/
.ngu-tl {
.site-tl {
/* Defaults match the site palette; History.tsx overrides accent and
surface per section so the rail sits on the right background. */
--tl-ink: var(--color-ink);
@ -26,7 +26,7 @@
}
@media (max-width: 640px) {
.ngu-tl {
.site-tl {
--tl-gutter: 3rem;
--tl-rail-x: 1rem;
}
@ -34,13 +34,13 @@
/* --- Decade block ----------------------------------------------- */
.ngu-tl__decade {
.site-tl__decade {
position: relative;
}
/* The rail. One per decade block so the pre-program run can change style
without breaking the line's continuity. */
.ngu-tl__decade::before {
.site-tl__decade::before {
content: '';
position: absolute;
top: 0;
@ -50,25 +50,25 @@
background: var(--tl-rail);
}
.ngu-tl__decade--pre::before {
.site-tl__decade--pre::before {
background: none;
border-left: var(--tl-rail-w) dashed var(--tl-rail);
opacity: 0.7;
}
/* Last decade fades out rather than stopping dead. */
.ngu-tl__decade:last-child::before {
.site-tl__decade:last-child::before {
bottom: 2rem;
mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.ngu-tl__decade--pre {
.site-tl__decade--pre {
color: var(--tl-muted);
}
/* --- Decade header ----------------------------------------------- */
.ngu-tl__decadeHead {
.site-tl__decadeHead {
position: relative;
display: grid;
grid-template-columns: var(--tl-gutter) minmax(0, 1fr);
@ -76,12 +76,12 @@
padding-block: 3.5rem 1.75rem;
}
.ngu-tl__decade:first-child .ngu-tl__decadeHead {
.site-tl__decade:first-child .site-tl__decadeHead {
padding-block-start: 0.5rem;
}
/* Numeral breaks the rail. */
.ngu-tl__decadeNum {
.site-tl__decadeNum {
position: relative;
z-index: 1;
margin-left: calc(var(--tl-rail-x) * -1 + 0.125rem);
@ -97,11 +97,11 @@
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
}
.ngu-tl__decade--pre .ngu-tl__decadeNum {
.site-tl__decade--pre .site-tl__decadeNum {
color: var(--tl-faint);
}
.ngu-tl__decadeTitle {
.site-tl__decadeTitle {
font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
font-weight: 600;
line-height: 1.12;
@ -110,7 +110,7 @@
max-width: 22ch;
}
.ngu-tl__decadeTagline {
.site-tl__decadeTagline {
margin: 0.5rem 0 0;
font-size: 1.0625rem;
line-height: 1.5;
@ -118,7 +118,7 @@
max-width: 54ch;
}
.ngu-tl__decadeBlurb {
.site-tl__decadeBlurb {
margin: 0.875rem 0 0;
font-size: 0.9375rem;
line-height: 1.65;
@ -126,7 +126,7 @@
max-width: 62ch;
}
.ngu-tl__gapNote {
.site-tl__gapNote {
margin: 1rem 0 0;
display: inline-flex;
align-items: center;
@ -140,11 +140,11 @@
/* --- Year node ------------------------------------------------ */
.ngu-tl__year {
.site-tl__year {
position: relative;
}
.ngu-tl__yearBtn {
.site-tl__yearBtn {
position: relative;
z-index: 1;
display: grid;
@ -161,18 +161,18 @@
border-radius: 0.375rem;
}
.ngu-tl__yearBtn:hover .ngu-tl__yearLabel {
.site-tl__yearBtn:hover .site-tl__yearLabel {
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
}
.ngu-tl__yearBtn:focus-visible {
.site-tl__yearBtn:focus-visible {
outline: 2px solid var(--tl-accent);
outline-offset: 2px;
}
/* Dot sits on the rail; --tl-dot is set inline from the year's item count, so
scrolling the page gives you the organization's density at a glance. */
.ngu-tl__dot {
.site-tl__dot {
position: relative;
justify-self: start;
margin-left: calc(var(--tl-rail-x) - (var(--tl-dot, 8px) / 2) + (var(--tl-rail-w) / 2));
@ -184,15 +184,15 @@
transition: background-color 140ms ease, transform 140ms ease;
}
.ngu-tl__yearBtn:hover .ngu-tl__dot {
.site-tl__yearBtn:hover .site-tl__dot {
background: var(--tl-accent);
}
.ngu-tl__year--featured .ngu-tl__dot {
.site-tl__year--featured .site-tl__dot {
background: var(--tl-accent);
}
.ngu-tl__year--featured .ngu-tl__dot::after {
.site-tl__year--featured .site-tl__dot::after {
content: '';
position: absolute;
inset: -5px;
@ -201,17 +201,17 @@
opacity: 0.45;
}
.ngu-tl__year--open .ngu-tl__dot {
.site-tl__year--open .site-tl__dot {
background: var(--tl-accent);
transform: scale(1.15);
}
.ngu-tl__decade--pre .ngu-tl__dot {
.site-tl__decade--pre .site-tl__dot {
background: var(--tl-surface);
border: 1.5px solid var(--tl-rail);
}
.ngu-tl__yearLabel {
.site-tl__yearLabel {
font-size: 1.125rem;
font-weight: 550;
font-variant-numeric: tabular-nums;
@ -219,41 +219,41 @@
transition: color 140ms ease;
}
.ngu-tl__yearCount {
.site-tl__yearCount {
font-size: 0.8125rem;
font-variant-numeric: tabular-nums;
color: var(--tl-faint);
padding-right: 0.25rem;
}
.ngu-tl__year--empty .ngu-tl__yearLabel {
.site-tl__year--empty .site-tl__yearLabel {
color: var(--tl-faint);
font-weight: 450;
}
/* --- Expanded panel ------------------------------------------- */
.ngu-tl__panel {
.site-tl__panel {
padding: 0.25rem 0 1.5rem var(--tl-gutter);
animation: ngu-tl-reveal 220ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
animation: site-tl-reveal 220ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes ngu-tl-reveal {
@keyframes site-tl-reveal {
from {
opacity: 0;
transform: translateY(-4px);
}
}
.ngu-tl__month {
.site-tl__month {
margin-top: 1.5rem;
}
.ngu-tl__month:first-child {
.site-tl__month:first-child {
margin-top: 0.5rem;
}
.ngu-tl__monthLabel {
.site-tl__monthLabel {
display: flex;
align-items: center;
gap: 0.75rem;
@ -263,7 +263,7 @@
color: var(--tl-muted);
}
.ngu-tl__monthLabel::after {
.site-tl__monthLabel::after {
content: '';
flex: 1;
height: 1px;
@ -271,13 +271,13 @@
opacity: 0.6;
}
.ngu-tl__undated .ngu-tl__monthLabel {
.site-tl__undated .site-tl__monthLabel {
font-style: italic;
font-weight: 450;
color: var(--tl-faint);
}
.ngu-tl__list {
.site-tl__list {
list-style: none;
margin: 0;
padding: 0;
@ -288,7 +288,7 @@
/* --- Entry ----------------------------------------------------- */
.ngu-tl__entry {
.site-tl__entry {
display: grid;
grid-template-columns: 2.75rem minmax(0, 1fr);
gap: 0.75rem;
@ -298,16 +298,16 @@
color: inherit;
}
a.ngu-tl__entry:hover {
a.site-tl__entry:hover {
background: var(--tl-accent-soft);
}
a.ngu-tl__entry:focus-visible {
a.site-tl__entry:focus-visible {
outline: 2px solid var(--tl-accent);
outline-offset: 1px;
}
.ngu-tl__entryDay {
.site-tl__entryDay {
font-size: 0.8125rem;
font-variant-numeric: tabular-nums;
color: var(--tl-faint);
@ -315,25 +315,25 @@ a.ngu-tl__entry:focus-visible {
text-align: right;
}
.ngu-tl__entryTitle {
.site-tl__entryTitle {
display: block;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.45;
}
a.ngu-tl__entry:hover .ngu-tl__entryTitle {
a.site-tl__entry:hover .site-tl__entryTitle {
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
}
.ngu-tl__entryMeta {
.site-tl__entryMeta {
display: block;
margin-top: 0.125rem;
font-size: 0.8125rem;
color: var(--tl-muted);
}
.ngu-tl__entryBlurb {
.site-tl__entryBlurb {
margin: 0.375rem 0 0;
font-size: 0.875rem;
line-height: 1.6;
@ -343,7 +343,7 @@ a.ngu-tl__entry:hover .ngu-tl__entryTitle {
/* Kind marker: a shape, not a colored pill, so a screenful of entries stays
calm and the type still carries the hierarchy. */
.ngu-tl__kind {
.site-tl__kind {
display: inline-block;
width: 0.5rem;
height: 0.5rem;
@ -352,20 +352,20 @@ a.ngu-tl__entry:hover .ngu-tl__entryTitle {
background: var(--tl-faint);
}
.ngu-tl__kind--milestone {
.site-tl__kind--milestone {
border-radius: 50%;
background: var(--tl-accent);
}
.ngu-tl__kind--event {
.site-tl__kind--event {
border-radius: 1px;
}
.ngu-tl__kind--award {
.site-tl__kind--award {
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.ngu-tl__kind--person {
.site-tl__kind--person {
border-radius: 50%;
background: none;
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
@ -373,14 +373,14 @@ a.ngu-tl__entry:hover .ngu-tl__entryTitle {
/* --- Featured entries ----------------------------------------- */
.ngu-tl__featured {
.site-tl__featured {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 0.5rem;
}
.ngu-tl__entry--featured {
.site-tl__entry--featured {
grid-template-columns: minmax(0, 1fr);
padding: 1rem 1.125rem;
border-left: 2px solid var(--tl-accent);
@ -388,33 +388,33 @@ a.ngu-tl__entry:hover .ngu-tl__entryTitle {
border-radius: 0 0.5rem 0.5rem 0;
}
.ngu-tl__entry--featured .ngu-tl__entryTitle {
.site-tl__entry--featured .site-tl__entryTitle {
font-size: 1.0625rem;
font-weight: 600;
letter-spacing: -0.008em;
}
.ngu-tl__entry--featured .ngu-tl__entryDay {
.site-tl__entry--featured .site-tl__entryDay {
text-align: left;
padding: 0 0 0.25rem;
}
a.ngu-tl__entry--featured:hover {
a.site-tl__entry--featured:hover {
background: color-mix(in srgb, var(--tl-accent) 18%, transparent);
}
/* --- Empty state ----------------------------------------------- */
.ngu-tl__empty {
.site-tl__empty {
padding: 0.5rem 0 1.25rem var(--tl-gutter);
font-size: 0.875rem;
color: var(--tl-faint);
}
@media (prefers-reduced-motion: reduce) {
.ngu-tl *,
.ngu-tl *::before,
.ngu-tl *::after {
.site-tl *,
.site-tl *::before,
.site-tl *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
@ -422,13 +422,13 @@ a.ngu-tl__entry--featured:hover {
/* --- Toolbar + utilities ------------------------------------- */
.ngu-tl__toolbar {
.site-tl__toolbar {
display: flex;
justify-content: flex-end;
padding-bottom: 1rem;
}
.ngu-tl__toolbarBtn {
.site-tl__toolbarBtn {
padding: 0.375rem 0.75rem;
border: 1px solid var(--tl-rail);
border-radius: 999px;
@ -440,23 +440,23 @@ a.ngu-tl__entry--featured:hover {
transition: color 140ms ease, border-color 140ms ease;
}
.ngu-tl__toolbarBtn:hover {
.site-tl__toolbarBtn:hover {
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
border-color: var(--tl-accent);
}
.ngu-tl__toolbarBtn:focus-visible {
.site-tl__toolbarBtn:focus-visible {
outline: 2px solid var(--tl-accent);
outline-offset: 2px;
}
.ngu-tl__emptyState {
.site-tl__emptyState {
padding: 3rem 0;
color: var(--tl-muted);
font-size: 0.9375rem;
}
.ngu-tl__srOnly {
.site-tl__srOnly {
position: absolute;
width: 1px;
height: 1px;
@ -472,14 +472,14 @@ a.ngu-tl__entry--featured:hover {
Opens upward: the toggle is first in the DOM, column-reverse puts the
list above it. Faded because none of it has happened yet. */
.ngu-tl__upcoming {
.site-tl__upcoming {
position: relative;
display: flex;
flex-direction: column-reverse;
padding-bottom: 0.5rem;
}
.ngu-tl__upcoming::before {
.site-tl__upcoming::before {
content: '';
position: absolute;
top: 1.25rem;
@ -488,7 +488,7 @@ a.ngu-tl__entry--featured:hover {
border-left: var(--tl-rail-w) dashed var(--tl-rail);
}
.ngu-tl__upcomingBtn {
.site-tl__upcomingBtn {
position: relative;
z-index: 1;
display: grid;
@ -504,17 +504,17 @@ a.ngu-tl__entry--featured:hover {
cursor: pointer;
}
.ngu-tl__upcomingBtn:hover {
.site-tl__upcomingBtn:hover {
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
}
.ngu-tl__upcomingBtn:focus-visible {
.site-tl__upcomingBtn:focus-visible {
outline: 2px solid var(--tl-accent);
outline-offset: 2px;
border-radius: 0.375rem;
}
.ngu-tl__upcomingDot {
.site-tl__upcomingDot {
justify-self: start;
margin-left: calc(var(--tl-rail-x) - 4px + (var(--tl-rail-w) / 2));
width: 8px;
@ -524,32 +524,32 @@ a.ngu-tl__entry--featured:hover {
box-shadow: 0 0 0 4px var(--tl-surface);
}
.ngu-tl__upcomingLabel {
.site-tl__upcomingLabel {
font-size: 0.875rem;
}
.ngu-tl__chevron {
.site-tl__chevron {
font-size: 0.75rem;
padding-right: 0.25rem;
}
/* Everything above the toggle is provisional, and reads that way. */
.ngu-tl__upcomingList {
.site-tl__upcomingList {
opacity: 0.62;
animation: ngu-tl-rise 240ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
animation: site-tl-rise 240ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.ngu-tl__upcomingList:hover,
.ngu-tl__upcomingList:focus-within {
.site-tl__upcomingList:hover,
.site-tl__upcomingList:focus-within {
opacity: 1;
}
.ngu-tl__upcomingList .ngu-tl__dot {
.site-tl__upcomingList .site-tl__dot {
background: var(--tl-surface);
border: 1.5px dashed var(--tl-accent);
}
@keyframes ngu-tl-rise {
@keyframes site-tl-rise {
from {
opacity: 0;
transform: translateY(8px);
@ -558,7 +558,7 @@ a.ngu-tl__entry--featured:hover {
/* --- Event / org / award logo --------------------------------- */
.ngu-tl__logo {
.site-tl__logo {
display: inline-block;
width: 1.125rem;
height: 1.125rem;
@ -570,12 +570,12 @@ a.ngu-tl__entry--featured:hover {
/* An 18px mark: the dark-mode backing (.logo-plate, index.css) with
a hairline of padding, not the usual quarter rem. */
:root[data-theme] .ngu-tl__logo.logo-plate {
:root[data-theme] .site-tl__logo.logo-plate {
padding: 1px;
border-radius: 3px;
}
.ngu-tl__entry--featured .ngu-tl__logo {
.site-tl__entry--featured .site-tl__logo {
width: 1.5rem;
height: 1.5rem;
vertical-align: -0.3125rem;
@ -583,15 +583,15 @@ a.ngu-tl__entry--featured:hover {
/* --- People roster ------------------------------------------- */
.ngu-tl__entryWrap {
.site-tl__entryWrap {
display: block;
}
.ngu-tl__roster {
.site-tl__roster {
padding: 0.125rem 0 0.5rem 3.5rem;
}
.ngu-tl__roster--featured {
.site-tl__roster--featured {
padding: 0.5rem 1.125rem 1rem;
border-left: 2px solid var(--tl-accent);
background: var(--tl-accent-soft);
@ -599,14 +599,14 @@ a.ngu-tl__entry--featured:hover {
border-radius: 0 0 0.5rem 0;
}
.ngu-tl__rosterTeam {
.site-tl__rosterTeam {
display: block;
margin-bottom: 0.5rem;
font-size: 0.75rem;
color: var(--tl-faint);
}
.ngu-tl__people {
.site-tl__people {
display: flex;
flex-wrap: wrap;
gap: 0.375rem 1rem;
@ -615,13 +615,13 @@ a.ngu-tl__entry--featured:hover {
padding: 0;
}
.ngu-tl__person {
.site-tl__person {
display: flex;
align-items: center;
gap: 0.5rem;
}
.ngu-tl__personPhoto {
.site-tl__personPhoto {
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
@ -630,7 +630,7 @@ a.ngu-tl__entry--featured:hover {
flex: none;
}
.ngu-tl__personPhoto--blank {
.site-tl__personPhoto--blank {
display: grid;
place-items: center;
font-size: 0.625rem;
@ -639,12 +639,12 @@ a.ngu-tl__entry--featured:hover {
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
}
.ngu-tl__personName {
.site-tl__personName {
font-size: 0.8125rem;
line-height: 1.25;
}
.ngu-tl__personTitle {
.site-tl__personTitle {
display: block;
font-size: 0.6875rem;
color: var(--tl-faint);
@ -652,19 +652,19 @@ a.ngu-tl__entry--featured:hover {
/* --- Kind markers, continued --------------------------------- */
.ngu-tl__kind--organization {
.site-tl__kind--organization {
border-radius: 2px;
background: none;
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
}
.ngu-tl__kind--people {
.site-tl__kind--people {
border-radius: 50%;
background: none;
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
}
.ngu-tl__entryBody {
.site-tl__entryBody {
display: block;
min-width: 0;
}