Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
301 lines (278 loc) · 16.9 KB
/
Copy pathstyles.css
File metadata and controls
301 lines (278 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
@font-face {
font-family: Inter;
src: url("assets/fonts/inter-latin.woff2") format("woff2");
font-style: normal;
font-weight: 100 900;
font-display: swap;
}
@font-face {
font-family: "Space Grotesk";
src: url("assets/fonts/space-grotesk-bold.woff2") format("woff2");
font-style: normal;
font-weight: 700;
font-display: swap;
}
:root {
color-scheme: light;
--ink: #171a1f;
--muted: #566174;
--line: #d8dfe8;
--blue: #1768ba;
--background: #ffffff;
--panel: #ffffff;
--focus: #1768ba;
--gutter: clamp(20px, 4.35vw, 68px);
font-family: Inter, sans-serif;
color: var(--ink);
background: var(--background);
font-synthesis: none;
}
:root[data-theme="dark"] {
color-scheme: dark;
--ink: #e9ebef;
--muted: #abb2bf;
--line: #303844;
--blue: #75b5ff;
--background: #0d0f12;
--panel: #171a1f;
--focus: #75b5ff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 5px;
border-radius: 2px;
}
img { display: block; object-fit: contain; }
.logo-for-dark { display: none; }
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark { display: block; }
.shell { width: calc(100% - 2 * var(--gutter)); max-width: 1404px; margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: var(--gutter); padding: 12px 18px; background: var(--background); z-index: 2; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.header-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); text-decoration: none; }
.nav-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--muted); }
.nav-icon:hover { color: var(--ink); }
.nav-icon:focus-visible { outline-offset: 3px; }
.nav-icon svg { width: 18px; height: 18px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle:focus-visible { outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun, [data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
@font-face {
font-family: "IBM Plex Mono";
src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
font-style: normal;
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: "IBM Plex Mono";
src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
font-style: normal;
font-weight: 500;
font-display: swap;
}
/* Box-drawing glyphs from DejaVu so tree output lines up. */
@font-face {
font-family: "SQLStack Box Drawing";
src: url("assets/fonts/dejavu-sans-mono-diagram.woff2") format("woff2");
unicode-range: U+2500-257F;
font-display: swap;
}
:root {
--mono: "IBM Plex Mono", "SQLStack Box Drawing", ui-monospace, monospace;
--sqlbuild: #1680ff;
--sqltide: #00b8bd;
--sqlclean: #00a87d;
--fensu: #ff6b00;
--sqlbabel: #c9a800;
--sqlload: #ff5268;
--code-bg: #fbfcfe;
--code-fg: #2b3038;
--faint: #98a0ad;
--ok: #16825c;
--bad: #c74757;
--warn: #aa6c16;
--note: #7756b9;
--kw: #1a56c4;
--arg: #0f766e;
}
:root[data-theme="dark"] {
--sqltide: #00d7dc;
--sqlclean: #00c995;
--sqlbabel: #ffe000;
--code-bg: #111418;
--code-fg: #c9cdd4;
--faint: #626975;
--ok: #54cf8e;
--bad: #f47089;
--warn: #f0c267;
--note: #a78bfa;
--kw: #5aa9e6;
--arg: #4dd6c4;
}
/* Hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; min-height: min(640px, calc(100vh - 59px)); padding-block: 64px; }
h1 { margin: 0; max-width: 11ch; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
.lede { max-width: 34em; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.5; }
.lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.button:hover { text-decoration: none; border-color: var(--muted); }
.button.primary { border-color: var(--ink); background: var(--ink); color: var(--background); }
.button.primary:hover { opacity: .88; }
.actions-note { margin-left: 8px; color: var(--muted); font-size: 15px; }
/* Two stacks, batch and streaming: each a canvas drawing plus one real link per layer laid over it. */
.stacks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 620px; justify-self: center; }
.stack-visual { position: relative; aspect-ratio: 10 / 11; }
.stack-caption { position: absolute; top: var(--caption-y, 86%); left: 0; right: 0; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-align: center; text-transform: uppercase; transition: opacity .2s ease; }
.stack-visual:has(a.is-active) .stack-caption { opacity: 0; }
.stack-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack-labels a { position: absolute; display: block; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.stack-labels a:focus-visible { outline: none; }
/* A layer's name shows under its stack, in place of the caption, while it is pointed at. */
.stack-labels .label { position: absolute; top: var(--label-y, 100%); left: var(--label-x, 50%); display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.25; white-space: nowrap; transform: translate(-50%, -4px); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.stack-labels .name { font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 700; color: var(--accent); }
.stack-labels .what { color: var(--muted); font-size: 13.5px; }
.stack-labels a.is-active .label, .stack-labels a:focus-visible .label { opacity: 1; }
.stack-labels a:focus-visible .name { text-decoration: underline; text-underline-offset: 4px; }
/* Tools */
.tools { padding: 96px 0 72px; scroll-margin-top: 0; }
.tools h2 { margin: 0 0 40px; font-size: clamp(30px, 3vw, 44px); font-weight: 750; line-height: 1.1; letter-spacing: -.04em; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
/* Each card spans four rows of the grid, so names, lines and snippets start level across a row. */
.tool { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-width: 0; padding: 24px 24px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: var(--background); }
/* Only the logo, name and site take the click, not the empty space across the row between them. */
.tool-head { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; pointer-events: none; }
.tool-head > * { pointer-events: auto; }
.tool-head:hover { text-decoration: none; }
.tool-head:hover .tool-name { text-decoration: underline; text-underline-offset: 4px; }
.tool-head img { width: 28px; height: 28px; }
.tool-head img.wide { width: 34px; }
.tool-name { margin-left: -12px; padding-left: 12px; font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 700; } /* reaches back over the gap to the logo */
.tool-site { margin-left: auto; color: var(--muted); font-size: 13px; }
.tool-head:hover .tool-site { color: var(--blue); }
.tool-what { display: block; margin-top: 12px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.45; }
.tool-line { display: block; margin: 2px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.45; }
/* The snippet opens the docs for what it shows. */
.snippet { position: relative; display: flex; flex: 1; margin: 0 -24px; border-top: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); color: inherit; text-decoration: none; }
.snippet:hover { text-decoration: none; }
.snippet:focus-visible { outline-offset: -3px; }
.snippet .terminal { flex: 1; transition: background-color .15s ease; }
.snippet:hover .terminal { background: var(--code-hover); }
.snippet-hint { position: absolute; right: 16px; bottom: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--background); color: var(--blue); font-size: 12.5px; opacity: 0; transition: opacity .15s ease; }
.snippet:hover .snippet-hint, .snippet:focus-visible .snippet-hint { opacity: 1; }
.terminal { margin: 0; padding: 18px 24px 20px; background: var(--code-bg); color: var(--code-fg); font-family: var(--mono); font-size: 11.5px; line-height: 1.65; }
/* Long lines wrap under their own column, as on the tool sites. */
.terminal .ln { display: block; padding-left: var(--hang, 0); text-indent: calc(-1 * var(--hang, 0)); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Short phrases such as a rebuild note or a target type move to the next line whole, and only wrap inside when even a full line is too narrow. */
.terminal .note, .terminal .nw { display: inline-block; max-width: 100%; text-indent: 0; vertical-align: top; }
.terminal .cmd { color: var(--ink); font-weight: 500; }
.terminal .cmd::before { content: "$ "; color: var(--faint); font-weight: 400; }
.terminal .dim, .terminal .cm { color: var(--faint); }
.terminal .ok { color: var(--ok); }
.terminal .bad { color: var(--bad); }
.terminal .warn, .terminal .prompt { color: var(--warn); }
.terminal .note { color: var(--note); }
.terminal .kw { color: var(--kw); }
.terminal .arg, .terminal .ty { color: var(--arg); }
.terminal .fn { color: var(--note); }
.terminal .str { color: var(--ok); }
.terminal .num { color: var(--warn); }
.terminal .strong { font-weight: 500; color: var(--ink); }
.terminal .ok.strong { color: var(--ok); }
.sqlbuild { --accent: var(--sqlbuild); }
.sqltide { --accent: var(--sqltide); }
.sqlload { --accent: var(--sqlload); }
.sqlclean { --accent: var(--sqlclean); }
.fensu { --accent: var(--fensu); }
.sqlbabel { --accent: var(--sqlbabel); }
/* Releases */
.releases { margin: 56px 0 0; }
.releases figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.releases figcaption strong { color: var(--ink); font-weight: 600; }
.releases figcaption a { color: var(--muted); text-decoration: none; }
.releases figcaption a:hover { color: var(--ink); }
.release-bars { display: flex; align-items: flex-end; gap: 2px; height: 56px; }
.release-bars span { flex: 1; min-height: 1px; background: var(--ink); opacity: .22; border-radius: 1px 1px 0 0; }
.release-axis { position: relative; height: 22px; margin-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; }
.release-axis span { position: absolute; top: 6px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 24px; font-size: 12px; line-height: 1.5; }
.site-footer span:last-child { color: var(--muted); }
:root { --code-hover: #f3f6fa; }
:root[data-theme="dark"] { --code-hover: #161a1f; }
@media (max-width: 1180px) {
.hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; padding-block: 48px 40px; }
h1 { max-width: 12ch; }
.stacks { max-width: 560px; justify-self: start; }
}
@media (max-width: 1100px) {
.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
.tool-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
h1 { font-size: clamp(38px, 11vw, 52px); }
.lede { margin-top: 20px; font-size: 17px; }
.actions { margin-top: 28px; }
.actions-note { flex-basis: 100%; margin: 4px 0 0; }
.stacks { gap: 8px; }
.stack-labels .name { font-size: 15px; }
.stack-labels .what { display: none; }
.tools { padding: 64px 0 48px; }
.tool { padding-inline: 18px; }
.snippet { margin-inline: -18px; }
.snippet .terminal { padding-inline: 18px; }
.terminal .ln { padding-left: min(var(--hang, 0), 6ch); text-indent: calc(-1 * min(var(--hang, 0), 6ch)); }
}
/* The exploded tool stack (tools.js): tilted panes beside the picked tool's card. */
.tool-x { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.tool-x-stack { display: grid; justify-items: center; gap: 8px; }
.tool-x-tower { position: relative; width: 340px; height: 220px; margin: 170px 0 90px; transform-style: preserve-3d; transform: perspective(2000px) rotateX(58deg) rotateZ(-38deg); }
.tool-x-pane { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 2px; background: color-mix(in srgb, var(--background) 82%, transparent); color: var(--muted); pointer-events: none; transform: translateZ(calc(var(--i) * 58px)); transition: transform .45s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, box-shadow .3s ease, color .3s ease; box-shadow: 0 30px 50px -30px rgb(0 0 0 / .25); }
/* The panes' fixed twins (tools.js): transparent, never lifted, and the only part that takes the pointer. */
.tool-x-hit { position: absolute; inset: 0; cursor: pointer; transform: translateZ(calc(var(--i) * 58px)); }
.tool-x-pane::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 45%, transparent) 1px, transparent 1.6px) 0 0 / 9px 9px; opacity: .35; pointer-events: none; transition: opacity .3s ease; }
.tool-x-pane.is-active { color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, var(--background)); transform: translateZ(calc(var(--i) * 58px + 34px)); box-shadow: 0 0 0 1px var(--accent), 0 40px 60px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.tool-x-pane.is-active::after { opacity: .7; }
.tool-x-name { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; font: 700 16px "Space Grotesk", sans-serif; }
.tool-x-name img, .tool-x-chip img { width: 20px; height: 20px; }
.tool-x-name img.wide, .tool-x-chip img.wide { width: 24px; }
.tool-x-mini { position: relative; z-index: 1; margin: 0; overflow: hidden; color: inherit; font-family: var(--mono); font-size: 6.5px; line-height: 1.5; opacity: .75; }
.tool-x-mini .ln { display: block; white-space: pre; }
.tool-x-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tool-x-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--background); color: var(--muted); font: 500 14px Inter, sans-serif; cursor: pointer; }
.tool-x-chip:hover { color: var(--ink); border-color: var(--muted); }
.tool-x-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* 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. */
.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); }
@media (max-width: 900px) {
.tool-x { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.tool-x-tower { margin: 220px 0 70px; transform: perspective(2000px) rotateX(58deg) rotateZ(-38deg) scale(.8); }
}
@media (max-width: 620px) {
.tool-x-tower { margin: 170px 0 30px; transform: perspective(2000px) rotateX(58deg) rotateZ(-38deg) scale(.6); }
.tool-x-chip { padding: 0 10px; gap: 6px; font-size: 13px; }
/* On a phone each card takes its own height, so a short one has no empty terminal under it. */
.is-exploded .tool:not(.is-active) { display: none; }
}
@media (max-width: 380px) {
.tool-x-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
.tool-x-pane, .is-exploded .tool, .is-exploded .tool.is-active { transition: none; }
}