dsh-study-tools 0.0.0-stage → 0.2.6
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/EDITOR-LICENSES.txt +568 -0
- package/KATEX-LICENSE.txt +21 -0
- package/README.md +26 -2
- package/agent.js +15 -0
- package/client.js +2112 -0
- package/cordis.patch.yml +128 -0
- package/icon.svg +7 -0
- package/index.js +2 -0
- package/lib/protocol.js +100 -0
- package/locale/en.json +6 -0
- package/locale/zh-CN.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +43 -4
- package/src/client.js +1718 -0
- package/src/quiz-ui.css +457 -0
package/src/quiz-ui.css
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
/* Adapted from the web extension's answer-drawer.js and quiz-generator.js.
|
|
2
|
+
Keep the drawer in the DSH conversation so it does not resize the app shell. */
|
|
3
|
+
:where(.dsh-study-drawer, .dsh-study-entry) {
|
|
4
|
+
--study-green: #10b981;
|
|
5
|
+
--study-deep-green: #059669;
|
|
6
|
+
--study-blue: #244b86;
|
|
7
|
+
--study-right: #28a745;
|
|
8
|
+
--study-wrong: #dc3545;
|
|
9
|
+
--study-gold: #ffc107;
|
|
10
|
+
--study-ink: var(--dsw-alias-label-primary, #202837);
|
|
11
|
+
--study-muted: var(--dsw-alias-label-secondary, #666);
|
|
12
|
+
--study-surface: var(--dsw-alias-bg-base, white);
|
|
13
|
+
--study-line: var(--dsw-alias-border-l2, #e0e0e0);
|
|
14
|
+
--study-neutral: color-mix(in srgb, #8a96a2 6%, var(--study-surface));
|
|
15
|
+
--study-control-bg: color-mix(in srgb, #a2b6d5 12%, var(--study-surface));
|
|
16
|
+
--study-control-ink: color-mix(in srgb, var(--study-blue) 42%, var(--study-ink));
|
|
17
|
+
--study-entry-ink: color-mix(in srgb, #159c68 42%, var(--study-ink));
|
|
18
|
+
--study-mint: color-mix(in srgb, var(--study-green) 8%, var(--study-surface));
|
|
19
|
+
--study-right-bg: color-mix(in srgb, var(--study-right) 19%, var(--study-surface));
|
|
20
|
+
--study-wrong-bg: color-mix(in srgb, var(--study-wrong) 17%, var(--study-surface));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-conversation-content]:has(> .dsh-study-drawer[data-layout="split"]) {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
padding-inline-end: var(--dsh-study-quiz-width);
|
|
26
|
+
}
|
|
27
|
+
.dsh-study-entry {
|
|
28
|
+
display: block;
|
|
29
|
+
width: 100%;
|
|
30
|
+
min-height: 44px;
|
|
31
|
+
margin: 10px 0;
|
|
32
|
+
padding: 10px 16px;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
border: 1px solid color-mix(in srgb, var(--study-green) 38%, var(--study-line));
|
|
35
|
+
border-radius: 8px;
|
|
36
|
+
background: var(--study-mint);
|
|
37
|
+
color: var(--study-entry-ink);
|
|
38
|
+
font: inherit;
|
|
39
|
+
font-weight: 650;
|
|
40
|
+
text-align: start;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
.dsh-study-entry:hover,
|
|
44
|
+
.dsh-study-entry[aria-expanded="true"] {
|
|
45
|
+
background: color-mix(in srgb, var(--study-green) 13%, var(--study-surface));
|
|
46
|
+
}
|
|
47
|
+
.dsh-study-drawer {
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset-block: 0;
|
|
50
|
+
inset-inline-end: 0;
|
|
51
|
+
width: var(--dsh-study-quiz-width, min(420px, 100%));
|
|
52
|
+
max-width: 100%;
|
|
53
|
+
min-height: 0;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
z-index: 70;
|
|
59
|
+
container: dsh-study / inline-size;
|
|
60
|
+
border-inline-start: 1px solid var(--study-line);
|
|
61
|
+
background: var(--study-surface);
|
|
62
|
+
color: var(--study-ink);
|
|
63
|
+
box-shadow: -3px 0 14px #14283810;
|
|
64
|
+
font: 14px/1.6 system-ui, sans-serif;
|
|
65
|
+
animation: dsh-study-slide-in .18s ease-out both;
|
|
66
|
+
}
|
|
67
|
+
@keyframes dsh-study-slide-in {
|
|
68
|
+
from { opacity: .5; transform: translateX(12px); }
|
|
69
|
+
to { opacity: 1; transform: translateX(0); }
|
|
70
|
+
}
|
|
71
|
+
.dsh-study-heading {
|
|
72
|
+
flex: none;
|
|
73
|
+
background: var(--study-surface);
|
|
74
|
+
border-block-end: 1px solid var(--study-line);
|
|
75
|
+
}
|
|
76
|
+
.dsh-study-heading-row {
|
|
77
|
+
display: flex;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 8px;
|
|
81
|
+
padding: 12px 16px 9px;
|
|
82
|
+
}
|
|
83
|
+
.dsh-study-heading h2 {
|
|
84
|
+
margin: 0;
|
|
85
|
+
font-size: 15px;
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
line-height: 1.45;
|
|
88
|
+
}
|
|
89
|
+
.dsh-study-heading[data-library="true"] .dsh-study-heading-row {
|
|
90
|
+
background: linear-gradient(135deg, #10b981, #059669);
|
|
91
|
+
color: white;
|
|
92
|
+
}
|
|
93
|
+
.dsh-study-heading[data-library="true"] .dsh-study-heading-row button {
|
|
94
|
+
width: 30px;
|
|
95
|
+
height: 30px;
|
|
96
|
+
padding: 0;
|
|
97
|
+
border: 0;
|
|
98
|
+
border-radius: 50%;
|
|
99
|
+
background: rgb(255 255 255 / 20%);
|
|
100
|
+
color: white;
|
|
101
|
+
font-size: 18px;
|
|
102
|
+
line-height: 1;
|
|
103
|
+
}
|
|
104
|
+
.dsh-study-track {
|
|
105
|
+
height: 4px;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
margin: 0 16px 10px;
|
|
108
|
+
border-radius: 4px;
|
|
109
|
+
background: color-mix(in srgb, var(--study-ink) 10%, var(--study-surface));
|
|
110
|
+
}
|
|
111
|
+
.dsh-study-track > span {
|
|
112
|
+
display: block;
|
|
113
|
+
height: 100%;
|
|
114
|
+
border-radius: inherit;
|
|
115
|
+
background: var(--study-green);
|
|
116
|
+
transition: width .18s ease-out;
|
|
117
|
+
}
|
|
118
|
+
.dsh-study-heading[data-library="true"] .dsh-study-track { margin-top: 10px; }
|
|
119
|
+
.dsh-study-tabs {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-wrap: wrap;
|
|
122
|
+
gap: 6px;
|
|
123
|
+
padding: 0 16px 8px;
|
|
124
|
+
}
|
|
125
|
+
.dsh-study-tab {
|
|
126
|
+
padding: 4px 9px;
|
|
127
|
+
border-radius: 20px;
|
|
128
|
+
border: 1px solid transparent;
|
|
129
|
+
background: transparent;
|
|
130
|
+
color: var(--study-muted);
|
|
131
|
+
font: inherit;
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
font-weight: 600;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
transition: background-color .15s ease;
|
|
136
|
+
}
|
|
137
|
+
.dsh-study-tab:hover { background: var(--study-mint); }
|
|
138
|
+
.dsh-study-tab[aria-pressed="true"] { background: var(--study-green); color: #092d21; }
|
|
139
|
+
.dsh-study-tab-count {
|
|
140
|
+
margin-inline-start: 4px;
|
|
141
|
+
padding: 1px 5px;
|
|
142
|
+
border-radius: 10px;
|
|
143
|
+
background: rgb(0 0 0 / 9%);
|
|
144
|
+
font-size: 11px;
|
|
145
|
+
}
|
|
146
|
+
.dsh-study-tab[aria-pressed="true"] .dsh-study-tab-count { background: rgb(255 255 255 / 25%); }
|
|
147
|
+
.dsh-study-scroll {
|
|
148
|
+
flex: 1;
|
|
149
|
+
min-height: 0;
|
|
150
|
+
overflow: auto;
|
|
151
|
+
overscroll-behavior: contain;
|
|
152
|
+
scrollbar-width: thin;
|
|
153
|
+
scrollbar-color: color-mix(in srgb, var(--study-muted) 52%, transparent) transparent;
|
|
154
|
+
padding: 0 14px 24px;
|
|
155
|
+
}
|
|
156
|
+
.dsh-study-question {
|
|
157
|
+
margin-block: 12px 16px;
|
|
158
|
+
border-radius: 12px;
|
|
159
|
+
outline: none;
|
|
160
|
+
}
|
|
161
|
+
.dsh-study-card {
|
|
162
|
+
display: grid;
|
|
163
|
+
min-width: 0;
|
|
164
|
+
gap: 10px;
|
|
165
|
+
position: relative;
|
|
166
|
+
padding: 15px 16px;
|
|
167
|
+
border: 1px solid var(--study-line);
|
|
168
|
+
border-radius: 12px;
|
|
169
|
+
background: var(--study-surface);
|
|
170
|
+
box-shadow: 0 1px 4px rgb(0 0 0 / 3%);
|
|
171
|
+
}
|
|
172
|
+
.dsh-study-question[data-current="true"] {
|
|
173
|
+
outline: 2px solid var(--study-green);
|
|
174
|
+
outline-offset: 2px;
|
|
175
|
+
}
|
|
176
|
+
.dsh-study-question[data-current="true"] > .dsh-study-card {
|
|
177
|
+
animation: dsh-study-highlight .3s ease-out;
|
|
178
|
+
}
|
|
179
|
+
@keyframes dsh-study-highlight {
|
|
180
|
+
from { box-shadow: inset 0 0 0 100vmax rgb(16 185 129 / 13%); }
|
|
181
|
+
to { box-shadow: inset 0 0 0 100vmax rgb(16 185 129 / 0%); }
|
|
182
|
+
}
|
|
183
|
+
.dsh-study-card[data-bookmarked="true"]::after,
|
|
184
|
+
.dsh-study-question[data-answer-tone] > .dsh-study-card::before {
|
|
185
|
+
content: "";
|
|
186
|
+
position: absolute;
|
|
187
|
+
inset-block: 0;
|
|
188
|
+
width: 4px;
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
}
|
|
191
|
+
.dsh-study-card[data-bookmarked="true"]::after {
|
|
192
|
+
inset-inline-end: 0;
|
|
193
|
+
border-start-end-radius: inherit;
|
|
194
|
+
border-end-end-radius: inherit;
|
|
195
|
+
background: var(--study-gold);
|
|
196
|
+
}
|
|
197
|
+
.dsh-study-question[data-answer-tone] > .dsh-study-card::before {
|
|
198
|
+
inset-inline-start: 0;
|
|
199
|
+
border-start-start-radius: inherit;
|
|
200
|
+
border-end-start-radius: inherit;
|
|
201
|
+
background: var(--study-right);
|
|
202
|
+
}
|
|
203
|
+
.dsh-study-question[data-answer-tone="wrong"] > .dsh-study-card {
|
|
204
|
+
background: color-mix(in srgb, var(--study-wrong) 4%, var(--study-surface));
|
|
205
|
+
}
|
|
206
|
+
.dsh-study-question[data-answer-tone="wrong"] > .dsh-study-card::before { background: var(--study-wrong); }
|
|
207
|
+
.dsh-study-card-head {
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: flex-start;
|
|
210
|
+
gap: 10px;
|
|
211
|
+
min-width: 0;
|
|
212
|
+
}
|
|
213
|
+
.dsh-study-card-number,
|
|
214
|
+
.dsh-study-option-letter,
|
|
215
|
+
.dsh-study-star {
|
|
216
|
+
display: inline-grid;
|
|
217
|
+
place-items: center;
|
|
218
|
+
box-sizing: border-box;
|
|
219
|
+
flex: none;
|
|
220
|
+
border-radius: 50%;
|
|
221
|
+
line-height: 1;
|
|
222
|
+
}
|
|
223
|
+
.dsh-study-card-number {
|
|
224
|
+
width: 28px;
|
|
225
|
+
height: 28px;
|
|
226
|
+
background: var(--study-green);
|
|
227
|
+
color: #092d21;
|
|
228
|
+
font-size: 12px;
|
|
229
|
+
font-weight: 700;
|
|
230
|
+
}
|
|
231
|
+
.dsh-study-stem {
|
|
232
|
+
flex: 1;
|
|
233
|
+
min-width: 0;
|
|
234
|
+
padding-block-start: 3px;
|
|
235
|
+
font-size: 15px;
|
|
236
|
+
line-height: 1.4;
|
|
237
|
+
overflow-wrap: anywhere;
|
|
238
|
+
}
|
|
239
|
+
.dsh-study-card-type { font-size: 13px; font-weight: 600; }
|
|
240
|
+
.dsh-study-subtle { color: var(--study-muted); font-size: 12px; }
|
|
241
|
+
.dsh-study-star {
|
|
242
|
+
margin-inline-start: auto;
|
|
243
|
+
width: 32px;
|
|
244
|
+
height: 32px;
|
|
245
|
+
padding: 0;
|
|
246
|
+
border: 1px solid var(--study-line);
|
|
247
|
+
background: var(--study-neutral);
|
|
248
|
+
color: var(--study-control-ink);
|
|
249
|
+
font: 16px/1 system-ui, sans-serif;
|
|
250
|
+
cursor: pointer;
|
|
251
|
+
transition: background-color .15s ease, border-color .15s ease;
|
|
252
|
+
}
|
|
253
|
+
.dsh-study-star[aria-pressed="true"] {
|
|
254
|
+
border-color: #ffb300;
|
|
255
|
+
background: var(--study-gold);
|
|
256
|
+
color: #503700;
|
|
257
|
+
}
|
|
258
|
+
.dsh-study-metrics {
|
|
259
|
+
display: grid;
|
|
260
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
261
|
+
gap: 6px;
|
|
262
|
+
}
|
|
263
|
+
.dsh-study-metric {
|
|
264
|
+
display: grid;
|
|
265
|
+
justify-items: center;
|
|
266
|
+
gap: 1px;
|
|
267
|
+
padding: 8px 4px;
|
|
268
|
+
border-radius: 8px;
|
|
269
|
+
background: var(--study-neutral);
|
|
270
|
+
color: var(--study-muted);
|
|
271
|
+
font-size: 11px;
|
|
272
|
+
}
|
|
273
|
+
.dsh-study-metric > strong { color: var(--study-deep-green); font-size: 18px; font-weight: 700; }
|
|
274
|
+
.dsh-study-options,
|
|
275
|
+
.dsh-study-option-group { display: grid; min-width: 0; gap: 8px; }
|
|
276
|
+
.dsh-study-option {
|
|
277
|
+
display: grid;
|
|
278
|
+
grid-template-columns: 24px minmax(0, 1fr) 20px;
|
|
279
|
+
align-items: center;
|
|
280
|
+
gap: 10px;
|
|
281
|
+
width: 100%;
|
|
282
|
+
box-sizing: border-box;
|
|
283
|
+
min-height: 44px;
|
|
284
|
+
padding: 9px 12px;
|
|
285
|
+
border: 1px solid var(--study-line);
|
|
286
|
+
border-radius: 8px;
|
|
287
|
+
background: var(--study-neutral);
|
|
288
|
+
color: var(--study-control-ink);
|
|
289
|
+
font: inherit;
|
|
290
|
+
text-align: start;
|
|
291
|
+
overflow-wrap: anywhere;
|
|
292
|
+
transition: background-color .1s ease, border-color .1s ease;
|
|
293
|
+
}
|
|
294
|
+
button.dsh-study-option { cursor: pointer; }
|
|
295
|
+
button.dsh-study-option:hover {
|
|
296
|
+
background: var(--study-control-bg);
|
|
297
|
+
border-color: var(--study-green);
|
|
298
|
+
}
|
|
299
|
+
.dsh-study-option[aria-pressed="true"] {
|
|
300
|
+
background: var(--study-mint);
|
|
301
|
+
box-shadow: inset 0 0 0 1px var(--study-green);
|
|
302
|
+
border-color: var(--study-green);
|
|
303
|
+
}
|
|
304
|
+
.dsh-study-option[data-tone="correct"] { background: var(--study-right-bg); border-color: var(--study-right); }
|
|
305
|
+
.dsh-study-option[data-tone="wrong"] { background: var(--study-wrong-bg); border-color: var(--study-wrong); }
|
|
306
|
+
.dsh-study-option[aria-pressed="true"][data-tone="correct"] { box-shadow: inset 0 0 0 1px var(--study-right); }
|
|
307
|
+
.dsh-study-option[aria-pressed="true"][data-tone="wrong"] { box-shadow: inset 0 0 0 1px var(--study-wrong); }
|
|
308
|
+
.dsh-study-option-letter {
|
|
309
|
+
width: 24px;
|
|
310
|
+
height: 24px;
|
|
311
|
+
border: 1px solid var(--study-line);
|
|
312
|
+
background: var(--study-surface);
|
|
313
|
+
font-size: 12px;
|
|
314
|
+
font-weight: 700;
|
|
315
|
+
}
|
|
316
|
+
.dsh-study-option-caption { min-width: 0; font-size: 13px; line-height: 1.4; }
|
|
317
|
+
.dsh-study-option-mark { font-size: 14px; text-align: center; }
|
|
318
|
+
.dsh-study-result {
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-wrap: wrap;
|
|
321
|
+
align-items: center;
|
|
322
|
+
gap: 8px;
|
|
323
|
+
padding: 8px 10px;
|
|
324
|
+
border-radius: 6px;
|
|
325
|
+
font-size: 13px;
|
|
326
|
+
overflow-wrap: anywhere;
|
|
327
|
+
}
|
|
328
|
+
.dsh-study-result[data-tone="correct"] {
|
|
329
|
+
background: var(--study-right-bg);
|
|
330
|
+
color: color-mix(in srgb, #18713c 48%, var(--study-ink));
|
|
331
|
+
}
|
|
332
|
+
.dsh-study-result[data-tone="wrong"] {
|
|
333
|
+
background: var(--study-wrong-bg);
|
|
334
|
+
color: color-mix(in srgb, #a12b36 47%, var(--study-ink));
|
|
335
|
+
}
|
|
336
|
+
.dsh-study-explanation {
|
|
337
|
+
border: 1px solid var(--study-line);
|
|
338
|
+
border-radius: 8px;
|
|
339
|
+
min-width: 0;
|
|
340
|
+
overflow: hidden;
|
|
341
|
+
}
|
|
342
|
+
.dsh-study-explanation > summary {
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
gap: 6px;
|
|
346
|
+
padding: 8px 12px;
|
|
347
|
+
background: var(--study-neutral);
|
|
348
|
+
color: var(--study-entry-ink);
|
|
349
|
+
font-weight: 600;
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
list-style: none;
|
|
352
|
+
}
|
|
353
|
+
.dsh-study-explanation > summary::-webkit-details-marker { display: none; }
|
|
354
|
+
.dsh-study-explanation > summary::before {
|
|
355
|
+
content: "▸";
|
|
356
|
+
display: inline-block;
|
|
357
|
+
transition: transform .2s ease;
|
|
358
|
+
}
|
|
359
|
+
.dsh-study-explanation[open] > summary::before { transform: rotate(90deg); }
|
|
360
|
+
.dsh-study-explanation-body {
|
|
361
|
+
padding: 10px 12px;
|
|
362
|
+
border-block-start: 1px solid var(--study-line);
|
|
363
|
+
background: color-mix(in srgb, #ffc47a 11%, var(--study-surface));
|
|
364
|
+
}
|
|
365
|
+
.dsh-study-explanation-text {
|
|
366
|
+
padding: 8px 10px;
|
|
367
|
+
border-inline-start: 3px solid var(--study-green);
|
|
368
|
+
border-radius: 6px;
|
|
369
|
+
background: var(--study-surface);
|
|
370
|
+
font-size: 13px;
|
|
371
|
+
overflow-wrap: anywhere;
|
|
372
|
+
}
|
|
373
|
+
.dsh-study-fill-row,
|
|
374
|
+
.dsh-study-review-actions,
|
|
375
|
+
.dsh-study-nav {
|
|
376
|
+
display: flex;
|
|
377
|
+
flex-wrap: wrap;
|
|
378
|
+
align-items: center;
|
|
379
|
+
gap: 6px 8px;
|
|
380
|
+
}
|
|
381
|
+
.dsh-study-fill-field {
|
|
382
|
+
width: 100%;
|
|
383
|
+
box-sizing: border-box;
|
|
384
|
+
padding: 9px 12px;
|
|
385
|
+
border: 1px solid var(--study-line);
|
|
386
|
+
border-radius: 6px;
|
|
387
|
+
background: var(--study-surface);
|
|
388
|
+
color: var(--study-ink);
|
|
389
|
+
font: inherit;
|
|
390
|
+
}
|
|
391
|
+
.dsh-study-fill-field:focus {
|
|
392
|
+
border-color: var(--study-green);
|
|
393
|
+
outline: none;
|
|
394
|
+
box-shadow: 0 0 0 2px rgb(16 185 129 / 15%);
|
|
395
|
+
}
|
|
396
|
+
.dsh-study-mode { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
397
|
+
.dsh-study-mode select {
|
|
398
|
+
max-width: 100%;
|
|
399
|
+
padding: 4px 6px;
|
|
400
|
+
border: 1px solid var(--study-line);
|
|
401
|
+
border-radius: 6px;
|
|
402
|
+
background: var(--study-surface);
|
|
403
|
+
color: var(--study-ink);
|
|
404
|
+
font: inherit;
|
|
405
|
+
}
|
|
406
|
+
.dsh-study-control {
|
|
407
|
+
padding: 6px 10px;
|
|
408
|
+
border: 1px solid color-mix(in srgb, #8aa3cb 36%, var(--study-line));
|
|
409
|
+
border-radius: 8px;
|
|
410
|
+
background: var(--study-control-bg);
|
|
411
|
+
color: var(--study-control-ink);
|
|
412
|
+
font: 13px/1.45 system-ui, sans-serif;
|
|
413
|
+
cursor: pointer;
|
|
414
|
+
transition: background-color .15s ease;
|
|
415
|
+
}
|
|
416
|
+
.dsh-study-control:not(:disabled):hover { background: color-mix(in srgb, #91add5 17%, var(--study-surface)); }
|
|
417
|
+
.dsh-study-control:disabled { opacity: .58; cursor: default; }
|
|
418
|
+
.dsh-study-control[data-variant="primary"] {
|
|
419
|
+
border-color: var(--study-green);
|
|
420
|
+
background: var(--study-green);
|
|
421
|
+
color: #092d21;
|
|
422
|
+
font-weight: 650;
|
|
423
|
+
}
|
|
424
|
+
.dsh-study-control[data-variant="primary"]:not(:disabled):hover { background: #20cd94; }
|
|
425
|
+
.dsh-study-keys {
|
|
426
|
+
margin: 0;
|
|
427
|
+
color: var(--study-muted);
|
|
428
|
+
font-size: 12px;
|
|
429
|
+
overflow-wrap: anywhere;
|
|
430
|
+
}
|
|
431
|
+
.dsh-study-review-actions { margin-block: 10px 0; }
|
|
432
|
+
.dsh-study-review-actions label { display: flex; align-items: center; gap: 4px; font-size: 12px; }
|
|
433
|
+
.dsh-study-review-actions input { accent-color: var(--study-deep-green); }
|
|
434
|
+
.dsh-study-empty,
|
|
435
|
+
.dsh-study-practice {
|
|
436
|
+
margin-block: 12px;
|
|
437
|
+
padding: 10px 12px;
|
|
438
|
+
border-radius: 8px;
|
|
439
|
+
background: var(--study-neutral);
|
|
440
|
+
color: var(--study-muted);
|
|
441
|
+
}
|
|
442
|
+
.dsh-study-empty { padding: 24px 12px; text-align: center; }
|
|
443
|
+
.dsh-study-practice { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
444
|
+
.dsh-study-bookmark { margin-block: 12px 16px; }
|
|
445
|
+
.dsh-study-drawer :is(button, select, summary):focus-visible,
|
|
446
|
+
.dsh-study-entry:focus-visible { outline: 2px solid var(--study-deep-green); outline-offset: 2px; }
|
|
447
|
+
@container dsh-study (max-width: 415px) {
|
|
448
|
+
.dsh-study-heading-row { padding-inline: 10px; }
|
|
449
|
+
.dsh-study-track { margin-inline: 10px; }
|
|
450
|
+
.dsh-study-tabs { padding-inline: 10px; }
|
|
451
|
+
.dsh-study-scroll { padding-inline: 8px; }
|
|
452
|
+
.dsh-study-card { padding: 12px; }
|
|
453
|
+
.dsh-study-card-head { gap: 7px; }
|
|
454
|
+
}
|
|
455
|
+
@media (prefers-reduced-motion: reduce) {
|
|
456
|
+
.dsh-study-drawer, .dsh-study-drawer * { animation: none !important; transition: none !important; }
|
|
457
|
+
}
|