@drunkcoding/agents-and-skills 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +9 -6
- package/README.md +1 -1
- package/package.json +1 -1
- package/plugins/html-effectiveness/.claude-plugin/plugin.json +1 -1
- package/plugins/html-effectiveness/README.md +9 -4
- package/plugins/html-effectiveness/agents/report-builder.md +4 -0
- package/plugins/html-effectiveness/assets/base.css +40 -20
- package/plugins/html-effectiveness/docs/template-gallery.md +28 -0
- package/plugins/html-effectiveness/scripts/_tmp.js +37 -0
- package/plugins/html-effectiveness/scripts/catalog.js +47 -0
- package/plugins/html-effectiveness/scripts/extract.js +104 -0
- package/plugins/html-effectiveness/scripts/render.js +2 -2
- package/plugins/html-effectiveness/skills/html-effectiveness/SKILL.md +4 -4
- package/plugins/html-effectiveness/templates/01-exploration-code-approaches.html.tmpl +400 -0
- package/plugins/html-effectiveness/templates/02-exploration-visual-designs.html.tmpl +456 -0
- package/plugins/html-effectiveness/templates/03-code-review-pr.html.tmpl +581 -0
- package/plugins/html-effectiveness/templates/04-code-understanding.html.tmpl +443 -0
- package/plugins/html-effectiveness/templates/05-design-system.html.tmpl +578 -0
- package/plugins/html-effectiveness/templates/06-component-variants.html.tmpl +557 -0
- package/plugins/html-effectiveness/templates/07-prototype-animation.html.tmpl +417 -0
- package/plugins/html-effectiveness/templates/08-prototype-interaction.html.tmpl +363 -0
- package/plugins/html-effectiveness/templates/09-slide-deck.html.tmpl +535 -0
- package/plugins/html-effectiveness/templates/10-svg-illustrations.html.tmpl +444 -0
- package/plugins/html-effectiveness/templates/11-status-report.html.tmpl +152 -0
- package/plugins/html-effectiveness/templates/12-incident-report.html.tmpl +547 -0
- package/plugins/html-effectiveness/templates/13-flowchart-diagram.html.tmpl +361 -0
- package/plugins/html-effectiveness/templates/14-research-feature-explainer.html.tmpl +348 -0
- package/plugins/html-effectiveness/templates/15-research-concept-explainer.html.tmpl +334 -0
- package/plugins/html-effectiveness/templates/16-implementation-plan.html.tmpl +657 -0
- package/plugins/html-effectiveness/templates/17-pr-writeup.html.tmpl +553 -0
- package/plugins/html-effectiveness/templates/18-editor-triage-board.html.tmpl +541 -0
- package/plugins/html-effectiveness/templates/19-editor-feature-flags.html.tmpl +627 -0
- package/plugins/html-effectiveness/templates/20-editor-prompt-tuner.html.tmpl +687 -0
- package/plugins/html-effectiveness/templates/manifest.json +436 -2
- package/plugins/html-effectiveness/tests/_tmp.test.js +58 -0
- package/plugins/html-effectiveness/tests/fixtures/01-exploration-code-approaches.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/02-exploration-visual-designs.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/03-code-review-pr.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/04-code-understanding.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/05-design-system.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/06-component-variants.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/07-prototype-animation.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/08-prototype-interaction.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/09-slide-deck.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/10-svg-illustrations.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/11-status-report.data.json +37 -0
- package/plugins/html-effectiveness/tests/fixtures/12-incident-report.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/13-flowchart-diagram.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/14-research-feature-explainer.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/15-research-concept-explainer.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/16-implementation-plan.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/17-pr-writeup.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/18-editor-triage-board.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/19-editor-feature-flags.data.json +3 -0
- package/plugins/html-effectiveness/tests/fixtures/20-editor-prompt-tuner.data.json +3 -0
- package/plugins/html-effectiveness/tests/manifest.test.js +61 -0
- package/plugins/plugin-validator/.claude-plugin/plugin.json +1 -1
- package/plugins/plugin-validator/skills/validate-agents/SKILL.md +2 -2
- package/plugins/plugin-validator/skills/validate-commands/SKILL.md +2 -2
- package/plugins/plugin-validator/skills/validate-hooks/SKILL.md +57 -18
- package/plugins/team-superpower/.claude-plugin/plugin.json +7 -39
- package/plugins/team-superpower/README.md +73 -19
- package/plugins/team-superpower/agents/backend-developer.md +33 -0
- package/plugins/team-superpower/agents/designer.md +5 -1
- package/plugins/team-superpower/agents/frontend-developer.md +33 -0
- package/plugins/team-superpower/agents/planner.md +31 -11
- package/plugins/team-superpower/agents/qa-engineer.md +30 -0
- package/plugins/team-superpower/agents/reviewer.md +37 -21
- package/plugins/team-superpower/agents/security-engineer.md +30 -0
- package/plugins/team-superpower/agents/software-architect.md +30 -0
- package/plugins/team-superpower/assets/ESCALATION.md +19 -5
- package/plugins/team-superpower/assets/SESSION_README.md +31 -11
- package/plugins/team-superpower/commands/team-feature-resume.md +40 -5
- package/plugins/team-superpower/commands/team-feature.md +148 -22
- package/plugins/team-superpower/hooks/hooks.json +0 -3
- package/plugins/tech-graph/.claude-plugin/plugin.json +1 -1
- package/plugins/tech-graph/agents/tech-graph.md +8 -0
- package/plugins/team-superpower/agents/implementer.md +0 -46
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
template: 07-prototype-animation
|
|
3
|
+
upstream: 07-prototype-animation.html
|
|
4
|
+
slots:
|
|
5
|
+
title: string # replaces first <h1> innerHTML
|
|
6
|
+
-->
|
|
7
|
+
<div class="wrap">
|
|
8
|
+
|
|
9
|
+
<header>
|
|
10
|
+
<div class="eyebrow">Acme / prototype / micro-interaction</div>
|
|
11
|
+
<h1>{{title}}</h1>
|
|
12
|
+
<p class="sub">
|
|
13
|
+
A single click should feel like a tiny win. Circle fills, check draws,
|
|
14
|
+
label strikes, a small burst, then the row quietly steps back. Click
|
|
15
|
+
the row to play; click again to reset.
|
|
16
|
+
</p>
|
|
17
|
+
</header>
|
|
18
|
+
|
|
19
|
+
<div class="bench">
|
|
20
|
+
|
|
21
|
+
<div class="stage">
|
|
22
|
+
<div class="task" id="task">
|
|
23
|
+
<div class="check">
|
|
24
|
+
<svg viewBox="0 0 16 16"><path d="M3 8.5 L6.5 12 L13 4.5"/></svg>
|
|
25
|
+
</div>
|
|
26
|
+
<span class="label">Send weekly digest</span>
|
|
27
|
+
<span class="due">Fri</span>
|
|
28
|
+
<div class="confetti c1"></div>
|
|
29
|
+
<div class="confetti c2"></div>
|
|
30
|
+
<div class="confetti c3"></div>
|
|
31
|
+
<div class="confetti c4"></div>
|
|
32
|
+
<div class="confetti c5"></div>
|
|
33
|
+
<div class="confetti c6"></div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="hint">click to toggle</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<aside class="panel">
|
|
39
|
+
<h2>Easing</h2>
|
|
40
|
+
<p>Swaps <code>--ease</code> across every transition so you can feel the difference.</p>
|
|
41
|
+
<button class="ease-btn" data-ease="linear">
|
|
42
|
+
Linear
|
|
43
|
+
<code>linear</code>
|
|
44
|
+
</button>
|
|
45
|
+
<button class="ease-btn" data-ease="cubic-bezier(0.16, 1, 0.3, 1)">
|
|
46
|
+
Ease-out
|
|
47
|
+
<code>cubic-bezier(.16, 1, .3, 1)</code>
|
|
48
|
+
</button>
|
|
49
|
+
<button class="ease-btn active" data-ease="cubic-bezier(0.34, 1.56, 0.64, 1)">
|
|
50
|
+
Spring
|
|
51
|
+
<code>cubic-bezier(.34, 1.56, .64, 1)</code>
|
|
52
|
+
</button>
|
|
53
|
+
</aside>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<section class="timeline">
|
|
58
|
+
<h2>Keyframes</h2>
|
|
59
|
+
<div class="track">
|
|
60
|
+
<div class="key k1"><em>fill</em><span>0ms</span></div>
|
|
61
|
+
<div class="key k2"><em>check</em><span>80ms</span></div>
|
|
62
|
+
<div class="key k3"><em>strike</em><span>120ms</span></div>
|
|
63
|
+
<div class="key k4"><em>confetti</em><span>200ms</span></div>
|
|
64
|
+
<div class="key k5"><em>collapse</em><span>600ms</span></div>
|
|
65
|
+
</div>
|
|
66
|
+
</section>
|
|
67
|
+
|
|
68
|
+
<section class="snippet">
|
|
69
|
+
<h2>Copy-paste CSS</h2>
|
|
70
|
+
<pre><span class="c">/* circle: clay flash, settle to olive with spring overshoot */</span>
|
|
71
|
+
<span class="k">.task.done .check</span> {
|
|
72
|
+
animation: settle 380ms <span class="v">cubic-bezier(.34,1.56,.64,1)</span> forwards;
|
|
73
|
+
}
|
|
74
|
+
<span class="k">@keyframes settle</span> {
|
|
75
|
+
0% { transform: scale(.8); background: <span class="v">#D97757</span>; }
|
|
76
|
+
55% { transform: scale(1.18); }
|
|
77
|
+
100% { transform: scale(1); background: <span class="v">#788C5D</span>; }
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
<span class="c">/* checkmark draws via stroke-dashoffset, 80ms delay */</span>
|
|
81
|
+
<span class="k">.check path</span> { stroke-dasharray: 20; stroke-dashoffset: 20;
|
|
82
|
+
transition: stroke-dashoffset 220ms var(--ease) 80ms; }
|
|
83
|
+
<span class="k">.task.done path</span> { stroke-dashoffset: 0; }
|
|
84
|
+
|
|
85
|
+
<span class="c">/* strikethrough grows left → right */</span>
|
|
86
|
+
<span class="k">.label::after</span> { width: 0; transition: width 240ms var(--ease) 120ms; }
|
|
87
|
+
<span class="k">.task.done .label::after</span> { width: 100%; }
|
|
88
|
+
|
|
89
|
+
<span class="c">/* row steps back after the celebration */</span>
|
|
90
|
+
<span class="k">.task.done</span> { max-height: 44px; opacity: .6;
|
|
91
|
+
transition-delay: 600ms; }</pre>
|
|
92
|
+
</section>
|
|
93
|
+
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<style>
|
|
97
|
+
* { box-sizing: border-box; }
|
|
98
|
+
.wrap {
|
|
99
|
+
max-width: 1080px;
|
|
100
|
+
margin: 0 auto;
|
|
101
|
+
padding: 48px 32px 64px;
|
|
102
|
+
}
|
|
103
|
+
header { margin-bottom: 28px; }
|
|
104
|
+
.eyebrow {
|
|
105
|
+
font-family: var(--mono);
|
|
106
|
+
font-size: 11px;
|
|
107
|
+
letter-spacing: 0.08em;
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
color: var(--gray-500);
|
|
110
|
+
}
|
|
111
|
+
h1 {
|
|
112
|
+
font-family: var(--serif);
|
|
113
|
+
font-weight: 500;
|
|
114
|
+
font-size: 30px;
|
|
115
|
+
letter-spacing: -0.01em;
|
|
116
|
+
margin: 6px 0 4px;
|
|
117
|
+
}
|
|
118
|
+
.sub {
|
|
119
|
+
color: var(--gray-500);
|
|
120
|
+
max-width: 560px;
|
|
121
|
+
}
|
|
122
|
+
/* ---------- layout ---------- */
|
|
123
|
+
.bench {
|
|
124
|
+
display: grid;
|
|
125
|
+
grid-template-columns: 1fr 240px;
|
|
126
|
+
gap: 24px;
|
|
127
|
+
align-items: start;
|
|
128
|
+
}
|
|
129
|
+
.stage {
|
|
130
|
+
background: var(--white);
|
|
131
|
+
border: 1.5px solid var(--gray-200);
|
|
132
|
+
border-radius: 12px;
|
|
133
|
+
height: 360px;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
position: relative;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
}
|
|
140
|
+
.hint {
|
|
141
|
+
position: absolute;
|
|
142
|
+
bottom: 14px;
|
|
143
|
+
left: 50%;
|
|
144
|
+
transform: translateX(-50%);
|
|
145
|
+
font-family: var(--mono);
|
|
146
|
+
font-size: 11px;
|
|
147
|
+
color: var(--gray-500);
|
|
148
|
+
}
|
|
149
|
+
/* ---------- the task row ---------- */
|
|
150
|
+
.task {
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
gap: 14px;
|
|
154
|
+
padding: 14px 18px;
|
|
155
|
+
border: 1.5px solid var(--gray-200);
|
|
156
|
+
border-radius: 8px;
|
|
157
|
+
background: var(--white);
|
|
158
|
+
width: 360px;
|
|
159
|
+
max-height: 64px;
|
|
160
|
+
position: relative;
|
|
161
|
+
transition: max-height 280ms var(--ease) 600ms,
|
|
162
|
+
opacity 280ms var(--ease) 600ms,
|
|
163
|
+
padding 280ms var(--ease) 600ms,
|
|
164
|
+
border-color 200ms var(--ease);
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
user-select: none;
|
|
167
|
+
}
|
|
168
|
+
.task:hover { border-color: var(--gray-500); }
|
|
169
|
+
.check {
|
|
170
|
+
flex: none;
|
|
171
|
+
width: 24px;
|
|
172
|
+
height: 24px;
|
|
173
|
+
border-radius: 50%;
|
|
174
|
+
border: 1.5px solid var(--gray-500);
|
|
175
|
+
background: var(--white);
|
|
176
|
+
position: relative;
|
|
177
|
+
transition: background 180ms var(--ease),
|
|
178
|
+
border-color 180ms var(--ease),
|
|
179
|
+
transform 260ms var(--ease);
|
|
180
|
+
}
|
|
181
|
+
.check svg {
|
|
182
|
+
position: absolute;
|
|
183
|
+
inset: 0;
|
|
184
|
+
margin: auto;
|
|
185
|
+
width: 14px;
|
|
186
|
+
height: 14px;
|
|
187
|
+
}
|
|
188
|
+
.check path {
|
|
189
|
+
stroke: var(--white);
|
|
190
|
+
stroke-width: 2.5;
|
|
191
|
+
stroke-linecap: round;
|
|
192
|
+
stroke-linejoin: round;
|
|
193
|
+
fill: none;
|
|
194
|
+
stroke-dasharray: 20;
|
|
195
|
+
stroke-dashoffset: 20;
|
|
196
|
+
transition: stroke-dashoffset 220ms var(--ease) 80ms;
|
|
197
|
+
}
|
|
198
|
+
.label {
|
|
199
|
+
position: relative;
|
|
200
|
+
font-size: 15px;
|
|
201
|
+
color: var(--slate);
|
|
202
|
+
transition: color 200ms var(--ease) 120ms;
|
|
203
|
+
}
|
|
204
|
+
.label::after {
|
|
205
|
+
content: "";
|
|
206
|
+
position: absolute;
|
|
207
|
+
left: 0;
|
|
208
|
+
top: 52%;
|
|
209
|
+
height: 1.5px;
|
|
210
|
+
width: 0;
|
|
211
|
+
background: var(--gray-500);
|
|
212
|
+
transition: width 240ms var(--ease) 120ms;
|
|
213
|
+
}
|
|
214
|
+
.due {
|
|
215
|
+
margin-left: auto;
|
|
216
|
+
font-family: var(--mono);
|
|
217
|
+
font-size: 11px;
|
|
218
|
+
color: var(--gray-500);
|
|
219
|
+
background: var(--gray-50);
|
|
220
|
+
border: 1.5px solid var(--gray-200);
|
|
221
|
+
padding: 3px 8px;
|
|
222
|
+
border-radius: 8px;
|
|
223
|
+
transition: opacity 200ms var(--ease) 120ms;
|
|
224
|
+
}
|
|
225
|
+
/* confetti — six particles, css-only, driven by .done on the row */
|
|
226
|
+
.confetti {
|
|
227
|
+
position: absolute;
|
|
228
|
+
left: 22px;
|
|
229
|
+
top: 50%;
|
|
230
|
+
width: 6px;
|
|
231
|
+
height: 6px;
|
|
232
|
+
border-radius: 2px;
|
|
233
|
+
opacity: 0;
|
|
234
|
+
pointer-events: none;
|
|
235
|
+
}
|
|
236
|
+
.confetti.c1 { background: var(--clay); }
|
|
237
|
+
.confetti.c2 { background: var(--olive); }
|
|
238
|
+
.confetti.c3 { background: var(--oat); }
|
|
239
|
+
.confetti.c4 { background: var(--clay); }
|
|
240
|
+
.confetti.c5 { background: var(--olive); }
|
|
241
|
+
.confetti.c6 { background: var(--gray-800); }
|
|
242
|
+
/* ---------- done state ---------- */
|
|
243
|
+
.task.done .check {
|
|
244
|
+
background: var(--olive);
|
|
245
|
+
border-color: var(--olive);
|
|
246
|
+
transform: scale(1.12);
|
|
247
|
+
animation: settle 380ms var(--ease) forwards;
|
|
248
|
+
}
|
|
249
|
+
@keyframes settle {
|
|
250
|
+
0% { transform: scale(0.8); background: var(--clay); border-color: var(--clay); }
|
|
251
|
+
55% { transform: scale(1.18); }
|
|
252
|
+
100% { transform: scale(1); background: var(--olive); border-color: var(--olive); }
|
|
253
|
+
}
|
|
254
|
+
.task.done .check path { stroke-dashoffset: 0; }
|
|
255
|
+
.task.done .label { color: var(--gray-500); }
|
|
256
|
+
.task.done .label::after { width: 100%; }
|
|
257
|
+
.task.done .due { opacity: 0.35; }
|
|
258
|
+
.task.done {
|
|
259
|
+
max-height: 44px;
|
|
260
|
+
padding-top: 8px;
|
|
261
|
+
padding-bottom: 8px;
|
|
262
|
+
opacity: 0.6;
|
|
263
|
+
}
|
|
264
|
+
.task.done .confetti { animation: pop 520ms var(--ease) 200ms forwards; }
|
|
265
|
+
.task.done .confetti.c1 { --dx: -28px; --dy: -22px; --rot: 40deg; }
|
|
266
|
+
.task.done .confetti.c2 { --dx: -6px; --dy: -34px; --rot: -60deg; }
|
|
267
|
+
.task.done .confetti.c3 { --dx: 18px; --dy: -26px; --rot: 90deg; }
|
|
268
|
+
.task.done .confetti.c4 { --dx: 30px; --dy: -4px; --rot: -30deg; }
|
|
269
|
+
.task.done .confetti.c5 { --dx: -24px; --dy: 14px; --rot: 20deg; }
|
|
270
|
+
.task.done .confetti.c6 { --dx: 12px; --dy: 22px; --rot: -80deg; }
|
|
271
|
+
@keyframes pop {
|
|
272
|
+
0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.6); }
|
|
273
|
+
15% { opacity: 1; }
|
|
274
|
+
100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
|
|
275
|
+
}
|
|
276
|
+
/* ---------- easing panel ---------- */
|
|
277
|
+
.panel {
|
|
278
|
+
background: var(--white);
|
|
279
|
+
border: 1.5px solid var(--gray-200);
|
|
280
|
+
border-radius: 12px;
|
|
281
|
+
padding: 18px;
|
|
282
|
+
}
|
|
283
|
+
.panel h2 {
|
|
284
|
+
font-family: var(--serif);
|
|
285
|
+
font-weight: 500;
|
|
286
|
+
font-size: 16px;
|
|
287
|
+
margin: 0 0 4px;
|
|
288
|
+
}
|
|
289
|
+
.panel p {
|
|
290
|
+
margin: 0 0 14px;
|
|
291
|
+
font-size: 12px;
|
|
292
|
+
color: var(--gray-500);
|
|
293
|
+
}
|
|
294
|
+
.ease-btn {
|
|
295
|
+
display: block;
|
|
296
|
+
width: 100%;
|
|
297
|
+
text-align: left;
|
|
298
|
+
background: var(--gray-50);
|
|
299
|
+
border: 1.5px solid var(--gray-200);
|
|
300
|
+
border-radius: 8px;
|
|
301
|
+
padding: 10px 12px;
|
|
302
|
+
margin-bottom: 8px;
|
|
303
|
+
font-family: var(--sans);
|
|
304
|
+
font-size: 13px;
|
|
305
|
+
color: var(--slate);
|
|
306
|
+
cursor: pointer;
|
|
307
|
+
}
|
|
308
|
+
.ease-btn:hover { border-color: var(--gray-500); }
|
|
309
|
+
.ease-btn.active {
|
|
310
|
+
border-color: var(--clay);
|
|
311
|
+
background: #FBF1EC;
|
|
312
|
+
}
|
|
313
|
+
.ease-btn code {
|
|
314
|
+
display: block;
|
|
315
|
+
font-family: var(--mono);
|
|
316
|
+
font-size: 10px;
|
|
317
|
+
color: var(--gray-500);
|
|
318
|
+
margin-top: 2px;
|
|
319
|
+
}
|
|
320
|
+
/* ---------- timeline ---------- */
|
|
321
|
+
.timeline {
|
|
322
|
+
margin-top: 28px;
|
|
323
|
+
background: var(--white);
|
|
324
|
+
border: 1.5px solid var(--gray-200);
|
|
325
|
+
border-radius: 12px;
|
|
326
|
+
padding: 22px 22px 30px;
|
|
327
|
+
}
|
|
328
|
+
.timeline h2 {
|
|
329
|
+
font-family: var(--serif);
|
|
330
|
+
font-weight: 500;
|
|
331
|
+
font-size: 16px;
|
|
332
|
+
margin: 0 0 18px;
|
|
333
|
+
}
|
|
334
|
+
.track {
|
|
335
|
+
position: relative;
|
|
336
|
+
height: 2px;
|
|
337
|
+
background: var(--gray-200);
|
|
338
|
+
margin: 20px 8px 0;
|
|
339
|
+
}
|
|
340
|
+
.key {
|
|
341
|
+
position: absolute;
|
|
342
|
+
top: -5px;
|
|
343
|
+
width: 12px;
|
|
344
|
+
height: 12px;
|
|
345
|
+
border-radius: 50%;
|
|
346
|
+
background: var(--clay);
|
|
347
|
+
border: 1.5px solid var(--white);
|
|
348
|
+
box-shadow: 0 0 0 1.5px var(--clay);
|
|
349
|
+
transform: translateX(-50%);
|
|
350
|
+
}
|
|
351
|
+
.key span {
|
|
352
|
+
position: absolute;
|
|
353
|
+
top: 16px;
|
|
354
|
+
left: 50%;
|
|
355
|
+
transform: translateX(-50%);
|
|
356
|
+
white-space: nowrap;
|
|
357
|
+
font-family: var(--mono);
|
|
358
|
+
font-size: 10px;
|
|
359
|
+
color: var(--gray-800);
|
|
360
|
+
}
|
|
361
|
+
.key em {
|
|
362
|
+
position: absolute;
|
|
363
|
+
bottom: 16px;
|
|
364
|
+
left: 50%;
|
|
365
|
+
transform: translateX(-50%);
|
|
366
|
+
white-space: nowrap;
|
|
367
|
+
font-style: normal;
|
|
368
|
+
font-size: 11px;
|
|
369
|
+
color: var(--gray-500);
|
|
370
|
+
}
|
|
371
|
+
.k1 { left: 0%; }
|
|
372
|
+
.k2 { left: 13%; }
|
|
373
|
+
.k3 { left: 20%; }
|
|
374
|
+
.k4 { left: 33%; }
|
|
375
|
+
.k5 { left: 100%; background: var(--olive); box-shadow: 0 0 0 1.5px var(--olive); }
|
|
376
|
+
/* ---------- snippet ---------- */
|
|
377
|
+
.snippet {
|
|
378
|
+
margin-top: 28px;
|
|
379
|
+
}
|
|
380
|
+
.snippet h2 {
|
|
381
|
+
font-family: var(--serif);
|
|
382
|
+
font-weight: 500;
|
|
383
|
+
font-size: 16px;
|
|
384
|
+
margin: 0 0 10px;
|
|
385
|
+
}
|
|
386
|
+
pre {
|
|
387
|
+
background: var(--gray-800);
|
|
388
|
+
color: var(--gray-50);
|
|
389
|
+
border-radius: 12px;
|
|
390
|
+
padding: 18px 20px;
|
|
391
|
+
font-family: var(--mono);
|
|
392
|
+
font-size: 12px;
|
|
393
|
+
line-height: 1.7;
|
|
394
|
+
overflow-x: auto;
|
|
395
|
+
margin: 0;
|
|
396
|
+
}
|
|
397
|
+
pre .c { color: var(--gray-500); }
|
|
398
|
+
pre .k { color: var(--clay); }
|
|
399
|
+
pre .v { color: #B8C99D; }
|
|
400
|
+
</style>
|
|
401
|
+
|
|
402
|
+
<script>
|
|
403
|
+
var task = document.getElementById('task');
|
|
404
|
+
task.addEventListener('click', function () {
|
|
405
|
+
task.classList.toggle('done');
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
var root = document.documentElement;
|
|
409
|
+
var buttons = document.querySelectorAll('.ease-btn');
|
|
410
|
+
buttons.forEach(function (btn) {
|
|
411
|
+
btn.addEventListener('click', function () {
|
|
412
|
+
buttons.forEach(function (b) { b.classList.remove('active'); });
|
|
413
|
+
btn.classList.add('active');
|
|
414
|
+
root.style.setProperty('--ease', btn.dataset.ease);
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
</script>
|