@wp-operations/wp-ops 0.3.0 → 0.4.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 +6 -3
- package/package.json +6 -2
- package/src/commands/platform.js +58 -2
- package/src/commands/start.js +2 -2
- package/src/main.js +19 -8
- package/wp-operations/CHANGELOG.md +14 -0
- package/wp-operations/README.md +39 -0
- package/wp-operations/agents/builder/AGENT.md +15 -0
- package/wp-operations/assets/admin.css +631 -0
- package/wp-operations/assets/admin.js +614 -0
- package/wp-operations/assets/app/app.css +1 -0
- package/wp-operations/assets/app/app.js +70 -0
- package/wp-operations/assets/app/fonts/inter-medium.woff +0 -0
- package/wp-operations/assets/app/fonts/inter-regular.woff +0 -0
- package/wp-operations/assets/app/fonts/inter-semibold.woff +0 -0
- package/wp-operations/assets/app/login.css +42 -0
- package/wp-operations/assets/brand/icon.svg +20 -0
- package/wp-operations/assets/brand/mark.svg +19 -0
- package/wp-operations/assets/editors/audiobook.css +311 -0
- package/wp-operations/assets/editors/audiofile.css +286 -0
- package/wp-operations/assets/editors/course.css +701 -0
- package/wp-operations/assets/editors/course.js +698 -0
- package/wp-operations/assets/editors/faq.css +258 -0
- package/wp-operations/assets/editors/faq.js +196 -0
- package/wp-operations/assets/editors/interactive.css +220 -0
- package/wp-operations/assets/editors/interactive.js +378 -0
- package/wp-operations/assets/editors/media-sources.css +3 -0
- package/wp-operations/assets/editors/media-sources.js +40 -0
- package/wp-operations/assets/editors/open-media.css +114 -0
- package/wp-operations/assets/editors/open-media.js +182 -0
- package/wp-operations/assets/editors/thumbnails.css +335 -0
- package/wp-operations/assets/editors/thumbnails.js +447 -0
- package/wp-operations/assets/editors/translator.css +818 -0
- package/wp-operations/functions.php +24 -0
- package/wp-operations/index.php +14 -0
- package/wp-operations/platform.json +1836 -0
- package/wp-operations/skills/ai-development-guardrails/SKILL.md +49 -0
- package/wp-operations/skills/gutenberg-reference/SKILL.md +45 -0
- package/wp-operations/skills/js-tooling-for-themes/SKILL.md +51 -0
- package/wp-operations/skills/tailwind-for-wp/SKILL.md +62 -0
- package/wp-operations/skills/wp-clean-classic-themes/SKILL.md +112 -0
- package/wp-operations/skills/wp-psr4-plugins/SKILL.md +2043 -0
- package/wp-operations/skills/wp-security/SKILL.md +90 -0
- package/wp-operations/src/Admin.php +78 -0
- package/wp-operations/src/App/Access.php +57 -0
- package/wp-operations/src/App/Admin.php +442 -0
- package/wp-operations/src/App/App.php +157 -0
- package/wp-operations/src/App/Apps.php +379 -0
- package/wp-operations/src/App/Bundle.php +111 -0
- package/wp-operations/src/App/Contents.php +676 -0
- package/wp-operations/src/App/Engine.php +554 -0
- package/wp-operations/src/App/Github.php +308 -0
- package/wp-operations/src/App/Module.php +23 -0
- package/wp-operations/src/App/Ops.php +470 -0
- package/wp-operations/src/App/Packages.php +289 -0
- package/wp-operations/src/App/Rest.php +539 -0
- package/wp-operations/src/App/Sandboxes.php +206 -0
- package/wp-operations/src/App/Store.php +104 -0
- package/wp-operations/src/App/Usage.php +268 -0
- package/wp-operations/src/Config.php +249 -0
- package/wp-operations/src/Content/Editor.php +223 -0
- package/wp-operations/src/Content/Fields.php +681 -0
- package/wp-operations/src/Content/Scoring.php +253 -0
- package/wp-operations/src/Content/Structure.php +293 -0
- package/wp-operations/src/Content/Types.php +150 -0
- package/wp-operations/src/Content/Uploads.php +50 -0
- package/wp-operations/src/Editors/AudiobookAuthor.php +61 -0
- package/wp-operations/src/Editors/AudiobookChapters.php +632 -0
- package/wp-operations/src/Editors/AudiobookCover.php +235 -0
- package/wp-operations/src/Editors/Audiofile.php +462 -0
- package/wp-operations/src/Editors/Course.php +784 -0
- package/wp-operations/src/Editors/Ebook.php +242 -0
- package/wp-operations/src/Editors/Editors.php +44 -0
- package/wp-operations/src/Editors/Faq.php +237 -0
- package/wp-operations/src/Editors/Files.php +139 -0
- package/wp-operations/src/Editors/Interactive/Builder.php +103 -0
- package/wp-operations/src/Editors/Interactive/Card.php +76 -0
- package/wp-operations/src/Editors/Interactive/Editor.php +42 -0
- package/wp-operations/src/Editors/Interactive/Field.php +272 -0
- package/wp-operations/src/Editors/Interactive/Map.php +84 -0
- package/wp-operations/src/Editors/Interactive/Models.php +227 -0
- package/wp-operations/src/Editors/Interactive/Report.php +59 -0
- package/wp-operations/src/Editors/Interactive/Save.php +323 -0
- package/wp-operations/src/Editors/Interactive/Scoring.php +244 -0
- package/wp-operations/src/Editors/Interactive/Structure.php +195 -0
- package/wp-operations/src/Editors/Legal.php +235 -0
- package/wp-operations/src/Editors/OpenMedia.php +140 -0
- package/wp-operations/src/Editors/OriginalTitle.php +112 -0
- package/wp-operations/src/Editors/Sources.php +28 -0
- package/wp-operations/src/Editors/Thumbnails/Admin.php +306 -0
- package/wp-operations/src/Editors/Thumbnails/Ajax.php +163 -0
- package/wp-operations/src/Editors/Thumbnails/Box.php +188 -0
- package/wp-operations/src/Editors/Thumbnails/Storage.php +228 -0
- package/wp-operations/src/Editors/Translator/Admin.php +913 -0
- package/wp-operations/src/Editors/Translator/Api.php +63 -0
- package/wp-operations/src/Editors/Translator/Bar.php +83 -0
- package/wp-operations/src/Editors/Translator/Fields.php +273 -0
- package/wp-operations/src/Editors/Translator/Storage.php +131 -0
- package/wp-operations/src/Editors/Translator/Thumbnail.php +215 -0
- package/wp-operations/src/Identity.php +104 -0
- package/wp-operations/src/Languages.php +45 -0
- package/wp-operations/src/Lockdown.php +85 -0
- package/wp-operations/src/Modules/Apps/Admin.php +472 -0
- package/wp-operations/src/Modules/Apps/Api.php +193 -0
- package/wp-operations/src/Modules/Apps/Apps.php +279 -0
- package/wp-operations/src/Modules/Apps/Formatters.php +478 -0
- package/wp-operations/src/Modules/Apps/Schemes.php +248 -0
- package/wp-operations/src/Modules/Apps/Table.php +101 -0
- package/wp-operations/src/Modules/Thumbnails.php +68 -0
- package/wp-operations/src/Modules/Translations.php +133 -0
- package/wp-operations/src/Platform.php +59 -0
- package/wp-operations/src/Setup.php +273 -0
- package/wp-operations/src/Status.php +99 -0
- package/wp-operations/src/Storage/Client.php +168 -0
- package/wp-operations/src/Storage/Offload.php +120 -0
- package/wp-operations/src/Storage/Settings.php +166 -0
- package/wp-operations/src/Storage/Storage.php +35 -0
- package/wp-operations/src/Updates.php +151 -0
- package/wp-operations/style.css +11 -0
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--lms-primary: #2271b1;
|
|
3
|
+
--lms-danger: #d63638;
|
|
4
|
+
--lms-success: #00a32a;
|
|
5
|
+
--lms-border: #dcdcde;
|
|
6
|
+
--lms-bg: #f6f7f7;
|
|
7
|
+
--lms-bg-dark: #1d2327;
|
|
8
|
+
--lms-text: #1d2327;
|
|
9
|
+
--lms-muted: #787c82;
|
|
10
|
+
--lms-radius: 4px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.course-builder {
|
|
14
|
+
margin: -6px -12px 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.course-tabs {
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: 0;
|
|
20
|
+
list-style: none;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
border-bottom: 2px solid var(--lms-border);
|
|
24
|
+
background: var(--lms-bg);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.course-tab {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 6px;
|
|
31
|
+
padding: 12px 20px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
color: var(--lms-muted);
|
|
36
|
+
border-bottom: 2px solid transparent;
|
|
37
|
+
margin-bottom: -2px;
|
|
38
|
+
transition: color .15s, border-color .15s;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.course-tab:hover {
|
|
42
|
+
color: var(--lms-primary);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.course-tab.active {
|
|
46
|
+
color: var(--lms-primary);
|
|
47
|
+
border-bottom-color: var(--lms-primary);
|
|
48
|
+
background: #fff;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.course-tab-panel {
|
|
52
|
+
display: none;
|
|
53
|
+
padding: 20px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.course-tab-panel.active {
|
|
57
|
+
display: block;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.course-field-group {
|
|
61
|
+
margin-bottom: 16px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.course-label {
|
|
65
|
+
display: block;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
text-transform: uppercase;
|
|
69
|
+
letter-spacing: .5px;
|
|
70
|
+
color: var(--lms-muted);
|
|
71
|
+
margin-bottom: 6px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.course-field-row {
|
|
75
|
+
display: flex;
|
|
76
|
+
gap: 12px;
|
|
77
|
+
align-items: flex-start;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
margin-bottom: 12px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.course-field-row .course-label.course-full-width {
|
|
83
|
+
flex: 0 0 100%;
|
|
84
|
+
margin-bottom: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.course-field-sm { flex: 0 0 180px; }
|
|
88
|
+
.course-field-grow { flex: 1 1 200px; }
|
|
89
|
+
.course-field-time { flex: 0 0 90px; position: relative; }
|
|
90
|
+
|
|
91
|
+
.course-input,
|
|
92
|
+
.course-select {
|
|
93
|
+
width: 100%;
|
|
94
|
+
padding: 7px 10px;
|
|
95
|
+
border: 1px solid var(--lms-border);
|
|
96
|
+
border-radius: var(--lms-radius);
|
|
97
|
+
font-size: 13px;
|
|
98
|
+
color: var(--lms-text);
|
|
99
|
+
background: #fff;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
transition: border-color .15s;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.course-input:focus,
|
|
105
|
+
.course-select:focus {
|
|
106
|
+
border-color: var(--lms-primary);
|
|
107
|
+
outline: none;
|
|
108
|
+
box-shadow: 0 0 0 1px var(--lms-primary);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.course-time-input {
|
|
112
|
+
text-align: center;
|
|
113
|
+
padding: 7px 4px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.course-time-label {
|
|
117
|
+
display: block;
|
|
118
|
+
text-align: center;
|
|
119
|
+
font-size: 10px;
|
|
120
|
+
color: var(--lms-muted);
|
|
121
|
+
margin-top: 2px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.course-video-box {
|
|
125
|
+
background: var(--lms-bg);
|
|
126
|
+
border: 1px solid var(--lms-border);
|
|
127
|
+
border-radius: var(--lms-radius);
|
|
128
|
+
padding: 14px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.course-lang-video-tabs {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-wrap: wrap;
|
|
134
|
+
gap: 2px;
|
|
135
|
+
margin-bottom: 0;
|
|
136
|
+
border-bottom: 2px solid var(--lms-border);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.course-lang-video-tab {
|
|
140
|
+
padding: 6px 14px;
|
|
141
|
+
border: 1px solid var(--lms-border);
|
|
142
|
+
border-bottom: none;
|
|
143
|
+
border-radius: 4px 4px 0 0;
|
|
144
|
+
background: var(--lms-primary);;
|
|
145
|
+
font-size: 12px;
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
color: var(--lms-bg);
|
|
149
|
+
transition: all .15s;
|
|
150
|
+
margin-bottom: -2px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.course-lang-video-tab:hover { color: var(--lms-primary); background: #fff; }
|
|
154
|
+
|
|
155
|
+
.course-lang-video-tab.active {
|
|
156
|
+
background: var(--lms-bg);;
|
|
157
|
+
color: var(--lms-primary);
|
|
158
|
+
border-color: var(--lms-border);
|
|
159
|
+
border-bottom-color: #fff;
|
|
160
|
+
z-index: 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.course-lang-video-panel {
|
|
164
|
+
display: none;
|
|
165
|
+
border-top: none;
|
|
166
|
+
border-radius: 0 0 4px 4px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.course-lang-video-panel.active { display: block; }
|
|
170
|
+
|
|
171
|
+
.course-video-tabs {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-wrap: wrap;
|
|
174
|
+
gap: 4px;
|
|
175
|
+
margin-bottom: 12px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.course-video-tab {
|
|
179
|
+
padding: 5px 12px;
|
|
180
|
+
border: 1px solid var(--lms-border);
|
|
181
|
+
border-radius: 20px;
|
|
182
|
+
background: #fff;
|
|
183
|
+
font-size: 12px;
|
|
184
|
+
font-weight: 500;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
color: var(--lms-muted);
|
|
187
|
+
transition: all .15s;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.course-video-tab:hover {
|
|
191
|
+
border-color: var(--lms-primary);
|
|
192
|
+
color: var(--lms-primary);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.course-video-tab.active {
|
|
196
|
+
background: var(--lms-primary);
|
|
197
|
+
border-color: var(--lms-primary);
|
|
198
|
+
color: #fff;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.course-video-input-wrap {
|
|
202
|
+
display: none;
|
|
203
|
+
margin-bottom: 10px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.course-video-input-wrap.active {
|
|
207
|
+
display: block;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.course-embed-textarea {
|
|
211
|
+
font-family: monospace;
|
|
212
|
+
font-size: 12px;
|
|
213
|
+
resize: vertical;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.course-field-hint {
|
|
217
|
+
margin: 4px 0 0;
|
|
218
|
+
font-size: 11px;
|
|
219
|
+
color: var(--lms-muted);
|
|
220
|
+
font-style: italic;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.course-video-error {
|
|
224
|
+
display: block;
|
|
225
|
+
margin-top: 4px;
|
|
226
|
+
font-size: 11px;
|
|
227
|
+
color: var(--lms-danger);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.course-input.is-invalid {
|
|
231
|
+
border-color: var(--lms-danger);
|
|
232
|
+
box-shadow: 0 0 0 1px var(--lms-danger);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.course-input.is-valid {
|
|
236
|
+
border-color: var(--lms-success);
|
|
237
|
+
box-shadow: 0 0 0 1px var(--lms-success);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.course-video-preview-wrap {
|
|
241
|
+
margin: 10px 0;
|
|
242
|
+
border-radius: var(--lms-radius);
|
|
243
|
+
overflow: hidden;
|
|
244
|
+
background: #000;
|
|
245
|
+
position: relative;
|
|
246
|
+
padding-top: 56.25%;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.course-video-preview-inner {
|
|
250
|
+
position: absolute;
|
|
251
|
+
inset: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.course-video-preview-inner iframe,
|
|
255
|
+
.course-video-preview-inner video {
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: 100%;
|
|
258
|
+
border: none;
|
|
259
|
+
display: block;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.course-shortcode-note {
|
|
263
|
+
color: var(--lms-muted);
|
|
264
|
+
font-style: italic;
|
|
265
|
+
font-size: 12px;
|
|
266
|
+
padding: 16px;
|
|
267
|
+
margin: 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.course-video-duration-display {
|
|
271
|
+
display: flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
gap: 6px;
|
|
274
|
+
margin-top: 8px;
|
|
275
|
+
padding: 6px 10px;
|
|
276
|
+
background: #e8f5e9;
|
|
277
|
+
border: 1px solid #a5d6a7;
|
|
278
|
+
border-radius: var(--lms-radius);
|
|
279
|
+
font-size: 12px;
|
|
280
|
+
font-weight: 600;
|
|
281
|
+
color: #2e7d32;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.course-video-duration-display .dashicons {
|
|
285
|
+
font-size: 14px;
|
|
286
|
+
width: 14px;
|
|
287
|
+
height: 14px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.course-topics-list,
|
|
291
|
+
.course-lessons-list {
|
|
292
|
+
margin-bottom: 10px;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.course-topic-item {
|
|
296
|
+
background: #fff;
|
|
297
|
+
border: 1px solid var(--lms-border);
|
|
298
|
+
border-radius: var(--lms-radius);
|
|
299
|
+
margin-bottom: 10px;
|
|
300
|
+
overflow: hidden;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.course-topic-header {
|
|
304
|
+
display: flex;
|
|
305
|
+
align-items: center;
|
|
306
|
+
gap: 8px;
|
|
307
|
+
padding: 10px 14px;
|
|
308
|
+
background: var(--lms-bg);
|
|
309
|
+
border-bottom: 1px solid var(--lms-border);
|
|
310
|
+
cursor: grab;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.course-topic-header:active { cursor: grabbing; }
|
|
314
|
+
|
|
315
|
+
.course-topic-title {
|
|
316
|
+
flex: 1;
|
|
317
|
+
font-weight: 600;
|
|
318
|
+
font-size: 13px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.course-topic-actions {
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
gap: 4px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.course-topic-edit-form {
|
|
328
|
+
padding: 14px;
|
|
329
|
+
background: #fafafa;
|
|
330
|
+
border-bottom: 1px solid var(--lms-border);
|
|
331
|
+
display: flex;
|
|
332
|
+
flex-direction: column;
|
|
333
|
+
gap: 20px;
|
|
334
|
+
align-items: start;
|
|
335
|
+
|
|
336
|
+
.course-input.course-topic-name-input {
|
|
337
|
+
border: 1px solid var(--lms-border);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.course-topic-footer {
|
|
342
|
+
padding: 8px 14px;
|
|
343
|
+
background: #fdfdfd;
|
|
344
|
+
border-top: 1px solid var(--lms-border);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.course-add-topic,
|
|
348
|
+
.course-topic-footer .course-add-lesson {
|
|
349
|
+
display: inline-flex !important;
|
|
350
|
+
align-items: center;
|
|
351
|
+
gap: 4px;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.course-add-topic .dashicons,
|
|
355
|
+
.course-topic-footer .course-add-lesson .dashicons {
|
|
356
|
+
font-size: 16px;
|
|
357
|
+
width: 16px;
|
|
358
|
+
height: 16px;
|
|
359
|
+
line-height: 1;
|
|
360
|
+
margin-top: 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.course-lesson-item {
|
|
364
|
+
display: flex;
|
|
365
|
+
align-items: center;
|
|
366
|
+
gap: 8px;
|
|
367
|
+
padding: 8px 14px;
|
|
368
|
+
border-bottom: 1px solid var(--lms-border);
|
|
369
|
+
background: #fff;
|
|
370
|
+
font-size: 13px;
|
|
371
|
+
cursor: grab;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.course-lesson-item:last-child { border-bottom: none; }
|
|
375
|
+
.course-lesson-item:active { cursor: grabbing; }
|
|
376
|
+
|
|
377
|
+
.course-lesson-title { flex: 1; }
|
|
378
|
+
|
|
379
|
+
.course-lesson-actions {
|
|
380
|
+
display: flex;
|
|
381
|
+
gap: 4px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.course-drag-handle {
|
|
385
|
+
cursor: grab;
|
|
386
|
+
color: var(--lms-muted);
|
|
387
|
+
opacity: .5;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.course-drag-handle:hover { opacity: 1; }
|
|
391
|
+
|
|
392
|
+
.course-btn-icon {
|
|
393
|
+
background: none;
|
|
394
|
+
border: none;
|
|
395
|
+
cursor: pointer;
|
|
396
|
+
padding: 2px 4px;
|
|
397
|
+
border-radius: var(--lms-radius);
|
|
398
|
+
color: var(--lms-muted);
|
|
399
|
+
transition: color .15s, background .15s;
|
|
400
|
+
line-height: 1;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.course-btn-icon:hover { color: var(--lms-primary); background: #e8f0fa; }
|
|
404
|
+
.course-btn-icon.course-delete-topic:hover,
|
|
405
|
+
.course-btn-icon.course-delete-lesson:hover { color: var(--lms-danger); background: #fde8e8; }
|
|
406
|
+
|
|
407
|
+
.course-toggle {
|
|
408
|
+
cursor: pointer;
|
|
409
|
+
color: var(--lms-muted);
|
|
410
|
+
transition: transform .2s;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.course-topic-item.is-open .course-toggle {
|
|
414
|
+
transform: rotate(180deg);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.course-badge {
|
|
418
|
+
display: inline-block;
|
|
419
|
+
padding: 1px 6px;
|
|
420
|
+
border-radius: 10px;
|
|
421
|
+
font-size: 10px;
|
|
422
|
+
font-weight: 600;
|
|
423
|
+
text-transform: uppercase;
|
|
424
|
+
letter-spacing: .5px;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.course-badge-preview {
|
|
428
|
+
background: #e8f0fa;
|
|
429
|
+
color: var(--lms-primary);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.course-topic-item.ui-sortable-helper,
|
|
433
|
+
.course-lesson-item.ui-sortable-helper {
|
|
434
|
+
box-shadow: 0 4px 12px rgba(0,0,0,.12);
|
|
435
|
+
opacity: .95;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.course-sortable-placeholder {
|
|
439
|
+
background: #e8f0fa;
|
|
440
|
+
border: 2px dashed var(--lms-primary);
|
|
441
|
+
border-radius: var(--lms-radius);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.course-modal-overlay {
|
|
445
|
+
position: fixed;
|
|
446
|
+
inset: 0;
|
|
447
|
+
background: rgba(0,0,0,.5);
|
|
448
|
+
z-index: 100000;
|
|
449
|
+
display: flex;
|
|
450
|
+
align-items: center;
|
|
451
|
+
justify-content: center;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.course-modal {
|
|
455
|
+
background: #fff;
|
|
456
|
+
border-radius: 6px;
|
|
457
|
+
width: 720px;
|
|
458
|
+
max-width: 96vw;
|
|
459
|
+
max-height: 90vh;
|
|
460
|
+
display: flex;
|
|
461
|
+
flex-direction: column;
|
|
462
|
+
box-shadow: 0 8px 30px rgba(0,0,0,.25);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.course-modal-header {
|
|
466
|
+
display: flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
justify-content: space-between;
|
|
469
|
+
padding: 14px 20px;
|
|
470
|
+
border-bottom: 1px solid var(--lms-border);
|
|
471
|
+
font-size: 15px;
|
|
472
|
+
font-weight: 600;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.course-modal-close {
|
|
476
|
+
background: none;
|
|
477
|
+
border: none;
|
|
478
|
+
cursor: pointer;
|
|
479
|
+
font-size: 20px;
|
|
480
|
+
color: var(--lms-muted);
|
|
481
|
+
line-height: 1;
|
|
482
|
+
padding: 2px 6px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.course-modal-close:hover { color: var(--lms-danger); }
|
|
486
|
+
|
|
487
|
+
.course-modal-body {
|
|
488
|
+
overflow-y: auto;
|
|
489
|
+
padding: 20px;
|
|
490
|
+
flex: 1;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.course-modal-footer {
|
|
494
|
+
padding: 12px 20px;
|
|
495
|
+
border-top: 1px solid var(--lms-border);
|
|
496
|
+
display: flex;
|
|
497
|
+
justify-content: flex-end;
|
|
498
|
+
gap: 8px;
|
|
499
|
+
background: var(--lms-bg);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.course-attachment-list {
|
|
503
|
+
list-style: none;
|
|
504
|
+
margin: 8px 0;
|
|
505
|
+
padding: 0;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.course-attachment-list li {
|
|
509
|
+
display: flex;
|
|
510
|
+
align-items: center;
|
|
511
|
+
gap: 8px;
|
|
512
|
+
padding: 6px 0;
|
|
513
|
+
border-bottom: 1px solid var(--lms-border);
|
|
514
|
+
font-size: 12px;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.course-attachment-list li:last-child { border-bottom: none; }
|
|
518
|
+
|
|
519
|
+
.course-attachment-list .course-remove-attachment {
|
|
520
|
+
margin-left: auto;
|
|
521
|
+
cursor: pointer;
|
|
522
|
+
color: var(--lms-danger);
|
|
523
|
+
background: none;
|
|
524
|
+
border: none;
|
|
525
|
+
font-size: 16px;
|
|
526
|
+
line-height: 1;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.course-thumb-preview {
|
|
530
|
+
display: block;
|
|
531
|
+
max-width: 120px;
|
|
532
|
+
height: auto;
|
|
533
|
+
border-radius: var(--lms-radius);
|
|
534
|
+
margin-bottom: 8px;
|
|
535
|
+
border: 1px solid var(--lms-border);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.course-spinner {
|
|
539
|
+
display: inline-block;
|
|
540
|
+
width: 14px;
|
|
541
|
+
height: 14px;
|
|
542
|
+
border: 2px solid var(--lms-border);
|
|
543
|
+
border-top-color: var(--lms-primary);
|
|
544
|
+
border-radius: 50%;
|
|
545
|
+
animation: course-spin .6s linear infinite;
|
|
546
|
+
vertical-align: middle;
|
|
547
|
+
margin-right: 4px;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
@keyframes course-spin { to { transform: rotate(360deg); } }
|
|
551
|
+
|
|
552
|
+
.course-term-thumbnail-wrap img { border: 1px solid var(--lms-border); border-radius: var(--lms-radius); }
|
|
553
|
+
|
|
554
|
+
.course-wp-editor-wrap { margin-top: 8px; }
|
|
555
|
+
.course-modal .wp-editor-wrap { max-width: 100%; }
|
|
556
|
+
|
|
557
|
+
.lms-lang-wrapper {
|
|
558
|
+
max-width: 800px;
|
|
559
|
+
background: #fff;
|
|
560
|
+
padding: 20px;
|
|
561
|
+
border-radius: 6px;
|
|
562
|
+
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.lms-lang-table {
|
|
566
|
+
width: 100%;
|
|
567
|
+
border-collapse: collapse;
|
|
568
|
+
margin-bottom: 15px;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.lms-lang-table th {
|
|
572
|
+
text-align: left;
|
|
573
|
+
padding: 10px;
|
|
574
|
+
background: #f6f7f7;
|
|
575
|
+
border-bottom: 1px solid #ddd;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.lms-lang-table td {
|
|
579
|
+
padding: 10px;
|
|
580
|
+
border-bottom: 1px solid #eee;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.lang-input {
|
|
584
|
+
width: 100%;
|
|
585
|
+
padding: 6px 8px;
|
|
586
|
+
border-radius: 4px;
|
|
587
|
+
border: 1px solid #ccd0d4;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.lang-input:focus {
|
|
591
|
+
border-color: #2271b1;
|
|
592
|
+
box-shadow: 0 0 0 1px #2271b1;
|
|
593
|
+
outline: none;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.required {
|
|
597
|
+
color: red;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
#languages-table {
|
|
601
|
+
max-width: 520px;
|
|
602
|
+
width: 100%;
|
|
603
|
+
border-collapse: collapse;
|
|
604
|
+
border-radius: 8px;
|
|
605
|
+
overflow: hidden;
|
|
606
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
|
607
|
+
font-size: 13px;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
#languages-table thead tr {
|
|
611
|
+
background-color: #1d2327;
|
|
612
|
+
color: #fff;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
#languages-table thead th {
|
|
616
|
+
padding: 11px 14px;
|
|
617
|
+
text-align: left;
|
|
618
|
+
font-weight: 600;
|
|
619
|
+
letter-spacing: 0.03em;
|
|
620
|
+
border: none;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
#languages-table thead th .required {
|
|
624
|
+
color: #f86368;
|
|
625
|
+
margin-left: 2px;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
#languages-table tbody tr {
|
|
629
|
+
background-color: #fff;
|
|
630
|
+
transition: background 0.15s ease;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
#languages-table tbody tr:nth-child(even) {
|
|
634
|
+
background-color: #f6f7f7;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
#languages-table tbody tr:hover {
|
|
638
|
+
background-color: #eef5fb;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
#languages-table tbody td {
|
|
642
|
+
padding: 9px 14px;
|
|
643
|
+
border-bottom: 1px solid #e2e4e7;
|
|
644
|
+
vertical-align: middle;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
#languages-table tbody tr:last-child td {
|
|
648
|
+
border-bottom: none;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
#languages-table .lang-input {
|
|
652
|
+
width: 100%;
|
|
653
|
+
padding: 5px 8px;
|
|
654
|
+
border: 1px solid #c3c4c7;
|
|
655
|
+
border-radius: 4px;
|
|
656
|
+
font-size: 13px;
|
|
657
|
+
color: #2c3338;
|
|
658
|
+
background: #fff;
|
|
659
|
+
box-sizing: border-box;
|
|
660
|
+
transition: border-color 0.15s, box-shadow 0.15s;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
#languages-table .lang-input:focus {
|
|
664
|
+
border-color: #2271b1;
|
|
665
|
+
box-shadow: 0 0 0 1px #2271b1;
|
|
666
|
+
outline: none;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
#languages-table .lang-code {
|
|
670
|
+
width: 75px !important;
|
|
671
|
+
text-transform: lowercase;
|
|
672
|
+
letter-spacing: 0.04em;
|
|
673
|
+
font-family: monospace;
|
|
674
|
+
font-size: 13px;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
#languages-table .remove-row {
|
|
678
|
+
color: #b32d2e !important;
|
|
679
|
+
border-color: #d63638 !important;
|
|
680
|
+
background: #fff !important;
|
|
681
|
+
padding: 3px 10px !important;
|
|
682
|
+
font-size: 12px !important;
|
|
683
|
+
border-radius: 4px !important;
|
|
684
|
+
transition: background 0.15s, color 0.15s;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
#languages-table .remove-row:hover {
|
|
688
|
+
background: #f8e8e8 !important;
|
|
689
|
+
color: #8b1a1a !important;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.lms-notice {
|
|
693
|
+
display: flex;
|
|
694
|
+
align-items: center;
|
|
695
|
+
gap: 8px;
|
|
696
|
+
padding: 10px 14px;
|
|
697
|
+
border-left: 4px solid #72aee6;
|
|
698
|
+
background: #f0f6fc;
|
|
699
|
+
border-radius: 2px;
|
|
700
|
+
max-width: 540px;
|
|
701
|
+
}
|