File size: 7,824 Bytes
202e36e
 
 
 
 
7f703b8
 
202e36e
 
 
 
8201728
202e36e
 
8201728
e65dbd3
8201728
 
 
 
 
 
 
 
 
 
 
 
 
e65dbd3
cd591c3
8201728
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38694da
8201728
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b65145a
8201728
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cd591c3
8201728
 
 
 
 
 
 
 
 
9573b98
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
@font-face {
  font-family: "Geist";
  src: url("assets/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f2f9ff;
  --text: #122538;
  --dim: #526779;
  --line: #cfdee8;
  --accent: #0a5d81;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* terminal palette, from the blog post's session block */
  --t-bg: #10192a;
  --t-bar: #0b1322;
  --t-text: #e8f0f7;
  --t-dim: #9fb2c2;
  --t-faint: #526779;
  --t-line: #2e3f50;
  --t-colgrep: #5fb3dd;
  --t-term: #8a9bab;
  --t-gold: #e0b24a;
  --t-ok: #6fc292;
  --t-bad: #e07a7a;
  --t-sel: #1a2740;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); }
a { color: var(--accent); }

.app { display: flex; flex-direction: column; height: 100%; max-width: 1040px; margin: 0 auto; padding: 12px 16px 16px; gap: 10px; }

/* brand bar */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-link { display: inline-flex; }
.brand-title { font-family: var(--mono); font-weight: 600; color: var(--dim); }
.brand-links { margin-left: auto; display: flex; gap: 14px; font-size: 13px; }
.brand-links a { text-decoration: none; }
.brand-links a:hover { text-decoration: underline; }

/* terminal window */
.term { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 380px; background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-line); border-radius: 14px; overflow: hidden; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.term-bar { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 8px 12px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); color: var(--t-dim); font-size: 11.5px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #334b63; }
.term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-controls { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.term-controls button, .term-controls select { font: inherit; color: var(--t-text); background: var(--t-sel); border: 1px solid var(--t-line); border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.term-controls button:hover, .term-controls select:hover { border-color: var(--t-dim); }
.term-controls button:focus-visible, .term-controls select:focus-visible, #cmd:focus-visible, .chip:focus-visible, .step:focus-visible { outline: 2px solid var(--t-colgrep); outline-offset: 1px; }
.speed { display: inline-flex; align-items: center; gap: 6px; }
.speed span { color: var(--t-faint); }

.term-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 16px 16px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .term-body { scroll-behavior: auto; } }

.screen { white-space: pre-wrap; word-break: break-word; }
.screen .line { min-height: 1.5em; }
.cmdline .ps1, .prompt .ps1 { color: var(--t-dim); }
.cmdline .cmd { color: var(--t-text); }
.cmdline .q { color: var(--t-colgrep); }
.hdr { color: var(--t-dim); font-size: 11.5px; }
.hdr a { color: var(--t-dim); }
.question { color: var(--t-text); }
.question .mark { color: var(--t-dim); }
.issue-toggle { color: var(--t-faint); cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
.issue-toggle:hover { color: var(--t-dim); text-decoration: underline; }
.issue { display: none; margin: 4px 0 6px 14px; padding: 6px 10px; border-left: 2px solid var(--t-line); color: var(--t-dim); max-height: 16em; overflow: auto; font-size: 12px; }
.issue.open { display: block; }
.faint { color: var(--t-faint); }
.intro b { color: var(--t-text); font-weight: 600; }
.dim { color: var(--t-dim); }
.ok { color: var(--t-ok); }
.bad { color: var(--t-bad); }
.gold { color: var(--t-gold); }
.err { color: var(--t-bad); }

/* steps */
.steps { margin: 4px 0; }
.step { display: grid; grid-template-columns: 22px 78px minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 1px 4px; margin: 0 -4px; border-radius: 6px; cursor: pointer; }
.step:hover { background: var(--t-sel); }
.step .n { color: var(--t-faint); font-size: 11px; }
.step .tool { font-weight: 600; }
.step.colgrep .tool { color: var(--t-colgrep); }
.step.terminal .tool { color: var(--t-term); font-weight: 400; }
.step.finish .tool, .step.finish .text { color: var(--t-gold); }
.step .text { white-space: pre-wrap; word-break: break-word; }
.step .caret { color: var(--t-faint); font-size: 10px; margin-left: 6px; }
.step.pending .text { color: var(--t-dim); }
.spinner { display: inline-block; width: 1ch; color: var(--t-colgrep); }
.note { grid-column: 1 / -1; color: var(--t-faint); font-size: 11.5px; padding-left: 110px; }
.output { display: none; margin: 2px 0 6px 32px; padding: 6px 10px; border-left: 2px solid var(--t-line); color: var(--t-dim); font-size: 11.5px; max-height: 22em; overflow: auto; white-space: pre; }
.output.open { display: block; }
.output mark { background: rgba(224, 178, 74, .18); color: var(--t-gold); border-radius: 2px; }
.summary { margin-top: 6px; }
.summary .ok { font-weight: 600; }

/* locations */
.loc { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--t-line); }
.loc-head { margin-bottom: 4px; }
.loc-head .path { color: var(--t-gold); font-weight: 600; }
.loc-head .sym { color: var(--t-dim); margin-left: 8px; }
.code { margin: 0; padding-left: 10px; overflow-x: auto; }
.code .ln { display: block; white-space: pre; }
.code .ln .no { display: inline-block; width: 5ch; text-align: right; margin-right: 2ch; color: var(--t-faint); }
.code .ln.ctx { color: var(--t-faint); }
.code .ln.in { border-left: 3px solid var(--t-gold); margin-left: -10px; padding-left: 7px; background: rgba(224, 178, 74, .07); }
.code .ln.gap { color: var(--t-faint); }

/* reference */
.ref { margin-top: 12px; padding: 8px 10px; border: 1px dashed var(--t-line); border-radius: 8px; color: var(--t-dim); font-size: 12px; }
.ref .ttl { color: var(--t-text); }
.ref .row { display: block; }
.ref .m { margin-left: 1ch; }
.ref .note-text { margin-top: 6px; color: var(--t-dim); font-family: var(--sans); font-size: 12.5px; }

/* prompt and suggestions */
.prompt { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; }
.prompt .ps1 { white-space: nowrap; }
.cwd { color: var(--t-colgrep); }
#cmd { flex: 1 1 auto; font: inherit; color: var(--t-text); background: transparent; border: 0; padding: 0; caret-color: var(--t-colgrep); }
#cmd::placeholder { color: var(--t-faint); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggest .lbl { width: 100%; color: var(--t-faint); font-size: 11.5px; margin-top: 4px; }
.chip { font: inherit; font-size: 12px; color: var(--t-text); background: var(--t-sel); border: 1px solid var(--t-line); border-radius: 999px; padding: 3px 10px; cursor: pointer; text-align: left; max-width: 100%; }
.chip:hover { border-color: var(--t-colgrep); }
.chip.repo { border-color: #3a5370; }
.chip .lang { color: var(--t-dim); margin-left: 6px; font-size: 11px; }
.chip .meta { color: var(--t-faint); margin-left: 6px; font-size: 11px; }
.chip.back { color: var(--t-dim); }
.hidden { display: none !important; }

.notes { color: var(--dim); font-size: 12.5px; flex: 0 0 auto; }
.brand { flex: 0 0 auto; }
.notes p { margin: 0; }

@media (max-width: 640px) {
  .app { padding: 10px 10px 12px; }
  .brand-title { display: none; }
  .term { font-size: 12px; min-height: 340px; }
  .term-body { padding: 10px 10px 12px; }
  .step { grid-template-columns: 18px 64px minmax(0, 1fr); column-gap: 8px; }
  .note { padding-left: 90px; }
  .output { margin-left: 20px; }
  .speed span { display: none; }
}