@shiodome47/sekisho 0.0.0-stage → 0.1.0
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/LICENSE +33 -0
- package/README.md +140 -2
- package/dist/Sekisho-Bmo9R4cU.d.ts +173 -0
- package/dist/chunk-IQYSUTRQ.js +125 -0
- package/dist/chunk-IQYSUTRQ.js.map +1 -0
- package/dist/chunk-N6EMSDTH.js +205 -0
- package/dist/chunk-N6EMSDTH.js.map +1 -0
- package/dist/chunk-V2NPSBAT.js +381 -0
- package/dist/chunk-V2NPSBAT.js.map +1 -0
- package/dist/core/index.d.ts +179 -0
- package/dist/core/index.js +74 -0
- package/dist/core/index.js.map +1 -0
- package/dist/editor/index.d.ts +12 -0
- package/dist/editor/index.js +258 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +516 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +768 -0
- package/dist/types-DxLG2LO0.d.ts +140 -0
- package/package.json +82 -4
package/dist/style.css
ADDED
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @shiodome47/sekisho の見た目。.sekisho の中だけに効く。
|
|
3
|
+
* 色は変数で変えられる(アプリの CSS で .sekisho { --sk-accent: …; } と書く)。
|
|
4
|
+
* ライト・ダークは data-theme(light / dark / system)
|
|
5
|
+
*/
|
|
6
|
+
.sekisho {
|
|
7
|
+
--sk-accent: #0f766e;
|
|
8
|
+
--sk-accent-text: #ffffff;
|
|
9
|
+
--sk-bg: transparent;
|
|
10
|
+
--sk-surface: #ffffff;
|
|
11
|
+
--sk-surface-2: #f4f4f5;
|
|
12
|
+
--sk-text: #18181b;
|
|
13
|
+
--sk-muted: #71717a;
|
|
14
|
+
--sk-border: #e4e4e7;
|
|
15
|
+
--sk-danger: #dc2626;
|
|
16
|
+
--sk-paper: #fbf7ee;
|
|
17
|
+
--sk-paper-line: #e7dcc4;
|
|
18
|
+
--sk-done: #15803d;
|
|
19
|
+
--sk-radius: 12px;
|
|
20
|
+
--sk-overlay: rgba(24, 24, 27, 0.55);
|
|
21
|
+
--sk-font: system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
|
|
22
|
+
|
|
23
|
+
color: var(--sk-text);
|
|
24
|
+
background: var(--sk-bg);
|
|
25
|
+
font-family: var(--sk-font);
|
|
26
|
+
font-size: 15px;
|
|
27
|
+
line-height: 1.6;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
}
|
|
30
|
+
.sekisho *,
|
|
31
|
+
.sekisho *::before,
|
|
32
|
+
.sekisho *::after {
|
|
33
|
+
box-sizing: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sekisho[data-theme='dark'] {
|
|
37
|
+
--sk-accent: #2dd4bf;
|
|
38
|
+
--sk-accent-text: #042f2e;
|
|
39
|
+
--sk-surface: #1f1f23;
|
|
40
|
+
--sk-surface-2: #2a2a30;
|
|
41
|
+
--sk-text: #f4f4f5;
|
|
42
|
+
--sk-muted: #a1a1aa;
|
|
43
|
+
--sk-border: #3f3f46;
|
|
44
|
+
--sk-danger: #f87171;
|
|
45
|
+
--sk-paper: #2b261d;
|
|
46
|
+
--sk-paper-line: #4a4232;
|
|
47
|
+
--sk-done: #4ade80;
|
|
48
|
+
--sk-overlay: rgba(0, 0, 0, 0.7);
|
|
49
|
+
}
|
|
50
|
+
@media (prefers-color-scheme: dark) {
|
|
51
|
+
.sekisho[data-theme='system'] {
|
|
52
|
+
--sk-accent: #2dd4bf;
|
|
53
|
+
--sk-accent-text: #042f2e;
|
|
54
|
+
--sk-surface: #1f1f23;
|
|
55
|
+
--sk-surface-2: #2a2a30;
|
|
56
|
+
--sk-text: #f4f4f5;
|
|
57
|
+
--sk-muted: #a1a1aa;
|
|
58
|
+
--sk-border: #3f3f46;
|
|
59
|
+
--sk-danger: #f87171;
|
|
60
|
+
--sk-paper: #2b261d;
|
|
61
|
+
--sk-paper-line: #4a4232;
|
|
62
|
+
--sk-done: #4ade80;
|
|
63
|
+
--sk-overlay: rgba(0, 0, 0, 0.7);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* ─── ボタン・入力 ─────────────────────────── */
|
|
68
|
+
.sekisho .sk-btn {
|
|
69
|
+
appearance: none;
|
|
70
|
+
border: 1px solid var(--sk-border);
|
|
71
|
+
background: var(--sk-surface-2);
|
|
72
|
+
color: var(--sk-text);
|
|
73
|
+
border-radius: 8px;
|
|
74
|
+
padding: 7px 14px;
|
|
75
|
+
font: inherit;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
.sekisho .sk-btn:hover:not(:disabled) {
|
|
81
|
+
filter: brightness(0.96);
|
|
82
|
+
}
|
|
83
|
+
.sekisho .sk-btn:disabled {
|
|
84
|
+
opacity: 0.5;
|
|
85
|
+
cursor: default;
|
|
86
|
+
}
|
|
87
|
+
.sekisho .sk-btn--primary {
|
|
88
|
+
background: var(--sk-accent);
|
|
89
|
+
border-color: var(--sk-accent);
|
|
90
|
+
color: var(--sk-accent-text);
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
}
|
|
93
|
+
.sekisho .sk-btn--ghost {
|
|
94
|
+
background: transparent;
|
|
95
|
+
border-color: transparent;
|
|
96
|
+
color: var(--sk-muted);
|
|
97
|
+
}
|
|
98
|
+
.sekisho .sk-btn--danger {
|
|
99
|
+
background: transparent;
|
|
100
|
+
border-color: var(--sk-danger);
|
|
101
|
+
color: var(--sk-danger);
|
|
102
|
+
}
|
|
103
|
+
.sekisho .sk-icon-btn {
|
|
104
|
+
appearance: none;
|
|
105
|
+
border: none;
|
|
106
|
+
background: transparent;
|
|
107
|
+
color: var(--sk-muted);
|
|
108
|
+
width: 30px;
|
|
109
|
+
height: 30px;
|
|
110
|
+
border-radius: 6px;
|
|
111
|
+
font: inherit;
|
|
112
|
+
font-size: 16px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
}
|
|
118
|
+
.sekisho .sk-icon-btn:hover:not(:disabled) {
|
|
119
|
+
background: var(--sk-surface-2);
|
|
120
|
+
color: var(--sk-text);
|
|
121
|
+
}
|
|
122
|
+
.sekisho .sk-icon-btn:disabled {
|
|
123
|
+
opacity: 0.3;
|
|
124
|
+
cursor: default;
|
|
125
|
+
}
|
|
126
|
+
.sekisho .sk-icon-btn--danger:hover:not(:disabled) {
|
|
127
|
+
color: var(--sk-danger);
|
|
128
|
+
}
|
|
129
|
+
.sekisho :is(button, input, textarea):focus-visible {
|
|
130
|
+
outline: 2px solid var(--sk-accent);
|
|
131
|
+
outline-offset: 2px;
|
|
132
|
+
}
|
|
133
|
+
.sekisho .sk-input {
|
|
134
|
+
width: 100%;
|
|
135
|
+
border: 1px solid var(--sk-border);
|
|
136
|
+
background: var(--sk-surface);
|
|
137
|
+
color: var(--sk-text);
|
|
138
|
+
border-radius: 8px;
|
|
139
|
+
padding: 7px 10px;
|
|
140
|
+
font: inherit;
|
|
141
|
+
font-size: 15px;
|
|
142
|
+
}
|
|
143
|
+
.sekisho textarea.sk-input {
|
|
144
|
+
resize: vertical;
|
|
145
|
+
}
|
|
146
|
+
.sekisho .sk-field {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
gap: 4px;
|
|
150
|
+
min-width: 0;
|
|
151
|
+
}
|
|
152
|
+
.sekisho .sk-field__label {
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
color: var(--sk-muted);
|
|
155
|
+
}
|
|
156
|
+
.sekisho .sk-field--narrow {
|
|
157
|
+
width: 8.5em;
|
|
158
|
+
flex: none;
|
|
159
|
+
}
|
|
160
|
+
.sekisho .sk-grow {
|
|
161
|
+
flex: 1;
|
|
162
|
+
min-width: 0;
|
|
163
|
+
}
|
|
164
|
+
.sekisho .sk-segmented {
|
|
165
|
+
display: inline-flex;
|
|
166
|
+
background: var(--sk-surface-2);
|
|
167
|
+
border: 1px solid var(--sk-border);
|
|
168
|
+
border-radius: 8px;
|
|
169
|
+
padding: 2px;
|
|
170
|
+
align-self: flex-start;
|
|
171
|
+
}
|
|
172
|
+
.sekisho .sk-segmented button {
|
|
173
|
+
appearance: none;
|
|
174
|
+
border: none;
|
|
175
|
+
background: transparent;
|
|
176
|
+
color: var(--sk-muted);
|
|
177
|
+
border-radius: 6px;
|
|
178
|
+
padding: 5px 14px;
|
|
179
|
+
font: inherit;
|
|
180
|
+
font-size: 14px;
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
}
|
|
183
|
+
.sekisho .sk-segmented button.is-on {
|
|
184
|
+
background: var(--sk-surface);
|
|
185
|
+
color: var(--sk-text);
|
|
186
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* ─── 共通 ─────────────────────────── */
|
|
190
|
+
.sekisho .sk-toolbar {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
justify-content: space-between;
|
|
194
|
+
gap: 8px;
|
|
195
|
+
flex-wrap: wrap;
|
|
196
|
+
margin-bottom: 12px;
|
|
197
|
+
}
|
|
198
|
+
.sekisho .sk-toolbar__actions {
|
|
199
|
+
display: flex;
|
|
200
|
+
gap: 8px;
|
|
201
|
+
flex-wrap: wrap;
|
|
202
|
+
}
|
|
203
|
+
.sekisho .sk-h2 {
|
|
204
|
+
font-size: 20px;
|
|
205
|
+
font-weight: 700;
|
|
206
|
+
margin: 0;
|
|
207
|
+
}
|
|
208
|
+
.sekisho .sk-card {
|
|
209
|
+
background: var(--sk-surface);
|
|
210
|
+
border: 1px solid var(--sk-border);
|
|
211
|
+
border-radius: var(--sk-radius);
|
|
212
|
+
padding: 14px 16px;
|
|
213
|
+
}
|
|
214
|
+
.sekisho .sk-tag {
|
|
215
|
+
display: inline-block;
|
|
216
|
+
font-size: 12px;
|
|
217
|
+
color: var(--sk-muted);
|
|
218
|
+
background: var(--sk-surface-2);
|
|
219
|
+
border-radius: 999px;
|
|
220
|
+
padding: 1px 9px;
|
|
221
|
+
}
|
|
222
|
+
.sekisho .sk-tag--done {
|
|
223
|
+
color: var(--sk-done);
|
|
224
|
+
font-weight: 600;
|
|
225
|
+
}
|
|
226
|
+
.sekisho .sk-empty {
|
|
227
|
+
color: var(--sk-muted);
|
|
228
|
+
font-size: 14px;
|
|
229
|
+
margin: 8px 0;
|
|
230
|
+
}
|
|
231
|
+
.sekisho .sk-notice {
|
|
232
|
+
white-space: pre-line;
|
|
233
|
+
font-size: 14px;
|
|
234
|
+
background: var(--sk-surface-2);
|
|
235
|
+
border-radius: 8px;
|
|
236
|
+
padding: 8px 12px;
|
|
237
|
+
}
|
|
238
|
+
.sekisho .sk-stamp {
|
|
239
|
+
display: inline-flex;
|
|
240
|
+
flex: none;
|
|
241
|
+
}
|
|
242
|
+
.sekisho .sk-stamp--empty {
|
|
243
|
+
color: var(--sk-border);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* ─── コースの一覧 ─────────────────────────── */
|
|
247
|
+
.sekisho .sk-cards {
|
|
248
|
+
list-style: none;
|
|
249
|
+
margin: 0;
|
|
250
|
+
padding: 0;
|
|
251
|
+
display: grid;
|
|
252
|
+
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
253
|
+
gap: 12px;
|
|
254
|
+
}
|
|
255
|
+
.sekisho .sk-card--button {
|
|
256
|
+
appearance: none;
|
|
257
|
+
width: 100%;
|
|
258
|
+
text-align: left;
|
|
259
|
+
font: inherit;
|
|
260
|
+
color: inherit;
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-direction: column;
|
|
264
|
+
gap: 8px;
|
|
265
|
+
}
|
|
266
|
+
.sekisho .sk-card--button:hover {
|
|
267
|
+
border-color: var(--sk-accent);
|
|
268
|
+
}
|
|
269
|
+
.sekisho .sk-card__head {
|
|
270
|
+
display: flex;
|
|
271
|
+
justify-content: space-between;
|
|
272
|
+
align-items: flex-start;
|
|
273
|
+
gap: 8px;
|
|
274
|
+
}
|
|
275
|
+
.sekisho .sk-card__title {
|
|
276
|
+
font-weight: 700;
|
|
277
|
+
font-size: 16px;
|
|
278
|
+
}
|
|
279
|
+
.sekisho .sk-card__meta {
|
|
280
|
+
font-size: 13px;
|
|
281
|
+
color: var(--sk-muted);
|
|
282
|
+
}
|
|
283
|
+
.sekisho .sk-mini-passport {
|
|
284
|
+
display: flex;
|
|
285
|
+
flex-wrap: wrap;
|
|
286
|
+
gap: 2px;
|
|
287
|
+
}
|
|
288
|
+
.sekisho .sk-meter {
|
|
289
|
+
display: block;
|
|
290
|
+
height: 6px;
|
|
291
|
+
border-radius: 999px;
|
|
292
|
+
background: var(--sk-surface-2);
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
}
|
|
295
|
+
.sekisho .sk-meter > span {
|
|
296
|
+
display: block;
|
|
297
|
+
height: 100%;
|
|
298
|
+
background: var(--sk-accent);
|
|
299
|
+
border-radius: inherit;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* ─── コースの画面 ─────────────────────────── */
|
|
303
|
+
.sekisho .sk-course__head {
|
|
304
|
+
margin-bottom: 14px;
|
|
305
|
+
}
|
|
306
|
+
.sekisho .sk-course__desc {
|
|
307
|
+
margin: 4px 0 0;
|
|
308
|
+
color: var(--sk-muted);
|
|
309
|
+
}
|
|
310
|
+
.sekisho .sk-course__meta {
|
|
311
|
+
display: flex;
|
|
312
|
+
gap: 8px;
|
|
313
|
+
align-items: center;
|
|
314
|
+
flex-wrap: wrap;
|
|
315
|
+
font-size: 13px;
|
|
316
|
+
color: var(--sk-muted);
|
|
317
|
+
margin: 6px 0 0;
|
|
318
|
+
}
|
|
319
|
+
.sekisho .sk-passport {
|
|
320
|
+
background: var(--sk-paper);
|
|
321
|
+
border: 1px solid var(--sk-paper-line);
|
|
322
|
+
border-radius: var(--sk-radius);
|
|
323
|
+
padding: 12px 14px 14px;
|
|
324
|
+
margin-bottom: 16px;
|
|
325
|
+
}
|
|
326
|
+
.sekisho .sk-passport__title {
|
|
327
|
+
font-size: 13px;
|
|
328
|
+
font-weight: 700;
|
|
329
|
+
letter-spacing: 0.2em;
|
|
330
|
+
color: var(--sk-muted);
|
|
331
|
+
margin: 0 0 8px;
|
|
332
|
+
}
|
|
333
|
+
.sekisho .sk-passport__grid {
|
|
334
|
+
list-style: none;
|
|
335
|
+
margin: 0;
|
|
336
|
+
padding: 0;
|
|
337
|
+
display: grid;
|
|
338
|
+
grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
|
|
339
|
+
gap: 8px;
|
|
340
|
+
}
|
|
341
|
+
.sekisho .sk-passport__cell {
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-direction: column;
|
|
344
|
+
align-items: center;
|
|
345
|
+
gap: 2px;
|
|
346
|
+
}
|
|
347
|
+
.sekisho .sk-passport__name {
|
|
348
|
+
font-size: 11px;
|
|
349
|
+
color: var(--sk-muted);
|
|
350
|
+
text-align: center;
|
|
351
|
+
max-width: 100%;
|
|
352
|
+
overflow: hidden;
|
|
353
|
+
text-overflow: ellipsis;
|
|
354
|
+
white-space: nowrap;
|
|
355
|
+
}
|
|
356
|
+
.sekisho .sk-gates {
|
|
357
|
+
list-style: none;
|
|
358
|
+
margin: 0;
|
|
359
|
+
padding: 0;
|
|
360
|
+
display: grid;
|
|
361
|
+
gap: 12px;
|
|
362
|
+
}
|
|
363
|
+
.sekisho .sk-gate__head {
|
|
364
|
+
display: flex;
|
|
365
|
+
align-items: center;
|
|
366
|
+
gap: 10px;
|
|
367
|
+
}
|
|
368
|
+
.sekisho .sk-gate__titles {
|
|
369
|
+
flex: 1;
|
|
370
|
+
min-width: 0;
|
|
371
|
+
}
|
|
372
|
+
.sekisho .sk-gate__title {
|
|
373
|
+
margin: 0;
|
|
374
|
+
font-size: 16px;
|
|
375
|
+
font-weight: 700;
|
|
376
|
+
}
|
|
377
|
+
.sekisho .sk-gate__desc {
|
|
378
|
+
margin: 0;
|
|
379
|
+
font-size: 13px;
|
|
380
|
+
color: var(--sk-muted);
|
|
381
|
+
}
|
|
382
|
+
.sekisho .sk-gate__count {
|
|
383
|
+
font-size: 13px;
|
|
384
|
+
color: var(--sk-muted);
|
|
385
|
+
white-space: nowrap;
|
|
386
|
+
}
|
|
387
|
+
.sekisho .sk-gate--cleared {
|
|
388
|
+
border-color: color-mix(in srgb, var(--sk-done) 40%, var(--sk-border));
|
|
389
|
+
}
|
|
390
|
+
.sekisho .sk-gate--cleared .sk-gate__count {
|
|
391
|
+
color: var(--sk-done);
|
|
392
|
+
font-weight: 600;
|
|
393
|
+
}
|
|
394
|
+
.sekisho .sk-gate--locked {
|
|
395
|
+
opacity: 0.6;
|
|
396
|
+
}
|
|
397
|
+
.sekisho .sk-items {
|
|
398
|
+
list-style: none;
|
|
399
|
+
margin: 10px 0 0;
|
|
400
|
+
padding: 0;
|
|
401
|
+
display: grid;
|
|
402
|
+
gap: 2px;
|
|
403
|
+
}
|
|
404
|
+
.sekisho .sk-item {
|
|
405
|
+
display: flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
gap: 10px;
|
|
408
|
+
padding: 6px 0;
|
|
409
|
+
border-top: 1px solid var(--sk-border);
|
|
410
|
+
}
|
|
411
|
+
.sekisho .sk-check {
|
|
412
|
+
appearance: none;
|
|
413
|
+
flex: none;
|
|
414
|
+
width: 24px;
|
|
415
|
+
height: 24px;
|
|
416
|
+
border-radius: 6px;
|
|
417
|
+
border: 2px solid var(--sk-muted);
|
|
418
|
+
background: var(--sk-surface);
|
|
419
|
+
color: var(--sk-accent-text);
|
|
420
|
+
display: inline-flex;
|
|
421
|
+
align-items: center;
|
|
422
|
+
justify-content: center;
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
padding: 0;
|
|
425
|
+
}
|
|
426
|
+
.sekisho .sk-check[aria-checked='true'] {
|
|
427
|
+
background: var(--sk-accent);
|
|
428
|
+
border-color: var(--sk-accent);
|
|
429
|
+
}
|
|
430
|
+
.sekisho .sk-check:disabled {
|
|
431
|
+
cursor: default;
|
|
432
|
+
}
|
|
433
|
+
.sekisho .sk-item__body {
|
|
434
|
+
flex: 1;
|
|
435
|
+
min-width: 0;
|
|
436
|
+
display: flex;
|
|
437
|
+
align-items: baseline;
|
|
438
|
+
flex-wrap: wrap;
|
|
439
|
+
gap: 2px 6px;
|
|
440
|
+
}
|
|
441
|
+
.sekisho .sk-item__title {
|
|
442
|
+
overflow-wrap: anywhere;
|
|
443
|
+
}
|
|
444
|
+
.sekisho .sk-item__title--link {
|
|
445
|
+
appearance: none;
|
|
446
|
+
border: none;
|
|
447
|
+
background: none;
|
|
448
|
+
padding: 0;
|
|
449
|
+
font: inherit;
|
|
450
|
+
color: var(--sk-accent);
|
|
451
|
+
text-align: left;
|
|
452
|
+
cursor: pointer;
|
|
453
|
+
text-decoration: underline;
|
|
454
|
+
text-underline-offset: 3px;
|
|
455
|
+
text-decoration-thickness: 1px;
|
|
456
|
+
}
|
|
457
|
+
.sekisho .sk-item--done .sk-item__title {
|
|
458
|
+
color: var(--sk-muted);
|
|
459
|
+
}
|
|
460
|
+
.sekisho .sk-item__badge {
|
|
461
|
+
font-size: 13px;
|
|
462
|
+
color: var(--sk-muted);
|
|
463
|
+
}
|
|
464
|
+
.sekisho .sk-item__note {
|
|
465
|
+
width: 100%;
|
|
466
|
+
font-size: 12px;
|
|
467
|
+
color: var(--sk-muted);
|
|
468
|
+
}
|
|
469
|
+
.sekisho .sk-counter {
|
|
470
|
+
display: inline-flex;
|
|
471
|
+
align-items: center;
|
|
472
|
+
gap: 4px;
|
|
473
|
+
flex: none;
|
|
474
|
+
}
|
|
475
|
+
.sekisho .sk-counter__value {
|
|
476
|
+
font-variant-numeric: tabular-nums;
|
|
477
|
+
min-width: 4.2em;
|
|
478
|
+
text-align: center;
|
|
479
|
+
font-size: 14px;
|
|
480
|
+
}
|
|
481
|
+
.sekisho .sk-counter__btn {
|
|
482
|
+
appearance: none;
|
|
483
|
+
width: 32px;
|
|
484
|
+
height: 32px;
|
|
485
|
+
border-radius: 999px;
|
|
486
|
+
border: 1px solid var(--sk-border);
|
|
487
|
+
background: var(--sk-surface-2);
|
|
488
|
+
color: var(--sk-text);
|
|
489
|
+
font: inherit;
|
|
490
|
+
font-size: 16px;
|
|
491
|
+
cursor: pointer;
|
|
492
|
+
}
|
|
493
|
+
.sekisho .sk-counter__btn--plus:not(:disabled) {
|
|
494
|
+
background: var(--sk-accent);
|
|
495
|
+
border-color: var(--sk-accent);
|
|
496
|
+
color: var(--sk-accent-text);
|
|
497
|
+
}
|
|
498
|
+
.sekisho .sk-counter__btn:disabled {
|
|
499
|
+
opacity: 0.35;
|
|
500
|
+
cursor: default;
|
|
501
|
+
}
|
|
502
|
+
.sekisho .sk-danger-zone {
|
|
503
|
+
margin-top: 28px;
|
|
504
|
+
display: flex;
|
|
505
|
+
justify-content: flex-end;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* ─── クリアの演出 ─────────────────────────── */
|
|
509
|
+
.sekisho.sk-celebration {
|
|
510
|
+
position: fixed;
|
|
511
|
+
inset: 0;
|
|
512
|
+
z-index: 1000;
|
|
513
|
+
display: flex;
|
|
514
|
+
align-items: center;
|
|
515
|
+
justify-content: center;
|
|
516
|
+
padding: 16px;
|
|
517
|
+
background: var(--sk-overlay);
|
|
518
|
+
animation: sk-fade 0.25s ease-out;
|
|
519
|
+
}
|
|
520
|
+
.sekisho .sk-celebration__panel {
|
|
521
|
+
background: var(--sk-surface);
|
|
522
|
+
border-radius: 18px;
|
|
523
|
+
padding: 22px 22px 20px;
|
|
524
|
+
width: min(360px, 100%);
|
|
525
|
+
text-align: center;
|
|
526
|
+
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
|
|
527
|
+
animation: sk-rise 0.3s ease-out;
|
|
528
|
+
}
|
|
529
|
+
.sekisho .sk-clear__title {
|
|
530
|
+
font-size: 24px;
|
|
531
|
+
font-weight: 800;
|
|
532
|
+
letter-spacing: 0.06em;
|
|
533
|
+
margin: 0 0 12px;
|
|
534
|
+
animation: sk-title 0.5s 0.45s both cubic-bezier(0.2, 1.6, 0.4, 1);
|
|
535
|
+
}
|
|
536
|
+
.sekisho .sk-clear__paper {
|
|
537
|
+
background: var(--sk-paper);
|
|
538
|
+
border: 1px solid var(--sk-paper-line);
|
|
539
|
+
border-radius: 12px;
|
|
540
|
+
min-height: 180px;
|
|
541
|
+
display: flex;
|
|
542
|
+
align-items: center;
|
|
543
|
+
justify-content: center;
|
|
544
|
+
padding: 16px;
|
|
545
|
+
overflow: hidden;
|
|
546
|
+
}
|
|
547
|
+
.sekisho .sk-clear__stamp {
|
|
548
|
+
position: relative;
|
|
549
|
+
display: inline-flex;
|
|
550
|
+
animation: sk-press 0.55s 0.1s both cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
551
|
+
}
|
|
552
|
+
.sekisho .sk-clear__splash {
|
|
553
|
+
position: absolute;
|
|
554
|
+
inset: 0;
|
|
555
|
+
border: 3px solid;
|
|
556
|
+
border-radius: 50%;
|
|
557
|
+
opacity: 0;
|
|
558
|
+
animation: sk-splash 0.6s 0.45s ease-out;
|
|
559
|
+
}
|
|
560
|
+
.sekisho .sk-clear__row {
|
|
561
|
+
display: flex;
|
|
562
|
+
flex-wrap: wrap;
|
|
563
|
+
justify-content: center;
|
|
564
|
+
gap: 6px;
|
|
565
|
+
}
|
|
566
|
+
.sekisho .sk-clear__mini {
|
|
567
|
+
display: inline-flex;
|
|
568
|
+
animation: sk-pop 0.4s both cubic-bezier(0.2, 1.6, 0.4, 1);
|
|
569
|
+
}
|
|
570
|
+
.sekisho .sk-clear__name {
|
|
571
|
+
font-size: 17px;
|
|
572
|
+
font-weight: 700;
|
|
573
|
+
margin: 12px 0 0;
|
|
574
|
+
}
|
|
575
|
+
.sekisho .sk-clear__count {
|
|
576
|
+
font-size: 13px;
|
|
577
|
+
color: var(--sk-muted);
|
|
578
|
+
margin: 2px 0 14px;
|
|
579
|
+
}
|
|
580
|
+
.sekisho .sk-reward-message__label {
|
|
581
|
+
font-size: 13px;
|
|
582
|
+
color: var(--sk-muted);
|
|
583
|
+
letter-spacing: 0.1em;
|
|
584
|
+
margin: 0;
|
|
585
|
+
}
|
|
586
|
+
.sekisho .sk-reward-message__text {
|
|
587
|
+
font-size: 18px;
|
|
588
|
+
font-weight: 600;
|
|
589
|
+
white-space: pre-wrap;
|
|
590
|
+
overflow-wrap: anywhere;
|
|
591
|
+
background: var(--sk-paper);
|
|
592
|
+
border: 1px solid var(--sk-paper-line);
|
|
593
|
+
border-radius: 12px;
|
|
594
|
+
padding: 18px 14px;
|
|
595
|
+
margin: 10px 0 16px;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
@keyframes sk-fade {
|
|
599
|
+
from {
|
|
600
|
+
opacity: 0;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
@keyframes sk-rise {
|
|
604
|
+
from {
|
|
605
|
+
transform: translateY(12px) scale(0.97);
|
|
606
|
+
opacity: 0;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
@keyframes sk-press {
|
|
610
|
+
0% {
|
|
611
|
+
transform: scale(2.6) rotate(-24deg);
|
|
612
|
+
opacity: 0;
|
|
613
|
+
}
|
|
614
|
+
55% {
|
|
615
|
+
transform: scale(0.9) rotate(2deg);
|
|
616
|
+
opacity: 1;
|
|
617
|
+
}
|
|
618
|
+
75% {
|
|
619
|
+
transform: scale(1.05);
|
|
620
|
+
}
|
|
621
|
+
100% {
|
|
622
|
+
transform: scale(1);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
@keyframes sk-splash {
|
|
626
|
+
0% {
|
|
627
|
+
transform: scale(0.9);
|
|
628
|
+
opacity: 0.6;
|
|
629
|
+
}
|
|
630
|
+
100% {
|
|
631
|
+
transform: scale(1.7);
|
|
632
|
+
opacity: 0;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
@keyframes sk-pop {
|
|
636
|
+
from {
|
|
637
|
+
transform: scale(0.2);
|
|
638
|
+
opacity: 0;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
@keyframes sk-title {
|
|
642
|
+
from {
|
|
643
|
+
transform: scale(0.6);
|
|
644
|
+
opacity: 0;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/* 演出を減らす(端末の設定か、reducedMotion) */
|
|
649
|
+
.sekisho.sk-reduced *,
|
|
650
|
+
.sekisho.sk-reduced {
|
|
651
|
+
animation: none !important;
|
|
652
|
+
transition: none !important;
|
|
653
|
+
}
|
|
654
|
+
.sekisho.sk-reduced .sk-clear__splash {
|
|
655
|
+
display: none;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/* ─── 作る画面 ─────────────────────────── */
|
|
659
|
+
.sekisho .sk-editor__course {
|
|
660
|
+
display: grid;
|
|
661
|
+
gap: 12px;
|
|
662
|
+
margin-bottom: 14px;
|
|
663
|
+
}
|
|
664
|
+
.sekisho .sk-gate-editor {
|
|
665
|
+
display: grid;
|
|
666
|
+
gap: 10px;
|
|
667
|
+
}
|
|
668
|
+
.sekisho .sk-gate-editor__head {
|
|
669
|
+
display: flex;
|
|
670
|
+
align-items: center;
|
|
671
|
+
gap: 8px;
|
|
672
|
+
}
|
|
673
|
+
.sekisho .sk-gate-editor__number {
|
|
674
|
+
flex: 1;
|
|
675
|
+
font-size: 13px;
|
|
676
|
+
font-weight: 700;
|
|
677
|
+
color: var(--sk-muted);
|
|
678
|
+
}
|
|
679
|
+
.sekisho .sk-handle {
|
|
680
|
+
appearance: none;
|
|
681
|
+
border: none;
|
|
682
|
+
background: transparent;
|
|
683
|
+
color: var(--sk-muted);
|
|
684
|
+
cursor: grab;
|
|
685
|
+
padding: 2px 6px;
|
|
686
|
+
border-radius: 6px;
|
|
687
|
+
font-size: 16px;
|
|
688
|
+
touch-action: none;
|
|
689
|
+
letter-spacing: -2px;
|
|
690
|
+
}
|
|
691
|
+
.sekisho .sk-handle:hover {
|
|
692
|
+
background: var(--sk-surface-2);
|
|
693
|
+
}
|
|
694
|
+
.sekisho .sk-gate-editor__title {
|
|
695
|
+
display: flex;
|
|
696
|
+
align-items: flex-end;
|
|
697
|
+
gap: 10px;
|
|
698
|
+
}
|
|
699
|
+
.sekisho .sk-edit-items {
|
|
700
|
+
list-style: none;
|
|
701
|
+
margin: 0;
|
|
702
|
+
padding: 0;
|
|
703
|
+
display: grid;
|
|
704
|
+
gap: 6px;
|
|
705
|
+
}
|
|
706
|
+
.sekisho .sk-edit-item {
|
|
707
|
+
display: flex;
|
|
708
|
+
align-items: center;
|
|
709
|
+
gap: 6px;
|
|
710
|
+
flex-wrap: wrap;
|
|
711
|
+
}
|
|
712
|
+
.sekisho .sk-edit-item > .sk-grow {
|
|
713
|
+
min-width: 14em;
|
|
714
|
+
}
|
|
715
|
+
.sekisho .sk-edit-item__tools {
|
|
716
|
+
display: inline-flex;
|
|
717
|
+
align-items: center;
|
|
718
|
+
gap: 4px;
|
|
719
|
+
margin-left: auto;
|
|
720
|
+
}
|
|
721
|
+
.sekisho .sk-count-field {
|
|
722
|
+
display: inline-flex;
|
|
723
|
+
align-items: center;
|
|
724
|
+
gap: 4px;
|
|
725
|
+
font-size: 13px;
|
|
726
|
+
color: var(--sk-muted);
|
|
727
|
+
}
|
|
728
|
+
.sekisho .sk-count-field .sk-input {
|
|
729
|
+
width: 4.5em;
|
|
730
|
+
padding: 6px;
|
|
731
|
+
}
|
|
732
|
+
.sekisho .sk-edit-item__moves {
|
|
733
|
+
display: inline-flex;
|
|
734
|
+
}
|
|
735
|
+
.sekisho .sk-add-item {
|
|
736
|
+
display: flex;
|
|
737
|
+
gap: 6px;
|
|
738
|
+
}
|
|
739
|
+
.sekisho .sk-pick {
|
|
740
|
+
justify-self: start;
|
|
741
|
+
color: var(--sk-accent);
|
|
742
|
+
padding-left: 0;
|
|
743
|
+
}
|
|
744
|
+
.sekisho .sk-reward-chip {
|
|
745
|
+
display: flex;
|
|
746
|
+
align-items: center;
|
|
747
|
+
gap: 6px;
|
|
748
|
+
font-size: 13px;
|
|
749
|
+
color: var(--sk-muted);
|
|
750
|
+
margin: 0;
|
|
751
|
+
}
|
|
752
|
+
.sekisho .sk-add-gate {
|
|
753
|
+
width: 100%;
|
|
754
|
+
padding: 14px;
|
|
755
|
+
border-style: dashed;
|
|
756
|
+
background: transparent;
|
|
757
|
+
color: var(--sk-muted);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
@media (max-width: 480px) {
|
|
761
|
+
.sekisho .sk-gate-editor__title {
|
|
762
|
+
flex-wrap: wrap;
|
|
763
|
+
}
|
|
764
|
+
.sekisho .sk-field--narrow {
|
|
765
|
+
width: auto;
|
|
766
|
+
flex: 1;
|
|
767
|
+
}
|
|
768
|
+
}
|