Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<link rel="preload" href="assets/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="assets/fonts/space-grotesk-bold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="assets/fonts/ibm-plex-mono-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<script src="theme.js"></script>
<link rel="stylesheet" href="styles.css?v=5">
<script src="theme.js?v=2"></script>
<link rel="stylesheet" href="styles.css?v=6">
<script src="stack.js" defer></script>
<script src="tools.js" defer></script>
</head>
Expand Down
4 changes: 4 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ h1 { margin: 0; max-width: 11ch; font-size: clamp(44px, 5.4vw, 80px); line-heigh
.tool-x-chip img.wide { width: 24px; }
/* Every card sits in the same cell, so the section is as tall as the longest card and nothing below
jumps; each card keeps its own height and starts at the top, so a short one has no empty terminal. */
/* With scripts on, the plain grid would show for a frame and then squash into the right-hand column.
It stays hidden until tools.js has built the stack, and shows after 3 s if that never happens. */
.js .tools:not(.is-exploded) .tool-grid { visibility: hidden; animation: tools-fallback 0s 3s forwards; }
@keyframes tools-fallback { to { visibility: visible; } }
.is-exploded .tool-grid { grid-template-columns: minmax(0, 1fr); border: 0; }
.is-exploded .tool { grid-row: 1; grid-column: 1; align-self: start; grid-template-rows: auto auto auto 1fr; border: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.is-exploded .tool.is-active { opacity: 1; visibility: visible; transition: opacity .3s ease; box-shadow: 0 30px 80px color-mix(in srgb, var(--accent) 16%, transparent); }
Expand Down
2 changes: 2 additions & 0 deletions theme.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(() => {
const root = document.documentElement;
// tools.js rebuilds the tool section; until it has, styles.css keeps the cards out of sight.
root.classList.add('js');
const system = window.matchMedia('(prefers-color-scheme: dark)');
let preference = null;

Expand Down