@wp-operations/wp-ops 0.3.0 → 0.3.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 (117) hide show
  1. package/package.json +6 -2
  2. package/src/commands/platform.js +16 -2
  3. package/src/main.js +9 -3
  4. package/wp-operations/CHANGELOG.md +14 -0
  5. package/wp-operations/README.md +39 -0
  6. package/wp-operations/agents/builder/AGENT.md +15 -0
  7. package/wp-operations/assets/admin.css +631 -0
  8. package/wp-operations/assets/admin.js +614 -0
  9. package/wp-operations/assets/app/app.css +1 -0
  10. package/wp-operations/assets/app/app.js +70 -0
  11. package/wp-operations/assets/app/fonts/inter-medium.woff +0 -0
  12. package/wp-operations/assets/app/fonts/inter-regular.woff +0 -0
  13. package/wp-operations/assets/app/fonts/inter-semibold.woff +0 -0
  14. package/wp-operations/assets/app/login.css +42 -0
  15. package/wp-operations/assets/brand/icon.svg +20 -0
  16. package/wp-operations/assets/brand/mark.svg +19 -0
  17. package/wp-operations/assets/editors/audiobook.css +311 -0
  18. package/wp-operations/assets/editors/audiofile.css +286 -0
  19. package/wp-operations/assets/editors/course.css +701 -0
  20. package/wp-operations/assets/editors/course.js +698 -0
  21. package/wp-operations/assets/editors/faq.css +258 -0
  22. package/wp-operations/assets/editors/faq.js +196 -0
  23. package/wp-operations/assets/editors/interactive.css +220 -0
  24. package/wp-operations/assets/editors/interactive.js +378 -0
  25. package/wp-operations/assets/editors/media-sources.css +3 -0
  26. package/wp-operations/assets/editors/media-sources.js +40 -0
  27. package/wp-operations/assets/editors/open-media.css +114 -0
  28. package/wp-operations/assets/editors/open-media.js +182 -0
  29. package/wp-operations/assets/editors/thumbnails.css +335 -0
  30. package/wp-operations/assets/editors/thumbnails.js +447 -0
  31. package/wp-operations/assets/editors/translator.css +818 -0
  32. package/wp-operations/functions.php +24 -0
  33. package/wp-operations/index.php +14 -0
  34. package/wp-operations/platform.json +1836 -0
  35. package/wp-operations/skills/ai-development-guardrails/SKILL.md +49 -0
  36. package/wp-operations/skills/gutenberg-reference/SKILL.md +45 -0
  37. package/wp-operations/skills/js-tooling-for-themes/SKILL.md +51 -0
  38. package/wp-operations/skills/tailwind-for-wp/SKILL.md +62 -0
  39. package/wp-operations/skills/wp-clean-classic-themes/SKILL.md +112 -0
  40. package/wp-operations/skills/wp-psr4-plugins/SKILL.md +2043 -0
  41. package/wp-operations/skills/wp-security/SKILL.md +90 -0
  42. package/wp-operations/src/Admin.php +78 -0
  43. package/wp-operations/src/App/Access.php +57 -0
  44. package/wp-operations/src/App/Admin.php +442 -0
  45. package/wp-operations/src/App/App.php +157 -0
  46. package/wp-operations/src/App/Apps.php +379 -0
  47. package/wp-operations/src/App/Bundle.php +111 -0
  48. package/wp-operations/src/App/Contents.php +676 -0
  49. package/wp-operations/src/App/Engine.php +554 -0
  50. package/wp-operations/src/App/Github.php +308 -0
  51. package/wp-operations/src/App/Module.php +23 -0
  52. package/wp-operations/src/App/Ops.php +470 -0
  53. package/wp-operations/src/App/Packages.php +289 -0
  54. package/wp-operations/src/App/Rest.php +539 -0
  55. package/wp-operations/src/App/Sandboxes.php +206 -0
  56. package/wp-operations/src/App/Store.php +104 -0
  57. package/wp-operations/src/App/Usage.php +268 -0
  58. package/wp-operations/src/Config.php +249 -0
  59. package/wp-operations/src/Content/Editor.php +223 -0
  60. package/wp-operations/src/Content/Fields.php +681 -0
  61. package/wp-operations/src/Content/Scoring.php +253 -0
  62. package/wp-operations/src/Content/Structure.php +293 -0
  63. package/wp-operations/src/Content/Types.php +150 -0
  64. package/wp-operations/src/Content/Uploads.php +50 -0
  65. package/wp-operations/src/Editors/AudiobookAuthor.php +61 -0
  66. package/wp-operations/src/Editors/AudiobookChapters.php +632 -0
  67. package/wp-operations/src/Editors/AudiobookCover.php +235 -0
  68. package/wp-operations/src/Editors/Audiofile.php +462 -0
  69. package/wp-operations/src/Editors/Course.php +784 -0
  70. package/wp-operations/src/Editors/Ebook.php +242 -0
  71. package/wp-operations/src/Editors/Editors.php +44 -0
  72. package/wp-operations/src/Editors/Faq.php +237 -0
  73. package/wp-operations/src/Editors/Files.php +139 -0
  74. package/wp-operations/src/Editors/Interactive/Builder.php +103 -0
  75. package/wp-operations/src/Editors/Interactive/Card.php +76 -0
  76. package/wp-operations/src/Editors/Interactive/Editor.php +42 -0
  77. package/wp-operations/src/Editors/Interactive/Field.php +272 -0
  78. package/wp-operations/src/Editors/Interactive/Map.php +84 -0
  79. package/wp-operations/src/Editors/Interactive/Models.php +227 -0
  80. package/wp-operations/src/Editors/Interactive/Report.php +59 -0
  81. package/wp-operations/src/Editors/Interactive/Save.php +323 -0
  82. package/wp-operations/src/Editors/Interactive/Scoring.php +244 -0
  83. package/wp-operations/src/Editors/Interactive/Structure.php +195 -0
  84. package/wp-operations/src/Editors/Legal.php +235 -0
  85. package/wp-operations/src/Editors/OpenMedia.php +140 -0
  86. package/wp-operations/src/Editors/OriginalTitle.php +112 -0
  87. package/wp-operations/src/Editors/Sources.php +28 -0
  88. package/wp-operations/src/Editors/Thumbnails/Admin.php +306 -0
  89. package/wp-operations/src/Editors/Thumbnails/Ajax.php +163 -0
  90. package/wp-operations/src/Editors/Thumbnails/Box.php +188 -0
  91. package/wp-operations/src/Editors/Thumbnails/Storage.php +228 -0
  92. package/wp-operations/src/Editors/Translator/Admin.php +913 -0
  93. package/wp-operations/src/Editors/Translator/Api.php +63 -0
  94. package/wp-operations/src/Editors/Translator/Bar.php +83 -0
  95. package/wp-operations/src/Editors/Translator/Fields.php +273 -0
  96. package/wp-operations/src/Editors/Translator/Storage.php +131 -0
  97. package/wp-operations/src/Editors/Translator/Thumbnail.php +215 -0
  98. package/wp-operations/src/Identity.php +104 -0
  99. package/wp-operations/src/Languages.php +45 -0
  100. package/wp-operations/src/Lockdown.php +85 -0
  101. package/wp-operations/src/Modules/Apps/Admin.php +472 -0
  102. package/wp-operations/src/Modules/Apps/Api.php +193 -0
  103. package/wp-operations/src/Modules/Apps/Apps.php +279 -0
  104. package/wp-operations/src/Modules/Apps/Formatters.php +478 -0
  105. package/wp-operations/src/Modules/Apps/Schemes.php +248 -0
  106. package/wp-operations/src/Modules/Apps/Table.php +101 -0
  107. package/wp-operations/src/Modules/Thumbnails.php +68 -0
  108. package/wp-operations/src/Modules/Translations.php +133 -0
  109. package/wp-operations/src/Platform.php +59 -0
  110. package/wp-operations/src/Setup.php +273 -0
  111. package/wp-operations/src/Status.php +99 -0
  112. package/wp-operations/src/Storage/Client.php +168 -0
  113. package/wp-operations/src/Storage/Offload.php +120 -0
  114. package/wp-operations/src/Storage/Settings.php +166 -0
  115. package/wp-operations/src/Storage/Storage.php +35 -0
  116. package/wp-operations/src/Updates.php +151 -0
  117. package/wp-operations/style.css +11 -0
@@ -0,0 +1,818 @@
1
+ .ct-wrap {
2
+
3
+ margin-right: 20px;
4
+ }
5
+
6
+ .ct-heading {
7
+ font-size: 1.5rem;
8
+ font-weight: 600;
9
+ margin-bottom: 1.25rem;
10
+ color: #1d2327;
11
+ }
12
+
13
+ .ct-tabs {
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ gap: 2px;
17
+ border-bottom: 1px solid #c3c4c7;
18
+ margin-bottom: 0;
19
+ }
20
+
21
+ .ct-tab {
22
+ display: inline-block;
23
+ padding: 8px 16px;
24
+ font-size: 13px;
25
+ text-decoration: none;
26
+ color: #50575e;
27
+ background: #f0f0f1;
28
+ border: 1px solid #c3c4c7;
29
+ border-bottom: none;
30
+ border-radius: 4px 4px 0 0;
31
+ transition: background 0.15s, color 0.15s;
32
+ }
33
+
34
+ .ct-tab:hover {
35
+ background: #fff;
36
+ color: #135e96;
37
+ }
38
+
39
+ .ct-tab--active {
40
+ background: #fff;
41
+ color: #1d2327;
42
+ font-weight: 600;
43
+ border-bottom-color: #fff;
44
+ position: relative;
45
+ bottom: -1px;
46
+ }
47
+
48
+ .ct-tab--tax {
49
+ border-top: 3px solid #72aee6;
50
+ }
51
+
52
+ .ct-panel {
53
+ background: #fff;
54
+ border: 1px solid #c3c4c7;
55
+ border-top: none;
56
+ padding: 1.5rem;
57
+ border-radius: 0 0 4px 4px;
58
+ }
59
+
60
+ .ct-list-header {
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: space-between;
64
+ flex-wrap: wrap;
65
+ gap: 1rem;
66
+ margin-bottom: 1.25rem;
67
+ }
68
+
69
+ .ct-list-title {
70
+ display: flex;
71
+ align-items: baseline;
72
+ gap: 10px;
73
+ }
74
+
75
+ .ct-list-title h2 {
76
+ margin: 0;
77
+ font-size: 1.1rem;
78
+ font-weight: 600;
79
+ }
80
+
81
+ .ct-list-count {
82
+ font-size: 12px;
83
+ color: #787c82;
84
+ background: #f0f0f1;
85
+ padding: 2px 8px;
86
+ border-radius: 10px;
87
+ font-weight: 500;
88
+ }
89
+
90
+ .ct-search-form {
91
+ display: flex;
92
+ gap: 6px;
93
+ align-items: center;
94
+ }
95
+
96
+ .ct-search {
97
+ min-width: 240px;
98
+ }
99
+
100
+ .ct-table {
101
+ width: 100%;
102
+ border-collapse: collapse;
103
+ font-size: 13px;
104
+ table-layout: fixed;
105
+ }
106
+
107
+ .ct-table th {
108
+ padding: 9px 12px;
109
+ background: #f6f7f7;
110
+ border-bottom: 2px solid #e0e0e0;
111
+ text-align: left;
112
+ font-weight: 600;
113
+ color: #50575e;
114
+ white-space: nowrap;
115
+ }
116
+
117
+ .ct-table td {
118
+ padding: 11px 12px;
119
+ border-bottom: 1px solid #f0f0f1;
120
+ vertical-align: middle;
121
+ }
122
+
123
+ .ct-table tr:last-child td {
124
+ border-bottom: none;
125
+ }
126
+
127
+ .ct-table tr:hover td {
128
+ background: #f9f9f9;
129
+ }
130
+
131
+ .ct-col-title {
132
+ width: 40%;
133
+ }
134
+
135
+ .ct-col-status {
136
+ width: 48%;
137
+ }
138
+
139
+ .ct-col-action {
140
+ width: 12%;
141
+ text-align: right;
142
+ white-space: nowrap;
143
+ }
144
+
145
+ .ct-post-title {
146
+ font-weight: 500;
147
+ color: #1d2327;
148
+ display: inline;
149
+ }
150
+
151
+ .ct-status-pill {
152
+ display: inline-block;
153
+ margin-left: 6px;
154
+ font-size: 10px;
155
+ font-weight: 600;
156
+ letter-spacing: 0.03em;
157
+ text-transform: uppercase;
158
+ padding: 1px 6px;
159
+ border-radius: 3px;
160
+ vertical-align: middle;
161
+ }
162
+
163
+ .ct-status-pill--publish { background: #d8f3dc; color: #1a7431; }
164
+ .ct-status-pill--draft { background: #f0f0f1; color: #646970; }
165
+ .ct-status-pill--pending { background: #fef3cd; color: #856404; }
166
+ .ct-status-pill--private { background: #fde8e8; color: #b91c1c; }
167
+ .ct-status-pill--future { background: #e0e7ff; color: #3730a3; }
168
+ .ct-status-pill--trash { background: #fde8e8; color: #b91c1c; }
169
+
170
+ .ct-count-pill {
171
+ display: inline-block;
172
+ margin-left: 6px;
173
+ font-size: 11px;
174
+ color: #787c82;
175
+ background: #f0f0f1;
176
+ padding: 1px 7px;
177
+ border-radius: 10px;
178
+ vertical-align: middle;
179
+ }
180
+
181
+ .ct-lang-count {
182
+ display: inline-block;
183
+ margin-left: 6px;
184
+ font-size: 10px;
185
+ font-weight: 500;
186
+ background: #e0e7ff;
187
+ color: #3730a3;
188
+ padding: 1px 6px;
189
+ border-radius: 10px;
190
+ letter-spacing: 0.03em;
191
+ text-transform: uppercase;
192
+ vertical-align: middle;
193
+ }
194
+
195
+ .ct-progress-group {
196
+ display: flex;
197
+ flex-direction: column;
198
+ gap: 4px;
199
+ }
200
+
201
+ .ct-progress-row {
202
+ display: flex;
203
+ align-items: center;
204
+ gap: 7px;
205
+ }
206
+
207
+ .ct-lang-label {
208
+ font-size: 10px;
209
+ font-weight: 700;
210
+ color: #646970;
211
+ width: 26px;
212
+ flex-shrink: 0;
213
+ letter-spacing: 0.04em;
214
+ }
215
+
216
+ .ct-progress-bar {
217
+ flex: 1;
218
+ height: 5px;
219
+ background: #e8e8e8;
220
+ border-radius: 3px;
221
+ overflow: hidden;
222
+ min-width: 60px;
223
+ }
224
+
225
+ .ct-progress-fill {
226
+ height: 100%;
227
+ background: #b0c4de;
228
+ border-radius: 3px;
229
+ transition: width 0.3s ease;
230
+ }
231
+
232
+ .ct-progress-fill--partial {
233
+ background: #2271b1;
234
+ }
235
+
236
+ .ct-progress-fill--done {
237
+ background: #1a9e3f;
238
+ }
239
+
240
+ .ct-pct {
241
+ font-size: 11px;
242
+ color: #787c82;
243
+ width: 30px;
244
+ text-align: right;
245
+ flex-shrink: 0;
246
+ }
247
+
248
+ .ct-badge {
249
+ display: inline-block;
250
+ padding: 3px 10px;
251
+ border-radius: 3px;
252
+ font-size: 11px;
253
+ font-weight: 500;
254
+ }
255
+
256
+ .ct-badge--none {
257
+ background: #f0f0f1;
258
+ color: #787c82;
259
+ }
260
+
261
+ .ct-pagination {
262
+ margin-top: 1.25rem;
263
+ display: flex;
264
+ gap: 4px;
265
+ flex-wrap: wrap;
266
+ }
267
+
268
+ .ct-edit-header {
269
+ display: flex;
270
+ align-items: center;
271
+ gap: 1rem;
272
+ margin-bottom: 1.5rem;
273
+ padding-bottom: 1rem;
274
+ border-bottom: 1px solid #f0f0f1;
275
+ }
276
+
277
+ .ct-edit-header h2 {
278
+ margin: 0;
279
+ font-size: 1.15rem;
280
+ font-weight: 600;
281
+ color: #1d2327;
282
+ }
283
+
284
+ .ct-back {
285
+ font-size: 13px;
286
+ color: #2271b1;
287
+ text-decoration: none;
288
+ white-space: nowrap;
289
+ flex-shrink: 0;
290
+ }
291
+
292
+ .ct-back:hover {
293
+ text-decoration: underline;
294
+ }
295
+
296
+ .ct-fields-table {
297
+ width: 100%;
298
+ border-collapse: collapse;
299
+ font-size: 13px;
300
+ margin-bottom: 1.25rem;
301
+ }
302
+
303
+ .ct-fields-table th {
304
+ padding: 8px 10px;
305
+ background: #f6f7f7;
306
+ border: 1px solid #e0e0e0;
307
+ font-weight: 600;
308
+ color: #50575e;
309
+ text-align: left;
310
+ white-space: nowrap;
311
+ }
312
+
313
+ .ct-th-code {
314
+ display: inline-block;
315
+ margin-left: 4px;
316
+ font-size: 10px;
317
+ font-weight: 700;
318
+ color: #2271b1;
319
+ background: #e8f0fb;
320
+ padding: 1px 4px;
321
+ border-radius: 3px;
322
+ letter-spacing: 0.04em;
323
+ vertical-align: middle;
324
+ }
325
+
326
+ .ct-fields-table td {
327
+ padding: 8px 10px;
328
+ border: 1px solid #f0f0f1;
329
+ vertical-align: top;
330
+ }
331
+
332
+ .ct-field-key {
333
+ width: 140px;
334
+ white-space: nowrap;
335
+ }
336
+
337
+ .ct-field-key code {
338
+ font-size: 11px;
339
+ background: #f0f0f1;
340
+ padding: 2px 5px;
341
+ border-radius: 3px;
342
+ }
343
+
344
+ .ct-field-original {
345
+ width: 22%;
346
+ min-width: 160px;
347
+ }
348
+
349
+ .ct-original-text {
350
+ font-size: 12px;
351
+ color: #50575e;
352
+ line-height: 1.5;
353
+ white-space: pre-wrap;
354
+ word-break: break-word;
355
+ max-height: 200px;
356
+ overflow-y: auto;
357
+ }
358
+
359
+ .ct-input {
360
+ width: 100%;
361
+ box-sizing: border-box;
362
+ }
363
+
364
+ .ct-textarea {
365
+ width: 100%;
366
+ box-sizing: border-box;
367
+ resize: vertical;
368
+ font-size: 13px;
369
+ }
370
+
371
+ .ct-child-box {
372
+ margin-top: 1.5rem;
373
+ margin-left: calc(var(--depth, 0) * 24px);
374
+ border: 1px solid #c3c4c7;
375
+ border-left: 3px solid #72aee6;
376
+ border-radius: 4px;
377
+ overflow: hidden;
378
+ }
379
+
380
+ .ct-child-header {
381
+ padding: 10px 14px;
382
+ background: #f6f7f7;
383
+ border-bottom: 1px solid #e0e0e0;
384
+ display: flex;
385
+ align-items: center;
386
+ gap: 10px;
387
+ font-size: 13px;
388
+ }
389
+
390
+ .ct-child-label {
391
+ font-size: 10px;
392
+ font-weight: 700;
393
+ color: #2271b1;
394
+ text-transform: uppercase;
395
+ letter-spacing: 0.05em;
396
+ flex-shrink: 0;
397
+ }
398
+
399
+ .ct-child-box .ct-fields-table {
400
+ margin: 12px 14px;
401
+ width: calc(100% - 28px);
402
+ }
403
+
404
+ .ct-form-footer {
405
+ margin-top: 1.5rem;
406
+ padding-top: 1rem;
407
+ border-top: 1px solid #e0e0e0;
408
+ display: flex;
409
+ gap: 8px;
410
+ align-items: center;
411
+ }
412
+
413
+ .ct-empty {
414
+ color: #787c82;
415
+ font-style: italic;
416
+ padding: 1rem 0;
417
+ }
418
+
419
+ .ct-btn-translate {
420
+ white-space: nowrap;
421
+ }
422
+
423
+ .ct-wysiwyg-block {
424
+ margin-bottom: 1.75rem;
425
+ border: 1px solid #c3c4c7;
426
+ border-radius: 4px;
427
+ overflow: hidden;
428
+ }
429
+
430
+ .ct-original-section {
431
+ border-bottom: 1px solid #e0e0e0;
432
+ }
433
+
434
+ .ct-original-toggle {
435
+ display: flex;
436
+ align-items: center;
437
+ gap: 10px;
438
+ width: 100%;
439
+ padding: 11px 14px;
440
+ background: #f6f7f7;
441
+ border: none;
442
+ cursor: pointer;
443
+ text-align: left;
444
+ font-size: 13px;
445
+ color: #1d2327;
446
+ font-family: inherit;
447
+ transition: background 0.15s;
448
+ }
449
+
450
+ .ct-original-toggle:hover {
451
+ background: #eef0f1;
452
+ }
453
+
454
+ .ct-original-toggle .ct-field-label {
455
+ font-size: 11px;
456
+ font-weight: 600;
457
+ color: #2271b1;
458
+ background: #e8f0fb;
459
+ padding: 2px 7px;
460
+ border-radius: 3px;
461
+ font-family: monospace;
462
+ flex-shrink: 0;
463
+ }
464
+
465
+ .ct-original-toggle .ct-toggle-text {
466
+ flex: 1;
467
+ color: #50575e;
468
+ font-size: 12px;
469
+ }
470
+
471
+ .ct-chevron {
472
+ font-size: 10px;
473
+ color: #787c82;
474
+ transition: transform 0.2s ease;
475
+ flex-shrink: 0;
476
+ }
477
+
478
+ .ct-original-body {
479
+ padding: 14px 16px;
480
+ background: #fafafa;
481
+ border-top: 1px solid #f0f0f1;
482
+ }
483
+
484
+ .ct-original-full {
485
+ font-size: 13px;
486
+ line-height: 1.7;
487
+ color: #1d2327;
488
+ word-break: break-word;
489
+
490
+ max-height: 60vh;
491
+ overflow-y: auto;
492
+ padding-right: 8px;
493
+ }
494
+
495
+ .ct-original-full p { margin: 0 0 .75em; }
496
+ .ct-original-full h1,
497
+ .ct-original-full h2,
498
+ .ct-original-full h3 { margin: .75em 0 .4em; }
499
+ .ct-original-full ul,
500
+ .ct-original-full ol { padding-left: 1.5em; margin: 0 0 .75em; }
501
+
502
+ .ct-accordion-item {
503
+ border-top: 1px solid #f0f0f1;
504
+ }
505
+
506
+ .ct-accordion-item:first-of-type {
507
+ border-top: none;
508
+ }
509
+
510
+ .ct-accordion-toggle {
511
+ display: flex;
512
+ align-items: center;
513
+ gap: 10px;
514
+ width: 100%;
515
+ padding: 11px 14px;
516
+ background: #fff;
517
+ border: none;
518
+ cursor: pointer;
519
+ text-align: left;
520
+ font-size: 13px;
521
+ color: #1d2327;
522
+ font-family: inherit;
523
+ transition: background 0.15s;
524
+ }
525
+
526
+ .ct-accordion-toggle:hover {
527
+ background: #f9f9f9;
528
+ }
529
+
530
+ .ct-accordion-item--open > .ct-accordion-toggle {
531
+ background: #f6f7f7;
532
+ border-bottom: 1px solid #e8e8e8;
533
+ }
534
+
535
+ .ct-accordion-lang {
536
+ display: flex;
537
+ align-items: center;
538
+ gap: 8px;
539
+ flex: 1;
540
+ font-weight: 500;
541
+ }
542
+
543
+ .ct-lang-pill {
544
+ display: inline-flex;
545
+ align-items: center;
546
+ justify-content: center;
547
+ background: #2271b1;
548
+ color: #fff;
549
+ font-size: 10px;
550
+ font-weight: 700;
551
+ letter-spacing: 0.06em;
552
+ padding: 2px 6px;
553
+ border-radius: 3px;
554
+ min-width: 28px;
555
+ text-align: center;
556
+ flex-shrink: 0;
557
+ }
558
+
559
+ .ct-acc-status {
560
+ font-size: 10px;
561
+ font-weight: 600;
562
+ letter-spacing: 0.03em;
563
+ padding: 2px 8px;
564
+ border-radius: 10px;
565
+ flex-shrink: 0;
566
+ }
567
+
568
+ .ct-acc-status--filled {
569
+ background: #d8f3dc;
570
+ color: #1a7431;
571
+ }
572
+
573
+ .ct-acc-status--empty {
574
+ background: #f0f0f1;
575
+ color: #787c82;
576
+ }
577
+
578
+ .ct-accordion-body {
579
+
580
+ }
581
+
582
+ .ct-accordion-inner {
583
+ padding: 14px;
584
+ }
585
+
586
+ .ct-accordion-inner .wp-editor-wrap {
587
+ max-width: 100%;
588
+ }
589
+
590
+ .ct-tab--settings {
591
+ margin-left: auto;
592
+ border-top: 3px solid #f0b849;
593
+ color: #50575e;
594
+ }
595
+
596
+ .ct-settings-wrap {
597
+ max-width: 100%;
598
+ }
599
+
600
+ .ct-settings-intro {
601
+ margin-bottom: 1.5rem;
602
+ }
603
+
604
+ .ct-settings-intro h2 {
605
+ margin: 0 0 .4rem;
606
+ font-size: 1.1rem;
607
+ }
608
+
609
+ .ct-settings-intro p {
610
+ margin: 0;
611
+ color: #50575e;
612
+ font-size: 13px;
613
+ }
614
+
615
+ .ct-settings-form {
616
+ margin-top: 1rem;
617
+ }
618
+
619
+ .ct-settings-grid {
620
+ display: grid;
621
+ grid-template-columns: 1fr 1fr;
622
+ gap: 1.5rem;
623
+ margin-bottom: 1.5rem;
624
+ }
625
+
626
+ @media ( max-width: 900px ) {
627
+ .ct-settings-grid {
628
+ grid-template-columns: 1fr;
629
+ }
630
+ }
631
+
632
+ .ct-settings-card {
633
+ border: 1px solid #c3c4c7;
634
+ border-radius: 4px;
635
+ overflow: hidden;
636
+ }
637
+
638
+ .ct-settings-card-header {
639
+ display: flex;
640
+ align-items: center;
641
+ justify-content: space-between;
642
+ padding: 10px 14px;
643
+ background: #f6f7f7;
644
+ border-bottom: 1px solid #e0e0e0;
645
+ }
646
+
647
+ .ct-settings-card-header h3 {
648
+ margin: 0;
649
+ font-size: 13px;
650
+ font-weight: 600;
651
+ color: #1d2327;
652
+ }
653
+
654
+ .ct-settings-badge {
655
+ font-size: 10px;
656
+ font-weight: 700;
657
+ letter-spacing: 0.04em;
658
+ padding: 2px 8px;
659
+ border-radius: 10px;
660
+ }
661
+
662
+ .ct-settings-badge--block {
663
+ background: #fde8e8;
664
+ color: #b91c1c;
665
+ }
666
+
667
+ .ct-settings-badge--allow {
668
+ background: #d8f3dc;
669
+ color: #1a7431;
670
+ }
671
+
672
+ .ct-settings-desc {
673
+ margin: 0;
674
+ padding: 10px 14px 6px;
675
+ font-size: 12px;
676
+ color: #646970;
677
+ line-height: 1.5;
678
+ border-bottom: 1px solid #f0f0f1;
679
+ }
680
+
681
+ .ct-settings-textarea {
682
+ display: block;
683
+ width: 100%;
684
+ box-sizing: border-box;
685
+ border: none;
686
+ border-radius: 0;
687
+ font-family: monospace;
688
+ font-size: 12px;
689
+ line-height: 1.6;
690
+ padding: 10px 14px;
691
+ resize: vertical;
692
+ background: #fff;
693
+ color: #1d2327;
694
+ outline: none;
695
+ }
696
+
697
+ .ct-settings-textarea:focus {
698
+ background: #fafcff;
699
+ box-shadow: inset 0 0 0 2px #2271b1;
700
+ }
701
+
702
+ .ct-settings-hint {
703
+ margin: 0;
704
+ padding: 6px 14px 10px;
705
+ font-size: 11px;
706
+ border-top: 1px solid #f0f0f1;
707
+ background: #fafafa;
708
+ }
709
+
710
+ .ct-restore-link {
711
+ color: #2271b1;
712
+ text-decoration: none;
713
+ font-size: 11px;
714
+ }
715
+
716
+ .ct-restore-link:hover {
717
+ text-decoration: underline;
718
+ }
719
+
720
+ .lang-thumbnail-metabox {
721
+ margin: -6px -12px -12px;
722
+ }
723
+
724
+ .lang-thumbnail-lang {
725
+ padding: 12px;
726
+ border-bottom: 1px solid #f0f0f1;
727
+ }
728
+
729
+ .lang-thumbnail-lang:last-child {
730
+ border-bottom: none;
731
+ }
732
+
733
+ .lang-thumbnail-lang-header {
734
+ display: flex;
735
+ align-items: center;
736
+ gap: 6px;
737
+ margin-bottom: 8px;
738
+ }
739
+
740
+ .lang-thumbnail-lang-code {
741
+ display: inline-flex;
742
+ align-items: center;
743
+ justify-content: center;
744
+ background: #2271b1;
745
+ color: #fff;
746
+ font-size: 9px;
747
+ font-weight: 700;
748
+ letter-spacing: 0.06em;
749
+ padding: 1px 5px;
750
+ border-radius: 3px;
751
+ min-width: 24px;
752
+ text-align: center;
753
+ }
754
+
755
+ .lang-thumbnail-lang-name {
756
+ font-size: 12px;
757
+ font-weight: 600;
758
+ color: #1d2327;
759
+ }
760
+
761
+ .lang-thumbnail-lang-default {
762
+ font-size: 9px;
763
+ font-weight: 600;
764
+ color: #787c82;
765
+ background: #f0f0f1;
766
+ padding: 1px 5px;
767
+ border-radius: 3px;
768
+ letter-spacing: 0.04em;
769
+ text-transform: uppercase;
770
+ }
771
+
772
+ .lang-thumbnail-preview {
773
+ margin-bottom: 8px;
774
+ line-height: 0;
775
+ }
776
+
777
+ .lang-thumbnail-preview img {
778
+ width: 100%;
779
+ height: auto;
780
+ max-height: 150px;
781
+ object-fit: cover;
782
+ border-radius: 4px;
783
+ border: 1px solid #ddd;
784
+ }
785
+
786
+ .lang-thumbnail-empty {
787
+ width: 100%;
788
+ height: 80px;
789
+ border: 1px dashed #ccc;
790
+ border-radius: 4px;
791
+ display: flex;
792
+ align-items: center;
793
+ justify-content: center;
794
+ color: #aaa;
795
+ font-size: 12px;
796
+ }
797
+
798
+ .lang-thumbnail-actions {
799
+ display: flex;
800
+ gap: 4px;
801
+ }
802
+
803
+ .lang-thumbnail-actions .button {
804
+ font-size: 11px;
805
+ min-height: 0;
806
+ padding: 0 8px;
807
+ line-height: 2;
808
+ }
809
+
810
+ .lang-thumbnail-remove {
811
+ color: #b32d2e;
812
+ border-color: #b32d2e;
813
+ }
814
+
815
+ .lang-thumbnail-remove:hover {
816
+ background: #b32d2e;
817
+ color: #fff;
818
+ }