@eliceio/cdk-cli 1.3.1 → 1.4.1

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.
Files changed (43) hide show
  1. package/README.md +5 -3
  2. package/es/commands/create/index.js +1 -0
  3. package/es/commands/create/scaffold.d.ts +1 -1
  4. package/es/commands/create/scaffold.js +1 -1
  5. package/es/commands/doctor/index.js +19 -2
  6. package/es/core/sandbox.js +1 -1
  7. package/es/rules/check.js +19 -2
  8. package/es/rules/grading.d.ts +25 -0
  9. package/es/rules/grading.js +131 -0
  10. package/es/rules/privacy.d.ts +2 -0
  11. package/es/rules/privacy.js +1 -1
  12. package/es/rules.json.js +1 -1
  13. package/package.json +2 -2
  14. package/rules.json +13 -1
  15. package/skills/_shared/references/02-design-the-material.md +1 -0
  16. package/skills/_shared/references/05-screen-code.md +26 -0
  17. package/skills/_shared/references/08-fix-check-errors.md +3 -1
  18. package/skills/_shared/references/12-upload-with-the-material-mcp.md +1 -0
  19. package/skills/_shared/references/13-edit-screen-design.md +1 -1
  20. package/skills/elice-content-create/SKILL.md +1 -1
  21. package/skills/elice-content-publish/SKILL.md +1 -1
  22. package/templates/_shared/lib/elice-content.d.ts +45 -0
  23. package/templates/_shared/lib/elice-content.js +133 -5
  24. package/templates/video/README.md +68 -0
  25. package/templates/video/commentary.txt +2 -0
  26. package/templates/video/core/dom.d.ts +13 -0
  27. package/templates/video/core/dom.js +83 -0
  28. package/templates/video/core/settings.d.ts +19 -0
  29. package/templates/video/core/settings.js +52 -0
  30. package/templates/video/edit.html +17 -0
  31. package/templates/video/gitignore +4 -0
  32. package/templates/video/index.html +17 -0
  33. package/templates/video/metadata.json +9 -0
  34. package/templates/video/package.json +13 -0
  35. package/templates/video/screens/edit.js +69 -0
  36. package/templates/video/screens/learn.js +46 -0
  37. package/templates/video/styles.css +112 -0
  38. package/templates/video/template.json +13 -0
  39. package/templates/video/ui/templates/edit.js +26 -0
  40. package/templates/video/ui/templates/player.js +51 -0
  41. package/templates/video/ui/texts.d.ts +3 -0
  42. package/templates/video/ui/texts.js +50 -0
  43. package/templates/video/ui/theme.css +14 -0
@@ -0,0 +1,17 @@
1
+ <!doctype html>
2
+ <html lang="ko">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <!-- 제목 · "불러오는 중" 문구는 ui/texts.js(page)에서 고칩니다. 여기 글은 스크립트가 돌기 전에만 보입니다 -->
7
+ <title>학생 화면</title>
8
+ <link rel="stylesheet" href="lib/elice-tokens.css" />
9
+ <link rel="stylesheet" href="lib/elice-content.css" />
10
+ <link rel="stylesheet" href="ui/theme.css" />
11
+ <link rel="stylesheet" href="styles.css" />
12
+ <script type="module" src="screens/learn.js"></script>
13
+ </head>
14
+ <body>
15
+ <main id="app"><div class="ec-sk ec-sk-learn ec-sk-shimmer" role="status"><span class="ec-visually-hidden">불러오는 중…</span></div></main>
16
+ </body>
17
+ </html>
@@ -0,0 +1,9 @@
1
+ {
2
+ "kind": "material",
3
+ "screens": {
4
+ "learn": { "enabled": true, "entry": "index.html" },
5
+ "instructor": { "enabled": false },
6
+ "edit": { "enabled": true, "entry": "edit.html" }
7
+ },
8
+ "commentary": "commentary.txt"
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "private": true,
3
+ "type": "module",
4
+ "scripts": {
5
+ "dev": "ecdk dev",
6
+ "build": "ecdk build",
7
+ "validate": "ecdk validate"
8
+ },
9
+ "dependencies": {
10
+ "@eliceio/cdk": "workspace:^1.3.0"
11
+ },
12
+ "ecdk": {}
13
+ }
@@ -0,0 +1,69 @@
1
+ // 내용 편집 화면 (디자인 V3 "내용 편집"). 영상 한 편을 올립니다.
2
+ // 올리기 · 진행률 · 취소 · 미리보기 · 인코딩 중 · '동영상 교체'는 Elice 비디오 플레이어(<elice-video-upload>, embed.js)가 맡고,
3
+ // 이 화면은 태그를 놓고 이벤트로 저장할 내용만 바꿉니다:
4
+ // progress → 올리는 중(저장 막음) · complete(detail.resourceId) → settings.video.resource_id · cancel · error → 올리는 중 끝
5
+ // 인코딩 중에도 저장할 수 있습니다 (complete는 올리기가 끝나면 바로 오고, 인코딩은 그 뒤 플레이어가 기다림).
6
+ // 저장 버튼('초안으로 저장') · 변경 표시는 키트(useSave)가 합니다. 모양은 ui/(templates · texts · theme.css).
7
+ import { infoList, start } from '../lib/elice-content.js';
8
+ import { part } from '../core/dom.js';
9
+ import { normalizeSettings, toSettings, validateSettings } from '../core/settings.js';
10
+ import * as ui from '../ui/templates/edit.js';
11
+ import { loading, unavailable } from '../ui/templates/player.js';
12
+ import { texts } from '../ui/texts.js';
13
+
14
+ const t = texts.edit;
15
+ const root = document.getElementById('app');
16
+ document.title = texts.page.edit;
17
+ root.replaceChildren(loading('edit'));
18
+ const app = await start({ screen: 'edit' });
19
+ const draft = normalizeSettings(app.content);
20
+ /** 플레이어가 올리는 중 (progress를 받고 complete · cancel · error 전) */
21
+ let uploading = false;
22
+
23
+ const videoSection = ui.section({ name: 'video', title: t.video, required: true });
24
+ const body = part(videoSection, 'body');
25
+ root.replaceChildren(videoSection);
26
+
27
+ // 올리기 전 안내 줄 (ⓘ). 영상이 생기면 숨긴다 (V3: 파일을 고른 뒤에는 라벨 · 안내 없이 영상만).
28
+ // 받는 형식 · 최대 크기는 플레이어 올리기 칸(디자인 v2)이 보여 주므로 겹치지 않게 저장 안내만 둔다
29
+ const info = infoList([t.savable]);
30
+ info.setAttribute('data-ec-quiet', '');
31
+ /** 영상이 있는지에 따라 라벨 · 안내를 보이고 숨긴다 */
32
+ const paintEmpty = () => {
33
+ videoSection.dataset.empty = String(!draft.video);
34
+ info.hidden = Boolean(draft.video);
35
+ };
36
+
37
+ const save = app.useSave({
38
+ label: t.save,
39
+ getContent: () => toSettings(draft),
40
+ validate: () => validateSettings(draft, t.validation, { uploading }),
41
+ });
42
+
43
+ try {
44
+ await app.videoPlayer.load();
45
+ const upload = ui.uploader();
46
+ upload.setAttribute('data-ec-quiet', '');
47
+ app.videoPlayer.connect(upload, { resourceId: draft.video?.resource_id });
48
+ upload.addEventListener('progress', () => (uploading = true));
49
+ upload.addEventListener('complete', e => {
50
+ uploading = false;
51
+ const resourceId = e.detail?.resourceId;
52
+ if (typeof resourceId !== 'string' || !resourceId) return;
53
+ draft.video = { resource_id: resourceId };
54
+ paintEmpty();
55
+ // 영상이 바뀐 것은 입력 이벤트가 없으므로 직접 '저장하지 않은 변경'으로 표시한다
56
+ save.markDirty();
57
+ });
58
+ upload.addEventListener('cancel', () => (uploading = false));
59
+ upload.addEventListener('error', () => (uploading = false));
60
+ body.replaceChildren(upload, info);
61
+ } catch (e) {
62
+ // 플랫폼이 플레이어 주소를 넘기지 않았거나(ecdk dev · 반영 전 LXP) embed.js를 불러오지 못함
63
+ const message =
64
+ e?.code === 'video_player_unavailable'
65
+ ? texts.unavailable.noPlayer
66
+ : texts.unavailable.loadFailed;
67
+ body.replaceChildren(unavailable(message, 'edit'), info);
68
+ }
69
+ paintEmpty();
@@ -0,0 +1,46 @@
1
+ // 학생 화면. 영상을 화면 가득 놓고, 학습 완료 기준이 되면 키트가 한 번 제출합니다 (버튼 없음, useAutoSubmit).
2
+ // 재생 · 컨트롤 · 인코딩 중 · 재생 오류 화면은 Elice 비디오 플레이어(<elice-video>, embed.js)가 맡습니다.
3
+ // 기준 (settings.completion.mode): 'ended' 끝까지 보면(플레이어 ended) · 'open' 화면을 열면.
4
+ // 플레이어는 재생 위치 · 시청 비율을 알려 주지 않아(이벤트 ready · ended · error뿐) 'N% 시청'은 아직 없습니다.
5
+ // 튜터링(보기 전용)은 제출하지 않고, 다시 열었을 때 이미 낸 제출이 있으면 다시 내지 않습니다 (키트가 판단).
6
+ // 완료 정책은 LXP 자료 편집 화면의 '설정'에서 '제출 시 학습 완료'(on_submit)로 둡니다: 제출이 곧 학습 완료.
7
+ import { start } from '../lib/elice-content.js';
8
+ import { part } from '../core/dom.js';
9
+ import { normalizeSettings } from '../core/settings.js';
10
+ import { loading, player, unavailable } from '../ui/templates/player.js';
11
+ import { texts } from '../ui/texts.js';
12
+
13
+ const root = document.getElementById('app');
14
+ document.title = texts.page.learn;
15
+ // 플레이어를 화면 폭 가득 (V3)
16
+ document.body.classList.add('vd-page');
17
+ root.replaceChildren(loading('learn'));
18
+ const app = await start({ screen: 'learn' });
19
+ const settings = normalizeSettings(app.content);
20
+
21
+ // 편집 화면에서 아직 영상을 저장하지 않았으면 안내만 보인다
22
+ if (app.hasContent && settings.video) await show();
23
+ else root.replaceChildren(app.emptyState());
24
+
25
+ async function show() {
26
+ const { mode } = settings.completion;
27
+ // 제출하는 답: 무엇으로 완료했는지. 채점하지 않고 기록만 남는다. 화면에는 보이지 않는다 (V3)
28
+ const auto = app.useAutoSubmit({ getAnswer: () => ({ completedBy: mode }) });
29
+ if (mode === 'open') void auto.submit();
30
+ try {
31
+ await app.videoPlayer.load();
32
+ } catch (e) {
33
+ const message =
34
+ e?.code === 'video_player_unavailable'
35
+ ? texts.unavailable.noPlayer
36
+ : texts.unavailable.loadFailed;
37
+ root.replaceChildren(unavailable(message, 'learn'));
38
+ return;
39
+ }
40
+ const view = player();
41
+ const video = part(view, 'video');
42
+ app.videoPlayer.connect(video, { resourceId: settings.video.resource_id });
43
+ // ended는 다시 볼 때마다 오지만 키트가 한 번만 낸다
44
+ if (mode === 'ended') video.addEventListener('ended', () => void auto.submit());
45
+ root.replaceChildren(view);
46
+ }
@@ -0,0 +1,112 @@
1
+ /* 영상 화면 스타일 (디자인 V3). 이 자료에만 있는 것(플레이어 자리 · 올리기 자리)만 둡니다.
2
+ 플레이어 안의 모양(컨트롤 · 올리기 칸 · 진행률 · 인코딩 중)은 Elice 비디오 플레이어(iframe)가 그려 여기서 바꿀 수 없습니다.
3
+ 여기서는 태그(<elice-video> · <elice-video-upload>)의 크기 · 모서리만 정합니다. 색은 ui/theme.css의 --vd-* (EDS 토큰)만 */
4
+
5
+ /* ---------- 학생 화면: 플레이어 ---------- */
6
+ /* 플레이어가 iframe 화면(뷰포트)을 꽉 채워 스크롤 없이 늘 영상 전체와 컨트롤 줄이 보인다 */
7
+ html:has(body.vd-page),
8
+ body.vd-page {
9
+ height: 100%;
10
+ overflow: hidden;
11
+ }
12
+ body.vd-page {
13
+ padding: 0;
14
+ }
15
+ body.vd-page main {
16
+ max-width: none;
17
+ height: 100vh;
18
+ height: 100dvh;
19
+ gap: 0;
20
+ }
21
+ /* 빈 안내는 가운데 여백을 두고 */
22
+ body.vd-page .ec-empty,
23
+ body.vd-page main > .ec-muted {
24
+ margin: 16px;
25
+ }
26
+ /* 제출 실패 알림(키트 useAutoSubmit 줄)은 흐름에 끼우지 않고 영상 위 맨 위에 겹쳐 스크롤이 생기지 않게 */
27
+ body.vd-page .ec-error {
28
+ position: fixed;
29
+ top: 8px;
30
+ left: 50%;
31
+ z-index: 5;
32
+ max-width: calc(100% - 32px);
33
+ margin: 0;
34
+ padding: 6px 12px;
35
+ transform: translateX(-50%);
36
+ border-radius: 8px;
37
+ background: var(--vd-scrim);
38
+ color: var(--vd-on-player);
39
+ }
40
+ body.vd-page .ec-error:empty {
41
+ display: none;
42
+ }
43
+ .vd-player {
44
+ height: 100%;
45
+ background: var(--vd-player-bg);
46
+ }
47
+ /* 플레이어 기본 크기(폭 100% · 16:9)를 화면 가득으로: 영상 비율은 플레이어가 contain으로 맞춘다 */
48
+ elice-video.vd-video {
49
+ width: 100%;
50
+ height: 100%;
51
+ aspect-ratio: auto;
52
+ border-radius: var(--vd-player-radius);
53
+ }
54
+
55
+ /* 플레이어를 띄울 수 없을 때 영상 자리 안내 (아이콘 + 두 줄) */
56
+ .vd-unavailable {
57
+ display: flex;
58
+ flex-direction: column;
59
+ align-items: center;
60
+ justify-content: center;
61
+ gap: 8px;
62
+ padding: 24px;
63
+ background: var(--vd-player-bg);
64
+ color: var(--vd-on-player);
65
+ text-align: center;
66
+ }
67
+ .vd-unavailable[data-layout='learn'] {
68
+ height: 100%;
69
+ }
70
+ .vd-unavailable[data-layout='edit'] {
71
+ width: 100%;
72
+ aspect-ratio: 16 / 9;
73
+ border-radius: var(--vd-preview-radius);
74
+ }
75
+ .vd-unavailable p {
76
+ display: flex;
77
+ flex-direction: column;
78
+ gap: 2px;
79
+ margin: 0;
80
+ font-size: 14px;
81
+ }
82
+ .vd-unavailable span {
83
+ color: var(--vd-on-player-muted);
84
+ }
85
+
86
+ /* ---------- 편집 화면 (V3 내용 편집): 키트 body.ec-edit-page 위에 영상만의 것 ---------- */
87
+ /* 바깥 여백은 키트 기본 그대로, 단은 화면 폭 가득(키트 기본 720px 대신), 구역 사이만 24px.
88
+ 바탕은 키트의 회색 대신 흰색(카드와 같은 paper): 화면 전체가 올리기 칸 · 미리보기 한 칸이라 카드로 나누지 않는다.
89
+ 저장 버튼도 단을 따라 화면 오른쪽 끝에 둔다 */
90
+ :root:has(body.ec-edit-page) {
91
+ --ec-edit-page-bg: var(--ec-edit-card);
92
+ }
93
+ body.ec-edit-page main {
94
+ max-width: none;
95
+ gap: 24px;
96
+ }
97
+ body.ec-edit-page .ec-submitbar {
98
+ padding-inline: 16px;
99
+ }
100
+ /* 구역 이름 (비디오 파일 *): 키트 .ec-field-label 크기 그대로, h2 기본 여백만 뺌 */
101
+ .ve-section > h2.ec-field-label {
102
+ margin: 0;
103
+ }
104
+ /* 영상을 올린 뒤에는 '비디오 파일' 라벨 없이 미리보기만 (V3) */
105
+ .ve-section[data-empty='false'] > h2 {
106
+ display: none;
107
+ }
108
+ /* 올리기 · 미리보기 태그: 단 폭 가득, 모서리 10px (연주님 수정본). 높이는 플레이어가 올리기 상태마다 맞춤 (resize, 디자인 v2) */
109
+ elice-video-upload.ve-uploader {
110
+ width: 100%;
111
+ border-radius: var(--vd-preview-radius);
112
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "video",
3
+ "version": "2.1.2",
4
+ "title": "동영상",
5
+ "description": "동영상 파일을 올립니다",
6
+ "catalog": {
7
+ "category": "theory",
8
+ "icon": "video",
9
+ "sortOrder": 20,
10
+ "thumbnailUrl": "https://static.elice.io/elice-material/custom/templates/video/thumbnail.png",
11
+ "previewUrl": "https://static.elice.io/elice-material/custom/templates/video/preview.png"
12
+ }
13
+ }
@@ -0,0 +1,26 @@
1
+ // 내용 편집 화면 마크업 (디자인 V3 "내용 편집"). 바탕 · 버튼 · 안내 줄 · 저장 바는 키트 클래스(.ec-*,
2
+ // lib/elice-content.css "편집 화면")를 쓰고, 이 자료에만 있는 것만 ve-* (styles.css)입니다.
3
+ // 올리기 칸 · 진행률 · 취소 · 미리보기 · 인코딩 중 · '동영상 교체' · 오류 문구는 Elice 비디오 플레이어(<elice-video-upload>)
4
+ // 안(iframe)에 있어 여기서 그리지 않습니다.
5
+ // 클래스 · 배치는 바꿔도 되지만, 남겨야 하는 data-role (동작이 찾음): body · uploader · info
6
+ // data-ec-quiet가 붙은 곳은 바뀌어도 "저장하지 않은 변경"으로 보지 않습니다 (키트 useSave).
7
+ import { html } from '../../core/dom.js';
8
+ import { texts } from '../texts.js';
9
+
10
+ const t = texts.edit;
11
+
12
+ /** 구역: 이름(필수 *, 키트 .ec-field-label) + 안 내용 */
13
+ export const section = ({ name, title, required = false }) => html`
14
+ <section class="ec-section ve-section" data-section="${name}">
15
+ <h2 class="ec-field-label">
16
+ ${title}${required
17
+ ? html`<span class="ec-required" aria-hidden="true"> ${t.required}</span>`
18
+ : null}
19
+ </h2>
20
+ <div class="ec-section ve-body" data-role="body"></div>
21
+ </section>
22
+ `;
23
+
24
+ /** 플레이어의 올리기 태그. 크기는 이 태그의 CSS로 정한다 (styles.css .ve-uploader) */
25
+ export const uploader = () =>
26
+ html`<elice-video-upload class="ve-uploader" data-role="uploader"></elice-video-upload>`;
@@ -0,0 +1,51 @@
1
+ // 학생 화면 · 공통 마크업. 재생 컨트롤 · 인코딩 중 · 재생 오류 화면은 Elice 비디오 플레이어(<elice-video>) 안(iframe)에 있어
2
+ // 여기서 그리지 않습니다. 남겨야 하는 data-role: video
3
+ import { html } from '../../core/dom.js';
4
+ import { texts } from '../texts.js';
5
+
6
+ /** 불러오는 동안 (키트 스켈레톤과 같은 모양) */
7
+ export const loading = layout =>
8
+ layout === 'edit'
9
+ ? html`<div class="ec-sk ec-sk-edit" role="status">
10
+ <span class="ec-visually-hidden">${texts.page.loading}</span>
11
+ <div class="ec-sk-bar ec-sk-shimmer"></div>
12
+ <div class="ec-sk-media ec-sk-shimmer"></div>
13
+ </div>`
14
+ : html`<div class="ec-sk ec-sk-learn ec-sk-shimmer" role="status">
15
+ <span class="ec-visually-hidden">${texts.page.loading}</span>
16
+ </div>`;
17
+
18
+ /** 학생 화면 플레이어 태그 (화면 가득) */
19
+ export const player = () => html`
20
+ <div class="vd-player">
21
+ <elice-video
22
+ class="vd-video"
23
+ data-role="video"
24
+ aria-label="${texts.learn.videoLabel}"
25
+ ></elice-video>
26
+ </div>
27
+ `;
28
+
29
+ /**
30
+ * 플레이어를 띄울 수 없을 때 영상 자리에 두는 안내 (두 줄). 화면 읽기 프로그램에는 한 문장으로 읽힌다
31
+ * @param {{ title: string, detail: string }} message
32
+ * @param {'learn' | 'edit'} layout
33
+ */
34
+ export const unavailable = ({ title, detail }, layout) => html`
35
+ <div class="vd-unavailable" data-layout="${layout}" role="status" data-ec-quiet>
36
+ <svg viewBox="0 0 24 24" width="28" height="28" aria-hidden="true" focusable="false">
37
+ <rect
38
+ x="3"
39
+ y="5"
40
+ width="18"
41
+ height="14"
42
+ rx="2"
43
+ fill="none"
44
+ stroke="currentColor"
45
+ stroke-width="1.8"
46
+ />
47
+ <path d="M10 9.5v5l4.5-2.5z" fill="currentColor" />
48
+ </svg>
49
+ <p><strong>${title}</strong> <span>${detail}</span></p>
50
+ </div>
51
+ `;
@@ -0,0 +1,3 @@
1
+ // ui/texts.js 타입 (테스트용). 문구는 texts.js에서만 고치면 됩니다.
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
3
+ export declare const texts: Record<string, any>;
@@ -0,0 +1,50 @@
1
+ // 영상 화면에 보이는 문구 모음 (학생 · 편집). 문구를 바꾸려면 여기만 고치면 됩니다.
2
+ // 올리기 칸 · 진행률 · 취소 · 인코딩 중 · 재생 오류 · '동영상 교체' 문구는 Elice 비디오 플레이어가 그리므로 여기에 없습니다
3
+ // (플레이어 locale을 따름).
4
+
5
+ export const texts = {
6
+ /** 브라우저 탭 제목 · 불러오는 동안 보이는 문구 (화면이 넣음. HTML의 같은 글은 스크립트가 돌기 전 대비용) */
7
+ page: {
8
+ learn: '학생 화면',
9
+ edit: '내용 편집',
10
+ loading: '불러오는 중…',
11
+ },
12
+
13
+ /** 플레이어를 띄울 수 없을 때 (영상 자리에 두 줄: title 굵게 · detail 흐리게) */
14
+ unavailable: {
15
+ /** 플랫폼이 플레이어 주소(videoPlayerUrl)를 넘기지 않음: ecdk dev · 아직 반영 전 LXP */
16
+ noPlayer: {
17
+ title: '동영상을 불러올 수 없습니다.',
18
+ detail: '이 환경에서는 동영상 플레이어를 쓸 수 없어요.',
19
+ },
20
+ /** embed.js를 불러오지 못함 (네트워크 · 차단) */
21
+ loadFailed: {
22
+ title: '동영상 플레이어를 불러오지 못했어요.',
23
+ detail: '페이지를 새로고침해 주세요.',
24
+ },
25
+ },
26
+
27
+ /** 학생 화면 */
28
+ learn: {
29
+ /** 플레이어 iframe 이름 앞에 (화면 읽기 프로그램) */
30
+ videoLabel: '영상',
31
+ },
32
+
33
+ /** 내용 편집 화면 */
34
+ edit: {
35
+ required: '*',
36
+ video: '비디오 파일',
37
+ /**
38
+ * 올리기 전 안내 줄 (ⓘ). 받는 형식 · 최대 크기는 플레이어(디자인 v2)가 올리기 칸 안에 직접 쓰므로 여기에 두지 않습니다
39
+ */
40
+ savable: '올리기가 끝나면 인코딩 중에도 저장할 수 있어요.',
41
+
42
+ /** 저장 버튼 (키트 useSave label) */
43
+ save: '초안으로 저장',
44
+
45
+ validation: {
46
+ videoRequired: '비디오 파일을 올려 주세요.',
47
+ uploading: '동영상을 올리는 중이에요. 끝난 뒤 저장해 주세요.',
48
+ },
49
+ },
50
+ };
@@ -0,0 +1,14 @@
1
+ /* 영상 테마. 영상만의 색 · 모서리를 여기서 바꿉니다 (styles.css가 이 값을 씁니다).
2
+ 편집 화면의 바탕 · 버튼 · 안내 줄 · 저장 바는 키트(lib/elice-content.css "편집 화면", body.ec-edit-page)가 그리고,
3
+ 플레이어 안(컨트롤 · 올리기 칸 · 인코딩 중)은 Elice 비디오 플레이어가 그립니다. 값은 EDS 토큰(lib/elice-tokens.css)만 씁니다. */
4
+ :root {
5
+ /* 플레이어 자리 바탕 (영상 위: 두 테마 모두 검정) · 안내 글자 */
6
+ --vd-player-bg: var(--eds-common-black);
7
+ --vd-on-player: var(--eds-common-white);
8
+ --vd-on-player-muted: color-mix(in srgb, var(--eds-common-white) 70%, transparent);
9
+ /* 학생 화면 플레이어는 iframe을 꽉 채우므로 모서리 없음, 편집 화면 올리기 · 미리보기는 10px (연주님 수정본) */
10
+ --vd-player-radius: 0;
11
+ --vd-preview-radius: 10px;
12
+ /* 제출 실패 알림 줄 바탕 (영상 위) */
13
+ --vd-scrim: color-mix(in srgb, var(--eds-common-black) 65%, transparent);
14
+ }