T45 Website: a home in motion and every story live, chapters on the left
This commit is contained in:
23 files changed
+2634
-1
No files matched your search
@@ -0,0 +1,179 @@
|
||||
:root {
|
||||
--bg: #fcfaf7;
|
||||
--fg: #181818;
|
||||
--muted: #6a6a6a;
|
||||
--line: #e1dfdd;
|
||||
--hover: #f2f0ed;
|
||||
--accent: #3772bb;
|
||||
--overlay: #ffffff;
|
||||
--sans: "Geist Variable", system-ui, sans-serif;
|
||||
--mono: "Geist Mono Variable", ui-monospace, monospace;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
:root.dark {
|
||||
--bg: #131110;
|
||||
--fg: #f3f1f0;
|
||||
--muted: #94928f;
|
||||
--line: #2c2b29;
|
||||
--hover: #252422;
|
||||
--accent: #69a1e8;
|
||||
--overlay: #1c1a19;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body { margin: 0; background: var(--bg); color: var(--fg); }
|
||||
|
||||
body {
|
||||
font: 400 16px/24px var(--sans);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a { color: inherit; text-decoration: none; }
|
||||
|
||||
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
|
||||
|
||||
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
|
||||
|
||||
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--fg); color: var(--bg); border-radius: 8px; z-index: 30; }
|
||||
.skip:focus { top: 8px; }
|
||||
|
||||
.icon { display: inline-flex; width: 24px; height: 24px; flex: none; }
|
||||
.icon svg { width: 24px; height: 24px; }
|
||||
|
||||
.label { font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
|
||||
|
||||
/* Header */
|
||||
.bar {
|
||||
position: sticky; top: 0; z-index: 20; height: 56px;
|
||||
display: flex; align-items: center; gap: 24px; padding: 0 24px;
|
||||
background: color-mix(in srgb, var(--bg) 84%, transparent);
|
||||
backdrop-filter: blur(16px);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.bar .mark { font-weight: 600; font-size: 18px; line-height: 28px; }
|
||||
.bar nav { display: flex; gap: 4px; }
|
||||
.bar .end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
|
||||
.link { padding: 4px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
|
||||
.link:hover, .link[aria-current="page"], .link[aria-expanded="true"] { color: var(--fg); background: var(--hover); }
|
||||
.tool { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); }
|
||||
.tool:hover { color: var(--fg); background: var(--hover); }
|
||||
.find { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 4px; border-radius: 8px; color: var(--muted); font-size: 14px; }
|
||||
.find:hover { background: var(--hover); color: var(--fg); }
|
||||
.find kbd { font: 500 12px/16px var(--mono); padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; }
|
||||
|
||||
/* Cascading menu */
|
||||
.menu {
|
||||
position: fixed; z-index: 25; min-width: 240px; max-height: min(480px, 70vh); overflow-y: auto;
|
||||
padding: 4px; background: var(--overlay); border: 1px solid var(--line); border-radius: 12px;
|
||||
box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
|
||||
}
|
||||
.menu a, .menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 4px 8px; min-height: 32px; border-radius: 8px; font-size: 14px; line-height: 20px; text-align: left; }
|
||||
.menu a:hover, .menu button:hover, .menu [aria-expanded="true"], .menu :focus-visible { background: var(--hover); outline: none; }
|
||||
.menu .count { color: var(--muted); font: 500 12px/16px var(--mono); }
|
||||
|
||||
/* Components page */
|
||||
.docs { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 56px); }
|
||||
.side { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; padding: 24px 12px 48px; border-right: 1px solid var(--line); }
|
||||
.side input { appearance: none; width: 100%; height: 32px; margin-bottom: 16px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 8px; }
|
||||
.side input::placeholder { color: var(--muted); }
|
||||
.side input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
|
||||
.side .chapter { display: flex; gap: 8px; align-items: center; width: 100%; padding: 4px 8px; min-height: 32px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
|
||||
.side .chapter .n { font: 500 12px/16px var(--mono); width: 20px; }
|
||||
.side .chapter:hover { background: var(--hover); color: var(--fg); }
|
||||
.side .chapter[aria-current="true"] { color: var(--fg); font-weight: 500; }
|
||||
.side ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 28px; }
|
||||
.side li a { display: block; padding: 4px 8px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.side li a:hover { background: var(--hover); color: var(--fg); }
|
||||
.side li a[aria-current="page"] { color: var(--fg); background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); }
|
||||
.side .none { padding: 8px; font-size: 14px; color: var(--muted); }
|
||||
|
||||
.detail { padding: 48px 48px 96px; max-width: 1136px; }
|
||||
.crumb { font-size: 14px; line-height: 20px; color: var(--muted); }
|
||||
.crumb a:hover { color: var(--fg); }
|
||||
.detail h1 { margin: 4px 0 12px; font-size: 18px; line-height: 28px; font-weight: 600; }
|
||||
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
|
||||
.chips span { font: 500 12px/16px var(--mono); padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
|
||||
|
||||
.stage { position: relative; height: 640px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
|
||||
.stage iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
|
||||
.stage .state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); background: var(--bg); }
|
||||
.stage .state[hidden] { display: none; }
|
||||
.stage .actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; transition: opacity 150ms ease-out; }
|
||||
.stage:hover .actions, .stage:focus-within .actions { opacity: 1; }
|
||||
.stage .actions .tool { background: var(--bg); border: 1px solid var(--line); }
|
||||
.stage.full { position: fixed; inset: 0; z-index: 40; height: auto; border-radius: 0; border: 0; }
|
||||
.spin { width: 16px; height: 16px; border: 1.5px solid var(--line); border-top-color: var(--muted); border-radius: 50%; animation: spin 800ms linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
.stage-skip { position: absolute; left: -9999px; }
|
||||
.stage-skip:focus { position: static; display: inline-block; margin-bottom: 8px; font-size: 14px; color: var(--accent); }
|
||||
|
||||
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
|
||||
.pager a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; }
|
||||
.pager a:hover { background: var(--hover); }
|
||||
.pager a.next { text-align: right; margin-left: auto; }
|
||||
.pager .label { display: flex; align-items: center; gap: 4px; }
|
||||
.pager a.next .label { justify-content: flex-end; }
|
||||
|
||||
.index { padding: 48px; max-width: 1136px; }
|
||||
.index h1 { margin: 0 0 8px; font-size: 18px; line-height: 28px; font-weight: 600; }
|
||||
.index p { margin: 0 0 48px; color: var(--muted); max-width: 640px; }
|
||||
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; }
|
||||
.grid a { display: flex; gap: 12px; align-items: baseline; padding: 12px; border-radius: 12px; }
|
||||
.grid a:hover { background: var(--hover); }
|
||||
.grid .n { font: 500 12px/16px var(--mono); color: var(--muted); width: 20px; }
|
||||
.grid strong { font-weight: 500; display: block; }
|
||||
.grid small { font-size: 14px; line-height: 20px; color: var(--muted); }
|
||||
|
||||
/* Palette */
|
||||
.scrim { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.24); display: flex; justify-content: center; align-items: flex-start; padding: 96px 16px 16px; }
|
||||
.palette { width: min(640px, 100%); max-height: calc(100vh - 128px); display: flex; flex-direction: column; background: var(--overlay); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgb(0 0 0 / 0.2); overflow: hidden; }
|
||||
.palette input { flex: none; appearance: none; height: 56px; padding: 0 16px; font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none; }
|
||||
.palette ol { list-style: none; margin: 0; padding: 4px; overflow-y: auto; }
|
||||
.palette li a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; }
|
||||
.palette li a span:last-child { color: var(--muted); white-space: nowrap; }
|
||||
.palette li[aria-selected="true"] a { background: var(--hover); }
|
||||
.palette .none { padding: 16px; color: var(--muted); font-size: 14px; }
|
||||
|
||||
/* Home */
|
||||
.hero { height: 220vh; }
|
||||
.pin { position: sticky; top: 56px; height: calc(100vh - 56px); display: grid; align-content: center; padding: 48px; overflow: hidden; }
|
||||
.hero canvas { position: absolute; top: 0; right: 0; width: 62%; height: 100%; }
|
||||
.hero .words { position: relative; max-width: 440px; }
|
||||
.hero h1 { margin: 0 0 16px; font-size: 18px; line-height: 28px; font-weight: 400; }
|
||||
.hero h1 strong { display: block; font-weight: 600; }
|
||||
.hero p { margin: 0 0 24px; color: var(--muted); }
|
||||
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
|
||||
.button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); }
|
||||
.button:hover { background: var(--hover); }
|
||||
.button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
|
||||
.button.primary:hover { opacity: 0.88; }
|
||||
.band { padding: 96px 48px; border-top: 1px solid var(--line); }
|
||||
.band .label { margin-bottom: 12px; }
|
||||
.band h2 { margin: 0 0 48px; font-size: 18px; line-height: 28px; font-weight: 600; max-width: 560px; }
|
||||
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
|
||||
.facts strong { display: block; font: 500 18px/28px var(--mono); }
|
||||
.facts span { color: var(--muted); font-size: 14px; line-height: 20px; }
|
||||
.home-stage { max-width: 1136px; }
|
||||
.foot { padding: 24px 48px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; }
|
||||
.foot a { text-decoration: underline; text-underline-offset: 2px; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.bar { padding: 0 16px; gap: 12px; }
|
||||
.bar nav .link { padding: 4px 8px; }
|
||||
.find > span:not(.icon), .find kbd { display: none; }
|
||||
.docs { grid-template-columns: 1fr; }
|
||||
.side { position: static; height: auto; max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); }
|
||||
.detail, .index { padding: 24px 16px 64px; }
|
||||
.stage { height: 480px; }
|
||||
.pin, .band { padding: 48px 16px; }
|
||||
.pin { align-content: end; }
|
||||
.hero canvas { width: 100%; height: 55%; }
|
||||
.foot { padding: 24px 16px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* { transition: none !important; animation: none !important; }
|
||||
}
|
||||
Reference in new issue
Block a user