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:
parent
92e7938b64
commit
2b009beac1
23 changed files with 191 additions and 181 deletions
|
|
@ -45,10 +45,10 @@ Both lines are already in every proxied block in `nginx-dev` and in
|
||||||
|
|
||||||
## Sign-in
|
## Sign-in
|
||||||
|
|
||||||
- The session cookie is `__Host-ngu_session`: the browser only
|
- The session cookie is `__Host-site_session`: the browser only
|
||||||
accepts it Secure, on path `/`, with no Domain, so another
|
accepts it Secure, on path `/`, with no Domain, so another
|
||||||
subdomain can't set or overwrite it. With `COOKIE_SECURE=false`
|
subdomain can't set or overwrite it. With `COOKIE_SECURE=false`
|
||||||
(plain-http local work) it's `ngu_session`, since the prefix needs
|
(plain-http local work) it's `site_session`, since the prefix needs
|
||||||
Secure.
|
Secure.
|
||||||
- Logins are limited per IP where `/api/auth/login` is mounted (10
|
- Logins are limited per IP where `/api/auth/login` is mounted (10
|
||||||
per 15 minutes, `server/src/index.js`) and per email in
|
per 15 minutes, `server/src/index.js`) and per email in
|
||||||
|
|
@ -64,8 +64,8 @@ Both lines are already in every proxied block in `nginx-dev` and in
|
||||||
entry becomes the proxy's address and every visitor shares one
|
entry becomes the proxy's address and every visitor shares one
|
||||||
rate-limit bucket: set nginx's `real_ip_header` and
|
rate-limit bucket: set nginx's `real_ip_header` and
|
||||||
`set_real_ip_from` for the proxy first.
|
`set_real_ip_from` for the proxy first.
|
||||||
- The Google sign-in state cookie is `__Host-ngu_oauth` (plain
|
- The Google sign-in state cookie is `__Host-site_oauth` (plain
|
||||||
`ngu_oauth` over local http), and the page it returns to is checked
|
`site_oauth` over local http), and the page it returns to is checked
|
||||||
again when the browser comes back.
|
again when the browser comes back.
|
||||||
|
|
||||||
## From nginx: HSTS
|
## From nginx: HSTS
|
||||||
|
|
|
||||||
12
index.html
12
index.html
|
|
@ -12,7 +12,17 @@
|
||||||
flash: this browser's choice (ThemeToggle), else the system. -->
|
flash: this browser's choice (ThemeToggle), else the system. -->
|
||||||
<script>
|
<script>
|
||||||
try {
|
try {
|
||||||
var t = localStorage.getItem("ngu-theme");
|
// Once: browser keys used to start "ngu-"; move them to "site-"
|
||||||
|
// so a visitor keeps their theme and closed notices.
|
||||||
|
for (var i = localStorage.length - 1; i >= 0; i--) {
|
||||||
|
var k = localStorage.key(i);
|
||||||
|
if (k && k.indexOf("ngu-") === 0) {
|
||||||
|
var nk = "site-" + k.slice(4);
|
||||||
|
if (localStorage.getItem(nk) === null) localStorage.setItem(nk, localStorage.getItem(k));
|
||||||
|
localStorage.removeItem(k);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var t = localStorage.getItem("site-theme");
|
||||||
document.documentElement.dataset.theme =
|
document.documentElement.dataset.theme =
|
||||||
t === "dark" || t === "light" ? t : matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
t === "dark" || t === "light" ? t : matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ export const SECURE_COOKIE = (process.env.COOKIE_SECURE ?? "true") !== "false";
|
||||||
// path /, with no Domain, so a sibling subdomain can't plant or
|
// path /, with no Domain, so a sibling subdomain can't plant or
|
||||||
// overwrite it. Plain http (local work, COOKIE_SECURE=false) can't
|
// overwrite it. Plain http (local work, COOKIE_SECURE=false) can't
|
||||||
// use the prefix, so it keeps the plain name.
|
// use the prefix, so it keeps the plain name.
|
||||||
export const COOKIE_NAME = SECURE_COOKIE ? "__Host-ngu_session" : "ngu_session";
|
export const COOKIE_NAME = SECURE_COOKIE ? "__Host-site_session" : "site_session";
|
||||||
|
|
||||||
const IP_SALT = process.env.IP_SALT ?? randomBytes(16).toString("hex");
|
const IP_SALT = process.env.IP_SALT ?? randomBytes(16).toString("hex");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ app.use("/api/admin/*", logger());
|
||||||
/api/csp-report (journalctl -u ngu-api). Once a while of real use
|
/api/csp-report (journalctl -u ngu-api). Once a while of real use
|
||||||
logs nothing unexpected, switch contentSecurityPolicyReportOnly to
|
logs nothing unexpected, switch contentSecurityPolicyReportOnly to
|
||||||
contentSecurityPolicy. 'unsafe-inline' scripts cover the page's
|
contentSecurityPolicy. 'unsafe-inline' scripts cover the page's
|
||||||
window.__NGU_SITE__ and the theme script in index.html. */
|
window.__SITE__ and the theme script in index.html. */
|
||||||
const EMBEDS = [
|
const EMBEDS = [
|
||||||
"https://www.youtube-nocookie.com",
|
"https://www.youtube-nocookie.com",
|
||||||
"https://www.youtube.com",
|
"https://www.youtube.com",
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
site_settings table, 035), where anything set wins and anything
|
site_settings table, 035), where anything set wins and anything
|
||||||
blank falls back to site.json. siteFor(db) does the merge. The
|
blank falls back to site.json. siteFor(db) does the merge. The
|
||||||
pages read the same merged values (renderPage writes them into
|
pages read the same merged values (renderPage writes them into
|
||||||
the HTML as window.__NGU_SITE__, see src/lib/site.ts), so a
|
the HTML as window.__SITE__, see src/lib/site.ts), so a
|
||||||
heading and its search title can't drift.
|
heading and its search title can't drift.
|
||||||
The database: records' names, taglines, first paragraphs and
|
The database: records' names, taglines, first paragraphs and
|
||||||
images. A blank site description falls back to the front page's
|
images. A blank site description falls back to the front page's
|
||||||
|
|
@ -468,7 +468,7 @@ export function renderPage(html, meta) {
|
||||||
),
|
),
|
||||||
// Read by src/lib/site.ts before the app's module runs (a plain
|
// Read by src/lib/site.ts before the app's module runs (a plain
|
||||||
// script in the head runs during parsing; modules wait).
|
// script in the head runs during parsing; modules wait).
|
||||||
`<script>window.__NGU_SITE__ = ${scriptJson(forBrowser(site))}</script>`,
|
`<script>window.__SITE__ = ${scriptJson(forBrowser(site))}</script>`,
|
||||||
site.themeCss && `<style id="site-colors">${site.themeCss}</style>`,
|
site.themeCss && `<style id="site-colors">${site.themeCss}</style>`,
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ auth.get("/me", (c) => {
|
||||||
// the redirect from Google, which is a top-level navigation.
|
// the redirect from Google, which is a top-level navigation.
|
||||||
// __Host- (Secure, path /, no Domain) when over https, like the
|
// __Host- (Secure, path /, no Domain) when over https, like the
|
||||||
// session cookie, so a sibling subdomain can't plant its own state.
|
// session cookie, so a sibling subdomain can't plant its own state.
|
||||||
const OAUTH_COOKIE = SECURE_COOKIE ? "__Host-ngu_oauth" : "ngu_oauth";
|
const OAUTH_COOKIE = SECURE_COOKIE ? "__Host-site_oauth" : "site_oauth";
|
||||||
const OAUTH_COOKIE_OPTIONS = {
|
const OAUTH_COOKIE_OPTIONS = {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: SECURE_COOKIE,
|
secure: SECURE_COOKIE,
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import Home from "./pages/Home.tsx"
|
||||||
/* A page's chunk can be missing when a deploy replaced the build while
|
/* A page's chunk can be missing when a deploy replaced the build while
|
||||||
this tab still ran the old one. Reload once to pick up the new
|
this tab still ran the old one. Reload once to pick up the new
|
||||||
build; if that doesn't help, let the error surface. */
|
build; if that doesn't help, let the error surface. */
|
||||||
const CHUNK_RELOAD = "ngu-chunk-reload"
|
const CHUNK_RELOAD = "site-chunk-reload"
|
||||||
const lazyPage = (load) =>
|
const lazyPage = (load) =>
|
||||||
lazy(() =>
|
lazy(() =>
|
||||||
load()
|
load()
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { SITE_BANNER } from "../data/bannerConfig.ts";
|
||||||
|
|
||||||
export default function Banner() {
|
export default function Banner() {
|
||||||
const [visible, setVisible] = useState(false);
|
const [visible, setVisible] = useState(false);
|
||||||
const storageKey = `ngu-banner-dismissed:${SITE_BANNER.id}`;
|
const storageKey = `site-banner-dismissed:${SITE_BANNER.id}`;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!SITE_BANNER.enabled) return;
|
if (!SITE_BANNER.enabled) return;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
||||||
import nguLogo from "../assets/logos/NGU_Logo.svg";
|
import siteLogo from "../assets/logos/NGU_Logo.svg";
|
||||||
import PlatformIcon from "./PlatformIcon.tsx";
|
import PlatformIcon from "./PlatformIcon.tsx";
|
||||||
|
|
||||||
const Social_Links = [
|
const Social_Links = [
|
||||||
|
|
@ -59,7 +59,7 @@ export default function Footer() {
|
||||||
width below them. */}
|
width below them. */}
|
||||||
<div className="md:col-span-9 text-center md:text-left">
|
<div className="md:col-span-9 text-center md:text-left">
|
||||||
<Link to="/" className="inline-block">
|
<Link to="/" className="inline-block">
|
||||||
<img src={nguLogo} alt="Next Generation of Unity" className="h-14 w-auto" />
|
<img src={siteLogo} alt="Next Generation of Unity" className="h-14 w-auto" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<address className="mt-5 not-italic text-sm leading-relaxed text-white/60">
|
<address className="mt-5 not-italic text-sm leading-relaxed text-white/60">
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Suspense, useState, useEffect, useRef } from "react";
|
||||||
import { NavLink, Link, Outlet, useLocation } from "react-router-dom";
|
import { NavLink, Link, Outlet, useLocation } from "react-router-dom";
|
||||||
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
||||||
import Banner from "./Banner.tsx";
|
import Banner from "./Banner.tsx";
|
||||||
import nguLogo from "../assets/logos/NGU_Logo.svg";
|
import siteLogo from "../assets/logos/NGU_Logo.svg";
|
||||||
import Footer from "./Footer.tsx";
|
import Footer from "./Footer.tsx";
|
||||||
import PrivacyNotice from "./PrivacyNotice.tsx";
|
import PrivacyNotice from "./PrivacyNotice.tsx";
|
||||||
import ThemeToggle from "./ThemeToggle.tsx";
|
import ThemeToggle from "./ThemeToggle.tsx";
|
||||||
|
|
@ -187,7 +187,7 @@ export default function Layout() {
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-8">
|
<div className="flex items-center gap-8">
|
||||||
<Link to="/" aria-label="Next Generation of Unity home" className="inline-block">
|
<Link to="/" aria-label="Next Generation of Unity home" className="inline-block">
|
||||||
<img src={nguLogo} alt="Next Generation of Unity" className="h-10 w-auto" />
|
<img src={siteLogo} alt="Next Generation of Unity" className="h-10 w-auto" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<div className="hidden lg:flex items-center gap-6">
|
<div className="hidden lg:flex items-center gap-6">
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
|
|
||||||
const STORAGE_KEY = 'ngu-privacy-notice-closed'
|
const STORAGE_KEY = 'site-privacy-notice-closed'
|
||||||
|
|
||||||
export default function PrivacyNotice() {
|
export default function PrivacyNotice() {
|
||||||
const [visible, setVisible] = useState(false)
|
const [visible, setVisible] = useState(false)
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import { useEffect, useState } from 'react'
|
||||||
|
|
||||||
type Theme = 'light' | 'dark'
|
type Theme = 'light' | 'dark'
|
||||||
|
|
||||||
export const THEME_STORAGE_KEY = 'ngu-theme'
|
export const THEME_STORAGE_KEY = 'site-theme'
|
||||||
|
|
||||||
const current = (): Theme =>
|
const current = (): Theme =>
|
||||||
document.documentElement.dataset.theme === 'dark' ? 'dark' : 'light'
|
document.documentElement.dataset.theme === 'dark' ? 'dark' : 'light'
|
||||||
|
|
|
||||||
|
|
@ -188,13 +188,13 @@ iframe[src*="churchcenter"] {
|
||||||
gap: 0.25rem 1.5rem;
|
gap: 0.25rem 1.5rem;
|
||||||
grid-template-columns: 2fr 1fr;
|
grid-template-columns: 2fr 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"ngu image"
|
"org image"
|
||||||
"info image"
|
"info image"
|
||||||
"desc desc";
|
"desc desc";
|
||||||
}
|
}
|
||||||
|
|
||||||
.ev-ngu {
|
.ev-org {
|
||||||
grid-area: ngu;
|
grid-area: org;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ev-info {
|
.ev-info {
|
||||||
|
|
@ -217,7 +217,7 @@ iframe[src*="churchcenter"] {
|
||||||
.ev-grid {
|
.ev-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"ngu"
|
"org"
|
||||||
"info"
|
"info"
|
||||||
"desc";
|
"desc";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
What the site says about itself, for the browser: /site.json, with
|
What the site says about itself, for the browser: /site.json, with
|
||||||
the admin's Site settings (Panel) laid over it. The server merges
|
the admin's Site settings (Panel) laid over it. The server merges
|
||||||
the two and writes the result into each page's HTML as
|
the two and writes the result into each page's HTML as
|
||||||
window.__NGU_SITE__ (server/src/pageMeta.js), which is read here
|
window.__SITE__ (server/src/pageMeta.js), which is read here
|
||||||
before the app renders, so there's no request and no flash of the
|
before the app renders, so there's no request and no flash of the
|
||||||
old wording. In development, or if the API is down and nginx
|
old wording. In development, or if the API is down and nginx
|
||||||
serves the plain index.html, it isn't there and site.json alone
|
serves the plain index.html, it isn't there and site.json alone
|
||||||
|
|
@ -28,7 +28,7 @@ type SiteText = { title?: string; pages?: Record<string, PageText>; privacyEmail
|
||||||
|
|
||||||
/* What the server wrote into the page, if it did. */
|
/* What the server wrote into the page, if it did. */
|
||||||
const fromServer: SiteText =
|
const fromServer: SiteText =
|
||||||
(typeof window !== 'undefined' && (window as unknown as { __NGU_SITE__?: SiteText }).__NGU_SITE__) || {}
|
(typeof window !== 'undefined' && (window as unknown as { __SITE__?: SiteText }).__SITE__) || {}
|
||||||
|
|
||||||
export const SITE_NAME: string = fromServer.title || siteConfiguration.title
|
export const SITE_NAME: string = fromServer.title || siteConfiguration.title
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import { AdminTitleContext } from "../../lib/adminTitle.tsx";
|
||||||
import { AdminWidthContext } from "../../lib/adminWidth.tsx";
|
import { AdminWidthContext } from "../../lib/adminWidth.tsx";
|
||||||
import { SITE_VERSION } from "../../lib/version.ts";
|
import { SITE_VERSION } from "../../lib/version.ts";
|
||||||
import { ROLE_LABELS, isSuper } from "../../lib/roles.ts";
|
import { ROLE_LABELS, isSuper } from "../../lib/roles.ts";
|
||||||
import nguLogo from "../../assets/logos/NGU_Logo.svg";
|
import siteLogo from "../../assets/logos/NGU_Logo.svg";
|
||||||
import ThemeToggle from "../../components/ThemeToggle.tsx";
|
import ThemeToggle from "../../components/ThemeToggle.tsx";
|
||||||
import {
|
import {
|
||||||
ADMIN_HOME,
|
ADMIN_HOME,
|
||||||
|
|
@ -220,7 +220,7 @@ export default function AdminLayout() {
|
||||||
<footer className="border-t border-brand/15 bg-surface">
|
<footer className="border-t border-brand/15 bg-surface">
|
||||||
<div className="mx-auto flex max-w-5xl items-center gap-4 px-6 py-3">
|
<div className="mx-auto flex max-w-5xl items-center gap-4 px-6 py-3">
|
||||||
<Link to={ADMIN_HOME} className="transition-opacity hover:opacity-70">
|
<Link to={ADMIN_HOME} className="transition-opacity hover:opacity-70">
|
||||||
<img src={nguLogo} alt="NGU" className="h-6 w-auto" />
|
<img src={siteLogo} alt="NGU" className="h-6 w-auto" />
|
||||||
</Link>
|
</Link>
|
||||||
<span className="ml-auto font-mono text-xs text-muted/70">
|
<span className="ml-auto font-mono text-xs text-muted/70">
|
||||||
{SITE_VERSION}
|
{SITE_VERSION}
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ export function Card({
|
||||||
{compact ? (
|
{compact ? (
|
||||||
/* ── GRID CARD: layout driven by .ev-grid container queries ── */
|
/* ── GRID CARD: layout driven by .ev-grid container queries ── */
|
||||||
<div className="ev-grid mb-2">
|
<div className="ev-grid mb-2">
|
||||||
<Logo src={orgLogo} className="ev-ngu h-11 w-auto mb-4" />
|
<Logo src={orgLogo} className="ev-org h-11 w-auto mb-4" />
|
||||||
<div className="ev-info">
|
<div className="ev-info">
|
||||||
{typeBadge}
|
{typeBadge}
|
||||||
<h3 className="text-3xl font-extrabold leading-tight">
|
<h3 className="text-3xl font-extrabold leading-tight">
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ function fileStem(target: string): string {
|
||||||
/* a site path */
|
/* a site path */
|
||||||
}
|
}
|
||||||
const stem = name.replace(/^\//, '').replace(/[^a-z0-9]+/gi, '-').replace(/^-|-$/g, '')
|
const stem = name.replace(/^\//, '').replace(/[^a-z0-9]+/gi, '-').replace(/^-|-$/g, '')
|
||||||
return `ngu-qr-${stem || 'home'}`
|
return `qr-${stem || 'home'}`
|
||||||
}
|
}
|
||||||
|
|
||||||
function download(href: string, filename: string) {
|
function download(href: string, filename: string) {
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,8 @@ export default function HistoryTimeline({
|
||||||
|
|
||||||
if (grouped.length === 0 && upcomingYears.length === 0) {
|
if (grouped.length === 0 && upcomingYears.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="ngu-tl">
|
<div className="site-tl">
|
||||||
<p className="ngu-tl__emptyState">
|
<p className="site-tl__emptyState">
|
||||||
The timeline is empty. Add a milestone to start the record.
|
The timeline is empty. Add a milestone to start the record.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -108,11 +108,11 @@ export default function HistoryTimeline({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="ngu-tl">
|
<div className="site-tl">
|
||||||
<div className="ngu-tl__toolbar">
|
<div className="site-tl__toolbar">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="ngu-tl__toolbarBtn"
|
className="site-tl__toolbarBtn"
|
||||||
onClick={() => commit(allOpen ? new Set() : new Set(allYears))}
|
onClick={() => commit(allOpen ? new Set() : new Set(allYears))}
|
||||||
>
|
>
|
||||||
{allOpen ? 'Collapse all years' : 'Expand all years'}
|
{allOpen ? 'Collapse all years' : 'Expand all years'}
|
||||||
|
|
|
||||||
|
|
@ -26,24 +26,24 @@ export default function TimelineDecade({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
className={`ngu-tl__decade${decade.preProgram ? ' ngu-tl__decade--pre' : ''}`}
|
className={`site-tl__decade${decade.preProgram ? ' site-tl__decade--pre' : ''}`}
|
||||||
aria-labelledby={`ngu-tl-decade-${decade.decade}`}
|
aria-labelledby={`site-tl-decade-${decade.decade}`}
|
||||||
>
|
>
|
||||||
<header className="ngu-tl__decadeHead">
|
<header className="site-tl__decadeHead">
|
||||||
<span className="ngu-tl__decadeNum" aria-hidden="true">
|
<span className="site-tl__decadeNum" aria-hidden="true">
|
||||||
{decadeLabel(decade.decade)}
|
{decadeLabel(decade.decade)}
|
||||||
</span>
|
</span>
|
||||||
<div>
|
<div>
|
||||||
<h3 className="ngu-tl__decadeTitle" id={`ngu-tl-decade-${decade.decade}`}>
|
<h3 className="site-tl__decadeTitle" id={`site-tl-decade-${decade.decade}`}>
|
||||||
<span className="ngu-tl__srOnly">{decadeLabel(decade.decade)}: </span>
|
<span className="site-tl__srOnly">{decadeLabel(decade.decade)}: </span>
|
||||||
{decade.title}
|
{decade.title}
|
||||||
</h3>
|
</h3>
|
||||||
{decade.tagline ? (
|
{decade.tagline ? (
|
||||||
<p className="ngu-tl__decadeTagline">{decade.tagline}</p>
|
<p className="site-tl__decadeTagline">{decade.tagline}</p>
|
||||||
) : null}
|
) : null}
|
||||||
{decade.blurb ? <p className="ngu-tl__decadeBlurb">{decade.blurb}</p> : null}
|
{decade.blurb ? <p className="site-tl__decadeBlurb">{decade.blurb}</p> : null}
|
||||||
{decade.preProgram ? (
|
{decade.preProgram ? (
|
||||||
<p className="ngu-tl__gapNote">
|
<p className="site-tl__gapNote">
|
||||||
<span aria-hidden="true">◌</span>
|
<span aria-hidden="true">◌</span>
|
||||||
Before the program, kept for context, not part of our record
|
Before the program, kept for context, not part of our record
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -31,18 +31,18 @@ function fullMarker(item: TimelineItem): string {
|
||||||
function PersonChip({ person }: { person: PersonRef }) {
|
function PersonChip({ person }: { person: PersonRef }) {
|
||||||
const img = useSmallImage(mediaUrl(person.photo))
|
const img = useSmallImage(mediaUrl(person.photo))
|
||||||
return (
|
return (
|
||||||
<li className="ngu-tl__person">
|
<li className="site-tl__person">
|
||||||
{!img.failed ? (
|
{!img.failed ? (
|
||||||
<img className="ngu-tl__personPhoto" src={img.src} alt="" loading="lazy" onError={img.onError} />
|
<img className="site-tl__personPhoto" src={img.src} alt="" loading="lazy" onError={img.onError} />
|
||||||
) : (
|
) : (
|
||||||
<span className="ngu-tl__personPhoto ngu-tl__personPhoto--blank" aria-hidden="true">
|
<span className="site-tl__personPhoto site-tl__personPhoto--blank" aria-hidden="true">
|
||||||
{initials(person.name)}
|
{initials(person.name)}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<span className="ngu-tl__personName">
|
<span className="site-tl__personName">
|
||||||
{person.name}
|
{person.name}
|
||||||
{person.title ? (
|
{person.title ? (
|
||||||
<span className="ngu-tl__personTitle">{person.title}</span>
|
<span className="site-tl__personTitle">{person.title}</span>
|
||||||
) : null}
|
) : null}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -61,34 +61,34 @@ export default function TimelineEntry({ item, variant = 'inline' }: Props) {
|
||||||
const logo = logoSrc(item)
|
const logo = logoSrc(item)
|
||||||
|
|
||||||
const className = [
|
const className = [
|
||||||
'ngu-tl__entry',
|
'site-tl__entry',
|
||||||
featured ? 'ngu-tl__entry--featured' : '',
|
featured ? 'site-tl__entry--featured' : '',
|
||||||
href ? 'ngu-tl__entry--linked' : '',
|
href ? 'site-tl__entry--linked' : '',
|
||||||
]
|
]
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(' ')
|
.join(' ')
|
||||||
|
|
||||||
const marker = (
|
const marker = (
|
||||||
<span className="ngu-tl__entryDay">
|
<span className="site-tl__entryDay">
|
||||||
{featured ? fullMarker(item) : dayMarker(item)}
|
{featured ? fullMarker(item) : dayMarker(item)}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
|
|
||||||
const body = (
|
const body = (
|
||||||
<span className="ngu-tl__entryBody">
|
<span className="site-tl__entryBody">
|
||||||
<span className="ngu-tl__entryTitle">
|
<span className="site-tl__entryTitle">
|
||||||
{logo ? (
|
{logo ? (
|
||||||
<img className="ngu-tl__logo logo-plate" src={logo} alt="" loading="lazy" />
|
<img className="site-tl__logo logo-plate" src={logo} alt="" loading="lazy" />
|
||||||
) : (
|
) : (
|
||||||
<span
|
<span
|
||||||
className={`ngu-tl__kind ngu-tl__kind--${item.kind}`}
|
className={`site-tl__kind site-tl__kind--${item.kind}`}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{item.title}
|
{item.title}
|
||||||
</span>
|
</span>
|
||||||
{item.meta ? <span className="ngu-tl__entryMeta">{item.meta}</span> : null}
|
{item.meta ? <span className="site-tl__entryMeta">{item.meta}</span> : null}
|
||||||
{item.blurb ? <p className="ngu-tl__entryBlurb">{item.blurb}</p> : null}
|
{item.blurb ? <p className="site-tl__entryBlurb">{item.blurb}</p> : null}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -97,15 +97,15 @@ export default function TimelineEntry({ item, variant = 'inline' }: Props) {
|
||||||
const roster =
|
const roster =
|
||||||
item.kind === 'people' && item.people && item.people.length > 0 ? (
|
item.kind === 'people' && item.people && item.people.length > 0 ? (
|
||||||
<div
|
<div
|
||||||
className={`ngu-tl__roster${featured ? ' ngu-tl__roster--featured' : ''}`}
|
className={`site-tl__roster${featured ? ' site-tl__roster--featured' : ''}`}
|
||||||
>
|
>
|
||||||
{item.team ? (
|
{item.team ? (
|
||||||
<span className="ngu-tl__rosterTeam">
|
<span className="site-tl__rosterTeam">
|
||||||
{item.team.name}
|
{item.team.name}
|
||||||
{item.team.orgName ? ` · ${item.team.orgName}` : ''}
|
{item.team.orgName ? ` · ${item.team.orgName}` : ''}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
<ul className="ngu-tl__people">
|
<ul className="site-tl__people">
|
||||||
{item.people.map((person) => (
|
{item.people.map((person) => (
|
||||||
<PersonChip key={person.id} person={person} />
|
<PersonChip key={person.id} person={person} />
|
||||||
))}
|
))}
|
||||||
|
|
@ -118,7 +118,7 @@ export default function TimelineEntry({ item, variant = 'inline' }: Props) {
|
||||||
const external = !!href && /^(https?:)?\/\//.test(href)
|
const external = !!href && /^(https?:)?\/\//.test(href)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li className="ngu-tl__entryWrap">
|
<li className="site-tl__entryWrap">
|
||||||
{href && external ? (
|
{href && external ? (
|
||||||
<a
|
<a
|
||||||
href={href}
|
href={href}
|
||||||
|
|
|
||||||
|
|
@ -32,28 +32,28 @@ export default function TimelineUpcoming({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
className={`ngu-tl__upcoming${open ? ' ngu-tl__upcoming--open' : ''}`}
|
className={`site-tl__upcoming${open ? ' site-tl__upcoming--open' : ''}`}
|
||||||
aria-label="Upcoming"
|
aria-label="Upcoming"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="ngu-tl__upcomingBtn"
|
className="site-tl__upcomingBtn"
|
||||||
aria-expanded={open}
|
aria-expanded={open}
|
||||||
onClick={() => setOpen((v) => !v)}
|
onClick={() => setOpen((v) => !v)}
|
||||||
>
|
>
|
||||||
<span className="ngu-tl__upcomingDot" aria-hidden="true" />
|
<span className="site-tl__upcomingDot" aria-hidden="true" />
|
||||||
<span className="ngu-tl__upcomingLabel">
|
<span className="site-tl__upcomingLabel">
|
||||||
{open
|
{open
|
||||||
? 'Hide what’s scheduled'
|
? 'Hide what’s scheduled'
|
||||||
: `${count} ${count === 1 ? 'thing' : 'things'} still to come`}
|
: `${count} ${count === 1 ? 'thing' : 'things'} still to come`}
|
||||||
</span>
|
</span>
|
||||||
<span className="ngu-tl__chevron" aria-hidden="true">
|
<span className="site-tl__chevron" aria-hidden="true">
|
||||||
{open ? '▾' : '▴'}
|
{open ? '▾' : '▴'}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{open ? (
|
{open ? (
|
||||||
<div className="ngu-tl__upcomingList">
|
<div className="site-tl__upcomingList">
|
||||||
{years.map((year) => (
|
{years.map((year) => (
|
||||||
<TimelineYear
|
<TimelineYear
|
||||||
key={year.year}
|
key={year.year}
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,13 @@ type Props = {
|
||||||
|
|
||||||
export default function TimelineYear({ year, open, onToggle }: Props) {
|
export default function TimelineYear({ year, open, onToggle }: Props) {
|
||||||
const empty = year.count === 0
|
const empty = year.count === 0
|
||||||
const panelId = `ngu-tl-year-${year.year}`
|
const panelId = `site-tl-year-${year.year}`
|
||||||
|
|
||||||
const className = [
|
const className = [
|
||||||
'ngu-tl__year',
|
'site-tl__year',
|
||||||
year.featured ? 'ngu-tl__year--featured' : '',
|
year.featured ? 'site-tl__year--featured' : '',
|
||||||
open ? 'ngu-tl__year--open' : '',
|
open ? 'site-tl__year--open' : '',
|
||||||
empty ? 'ngu-tl__year--empty' : '',
|
empty ? 'site-tl__year--empty' : '',
|
||||||
]
|
]
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(' ')
|
.join(' ')
|
||||||
|
|
@ -30,31 +30,31 @@ export default function TimelineYear({ year, open, onToggle }: Props) {
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="ngu-tl__yearBtn"
|
className="site-tl__yearBtn"
|
||||||
aria-expanded={open}
|
aria-expanded={open}
|
||||||
aria-controls={panelId}
|
aria-controls={panelId}
|
||||||
onClick={() => onToggle(year.year)}
|
onClick={() => onToggle(year.year)}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="ngu-tl__dot"
|
className="site-tl__dot"
|
||||||
style={{ '--tl-dot': dotSize(year.count) } as CSSProperties}
|
style={{ '--tl-dot': dotSize(year.count) } as CSSProperties}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<span className="ngu-tl__yearLabel">{year.year}</span>
|
<span className="site-tl__yearLabel">{year.year}</span>
|
||||||
<span className="ngu-tl__yearCount">
|
<span className="site-tl__yearCount">
|
||||||
{empty ? '-' : `${year.count} ${year.count === 1 ? 'entry' : 'entries'}`}
|
{empty ? '-' : `${year.count} ${year.count === 1 ? 'entry' : 'entries'}`}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{open ? (
|
{open ? (
|
||||||
empty ? (
|
empty ? (
|
||||||
<div className="ngu-tl__empty" id={panelId}>
|
<div className="site-tl__empty" id={panelId}>
|
||||||
Nothing recorded for {year.year} yet.
|
Nothing recorded for {year.year} yet.
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="ngu-tl__panel" id={panelId}>
|
<div className="site-tl__panel" id={panelId}>
|
||||||
{year.featuredItems.length > 0 ? (
|
{year.featuredItems.length > 0 ? (
|
||||||
<ul className="ngu-tl__featured ngu-tl__list">
|
<ul className="site-tl__featured site-tl__list">
|
||||||
{year.featuredItems.map((item) => (
|
{year.featuredItems.map((item) => (
|
||||||
<TimelineEntry key={item.id} item={item} variant="featured" />
|
<TimelineEntry key={item.id} item={item} variant="featured" />
|
||||||
))}
|
))}
|
||||||
|
|
@ -62,9 +62,9 @@ export default function TimelineYear({ year, open, onToggle }: Props) {
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{year.months.map((month) => (
|
{year.months.map((month) => (
|
||||||
<section className="ngu-tl__month" key={month.month}>
|
<section className="site-tl__month" key={month.month}>
|
||||||
<h4 className="ngu-tl__monthLabel">{month.label}</h4>
|
<h4 className="site-tl__monthLabel">{month.label}</h4>
|
||||||
<ul className="ngu-tl__list">
|
<ul className="site-tl__list">
|
||||||
{month.items.map((item) => (
|
{month.items.map((item) => (
|
||||||
<TimelineEntry key={item.id} item={item} />
|
<TimelineEntry key={item.id} item={item} />
|
||||||
))}
|
))}
|
||||||
|
|
@ -73,9 +73,9 @@ export default function TimelineYear({ year, open, onToggle }: Props) {
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{year.undated.length > 0 ? (
|
{year.undated.length > 0 ? (
|
||||||
<section className="ngu-tl__month ngu-tl__undated">
|
<section className="site-tl__month site-tl__undated">
|
||||||
<h4 className="ngu-tl__monthLabel">Elsewhere in {year.year}</h4>
|
<h4 className="site-tl__monthLabel">Elsewhere in {year.year}</h4>
|
||||||
<ul className="ngu-tl__list">
|
<ul className="site-tl__list">
|
||||||
{year.undated.map((item) => (
|
{year.undated.map((item) => (
|
||||||
<TimelineEntry key={item.id} item={item} />
|
<TimelineEntry key={item.id} item={item} />
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -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
|
* 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
|
* site tokens is a one-block edit at the top. Typefaces are deliberately not
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
* and tracking.
|
* and tracking.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.ngu-tl {
|
.site-tl {
|
||||||
/* Defaults match the site palette; History.tsx overrides accent and
|
/* Defaults match the site palette; History.tsx overrides accent and
|
||||||
surface per section so the rail sits on the right background. */
|
surface per section so the rail sits on the right background. */
|
||||||
--tl-ink: var(--color-ink);
|
--tl-ink: var(--color-ink);
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.ngu-tl {
|
.site-tl {
|
||||||
--tl-gutter: 3rem;
|
--tl-gutter: 3rem;
|
||||||
--tl-rail-x: 1rem;
|
--tl-rail-x: 1rem;
|
||||||
}
|
}
|
||||||
|
|
@ -34,13 +34,13 @@
|
||||||
|
|
||||||
/* --- Decade block ----------------------------------------------- */
|
/* --- Decade block ----------------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__decade {
|
.site-tl__decade {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The rail. One per decade block so the pre-program run can change style
|
/* The rail. One per decade block so the pre-program run can change style
|
||||||
without breaking the line's continuity. */
|
without breaking the line's continuity. */
|
||||||
.ngu-tl__decade::before {
|
.site-tl__decade::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -50,25 +50,25 @@
|
||||||
background: var(--tl-rail);
|
background: var(--tl-rail);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__decade--pre::before {
|
.site-tl__decade--pre::before {
|
||||||
background: none;
|
background: none;
|
||||||
border-left: var(--tl-rail-w) dashed var(--tl-rail);
|
border-left: var(--tl-rail-w) dashed var(--tl-rail);
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Last decade fades out rather than stopping dead. */
|
/* Last decade fades out rather than stopping dead. */
|
||||||
.ngu-tl__decade:last-child::before {
|
.site-tl__decade:last-child::before {
|
||||||
bottom: 2rem;
|
bottom: 2rem;
|
||||||
mask-image: linear-gradient(to bottom, #000 60%, transparent);
|
mask-image: linear-gradient(to bottom, #000 60%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__decade--pre {
|
.site-tl__decade--pre {
|
||||||
color: var(--tl-muted);
|
color: var(--tl-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Decade header ----------------------------------------------- */
|
/* --- Decade header ----------------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__decadeHead {
|
.site-tl__decadeHead {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: var(--tl-gutter) minmax(0, 1fr);
|
grid-template-columns: var(--tl-gutter) minmax(0, 1fr);
|
||||||
|
|
@ -76,12 +76,12 @@
|
||||||
padding-block: 3.5rem 1.75rem;
|
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;
|
padding-block-start: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Numeral breaks the rail. */
|
/* Numeral breaks the rail. */
|
||||||
.ngu-tl__decadeNum {
|
.site-tl__decadeNum {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
margin-left: calc(var(--tl-rail-x) * -1 + 0.125rem);
|
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);
|
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);
|
color: var(--tl-faint);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__decadeTitle {
|
.site-tl__decadeTitle {
|
||||||
font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
|
font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.12;
|
line-height: 1.12;
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
max-width: 22ch;
|
max-width: 22ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__decadeTagline {
|
.site-tl__decadeTagline {
|
||||||
margin: 0.5rem 0 0;
|
margin: 0.5rem 0 0;
|
||||||
font-size: 1.0625rem;
|
font-size: 1.0625rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
|
@ -118,7 +118,7 @@
|
||||||
max-width: 54ch;
|
max-width: 54ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__decadeBlurb {
|
.site-tl__decadeBlurb {
|
||||||
margin: 0.875rem 0 0;
|
margin: 0.875rem 0 0;
|
||||||
font-size: 0.9375rem;
|
font-size: 0.9375rem;
|
||||||
line-height: 1.65;
|
line-height: 1.65;
|
||||||
|
|
@ -126,7 +126,7 @@
|
||||||
max-width: 62ch;
|
max-width: 62ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__gapNote {
|
.site-tl__gapNote {
|
||||||
margin: 1rem 0 0;
|
margin: 1rem 0 0;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -140,11 +140,11 @@
|
||||||
|
|
||||||
/* --- Year node ------------------------------------------------ */
|
/* --- Year node ------------------------------------------------ */
|
||||||
|
|
||||||
.ngu-tl__year {
|
.site-tl__year {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__yearBtn {
|
.site-tl__yearBtn {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
@ -161,18 +161,18 @@
|
||||||
border-radius: 0.375rem;
|
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);
|
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: 2px solid var(--tl-accent);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dot sits on the rail; --tl-dot is set inline from the year's item count, so
|
/* 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. */
|
scrolling the page gives you the organization's density at a glance. */
|
||||||
.ngu-tl__dot {
|
.site-tl__dot {
|
||||||
position: relative;
|
position: relative;
|
||||||
justify-self: start;
|
justify-self: start;
|
||||||
margin-left: calc(var(--tl-rail-x) - (var(--tl-dot, 8px) / 2) + (var(--tl-rail-w) / 2));
|
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;
|
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);
|
background: var(--tl-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__year--featured .ngu-tl__dot {
|
.site-tl__year--featured .site-tl__dot {
|
||||||
background: var(--tl-accent);
|
background: var(--tl-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__year--featured .ngu-tl__dot::after {
|
.site-tl__year--featured .site-tl__dot::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: -5px;
|
inset: -5px;
|
||||||
|
|
@ -201,17 +201,17 @@
|
||||||
opacity: 0.45;
|
opacity: 0.45;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__year--open .ngu-tl__dot {
|
.site-tl__year--open .site-tl__dot {
|
||||||
background: var(--tl-accent);
|
background: var(--tl-accent);
|
||||||
transform: scale(1.15);
|
transform: scale(1.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__decade--pre .ngu-tl__dot {
|
.site-tl__decade--pre .site-tl__dot {
|
||||||
background: var(--tl-surface);
|
background: var(--tl-surface);
|
||||||
border: 1.5px solid var(--tl-rail);
|
border: 1.5px solid var(--tl-rail);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__yearLabel {
|
.site-tl__yearLabel {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-weight: 550;
|
font-weight: 550;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
|
|
@ -219,41 +219,41 @@
|
||||||
transition: color 140ms ease;
|
transition: color 140ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__yearCount {
|
.site-tl__yearCount {
|
||||||
font-size: 0.8125rem;
|
font-size: 0.8125rem;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
color: var(--tl-faint);
|
color: var(--tl-faint);
|
||||||
padding-right: 0.25rem;
|
padding-right: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__year--empty .ngu-tl__yearLabel {
|
.site-tl__year--empty .site-tl__yearLabel {
|
||||||
color: var(--tl-faint);
|
color: var(--tl-faint);
|
||||||
font-weight: 450;
|
font-weight: 450;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Expanded panel ------------------------------------------- */
|
/* --- Expanded panel ------------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__panel {
|
.site-tl__panel {
|
||||||
padding: 0.25rem 0 1.5rem var(--tl-gutter);
|
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 {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(-4px);
|
transform: translateY(-4px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__month {
|
.site-tl__month {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__month:first-child {
|
.site-tl__month:first-child {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__monthLabel {
|
.site-tl__monthLabel {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
|
|
@ -263,7 +263,7 @@
|
||||||
color: var(--tl-muted);
|
color: var(--tl-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__monthLabel::after {
|
.site-tl__monthLabel::after {
|
||||||
content: '';
|
content: '';
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
|
|
@ -271,13 +271,13 @@
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__undated .ngu-tl__monthLabel {
|
.site-tl__undated .site-tl__monthLabel {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 450;
|
font-weight: 450;
|
||||||
color: var(--tl-faint);
|
color: var(--tl-faint);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__list {
|
.site-tl__list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
@ -288,7 +288,7 @@
|
||||||
|
|
||||||
/* --- Entry ----------------------------------------------------- */
|
/* --- Entry ----------------------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__entry {
|
.site-tl__entry {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 2.75rem minmax(0, 1fr);
|
grid-template-columns: 2.75rem minmax(0, 1fr);
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
|
|
@ -298,16 +298,16 @@
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.ngu-tl__entry:hover {
|
a.site-tl__entry:hover {
|
||||||
background: var(--tl-accent-soft);
|
background: var(--tl-accent-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
a.ngu-tl__entry:focus-visible {
|
a.site-tl__entry:focus-visible {
|
||||||
outline: 2px solid var(--tl-accent);
|
outline: 2px solid var(--tl-accent);
|
||||||
outline-offset: 1px;
|
outline-offset: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entryDay {
|
.site-tl__entryDay {
|
||||||
font-size: 0.8125rem;
|
font-size: 0.8125rem;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
color: var(--tl-faint);
|
color: var(--tl-faint);
|
||||||
|
|
@ -315,25 +315,25 @@ a.ngu-tl__entry:focus-visible {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entryTitle {
|
.site-tl__entryTitle {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0.9375rem;
|
font-size: 0.9375rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 1.45;
|
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);
|
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entryMeta {
|
.site-tl__entryMeta {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 0.125rem;
|
margin-top: 0.125rem;
|
||||||
font-size: 0.8125rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--tl-muted);
|
color: var(--tl-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entryBlurb {
|
.site-tl__entryBlurb {
|
||||||
margin: 0.375rem 0 0;
|
margin: 0.375rem 0 0;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.6;
|
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
|
/* Kind marker: a shape, not a colored pill, so a screenful of entries stays
|
||||||
calm and the type still carries the hierarchy. */
|
calm and the type still carries the hierarchy. */
|
||||||
.ngu-tl__kind {
|
.site-tl__kind {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 0.5rem;
|
height: 0.5rem;
|
||||||
|
|
@ -352,20 +352,20 @@ a.ngu-tl__entry:hover .ngu-tl__entryTitle {
|
||||||
background: var(--tl-faint);
|
background: var(--tl-faint);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__kind--milestone {
|
.site-tl__kind--milestone {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--tl-accent);
|
background: var(--tl-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__kind--event {
|
.site-tl__kind--event {
|
||||||
border-radius: 1px;
|
border-radius: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__kind--award {
|
.site-tl__kind--award {
|
||||||
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
|
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__kind--person {
|
.site-tl__kind--person {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: none;
|
background: none;
|
||||||
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
|
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 ----------------------------------------- */
|
/* --- Featured entries ----------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__featured {
|
.site-tl__featured {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entry--featured {
|
.site-tl__entry--featured {
|
||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
padding: 1rem 1.125rem;
|
padding: 1rem 1.125rem;
|
||||||
border-left: 2px solid var(--tl-accent);
|
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;
|
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-size: 1.0625rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: -0.008em;
|
letter-spacing: -0.008em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entry--featured .ngu-tl__entryDay {
|
.site-tl__entry--featured .site-tl__entryDay {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 0 0 0.25rem;
|
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);
|
background: color-mix(in srgb, var(--tl-accent) 18%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Empty state ----------------------------------------------- */
|
/* --- Empty state ----------------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__empty {
|
.site-tl__empty {
|
||||||
padding: 0.5rem 0 1.25rem var(--tl-gutter);
|
padding: 0.5rem 0 1.25rem var(--tl-gutter);
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
color: var(--tl-faint);
|
color: var(--tl-faint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.ngu-tl *,
|
.site-tl *,
|
||||||
.ngu-tl *::before,
|
.site-tl *::before,
|
||||||
.ngu-tl *::after {
|
.site-tl *::after {
|
||||||
animation-duration: 0.01ms !important;
|
animation-duration: 0.01ms !important;
|
||||||
transition-duration: 0.01ms !important;
|
transition-duration: 0.01ms !important;
|
||||||
}
|
}
|
||||||
|
|
@ -422,13 +422,13 @@ a.ngu-tl__entry--featured:hover {
|
||||||
|
|
||||||
/* --- Toolbar + utilities ------------------------------------- */
|
/* --- Toolbar + utilities ------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__toolbar {
|
.site-tl__toolbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__toolbarBtn {
|
.site-tl__toolbarBtn {
|
||||||
padding: 0.375rem 0.75rem;
|
padding: 0.375rem 0.75rem;
|
||||||
border: 1px solid var(--tl-rail);
|
border: 1px solid var(--tl-rail);
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
|
|
@ -440,23 +440,23 @@ a.ngu-tl__entry--featured:hover {
|
||||||
transition: color 140ms ease, border-color 140ms ease;
|
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);
|
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||||
border-color: var(--tl-accent);
|
border-color: var(--tl-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__toolbarBtn:focus-visible {
|
.site-tl__toolbarBtn:focus-visible {
|
||||||
outline: 2px solid var(--tl-accent);
|
outline: 2px solid var(--tl-accent);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__emptyState {
|
.site-tl__emptyState {
|
||||||
padding: 3rem 0;
|
padding: 3rem 0;
|
||||||
color: var(--tl-muted);
|
color: var(--tl-muted);
|
||||||
font-size: 0.9375rem;
|
font-size: 0.9375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__srOnly {
|
.site-tl__srOnly {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 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
|
Opens upward: the toggle is first in the DOM, column-reverse puts the
|
||||||
list above it. Faded because none of it has happened yet. */
|
list above it. Faded because none of it has happened yet. */
|
||||||
|
|
||||||
.ngu-tl__upcoming {
|
.site-tl__upcoming {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
padding-bottom: 0.5rem;
|
padding-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__upcoming::before {
|
.site-tl__upcoming::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1.25rem;
|
top: 1.25rem;
|
||||||
|
|
@ -488,7 +488,7 @@ a.ngu-tl__entry--featured:hover {
|
||||||
border-left: var(--tl-rail-w) dashed var(--tl-rail);
|
border-left: var(--tl-rail-w) dashed var(--tl-rail);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__upcomingBtn {
|
.site-tl__upcomingBtn {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
@ -504,17 +504,17 @@ a.ngu-tl__entry--featured:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__upcomingBtn:hover {
|
.site-tl__upcomingBtn:hover {
|
||||||
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
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: 2px solid var(--tl-accent);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
border-radius: 0.375rem;
|
border-radius: 0.375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__upcomingDot {
|
.site-tl__upcomingDot {
|
||||||
justify-self: start;
|
justify-self: start;
|
||||||
margin-left: calc(var(--tl-rail-x) - 4px + (var(--tl-rail-w) / 2));
|
margin-left: calc(var(--tl-rail-x) - 4px + (var(--tl-rail-w) / 2));
|
||||||
width: 8px;
|
width: 8px;
|
||||||
|
|
@ -524,32 +524,32 @@ a.ngu-tl__entry--featured:hover {
|
||||||
box-shadow: 0 0 0 4px var(--tl-surface);
|
box-shadow: 0 0 0 4px var(--tl-surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__upcomingLabel {
|
.site-tl__upcomingLabel {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__chevron {
|
.site-tl__chevron {
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
padding-right: 0.25rem;
|
padding-right: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Everything above the toggle is provisional, and reads that way. */
|
/* Everything above the toggle is provisional, and reads that way. */
|
||||||
.ngu-tl__upcomingList {
|
.site-tl__upcomingList {
|
||||||
opacity: 0.62;
|
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,
|
.site-tl__upcomingList:hover,
|
||||||
.ngu-tl__upcomingList:focus-within {
|
.site-tl__upcomingList:focus-within {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__upcomingList .ngu-tl__dot {
|
.site-tl__upcomingList .site-tl__dot {
|
||||||
background: var(--tl-surface);
|
background: var(--tl-surface);
|
||||||
border: 1.5px dashed var(--tl-accent);
|
border: 1.5px dashed var(--tl-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes ngu-tl-rise {
|
@keyframes site-tl-rise {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(8px);
|
transform: translateY(8px);
|
||||||
|
|
@ -558,7 +558,7 @@ a.ngu-tl__entry--featured:hover {
|
||||||
|
|
||||||
/* --- Event / org / award logo --------------------------------- */
|
/* --- Event / org / award logo --------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__logo {
|
.site-tl__logo {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 1.125rem;
|
width: 1.125rem;
|
||||||
height: 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
|
/* An 18px mark: the dark-mode backing (.logo-plate, index.css) with
|
||||||
a hairline of padding, not the usual quarter rem. */
|
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;
|
padding: 1px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entry--featured .ngu-tl__logo {
|
.site-tl__entry--featured .site-tl__logo {
|
||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
vertical-align: -0.3125rem;
|
vertical-align: -0.3125rem;
|
||||||
|
|
@ -583,15 +583,15 @@ a.ngu-tl__entry--featured:hover {
|
||||||
|
|
||||||
/* --- People roster ------------------------------------------- */
|
/* --- People roster ------------------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__entryWrap {
|
.site-tl__entryWrap {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__roster {
|
.site-tl__roster {
|
||||||
padding: 0.125rem 0 0.5rem 3.5rem;
|
padding: 0.125rem 0 0.5rem 3.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__roster--featured {
|
.site-tl__roster--featured {
|
||||||
padding: 0.5rem 1.125rem 1rem;
|
padding: 0.5rem 1.125rem 1rem;
|
||||||
border-left: 2px solid var(--tl-accent);
|
border-left: 2px solid var(--tl-accent);
|
||||||
background: var(--tl-accent-soft);
|
background: var(--tl-accent-soft);
|
||||||
|
|
@ -599,14 +599,14 @@ a.ngu-tl__entry--featured:hover {
|
||||||
border-radius: 0 0 0.5rem 0;
|
border-radius: 0 0 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__rosterTeam {
|
.site-tl__rosterTeam {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
color: var(--tl-faint);
|
color: var(--tl-faint);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__people {
|
.site-tl__people {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.375rem 1rem;
|
gap: 0.375rem 1rem;
|
||||||
|
|
@ -615,13 +615,13 @@ a.ngu-tl__entry--featured:hover {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__person {
|
.site-tl__person {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__personPhoto {
|
.site-tl__personPhoto {
|
||||||
width: 1.75rem;
|
width: 1.75rem;
|
||||||
height: 1.75rem;
|
height: 1.75rem;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
@ -630,7 +630,7 @@ a.ngu-tl__entry--featured:hover {
|
||||||
flex: none;
|
flex: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__personPhoto--blank {
|
.site-tl__personPhoto--blank {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
font-size: 0.625rem;
|
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);
|
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__personName {
|
.site-tl__personName {
|
||||||
font-size: 0.8125rem;
|
font-size: 0.8125rem;
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__personTitle {
|
.site-tl__personTitle {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0.6875rem;
|
font-size: 0.6875rem;
|
||||||
color: var(--tl-faint);
|
color: var(--tl-faint);
|
||||||
|
|
@ -652,19 +652,19 @@ a.ngu-tl__entry--featured:hover {
|
||||||
|
|
||||||
/* --- Kind markers, continued --------------------------------- */
|
/* --- Kind markers, continued --------------------------------- */
|
||||||
|
|
||||||
.ngu-tl__kind--organization {
|
.site-tl__kind--organization {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background: none;
|
background: none;
|
||||||
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
|
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__kind--people {
|
.site-tl__kind--people {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: none;
|
background: none;
|
||||||
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
|
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ngu-tl__entryBody {
|
.site-tl__entryBody {
|
||||||
display: block;
|
display: block;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue