@eliceio/cdk-cli 1.2.0 → 1.3.0-contenttypes.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/README.md +69 -60
- package/es/cli.js +11 -2
- package/es/commands/build/index.js +12 -0
- package/es/commands/create/index.js +2 -1
- package/es/commands/create/scaffold.d.ts +2 -2
- package/es/commands/create/scaffold.js +3 -3
- package/es/commands/dev/index.d.ts +10 -1
- package/es/commands/dev/index.js +47 -7
- package/es/core/config.d.ts +20 -9
- package/es/core/config.js +53 -12
- package/es/core/project-check.d.ts +3 -2
- package/es/core/project-check.js +14 -3
- package/es/core/regex.d.ts +11 -0
- package/es/core/regex.js +41 -0
- package/es/core/sandbox.d.ts +26 -0
- package/es/core/sandbox.js +240 -30
- package/es/dev/check.d.ts +30 -0
- package/es/dev/check.js +224 -34
- package/es/dev/grading.d.ts +20 -1
- package/es/dev/grading.js +38 -7
- package/es/dev/host-page.js +1 -1
- package/es/dev/mock-api.d.ts +3 -1
- package/es/dev/mock-api.js +20 -11
- package/es/engines/vite/index.js +1 -1
- package/es/engines/vite/plugin.d.ts +2 -0
- package/es/engines/vite/plugin.js +33 -5
- package/es/rules/answers.d.ts +13 -0
- package/es/rules/answers.js +94 -0
- package/es/rules/check.js +70 -1
- package/es/rules/index.d.ts +1 -0
- package/es/rules/index.js +1 -0
- package/es/rules/size.d.ts +31 -0
- package/es/rules/size.js +58 -0
- package/es/rules/types.d.ts +12 -0
- package/es/rules.json.js +2 -2
- package/package.json +2 -2
- package/rules.json +32 -3
- package/skills/_shared/always.md +3 -3
- package/skills/_shared/references/00-what-the-person-decides.md +1 -1
- package/skills/_shared/references/02-design-the-material.md +10 -7
- package/skills/_shared/references/03-create-the-project.md +2 -1
- package/skills/_shared/references/05-screen-code.md +49 -22
- package/skills/_shared/references/06-using-the-quiz-template.md +7 -6
- package/skills/_shared/references/08-fix-check-errors.md +23 -22
- package/skills/_shared/references/09-check.md +7 -6
- package/skills/_shared/references/12-upload-with-the-material-mcp.md +13 -13
- package/skills/_shared/references/13-edit-screen-design.md +122 -0
- package/skills/_shared/references/14-layouts.md +96 -0
- package/skills/elice-content-check/SKILL.md +2 -2
- package/skills/elice-content-create/SKILL.md +1 -1
- package/skills/elice-content-migrate/SKILL.md +1 -1
- package/templates/_shared/lib/cdk-mock.d.ts +30 -3
- package/templates/_shared/lib/cdk-mock.js +88 -15
- package/templates/_shared/lib/elice-content-editor.js +89 -58
- package/templates/_shared/lib/elice-content.css +1313 -126
- package/templates/_shared/lib/elice-content.d.ts +162 -23
- package/templates/_shared/lib/elice-content.js +865 -84
- package/templates/_shared/lib/icons/empty-content.d.ts +2 -0
- package/templates/_shared/lib/icons/empty-content.js +11 -0
- package/templates/_shared/lib/icons/file-video.d.ts +2 -0
- package/templates/_shared/lib/icons/file-video.js +11 -0
- package/templates/_shared/lib/icons/file.d.ts +2 -0
- package/templates/_shared/lib/icons/file.js +11 -0
- package/templates/blank/README.md +5 -3
- package/templates/blank/edit.html +8 -2
- package/templates/blank/index.html +6 -1
- package/templates/blank/instructor.html +6 -1
- package/templates/blank/template.json +1 -1
- package/templates/quiz/README.md +28 -12
- package/templates/quiz/core/behaviors.d.ts +13 -7
- package/templates/quiz/core/behaviors.js +36 -51
- package/templates/quiz/core/editor.d.ts +10 -0
- package/templates/quiz/core/editor.js +471 -8
- package/templates/quiz/core/markdown.d.ts +4 -0
- package/templates/quiz/core/markdown.js +65 -11
- package/templates/quiz/core/model.d.ts +34 -1
- package/templates/quiz/core/model.js +89 -7
- package/templates/quiz/core/rich-text.d.ts +19 -0
- package/templates/quiz/core/rich-text.js +521 -0
- package/templates/quiz/edit.html +12 -3
- package/templates/quiz/index.html +12 -3
- package/templates/quiz/screens/edit.js +848 -168
- package/templates/quiz/screens/learn.js +90 -14
- package/templates/quiz/styles.css +889 -213
- package/templates/quiz/template.json +9 -2
- package/templates/quiz/ui/templates/edit.d.ts +19 -6
- package/templates/quiz/ui/templates/edit.js +666 -87
- package/templates/quiz/ui/templates/group.js +19 -8
- package/templates/quiz/ui/templates/order.js +25 -24
- package/templates/quiz/ui/templates/page.js +19 -8
- package/templates/quiz/ui/templates/question.js +2 -2
- package/templates/quiz/ui/texts.js +104 -35
- package/templates/quiz/ui/theme.css +8 -9
- package/templates/steps/README.md +77 -0
- package/templates/steps/commentary.txt +7 -0
- package/templates/steps/edit.html +21 -0
- package/templates/steps/gitignore +4 -0
- package/templates/steps/index.html +69 -0
- package/templates/steps/metadata.json +9 -0
- package/templates/steps/package.json +13 -0
- package/templates/steps/screens/edit.js +32 -0
- package/templates/steps/screens/learn.js +108 -0
- package/templates/steps/styles.css +54 -0
- package/templates/steps/template.json +6 -0
|
@@ -1,12 +1,107 @@
|
|
|
1
1
|
/* 퀴즈 앱 스타일. 색 · 간격 · 모서리 값은 ui/theme.css(그 아래는 EDS 토큰 lib/elice-tokens.css), 모양은 EDS 컴포넌트 명세를 따릅니다
|
|
2
2
|
보기 = RadioCard · 유형 표시 = Tag(muted) · 해설 = Accordion */
|
|
3
3
|
|
|
4
|
+
/* 결과 아이콘 (원 안 ✓ · ✕, Font Awesome circle-check · circle-xmark 모양). mask로 쓰고 색은 결과 색 */
|
|
5
|
+
:root {
|
|
6
|
+
--qz-icon-correct: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
|
|
7
|
+
--qz-icon-wrong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z'/%3E%3C/svg%3E");
|
|
8
|
+
}
|
|
9
|
+
|
|
4
10
|
/* ---------- 학생 ---------- */
|
|
5
|
-
.qz-
|
|
6
|
-
|
|
11
|
+
/* 학생 화면 틀 (index.html body.qz-page): 제출 바는 화면 아래 전체 너비, 내용은 가운데 720px */
|
|
12
|
+
body.qz-page {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
min-height: 100dvh;
|
|
16
|
+
padding: 24px 16px 0;
|
|
7
17
|
}
|
|
8
|
-
.qz-
|
|
9
|
-
|
|
18
|
+
body.qz-page main {
|
|
19
|
+
flex: 1;
|
|
20
|
+
width: 100%;
|
|
21
|
+
padding-bottom: 24px;
|
|
22
|
+
}
|
|
23
|
+
body.qz-page .ec-result {
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
body.qz-page .ec-submitbar {
|
|
27
|
+
z-index: 8;
|
|
28
|
+
max-width: none;
|
|
29
|
+
margin: 0 -16px;
|
|
30
|
+
padding: 12px max(16px, 50% - 360px);
|
|
31
|
+
}
|
|
32
|
+
/* pattern 퀴즈: 키트 점수 줄은 감추고 문제 카드의 정답 · 오답과 아래 한 줄(.qz-overall)로 알린다 */
|
|
33
|
+
body.qz-score-hidden .ec-result.ok,
|
|
34
|
+
body.qz-score-hidden .ec-result.no {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
.qz-result.qz-overall {
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
width: 100%;
|
|
40
|
+
max-width: 720px;
|
|
41
|
+
margin: 0 auto 16px;
|
|
42
|
+
}
|
|
43
|
+
/* 불러오는 자리 (ui/templates/page.js loading · HTML의 #app 안): 질문 막대 + 보기 막대 넷.
|
|
44
|
+
0.2초 기다렸다 나타나 빨리 열리면 보이지 않고, 막대는 2초마다 천천히 옅어졌다 돌아온다 */
|
|
45
|
+
.qz-skeleton {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
gap: var(--qz-list-gap);
|
|
49
|
+
opacity: 0;
|
|
50
|
+
animation: qz-sk-show 0s linear 0.2s forwards;
|
|
51
|
+
}
|
|
52
|
+
@keyframes qz-sk-show {
|
|
53
|
+
to {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.qz-sk {
|
|
58
|
+
display: block;
|
|
59
|
+
border-radius: var(--qz-radius);
|
|
60
|
+
background: color-mix(in srgb, var(--eds-text-primary) 11%, transparent);
|
|
61
|
+
animation: qz-sk-pulse 2s ease-in-out 0.5s infinite;
|
|
62
|
+
}
|
|
63
|
+
.qz-sk-title {
|
|
64
|
+
width: 70%;
|
|
65
|
+
height: 24px;
|
|
66
|
+
margin-bottom: 8px;
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
}
|
|
69
|
+
.qz-sk-option {
|
|
70
|
+
height: 52px;
|
|
71
|
+
}
|
|
72
|
+
@keyframes qz-sk-pulse {
|
|
73
|
+
0%,
|
|
74
|
+
100% {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
50% {
|
|
78
|
+
opacity: 0.4;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@media (prefers-reduced-motion: reduce) {
|
|
82
|
+
.qz-sk {
|
|
83
|
+
animation: none;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/* 불러오는 자리에서 내용으로 바뀔 때 0.15초 나타나기 */
|
|
87
|
+
.qz-enter {
|
|
88
|
+
animation: qz-enter 0.15s ease-out;
|
|
89
|
+
}
|
|
90
|
+
@keyframes qz-enter {
|
|
91
|
+
from {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.qz-enter {
|
|
97
|
+
animation: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/* 한국어 문장이 단어 중간에서 줄바꿈되지 않게 */
|
|
101
|
+
.qz-question-title,
|
|
102
|
+
.qz-option > span {
|
|
103
|
+
overflow-wrap: anywhere;
|
|
104
|
+
word-break: keep-all;
|
|
10
105
|
}
|
|
11
106
|
.qz-muted {
|
|
12
107
|
color: var(--ec-muted);
|
|
@@ -24,11 +119,28 @@
|
|
|
24
119
|
gap: var(--qz-card-gap);
|
|
25
120
|
min-width: 0;
|
|
26
121
|
}
|
|
122
|
+
/* 결과는 카드 테두리가 아니라 학생이 낸 답(고른 보기 · 쓴 답 · 놓은 칸)에 결과 색으로 보인다 */
|
|
27
123
|
.qz-question[data-result='correct'] {
|
|
28
|
-
|
|
124
|
+
--qz-result-bg: var(--qz-correct-bg);
|
|
125
|
+
--qz-result-border: var(--qz-correct);
|
|
29
126
|
}
|
|
30
127
|
.qz-question[data-result='wrong'] {
|
|
31
|
-
|
|
128
|
+
--qz-result-bg: var(--qz-wrong-bg);
|
|
129
|
+
--qz-result-border: var(--qz-wrong);
|
|
130
|
+
}
|
|
131
|
+
.qz-question[data-result] .qz-text:not(:placeholder-shown) {
|
|
132
|
+
border-color: var(--qz-result-border);
|
|
133
|
+
}
|
|
134
|
+
/* 순서 맞추기: 고른 보기마다 결과 색 테두리 · 번호 */
|
|
135
|
+
.qz-question[data-result] .qz-order-option.is-picked {
|
|
136
|
+
border-color: var(--qz-result-border);
|
|
137
|
+
}
|
|
138
|
+
.qz-question[data-result] .qz-order-option.is-picked .qz-order-no {
|
|
139
|
+
background: var(--qz-result-border);
|
|
140
|
+
}
|
|
141
|
+
/* 그룹 분류: 그룹에 놓은 보기마다 결과 색 테두리 */
|
|
142
|
+
.qz-question[data-result] .qz-group .qz-chip-group {
|
|
143
|
+
border-color: var(--qz-result-border);
|
|
32
144
|
}
|
|
33
145
|
/* EDS subtitle2: 18px / 800 / 1.5. legend를 테두리 위가 아니라 카드 안에 두려고 float */
|
|
34
146
|
.qz-question-head {
|
|
@@ -79,8 +191,8 @@
|
|
|
79
191
|
color: var(--ec-muted);
|
|
80
192
|
}
|
|
81
193
|
|
|
82
|
-
/*
|
|
83
|
-
hover action.hover, checked = primary
|
|
194
|
+
/* 보기 카드: 간격 8px · 여백 16px · 모서리 12px · 회색 면(테두리 없음),
|
|
195
|
+
hover action.hover, checked = primary.opacity03 면 (값은 ui/theme.css --qz-option-*) */
|
|
84
196
|
.qz-options {
|
|
85
197
|
display: flex;
|
|
86
198
|
flex-direction: column;
|
|
@@ -148,6 +260,34 @@
|
|
|
148
260
|
.qz-question:disabled .qz-option:hover {
|
|
149
261
|
background: var(--qz-option-bg);
|
|
150
262
|
}
|
|
263
|
+
/* 제출 뒤 고른 보기: 결과 색 테두리, 면은 고르기 전 색, 단추 자리에 ✓ · ✕ 동그라미 (색만으로 구분하지 않게) */
|
|
264
|
+
.qz-question[data-result] .qz-option:has(input:checked),
|
|
265
|
+
.qz-question[data-result] .qz-option:has(input:checked):hover {
|
|
266
|
+
border-color: var(--qz-result-border);
|
|
267
|
+
background: var(--qz-option-bg);
|
|
268
|
+
}
|
|
269
|
+
.qz-question[data-result] .qz-option input:checked {
|
|
270
|
+
appearance: none;
|
|
271
|
+
box-sizing: border-box;
|
|
272
|
+
width: 18px;
|
|
273
|
+
height: 18px;
|
|
274
|
+
margin: 0;
|
|
275
|
+
padding: 0;
|
|
276
|
+
border: 0;
|
|
277
|
+
border-radius: 0;
|
|
278
|
+
background: var(--qz-result-border);
|
|
279
|
+
mask: none center / contain no-repeat;
|
|
280
|
+
}
|
|
281
|
+
.qz-question[data-result] .qz-option input[type='checkbox']:checked {
|
|
282
|
+
width: 20px;
|
|
283
|
+
height: 20px;
|
|
284
|
+
}
|
|
285
|
+
.qz-question[data-result='correct'] .qz-option input:checked {
|
|
286
|
+
mask-image: var(--qz-icon-correct);
|
|
287
|
+
}
|
|
288
|
+
.qz-question[data-result='wrong'] .qz-option input:checked {
|
|
289
|
+
mask-image: var(--qz-icon-wrong);
|
|
290
|
+
}
|
|
151
291
|
.qz-text-field {
|
|
152
292
|
display: flex;
|
|
153
293
|
flex-direction: column;
|
|
@@ -158,23 +298,33 @@
|
|
|
158
298
|
resize: vertical;
|
|
159
299
|
}
|
|
160
300
|
|
|
161
|
-
/* Alert standard: success / error. 색만으로 구분하지 않게 ✓ · ✕
|
|
301
|
+
/* Alert standard: success / error. 색만으로 구분하지 않게 ✓ · ✕ 아이콘을 함께 (::before 그림이라 화면 읽기에서 읽지 않음) */
|
|
162
302
|
.qz-result {
|
|
163
303
|
margin: 0;
|
|
164
|
-
padding:
|
|
304
|
+
padding: 16px;
|
|
165
305
|
border-radius: var(--qz-radius);
|
|
166
|
-
font-
|
|
306
|
+
font-size: var(--eds-fs-body1);
|
|
307
|
+
line-height: var(--eds-lh-body1);
|
|
308
|
+
font-weight: var(--eds-fw-semibold);
|
|
309
|
+
}
|
|
310
|
+
.qz-result[data-result]:not([hidden]) {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: 10px;
|
|
167
314
|
}
|
|
168
315
|
.qz-result[data-result]::before {
|
|
169
|
-
|
|
316
|
+
content: '';
|
|
317
|
+
flex: none;
|
|
318
|
+
width: 20px;
|
|
319
|
+
height: 20px;
|
|
320
|
+
background: currentColor;
|
|
321
|
+
mask: none center / contain no-repeat;
|
|
170
322
|
}
|
|
171
323
|
.qz-result[data-result='correct']::before {
|
|
172
|
-
|
|
173
|
-
content: '✓' / '';
|
|
324
|
+
mask-image: var(--qz-icon-correct);
|
|
174
325
|
}
|
|
175
326
|
.qz-result[data-result='wrong']::before {
|
|
176
|
-
|
|
177
|
-
content: '✕' / '';
|
|
327
|
+
mask-image: var(--qz-icon-wrong);
|
|
178
328
|
}
|
|
179
329
|
.qz-result[data-result='correct'] {
|
|
180
330
|
color: var(--qz-correct);
|
|
@@ -194,17 +344,27 @@
|
|
|
194
344
|
cursor: pointer;
|
|
195
345
|
font-weight: var(--eds-fw-bold);
|
|
196
346
|
}
|
|
347
|
+
/* 결과가 보이면 해설은 결과 상자 아래쪽에 이어 붙인다 (제목 줄 없이, 같은 결과 색 면) */
|
|
348
|
+
.qz-question > .qz-result[data-result]:has(+ .qz-explanation:not([hidden])) {
|
|
349
|
+
border-radius: var(--qz-radius) var(--qz-radius) 0 0;
|
|
350
|
+
padding-bottom: 4px;
|
|
351
|
+
}
|
|
352
|
+
.qz-question > .qz-result[data-result] + .qz-explanation:not([hidden]) {
|
|
353
|
+
margin-top: calc(-1 * var(--qz-card-gap));
|
|
354
|
+
padding: 0 16px 16px;
|
|
355
|
+
border-radius: 0 0 var(--qz-radius) var(--qz-radius);
|
|
356
|
+
background: var(--qz-result-bg);
|
|
357
|
+
color: var(--eds-text-primary);
|
|
358
|
+
}
|
|
359
|
+
.qz-question > .qz-result[data-result] + .qz-explanation summary {
|
|
360
|
+
display: none;
|
|
361
|
+
}
|
|
197
362
|
|
|
198
|
-
/* 끌어 놓기
|
|
363
|
+
/* 끌어 놓기 (그룹 분류): 아직 놓지 않은 보기 줄 */
|
|
199
364
|
.qz-pool {
|
|
200
365
|
display: flex;
|
|
201
366
|
flex-wrap: wrap;
|
|
202
367
|
gap: var(--qz-list-gap);
|
|
203
|
-
min-height: var(--qz-slot-min-height);
|
|
204
|
-
padding: 12px;
|
|
205
|
-
border: 1px dashed var(--qz-border);
|
|
206
|
-
border-radius: var(--qz-radius-card);
|
|
207
|
-
background: var(--qz-surface-muted);
|
|
208
368
|
align-content: flex-start;
|
|
209
369
|
}
|
|
210
370
|
.qz-chip-option {
|
|
@@ -233,14 +393,27 @@
|
|
|
233
393
|
.qz-chip-option[data-dragging] {
|
|
234
394
|
opacity: 0.38;
|
|
235
395
|
}
|
|
236
|
-
/* 그룹 분류 보기: 바깥(.qz-chip-option)이 보기 모양, 안에 고르기 버튼과 빼기 버튼이 형제로
|
|
396
|
+
/* 그룹 분류 보기: 바깥(.qz-chip-option)이 보기 모양, 안에 고르기 버튼과 빼기 버튼이 형제로 있다.
|
|
397
|
+
보기 카드처럼 회색 면 · 테두리 없음, 앞에 끌기 손잡이 점 */
|
|
237
398
|
.qz-chip-group {
|
|
238
399
|
gap: 4px;
|
|
400
|
+
border-color: transparent;
|
|
401
|
+
background: var(--qz-option-bg);
|
|
402
|
+
}
|
|
403
|
+
.qz-chip-group:hover {
|
|
404
|
+
background: var(--qz-option-hover-bg);
|
|
405
|
+
}
|
|
406
|
+
.qz-chip-grip {
|
|
407
|
+
flex: none;
|
|
408
|
+
color: var(--eds-text-tertiary);
|
|
239
409
|
}
|
|
240
410
|
.qz-chip-group:has(.qz-chip-x) {
|
|
241
411
|
padding-right: 6px;
|
|
242
412
|
}
|
|
243
413
|
.qz-chip-pick {
|
|
414
|
+
display: inline-flex;
|
|
415
|
+
align-items: center;
|
|
416
|
+
gap: 6px;
|
|
244
417
|
min-height: 0;
|
|
245
418
|
padding: 0;
|
|
246
419
|
border: 0;
|
|
@@ -300,71 +473,134 @@
|
|
|
300
473
|
background: var(--eds-primary-opacity02);
|
|
301
474
|
}
|
|
302
475
|
|
|
303
|
-
/* 순서
|
|
304
|
-
.qz-order {
|
|
305
|
-
display:
|
|
306
|
-
|
|
307
|
-
gap:
|
|
308
|
-
align-items: start;
|
|
476
|
+
/* 순서 맞추기: 보기 목록에서 정답 순서대로 누르면 번호가 붙는다 (보기 카드와 같은 면) */
|
|
477
|
+
.qz-order-pick {
|
|
478
|
+
display: flex;
|
|
479
|
+
flex-direction: column;
|
|
480
|
+
gap: 12px;
|
|
309
481
|
}
|
|
310
|
-
.qz-order-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
482
|
+
.qz-order-head {
|
|
483
|
+
display: flex;
|
|
484
|
+
justify-content: space-between;
|
|
485
|
+
align-items: center;
|
|
486
|
+
gap: 12px;
|
|
487
|
+
min-height: 30px;
|
|
488
|
+
}
|
|
489
|
+
.qz-order-head .qz-link[data-hidden] {
|
|
490
|
+
visibility: hidden;
|
|
314
491
|
}
|
|
315
|
-
.qz-
|
|
316
|
-
list-style: none;
|
|
492
|
+
.qz-order-hint {
|
|
317
493
|
margin: 0;
|
|
318
|
-
|
|
494
|
+
color: var(--eds-text-secondary);
|
|
495
|
+
font-size: var(--eds-fs-body2);
|
|
496
|
+
}
|
|
497
|
+
.qz-order-list {
|
|
319
498
|
display: flex;
|
|
320
499
|
flex-direction: column;
|
|
321
500
|
gap: var(--qz-list-gap);
|
|
322
501
|
}
|
|
323
|
-
.qz-
|
|
502
|
+
button.qz-order-option {
|
|
324
503
|
display: flex;
|
|
325
504
|
align-items: center;
|
|
326
|
-
gap:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
border
|
|
331
|
-
|
|
505
|
+
gap: 12px;
|
|
506
|
+
width: 100%;
|
|
507
|
+
min-height: 44px;
|
|
508
|
+
padding: var(--qz-option-padding);
|
|
509
|
+
border: 1px solid var(--qz-option-border);
|
|
510
|
+
border-radius: var(--qz-option-radius);
|
|
511
|
+
background: var(--qz-option-bg);
|
|
512
|
+
color: inherit;
|
|
513
|
+
font: inherit;
|
|
514
|
+
font-size: var(--eds-fs-body1);
|
|
515
|
+
font-weight: inherit;
|
|
516
|
+
line-height: inherit;
|
|
517
|
+
text-align: left;
|
|
518
|
+
white-space: normal;
|
|
519
|
+
cursor: pointer;
|
|
520
|
+
transition:
|
|
521
|
+
background-color 150ms ease-in-out,
|
|
522
|
+
border-color 150ms ease-in-out;
|
|
523
|
+
}
|
|
524
|
+
button.qz-order-option:hover {
|
|
525
|
+
background: var(--qz-option-hover-bg);
|
|
526
|
+
}
|
|
527
|
+
button.qz-order-option.is-picked,
|
|
528
|
+
button.qz-order-option.is-picked:hover {
|
|
529
|
+
background: var(--qz-option-checked-bg);
|
|
332
530
|
}
|
|
333
|
-
.qz-
|
|
531
|
+
button.qz-order-option[aria-disabled='true'] {
|
|
532
|
+
opacity: 0.5;
|
|
533
|
+
cursor: not-allowed;
|
|
534
|
+
}
|
|
535
|
+
button.qz-order-option:focus-visible {
|
|
536
|
+
outline: 2px solid var(--qz-accent);
|
|
537
|
+
outline-offset: 2px;
|
|
538
|
+
}
|
|
539
|
+
.qz-order-no {
|
|
334
540
|
flex: none;
|
|
335
|
-
width: 24px;
|
|
336
|
-
height: 24px;
|
|
337
|
-
border-radius: 50%;
|
|
338
|
-
background: var(--qz-accent-softer);
|
|
339
|
-
color: var(--qz-accent);
|
|
340
541
|
display: grid;
|
|
341
542
|
place-items: center;
|
|
342
|
-
|
|
543
|
+
width: 24px;
|
|
544
|
+
height: 24px;
|
|
545
|
+
border-radius: 6px;
|
|
546
|
+
background: color-mix(in srgb, var(--eds-text-primary) 8%, transparent);
|
|
547
|
+
color: var(--qz-accent-contrast);
|
|
548
|
+
font-size: var(--eds-fs-body2);
|
|
343
549
|
font-weight: var(--eds-fw-bold);
|
|
550
|
+
line-height: 1;
|
|
551
|
+
}
|
|
552
|
+
.qz-order-option.is-picked .qz-order-no {
|
|
553
|
+
background: var(--qz-accent);
|
|
554
|
+
}
|
|
555
|
+
.qz-order-text {
|
|
556
|
+
min-width: 0;
|
|
557
|
+
white-space: normal;
|
|
558
|
+
overflow-wrap: anywhere;
|
|
559
|
+
word-break: keep-all;
|
|
560
|
+
}
|
|
561
|
+
.qz-question:disabled button.qz-order-option {
|
|
562
|
+
cursor: default;
|
|
344
563
|
}
|
|
345
564
|
|
|
346
|
-
/* 그룹
|
|
565
|
+
/* 그룹 분류: 위에 보기(풀), 아래에 그룹 상자 격자 (그룹 수에 따라 1 · 2 · 3열, 좁은 화면은 1열) */
|
|
347
566
|
.qz-groups {
|
|
567
|
+
display: flex;
|
|
568
|
+
flex-direction: column;
|
|
569
|
+
gap: var(--qz-card-gap);
|
|
570
|
+
}
|
|
571
|
+
.qz-group-grid {
|
|
348
572
|
display: grid;
|
|
349
|
-
grid-template-columns:
|
|
573
|
+
grid-template-columns: repeat(var(--qz-group-cols, 2), minmax(0, 1fr));
|
|
350
574
|
gap: var(--qz-card-gap);
|
|
351
575
|
align-items: start;
|
|
576
|
+
margin-top: 8px;
|
|
352
577
|
}
|
|
353
|
-
.qz-group-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
578
|
+
.qz-group-grid[data-cols='1'] {
|
|
579
|
+
--qz-group-cols: 1;
|
|
580
|
+
}
|
|
581
|
+
.qz-group-grid[data-cols='3'] {
|
|
582
|
+
--qz-group-cols: 3;
|
|
357
583
|
}
|
|
358
584
|
.qz-group {
|
|
359
|
-
border: 1px solid var(--qz-border);
|
|
360
585
|
border-radius: var(--qz-radius-card);
|
|
361
|
-
background: var(--qz-surface);
|
|
362
|
-
padding:
|
|
586
|
+
background: var(--qz-surface-muted);
|
|
587
|
+
padding: 16px;
|
|
363
588
|
cursor: pointer;
|
|
364
589
|
}
|
|
590
|
+
.qz-group .qz-chip-group {
|
|
591
|
+
background: var(--qz-surface);
|
|
592
|
+
}
|
|
593
|
+
.qz-group .qz-chip-group:hover {
|
|
594
|
+
background: linear-gradient(var(--qz-hover), var(--qz-hover)), var(--qz-surface);
|
|
595
|
+
}
|
|
596
|
+
.qz-group .ec-dropzone {
|
|
597
|
+
background: none;
|
|
598
|
+
}
|
|
365
599
|
.qz-group-name {
|
|
366
600
|
margin: 0 0 8px;
|
|
367
|
-
|
|
601
|
+
color: var(--eds-text-primary);
|
|
602
|
+
font-size: var(--eds-fs-body1);
|
|
603
|
+
line-height: var(--eds-lh-body1);
|
|
368
604
|
font-weight: var(--eds-fw-bold);
|
|
369
605
|
}
|
|
370
606
|
.qz-group-items {
|
|
@@ -397,6 +633,10 @@
|
|
|
397
633
|
font-weight: var(--eds-fw-bold);
|
|
398
634
|
margin-bottom: 6px;
|
|
399
635
|
}
|
|
636
|
+
.qz-pool-head > span {
|
|
637
|
+
color: var(--eds-text-secondary);
|
|
638
|
+
font-weight: var(--eds-fw-medium);
|
|
639
|
+
}
|
|
400
640
|
|
|
401
641
|
@media (max-width: 767.98px) {
|
|
402
642
|
/* 좁은 화면: 문항 머리의 아이콘 버튼을 좁혀 유형 이름이 덜 잘리게 */
|
|
@@ -406,19 +646,9 @@
|
|
|
406
646
|
.qe-card-head .ec-icon-button {
|
|
407
647
|
width: 32px;
|
|
408
648
|
}
|
|
409
|
-
.qz-
|
|
410
|
-
grid-template-columns: 1fr;
|
|
411
|
-
}
|
|
412
|
-
.qz-order-arrow {
|
|
413
|
-
transform: rotate(90deg);
|
|
414
|
-
justify-self: center;
|
|
415
|
-
}
|
|
416
|
-
.qz-groups {
|
|
649
|
+
.qz-group-grid {
|
|
417
650
|
grid-template-columns: 1fr;
|
|
418
651
|
}
|
|
419
|
-
.qz-group-pool {
|
|
420
|
-
order: -1;
|
|
421
|
-
}
|
|
422
652
|
/* 좁은 화면: 그룹 고르기는 보기 글 아래 줄로 (보기 글 칸이 좁아지지 않게) */
|
|
423
653
|
.qe-option:has(.qe-answer-group) {
|
|
424
654
|
display: grid;
|
|
@@ -432,176 +662,326 @@
|
|
|
432
662
|
grid-row: 2;
|
|
433
663
|
grid-column: 3;
|
|
434
664
|
}
|
|
435
|
-
/* 좁은 화면의 그룹 고르기는 보기 글 아래 줄이라 열 머리를 두지 않는다 (고르기 안의 이름으로 알 수 있음) */
|
|
436
|
-
.qe-option.qe-answer-head-select {
|
|
437
|
-
display: none;
|
|
438
|
-
}
|
|
439
665
|
}
|
|
440
666
|
|
|
441
667
|
/* ---------- 편집 ---------- */
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
background: var(--
|
|
668
|
+
/* 편집 화면의 공용 모양(회색 바탕 · 흰 저장 바 · 카드 · 밑줄 칸 · 섹션 · "+ 추가" 열기 버튼 · 토글 칩 · 보기 줄 · 정답 표시 ·
|
|
669
|
+
추가 버튼 · ⓘ 안내 · 스낵바)은 키트 lib/elice-content.css "편집 화면" 절이 그린다: edit.html의 <body class="ec-edit-page">와
|
|
670
|
+
ui/templates/edit.js가 qe-*와 함께 붙이는 .ec-* 클래스. 여기에는 퀴즈에만 있는 것: 라벨 있는 칸 · 정답 오류 ·
|
|
671
|
+
그룹 분류 · 순서 맞추기 편집판, 그리고 퀴즈만 키트와 다르게 그리는 곳(연주님 퀴즈 수정본) */
|
|
672
|
+
|
|
673
|
+
/* 퀴즈만: 저장 바는 페이지와 같은 회색 바탕 (키트 기본은 흰 바) */
|
|
674
|
+
body.ec-edit-page .ec-submitbar {
|
|
675
|
+
background: var(--ec-edit-page-bg);
|
|
450
676
|
}
|
|
451
|
-
.qe-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
flex-wrap: nowrap;
|
|
455
|
-
align-items: center;
|
|
456
|
-
gap: 8px;
|
|
457
|
-
font-size: var(--eds-fs-subtitle2);
|
|
458
|
-
font-weight: var(--eds-fw-extrabold);
|
|
677
|
+
/* 퀴즈만: 정답으로 고른 보기 줄은 밑줄 색 대신 줄 끝 "정답" 표시로 (.qe-correct-tag). 밑줄은 다른 줄과 같게 */
|
|
678
|
+
.qe-option[data-correct] .qe-option-text {
|
|
679
|
+
border-bottom-color: var(--ec-border);
|
|
459
680
|
}
|
|
681
|
+
.qe-option[data-correct] .qe-option-text:hover:not(:focus) {
|
|
682
|
+
border-bottom-color: var(--ec-edit-hover-line);
|
|
683
|
+
}
|
|
684
|
+
/* 퀴즈만: "+ 문항 추가"는 강조색 윤곽선 버튼 (테두리 강조색 50%, 높이 40px). 키트 기본은 회색 점선 */
|
|
685
|
+
button.qe-add-question {
|
|
686
|
+
min-height: 0;
|
|
687
|
+
padding: 7px 15px;
|
|
688
|
+
border: 1px solid color-mix(in srgb, var(--qz-accent) 50%, transparent);
|
|
689
|
+
border-radius: 8px;
|
|
690
|
+
background: none;
|
|
691
|
+
color: var(--qz-accent);
|
|
692
|
+
font-size: 14px;
|
|
693
|
+
line-height: 24px;
|
|
694
|
+
font-weight: var(--eds-fw-semibold);
|
|
695
|
+
}
|
|
696
|
+
@media (hover: hover) {
|
|
697
|
+
button.qe-add-question:hover {
|
|
698
|
+
border-color: var(--qz-accent);
|
|
699
|
+
background: var(--eds-primary-opacity01);
|
|
700
|
+
color: var(--qz-accent);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
button.qe-add-question:focus-visible,
|
|
704
|
+
button.qe-add-question:active {
|
|
705
|
+
background: color-mix(in srgb, var(--qz-accent) 30%, transparent);
|
|
706
|
+
}
|
|
707
|
+
button.qe-add-question:disabled {
|
|
708
|
+
border-color: var(--eds-surface-border);
|
|
709
|
+
background: none;
|
|
710
|
+
color: var(--eds-action-disabled);
|
|
711
|
+
}
|
|
712
|
+
/* 퀴즈만: 그룹 상자 · 오답 보기 상자 안 "+ 보기 추가"는 작은 회색 윤곽선 버튼, 왼쪽 정렬 (키트 기본은 전체 너비 회색 면) */
|
|
713
|
+
.qe-group .qe-options > button.qe-add {
|
|
714
|
+
align-self: flex-start;
|
|
715
|
+
min-height: 0;
|
|
716
|
+
padding: 4px 11px;
|
|
717
|
+
border: 1px solid var(--eds-surface-border);
|
|
718
|
+
border-radius: 6px;
|
|
719
|
+
background: none;
|
|
720
|
+
color: var(--eds-secondary-main);
|
|
721
|
+
font-size: 13px;
|
|
722
|
+
line-height: 22px;
|
|
723
|
+
font-weight: var(--eds-fw-semibold);
|
|
724
|
+
}
|
|
725
|
+
@media (hover: hover) {
|
|
726
|
+
.qe-group .qe-options > button.qe-add:hover {
|
|
727
|
+
border-color: var(--ec-edit-hover-line);
|
|
728
|
+
background: var(--eds-action-hover);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
.qe-group .qe-options > button.qe-add:focus-visible,
|
|
732
|
+
.qe-group .qe-options > button.qe-add:active {
|
|
733
|
+
background: color-mix(in srgb, var(--eds-secondary-main) 30%, transparent);
|
|
734
|
+
}
|
|
735
|
+
.qe-group .qe-options > button.qe-add:disabled {
|
|
736
|
+
border-color: var(--eds-surface-border);
|
|
737
|
+
background: none;
|
|
738
|
+
color: var(--eds-action-disabled);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/* ----- 퀴즈만: 연주님 최종 수정본 (편집 화면) ----- */
|
|
742
|
+
/* 카드 머리 "문항 N"은 회색 글자 */
|
|
460
743
|
.qe-card-head > strong {
|
|
744
|
+
color: var(--eds-text-secondary);
|
|
745
|
+
}
|
|
746
|
+
/* 유형 고르기: 회색 알약 버튼 (유형 아이콘 · 이름 · ∨). 누르면 아래에 목록(.qe-menu) */
|
|
747
|
+
.qe-card-head button.qe-type {
|
|
748
|
+
display: inline-flex;
|
|
749
|
+
align-items: center;
|
|
750
|
+
gap: 6px;
|
|
751
|
+
flex: 0 1 auto;
|
|
752
|
+
min-width: 0;
|
|
753
|
+
min-height: 0;
|
|
754
|
+
margin-right: auto;
|
|
755
|
+
padding: 5px 12px;
|
|
756
|
+
border: 0;
|
|
757
|
+
border-radius: 6px;
|
|
758
|
+
background: var(--qz-surface-muted);
|
|
759
|
+
color: var(--eds-text-primary);
|
|
760
|
+
font-size: 13px;
|
|
761
|
+
font-weight: var(--eds-fw-semibold);
|
|
762
|
+
line-height: 22px;
|
|
763
|
+
cursor: pointer;
|
|
764
|
+
}
|
|
765
|
+
.qe-type svg {
|
|
461
766
|
flex: none;
|
|
462
|
-
white-space: nowrap;
|
|
463
767
|
}
|
|
464
|
-
.qe-type {
|
|
465
|
-
width: auto;
|
|
768
|
+
.qe-type-label {
|
|
466
769
|
min-width: 0;
|
|
467
|
-
|
|
770
|
+
overflow: hidden;
|
|
468
771
|
text-overflow: ellipsis;
|
|
469
|
-
|
|
470
|
-
font-size: var(--eds-fs-body2);
|
|
471
|
-
/* 문항 머리(굵은 글씨)를 물려받지 않게 */
|
|
472
|
-
font-weight: 400;
|
|
772
|
+
white-space: nowrap;
|
|
473
773
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
774
|
+
@media (hover: hover) {
|
|
775
|
+
.qe-card-head button.qe-type:hover {
|
|
776
|
+
background: linear-gradient(var(--eds-action-hover), var(--eds-action-hover)), var(--qz-surface-muted);
|
|
777
|
+
}
|
|
478
778
|
}
|
|
479
|
-
.qe-
|
|
480
|
-
|
|
779
|
+
.qe-card-head button.qe-type:focus-visible,
|
|
780
|
+
.qe-card-head button.qe-type:active,
|
|
781
|
+
.qe-card-head button.qe-type[aria-expanded='true'] {
|
|
782
|
+
background: linear-gradient(
|
|
783
|
+
color-mix(in srgb, var(--eds-background-inverse) 8%, transparent),
|
|
784
|
+
color-mix(in srgb, var(--eds-background-inverse) 8%, transparent)
|
|
785
|
+
),
|
|
786
|
+
var(--qz-surface-muted);
|
|
787
|
+
}
|
|
788
|
+
/* 유형 목록 (EDS Menu): body에 붙어 버튼 아래에 뜬다. 고른 항목은 회색 면 + 체크 */
|
|
789
|
+
.qe-menu {
|
|
790
|
+
position: fixed;
|
|
791
|
+
z-index: 30;
|
|
792
|
+
box-sizing: border-box;
|
|
793
|
+
max-height: min(320px, 100vh - 16px);
|
|
794
|
+
overflow-y: auto;
|
|
795
|
+
padding: 8px;
|
|
796
|
+
border: 1px solid var(--eds-divider);
|
|
797
|
+
border-radius: 8px;
|
|
798
|
+
background: var(--eds-background-paper);
|
|
799
|
+
color: var(--eds-text-primary);
|
|
800
|
+
box-shadow:
|
|
801
|
+
0 3px 3px -2px #0003,
|
|
802
|
+
0 3px 4px #00000024,
|
|
803
|
+
0 1px 8px #0000001f;
|
|
804
|
+
}
|
|
805
|
+
.qe-menu-item {
|
|
481
806
|
display: flex;
|
|
482
807
|
align-items: center;
|
|
483
|
-
|
|
808
|
+
box-sizing: border-box;
|
|
809
|
+
height: 40px;
|
|
810
|
+
padding: 10px 8px;
|
|
811
|
+
border-radius: 4px;
|
|
812
|
+
font-size: 14px;
|
|
813
|
+
font-weight: var(--eds-fw-medium);
|
|
814
|
+
white-space: nowrap;
|
|
815
|
+
outline: none;
|
|
816
|
+
cursor: pointer;
|
|
484
817
|
}
|
|
485
|
-
.qe-
|
|
486
|
-
|
|
818
|
+
.qe-menu-item > svg {
|
|
819
|
+
flex: none;
|
|
820
|
+
box-sizing: content-box;
|
|
821
|
+
width: 20px;
|
|
822
|
+
height: 20px;
|
|
823
|
+
padding-right: 12px;
|
|
824
|
+
color: var(--eds-action-active);
|
|
487
825
|
}
|
|
488
|
-
.qe-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
font-size: var(--eds-fs-caption);
|
|
826
|
+
.qe-menu-check {
|
|
827
|
+
display: inline-flex;
|
|
828
|
+
margin-left: auto;
|
|
829
|
+
padding-left: 16px;
|
|
830
|
+
color: var(--qz-accent);
|
|
494
831
|
}
|
|
495
|
-
.qe-
|
|
496
|
-
|
|
832
|
+
.qe-menu-check svg {
|
|
833
|
+
width: 18px;
|
|
834
|
+
height: 18px;
|
|
497
835
|
}
|
|
498
|
-
.qe-
|
|
499
|
-
|
|
836
|
+
.qe-menu-item:hover,
|
|
837
|
+
.qe-menu-item:focus-visible {
|
|
838
|
+
background: var(--eds-action-hover);
|
|
500
839
|
}
|
|
501
|
-
.qe-
|
|
502
|
-
|
|
503
|
-
flex-direction: column;
|
|
504
|
-
gap: 8px;
|
|
840
|
+
.qe-menu-item[aria-selected='true'] {
|
|
841
|
+
background: var(--eds-action-selected);
|
|
505
842
|
}
|
|
506
|
-
.qe-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
gap: var(--qz-list-gap);
|
|
843
|
+
.qe-menu-item[aria-selected='true']:hover,
|
|
844
|
+
.qe-menu-item[aria-selected='true']:focus-visible {
|
|
845
|
+
background: color-mix(in srgb, var(--eds-action-selected) 100%, var(--eds-action-hover));
|
|
510
846
|
}
|
|
511
|
-
.qe-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
847
|
+
.qe-menu-item:focus-visible {
|
|
848
|
+
box-shadow: inset 0 0 0 2px var(--qz-accent);
|
|
849
|
+
}
|
|
850
|
+
/* 손가락 화면: 목록 글자 16px (작은 글자를 눌러 확대되지 않게, 키트 모바일 규칙) */
|
|
851
|
+
@media (pointer: coarse) {
|
|
852
|
+
.qe-menu-item {
|
|
853
|
+
font-size: 16px;
|
|
854
|
+
}
|
|
517
855
|
}
|
|
518
|
-
/*
|
|
519
|
-
.qe-option
|
|
856
|
+
/* 보기 칸 + 정답 표시: 정답으로 고른 줄 끝에 "정답" */
|
|
857
|
+
.qe-option-field {
|
|
520
858
|
position: relative;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
box-shadow: var(--ec-shadow);
|
|
859
|
+
display: flex;
|
|
860
|
+
flex: 1 1 0;
|
|
861
|
+
min-width: 0;
|
|
525
862
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
863
|
+
.qe-correct-tag {
|
|
864
|
+
visibility: hidden;
|
|
865
|
+
position: absolute;
|
|
866
|
+
top: 50%;
|
|
867
|
+
right: 8px;
|
|
868
|
+
transform: translateY(-50%);
|
|
869
|
+
color: var(--eds-primary-main);
|
|
870
|
+
font-size: var(--eds-fs-body2);
|
|
871
|
+
font-weight: var(--eds-fw-semibold);
|
|
872
|
+
line-height: 1;
|
|
873
|
+
white-space: nowrap;
|
|
874
|
+
pointer-events: none;
|
|
538
875
|
}
|
|
539
|
-
.qe-
|
|
540
|
-
|
|
541
|
-
color: var(--eds-text-secondary);
|
|
876
|
+
:root[data-eds-theme='dark'] .qe-correct-tag {
|
|
877
|
+
color: var(--eds-primary-light);
|
|
542
878
|
}
|
|
543
|
-
.qe-option[data-
|
|
544
|
-
|
|
879
|
+
.qe-option[data-correct] .qe-correct-tag {
|
|
880
|
+
visibility: visible;
|
|
545
881
|
}
|
|
546
|
-
.qe-option-
|
|
547
|
-
|
|
548
|
-
width: 24px;
|
|
549
|
-
text-align: center;
|
|
550
|
-
color: var(--qz-text-muted);
|
|
551
|
-
font-weight: var(--eds-fw-bold);
|
|
882
|
+
.qe-option-field:has(.qe-correct-tag) .qe-option-text {
|
|
883
|
+
padding-right: 52px;
|
|
552
884
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
885
|
+
/* 밑줄 칸: 왼쪽 여백 8px, 안내 글은 tertiary */
|
|
886
|
+
.qe-card .qe-inline-input {
|
|
887
|
+
padding: 8px 12px 8px 8px;
|
|
556
888
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
flex: none;
|
|
560
|
-
width: 40px;
|
|
561
|
-
display: flex;
|
|
562
|
-
align-items: center;
|
|
563
|
-
justify-content: center;
|
|
889
|
+
.qe-card .qe-inline-input::placeholder {
|
|
890
|
+
color: var(--eds-text-tertiary);
|
|
564
891
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
892
|
+
/* 목록 끝 "+ 보기 추가"는 옅은 회색 면, 목록과 8px 띄움 */
|
|
893
|
+
.qe-options > button.qe-add {
|
|
894
|
+
margin-top: 8px;
|
|
895
|
+
background: var(--qz-surface-muted);
|
|
568
896
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
padding: 0;
|
|
574
|
-
accent-color: var(--qz-accent);
|
|
575
|
-
cursor: pointer;
|
|
897
|
+
@media (hover: hover) {
|
|
898
|
+
.qe-options > button.qe-add:hover {
|
|
899
|
+
background: linear-gradient(var(--eds-action-hover), var(--eds-action-hover)), var(--qz-surface-muted);
|
|
900
|
+
}
|
|
576
901
|
}
|
|
577
|
-
|
|
578
|
-
.qe-
|
|
579
|
-
background:
|
|
902
|
+
.qe-options > button.qe-add:focus-visible,
|
|
903
|
+
.qe-options > button.qe-add:active {
|
|
904
|
+
background: linear-gradient(
|
|
905
|
+
color-mix(in srgb, var(--eds-background-inverse) 8%, transparent),
|
|
906
|
+
color-mix(in srgb, var(--eds-background-inverse) 8%, transparent)
|
|
907
|
+
),
|
|
908
|
+
var(--qz-surface-muted);
|
|
909
|
+
}
|
|
910
|
+
/* 열린 해설 · 입력란 힌트: 회색 상자 안에 */
|
|
911
|
+
.qe-reveal-card .qe-reveal-body {
|
|
912
|
+
padding: 16px;
|
|
913
|
+
border-radius: 12px;
|
|
914
|
+
background: var(--qz-surface-muted);
|
|
580
915
|
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
916
|
+
.qe-inline + .qe-reveal:has(.qe-reveal-body:not([hidden])) {
|
|
917
|
+
margin-top: 0;
|
|
918
|
+
}
|
|
919
|
+
.qe-groups > .qe-reveal {
|
|
920
|
+
margin-top: 4px;
|
|
921
|
+
}
|
|
922
|
+
/* 지울 수 없는 줄 · 그룹 · 상자의 ✕는 감춘다 (자리는 그대로) */
|
|
923
|
+
.qe-option [data-role='delete']:disabled,
|
|
924
|
+
.qe-group-head [data-role='group-delete']:disabled,
|
|
925
|
+
.qe-group-head [data-role='none-close']:disabled {
|
|
926
|
+
visibility: hidden;
|
|
927
|
+
}
|
|
928
|
+
/* 작은 버튼의 누르는 영역을 둘레로 넓힌다 (모양은 그대로) */
|
|
929
|
+
.qe-card button.ec-icon-button,
|
|
930
|
+
.qe-card-head button.qe-type,
|
|
931
|
+
.qe-reveal-button,
|
|
932
|
+
.qe-options > .qe-add,
|
|
933
|
+
.qe-add-question {
|
|
934
|
+
position: relative;
|
|
935
|
+
}
|
|
936
|
+
.qe-card button.ec-icon-button::after,
|
|
937
|
+
.qe-card-head button.qe-type::after,
|
|
938
|
+
.qe-reveal-button::after {
|
|
939
|
+
content: '';
|
|
940
|
+
position: absolute;
|
|
941
|
+
inset: -8px;
|
|
942
|
+
}
|
|
943
|
+
.qe-card-head button.ec-icon-button::after {
|
|
944
|
+
inset: -7px;
|
|
945
|
+
}
|
|
946
|
+
.qe-card-head button.qe-type::after,
|
|
947
|
+
.qe-reveal-button::after {
|
|
948
|
+
inset: -6px;
|
|
949
|
+
}
|
|
950
|
+
.qe-options > .qe-add::after,
|
|
951
|
+
.qe-add-question::after {
|
|
952
|
+
content: '';
|
|
953
|
+
position: absolute;
|
|
954
|
+
inset: -2px 0;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.qe-field {
|
|
958
|
+
display: flex;
|
|
959
|
+
flex-direction: column;
|
|
960
|
+
gap: 6px;
|
|
961
|
+
}
|
|
962
|
+
.qe-label {
|
|
585
963
|
font-weight: var(--eds-fw-bold);
|
|
964
|
+
display: flex;
|
|
965
|
+
align-items: center;
|
|
966
|
+
gap: 8px;
|
|
586
967
|
}
|
|
587
|
-
.qe-
|
|
588
|
-
|
|
589
|
-
width: 32px;
|
|
968
|
+
.qe-required {
|
|
969
|
+
color: var(--eds-error-main);
|
|
590
970
|
}
|
|
591
|
-
|
|
592
|
-
.qe-
|
|
593
|
-
|
|
971
|
+
.qe-optional,
|
|
972
|
+
.qe-hint,
|
|
973
|
+
.qe-count {
|
|
974
|
+
color: var(--eds-text-secondary);
|
|
975
|
+
font-weight: var(--eds-fw-medium);
|
|
976
|
+
font-size: var(--eds-fs-caption);
|
|
594
977
|
}
|
|
595
|
-
.qe-
|
|
596
|
-
|
|
978
|
+
.qe-count {
|
|
979
|
+
align-self: flex-end;
|
|
597
980
|
}
|
|
598
|
-
.qe-
|
|
599
|
-
|
|
600
|
-
justify-content: flex-start;
|
|
601
|
-
margin-right: 46px;
|
|
602
|
-
padding-left: 12px;
|
|
981
|
+
.qe-number {
|
|
982
|
+
width: 120px;
|
|
603
983
|
}
|
|
604
|
-
/* 그룹 분류 보기 줄의 정답 그룹
|
|
984
|
+
/* 그룹 분류 보기 줄의 정답 그룹 고르기: 보기 글 뒤, 삭제 버튼(40px) 앞 */
|
|
605
985
|
.qe-answer-group {
|
|
606
986
|
flex: 0 1 160px;
|
|
607
987
|
width: auto;
|
|
@@ -636,22 +1016,318 @@
|
|
|
636
1016
|
color: var(--eds-text-tertiary);
|
|
637
1017
|
font-size: var(--eds-fs-caption);
|
|
638
1018
|
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
1019
|
+
/* "설명 추가"처럼 머리줄 없이 여는 칸: 열리면 밑줄 칸 옆에 지우기 ✕ (해설처럼 머리줄이 있는 칸은 키트 모양 그대로) */
|
|
1020
|
+
.qe-reveal:not(.qe-reveal-card) > .qe-reveal-body {
|
|
1021
|
+
flex-direction: row;
|
|
1022
|
+
align-items: flex-start;
|
|
1023
|
+
}
|
|
1024
|
+
.qe-reveal-body > .qe-inline {
|
|
1025
|
+
flex: 1;
|
|
1026
|
+
min-width: 0;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/* 그룹 분류 편집판 (그룹별 상자): 그룹마다 상자, 그 안에 보기. 왼쪽 여백은 끌기 손잡이 자리 */
|
|
1030
|
+
.qe-groups {
|
|
1031
|
+
display: flex;
|
|
1032
|
+
flex-direction: column;
|
|
1033
|
+
gap: 12px;
|
|
1034
|
+
}
|
|
1035
|
+
.qe-group {
|
|
1036
|
+
display: flex;
|
|
1037
|
+
flex-direction: column;
|
|
1038
|
+
gap: 8px;
|
|
1039
|
+
padding: 16px 16px 16px 24px;
|
|
1040
|
+
border-radius: 12px;
|
|
1041
|
+
background: var(--eds-background-neutral);
|
|
1042
|
+
}
|
|
1043
|
+
.qe-group[data-over] {
|
|
1044
|
+
outline: 2px dashed var(--qz-accent);
|
|
1045
|
+
outline-offset: -2px;
|
|
642
1046
|
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
border-top: 1px solid var(--ec-line);
|
|
1047
|
+
.qe-group-none {
|
|
1048
|
+
border: 1px dashed var(--eds-surface-border);
|
|
1049
|
+
background: transparent;
|
|
647
1050
|
}
|
|
648
|
-
.qe-
|
|
1051
|
+
.qe-group-head {
|
|
649
1052
|
display: flex;
|
|
650
1053
|
align-items: center;
|
|
651
1054
|
gap: 8px;
|
|
652
1055
|
}
|
|
653
|
-
.qe-
|
|
654
|
-
|
|
1056
|
+
.qe-group-none .qe-group-head strong {
|
|
1057
|
+
font-weight: var(--eds-fw-bold);
|
|
1058
|
+
}
|
|
1059
|
+
.qe-group-badge {
|
|
1060
|
+
flex: none;
|
|
1061
|
+
display: inline-flex;
|
|
1062
|
+
align-items: center;
|
|
1063
|
+
justify-content: center;
|
|
1064
|
+
width: 24px;
|
|
1065
|
+
height: 24px;
|
|
1066
|
+
border-radius: 6px;
|
|
1067
|
+
background: var(--qz-accent);
|
|
1068
|
+
color: var(--qz-accent-contrast);
|
|
1069
|
+
font-size: var(--eds-fs-caption);
|
|
1070
|
+
font-weight: var(--eds-fw-bold);
|
|
1071
|
+
}
|
|
1072
|
+
.qe-group-name {
|
|
1073
|
+
flex: 1;
|
|
1074
|
+
min-width: 0;
|
|
1075
|
+
font-weight: var(--eds-fw-bold);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/* 순서 맞추기: 번호 목록도 끌어 놓을 곳이라 놓을 수 있을 때 윤곽을 보인다 */
|
|
1079
|
+
.qe-options[data-group-box][data-over] {
|
|
1080
|
+
outline: 2px dashed var(--qz-accent);
|
|
1081
|
+
outline-offset: 4px;
|
|
1082
|
+
border-radius: 8px;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
/* ── 연주님 최종 수정본 (퀴즈 최종) ── */
|
|
1086
|
+
/* 문제 제목은 semibold */
|
|
1087
|
+
.qz-question-title {
|
|
1088
|
+
font-weight: var(--eds-fw-semibold);
|
|
1089
|
+
}
|
|
1090
|
+
/* 지문 · 해설 속 그림 (편집 화면에서 올린 그림 · zip 안 img/) */
|
|
1091
|
+
.qz-image {
|
|
1092
|
+
display: block;
|
|
1093
|
+
max-width: 100%;
|
|
1094
|
+
height: auto;
|
|
1095
|
+
margin: 0 auto 12px;
|
|
1096
|
+
border-radius: var(--qz-radius-card);
|
|
1097
|
+
}
|
|
1098
|
+
/* 그림을 찾지 못하면 설명 글만 */
|
|
1099
|
+
.qz-image-missing {
|
|
1100
|
+
color: var(--eds-text-tertiary);
|
|
1101
|
+
}
|
|
1102
|
+
.qz-markdown pre code,
|
|
1103
|
+
.qe-wys pre code {
|
|
1104
|
+
padding: 0;
|
|
1105
|
+
background: none;
|
|
1106
|
+
}
|
|
1107
|
+
/* 3줄 이상 코드 블록: 왼쪽에 줄 번호 (data-lines) */
|
|
1108
|
+
.qz-markdown pre.qz-lines,
|
|
1109
|
+
.qe-wys pre.qz-lines {
|
|
1110
|
+
position: relative;
|
|
1111
|
+
padding-left: 48px;
|
|
1112
|
+
white-space: pre;
|
|
1113
|
+
overflow-x: auto;
|
|
1114
|
+
}
|
|
1115
|
+
.qz-markdown pre.qz-lines::before,
|
|
1116
|
+
.qe-wys pre.qz-lines::before {
|
|
1117
|
+
content: attr(data-lines);
|
|
1118
|
+
position: absolute;
|
|
1119
|
+
top: 12px;
|
|
1120
|
+
left: 0;
|
|
1121
|
+
width: 32px;
|
|
1122
|
+
color: var(--eds-text-tertiary);
|
|
1123
|
+
text-align: right;
|
|
1124
|
+
white-space: pre;
|
|
1125
|
+
user-select: none;
|
|
1126
|
+
pointer-events: none;
|
|
1127
|
+
}
|
|
1128
|
+
.qe-wys pre.qz-lines::before {
|
|
1129
|
+
top: 8px;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/* 지문 · 해설 편집 칸 (core/rich-text.js): 글 칸 · 그림 칸 묶음 전체에 밑줄 하나 */
|
|
1133
|
+
.qe-blocks {
|
|
1134
|
+
gap: 0;
|
|
1135
|
+
border-bottom: 1px solid var(--ec-border);
|
|
1136
|
+
border-radius: var(--eds-radius) var(--eds-radius) 0 0;
|
|
1137
|
+
transition: box-shadow 0.12s;
|
|
1138
|
+
}
|
|
1139
|
+
.qe-blocks:hover {
|
|
1140
|
+
border-bottom-color: var(--ec-edit-hover-line);
|
|
1141
|
+
}
|
|
1142
|
+
.qe-blocks:focus-within {
|
|
1143
|
+
border-bottom-color: transparent;
|
|
1144
|
+
box-shadow: inset 0 -2px 0 var(--ec-accent);
|
|
1145
|
+
}
|
|
1146
|
+
.qe-blocks-list {
|
|
1147
|
+
display: flex;
|
|
1148
|
+
flex-direction: column;
|
|
1149
|
+
gap: 4px;
|
|
1150
|
+
}
|
|
1151
|
+
/* 그림 사이 빈 글 칸은 초점이 없을 때 얇게 */
|
|
1152
|
+
.qe-blocks-list > .qe-wys[data-empty]:not(:only-child):not(:focus) {
|
|
1153
|
+
min-height: 0;
|
|
1154
|
+
padding-block: 2px;
|
|
1155
|
+
}
|
|
1156
|
+
.qe-wys {
|
|
1157
|
+
position: relative;
|
|
1158
|
+
display: block;
|
|
1159
|
+
width: 100%;
|
|
1160
|
+
min-height: 37px;
|
|
1161
|
+
color: var(--eds-text-secondary);
|
|
1162
|
+
font-size: var(--eds-fs-body2);
|
|
1163
|
+
line-height: 1.5;
|
|
1164
|
+
white-space: pre-wrap;
|
|
1165
|
+
word-break: break-word;
|
|
1166
|
+
outline: none;
|
|
1167
|
+
}
|
|
1168
|
+
.qe-wys > :last-child {
|
|
1169
|
+
margin-bottom: 0;
|
|
1170
|
+
}
|
|
1171
|
+
.qe-wys p,
|
|
1172
|
+
.qe-wys ul,
|
|
1173
|
+
.qe-wys ol {
|
|
1174
|
+
margin: 0 0 6px;
|
|
1175
|
+
}
|
|
1176
|
+
.qe-wys ul,
|
|
1177
|
+
.qe-wys ol {
|
|
1178
|
+
padding-left: 24px;
|
|
1179
|
+
}
|
|
1180
|
+
.qe-wys pre {
|
|
1181
|
+
margin: 0 0 6px;
|
|
1182
|
+
padding: 8px 12px;
|
|
1183
|
+
white-space: pre;
|
|
1184
|
+
overflow-x: auto;
|
|
1185
|
+
}
|
|
1186
|
+
.qe-wys code {
|
|
1187
|
+
font-family: ui-monospace, Menlo, monospace;
|
|
1188
|
+
}
|
|
1189
|
+
.qe-wys code,
|
|
1190
|
+
.qe-wys pre {
|
|
1191
|
+
background: var(--eds-background-paper, #fff);
|
|
1192
|
+
box-shadow: inset 0 0 0 1px var(--qz-border);
|
|
1193
|
+
}
|
|
1194
|
+
.qe-wys pre code {
|
|
1195
|
+
box-shadow: none;
|
|
1196
|
+
}
|
|
1197
|
+
.qe-wys img {
|
|
1198
|
+
max-width: 100%;
|
|
1199
|
+
}
|
|
1200
|
+
.qe-wys[data-empty][data-placeholder]:not([data-placeholder=''])::before {
|
|
1201
|
+
content: attr(data-placeholder);
|
|
1202
|
+
position: absolute;
|
|
1203
|
+
top: 8px;
|
|
1204
|
+
left: 8px;
|
|
1205
|
+
color: var(--eds-text-tertiary);
|
|
1206
|
+
pointer-events: none;
|
|
1207
|
+
}
|
|
1208
|
+
/* 올린 그림 칸: 흰 바탕 가운데, 오른쪽 위 지우기 */
|
|
1209
|
+
.qe-block-image {
|
|
1210
|
+
position: relative;
|
|
1211
|
+
display: flex;
|
|
1212
|
+
justify-content: center;
|
|
1213
|
+
margin: 0;
|
|
1214
|
+
padding: 12px;
|
|
1215
|
+
border-radius: 12px;
|
|
1216
|
+
background: var(--eds-background-paper, #fff);
|
|
1217
|
+
}
|
|
1218
|
+
.qe-block-image img {
|
|
1219
|
+
display: block;
|
|
1220
|
+
max-width: 100%;
|
|
1221
|
+
max-height: 280px;
|
|
1222
|
+
border-radius: 8px;
|
|
1223
|
+
}
|
|
1224
|
+
.qe-block-remove {
|
|
1225
|
+
position: absolute;
|
|
1226
|
+
top: 8px;
|
|
1227
|
+
right: 8px;
|
|
1228
|
+
display: flex;
|
|
1229
|
+
align-items: center;
|
|
1230
|
+
justify-content: center;
|
|
1231
|
+
width: 28px;
|
|
1232
|
+
min-width: 0;
|
|
1233
|
+
height: 28px;
|
|
1234
|
+
min-height: 0;
|
|
1235
|
+
padding: 0;
|
|
1236
|
+
border: 0;
|
|
1237
|
+
border-radius: 50%;
|
|
1238
|
+
background: color-mix(in srgb, var(--eds-text-primary) 70%, transparent);
|
|
1239
|
+
color: #fff;
|
|
1240
|
+
cursor: pointer;
|
|
1241
|
+
}
|
|
1242
|
+
.qe-block-remove::after {
|
|
1243
|
+
content: '';
|
|
1244
|
+
position: absolute;
|
|
1245
|
+
inset: -8px;
|
|
1246
|
+
}
|
|
1247
|
+
.qe-block-remove:hover {
|
|
1248
|
+
background: var(--eds-text-primary);
|
|
1249
|
+
}
|
|
1250
|
+
.qe-block-remove:focus-visible {
|
|
1251
|
+
outline: 2px solid var(--qz-accent);
|
|
1252
|
+
outline-offset: 2px;
|
|
1253
|
+
}
|
|
1254
|
+
.qe-block-remove svg {
|
|
1255
|
+
width: 16px;
|
|
1256
|
+
height: 16px;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/* 서식 도구: 칸에 초점이 있을 때 카드 아래 가장자리에 걸쳐 뜸 (그림 파일을 고르는 동안은 data-hold로 유지) */
|
|
1260
|
+
.qe-reveal-card .qe-reveal-body {
|
|
1261
|
+
position: relative;
|
|
1262
|
+
}
|
|
1263
|
+
.qe-md {
|
|
1264
|
+
position: absolute;
|
|
1265
|
+
top: calc(100% - 12px);
|
|
1266
|
+
left: 16px;
|
|
1267
|
+
z-index: 6;
|
|
1268
|
+
display: flex;
|
|
1269
|
+
align-items: center;
|
|
1270
|
+
gap: 2px;
|
|
1271
|
+
width: max-content;
|
|
1272
|
+
max-width: calc(100% - 32px);
|
|
1273
|
+
padding: 2px 6px;
|
|
1274
|
+
border-radius: 10px;
|
|
1275
|
+
background: var(--eds-background-paper, #fff);
|
|
1276
|
+
box-shadow: var(--ec-shadow);
|
|
1277
|
+
opacity: 0;
|
|
1278
|
+
visibility: hidden;
|
|
1279
|
+
transition:
|
|
1280
|
+
opacity 0.12s,
|
|
1281
|
+
visibility 0s linear 0.12s;
|
|
1282
|
+
}
|
|
1283
|
+
.qe-reveal-body:focus-within .qe-md,
|
|
1284
|
+
.qe-md[data-hold] {
|
|
1285
|
+
opacity: 1;
|
|
1286
|
+
visibility: visible;
|
|
1287
|
+
transition: opacity 0.12s;
|
|
1288
|
+
}
|
|
1289
|
+
.qe-md-btn {
|
|
1290
|
+
position: relative;
|
|
1291
|
+
display: inline-flex;
|
|
1292
|
+
align-items: center;
|
|
1293
|
+
justify-content: center;
|
|
1294
|
+
min-width: 32px;
|
|
1295
|
+
height: 32px;
|
|
1296
|
+
min-height: 0;
|
|
1297
|
+
padding: 0 8px;
|
|
1298
|
+
border: 0;
|
|
1299
|
+
border-radius: 6px;
|
|
1300
|
+
background: none;
|
|
1301
|
+
color: var(--eds-text-secondary);
|
|
1302
|
+
font: inherit;
|
|
1303
|
+
font-size: var(--eds-fs-body2);
|
|
1304
|
+
cursor: pointer;
|
|
1305
|
+
}
|
|
1306
|
+
/* 누르는 자리를 조금 넓게 */
|
|
1307
|
+
.qe-md-btn::after {
|
|
1308
|
+
content: '';
|
|
1309
|
+
position: absolute;
|
|
1310
|
+
inset: -6px -2px;
|
|
1311
|
+
}
|
|
1312
|
+
.qe-md-btn:hover:not(:disabled) {
|
|
1313
|
+
background: var(--eds-action-hover);
|
|
1314
|
+
color: var(--eds-text-primary);
|
|
1315
|
+
}
|
|
1316
|
+
.qe-md-btn:focus-visible {
|
|
1317
|
+
outline: 2px solid var(--qz-accent);
|
|
1318
|
+
outline-offset: -2px;
|
|
1319
|
+
}
|
|
1320
|
+
.qe-md-btn:disabled {
|
|
1321
|
+
opacity: 0.4;
|
|
1322
|
+
cursor: default;
|
|
1323
|
+
}
|
|
1324
|
+
.qe-md-btn[aria-pressed='true'] {
|
|
1325
|
+
background: var(--eds-action-selected, var(--eds-action-hover));
|
|
1326
|
+
color: var(--qz-accent);
|
|
1327
|
+
}
|
|
1328
|
+
.qe-md-sep {
|
|
1329
|
+
width: 1px;
|
|
655
1330
|
height: 18px;
|
|
656
|
-
|
|
1331
|
+
margin: 0 4px;
|
|
1332
|
+
background: var(--qz-border);
|
|
657
1333
|
}
|