dragon-editor 4.0.0 → 4.0.2

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.
@@ -14,7 +14,6 @@
14
14
  </template>
15
15
 
16
16
  <script setup>
17
- import "../scss/editor.scss";
18
17
  import MenuBar from "./MenuBar.vue";
19
18
  import { _getBody } from "../utils/layout";
20
19
  import { useEditorStore } from "../store/editor";
@@ -92,3 +91,991 @@ onBeforeUnmount(() => {
92
91
  _eidtorUnmountEvent();
93
92
  });
94
93
  </script>
94
+
95
+ <style>
96
+ @charset "UTF-8";
97
+ .dragon-editor,
98
+ .dragon-editor-viewer {
99
+ --editor-radius-default: 4px;
100
+ }
101
+ .dragon-editor[data-theme=dark],
102
+ .dragon-editor-viewer[data-theme=dark] {
103
+ --editor-text: #dfdfe1;
104
+ --editor-text-disabled: #768390;
105
+ --editor-background: #09090b;
106
+ --editor-border: #555;
107
+ --editor-divider: #333;
108
+ --editor-decoration-code-color:#fff;
109
+ --editor-decoration-code-bg:#555;
110
+ --editor-code-color: #adbac7;
111
+ --editor-code-bg: #22272e;
112
+ --editor-code-file-bg: #494e54;
113
+ --editor-code-placeholder: #96a0aa;
114
+ --editor-code-number: #555;
115
+ --editor-code-number-bg: #e5e5e5;
116
+ --editor-code-keyword: #f47067;
117
+ --editor-code-entity: #dcbdfb;
118
+ --editor-code-constant: #6cb6ff;
119
+ --editor-code-string: #96d0ff;
120
+ --editor-code-variable: #f69d50;
121
+ --editor-code-comment: #768390;
122
+ --editor-code-entity-tag: #8ddb8c;
123
+ --editor-code-storage-modifier-import: #adbac7;
124
+ --editor-code-markup-heading: #316dca;
125
+ --editor-code-markup-list: #eac55f;
126
+ --editor-code-markup-italic: #adbac7;
127
+ --editor-code-markup-bold: #adbac7;
128
+ --editor-code-markup-inserted: #b4f1b4;
129
+ --editor-code-markup-inserted-bg: #1b4721;
130
+ --editor-code-markup-deleted: #ffd8d3;
131
+ --editor-code-markup-deleted-bg: #78191b;
132
+ }
133
+ .dragon-editor[data-theme=white],
134
+ .dragon-editor-viewer[data-theme=white] {
135
+ --editor-text: #333;
136
+ --editor-text-disabled: #ccc;
137
+ --editor-background: #f9f9f9;
138
+ --editor-border: #ccc;
139
+ --editor-divider: #e5e5e5;
140
+ --editor-decoration-code-color:#ff0000;
141
+ --editor-decoration-code-bg:#f1f1f1;
142
+ --editor-code-color: #24292e;
143
+ --editor-code-bg: #f1f1f1;
144
+ --editor-code-file-bg: #ccc;
145
+ --editor-code-placeholder: #8b8d8f;
146
+ --editor-code-number: #e5e5e5;
147
+ --editor-code-number-bg: #8c8c8c;
148
+ --editor-code-keyword: #d73a49;
149
+ --editor-code-entity: #6f42c1;
150
+ --editor-code-constant: #005cc5;
151
+ --editor-code-string: #032f62;
152
+ --editor-code-variable: #e36209;
153
+ --editor-code-comment: #6a737d;
154
+ --editor-code-entity-tag: #22863a;
155
+ --editor-code-storage-modifier-import: #24292e;
156
+ --editor-code-markup-heading: #005cc5;
157
+ --editor-code-markup-list: #735c0f;
158
+ --editor-code-markup-italic: #24292e;
159
+ --editor-code-markup-bold: #24292e;
160
+ --editor-code-markup-inserted: #22863a;
161
+ --editor-code-markup-inserted-bg: #f0fff4;
162
+ --editor-code-markup-deleted: #b31d28;
163
+ --editor-code-markup-deleted-bg: #ffeef0;
164
+ }
165
+ .dragon-editor,
166
+ .dragon-editor-viewer {
167
+ /**
168
+ * Reset style start
169
+ */
170
+ }
171
+ .dragon-editor h1,
172
+ .dragon-editor h2,
173
+ .dragon-editor h3,
174
+ .dragon-editor h4,
175
+ .dragon-editor h5,
176
+ .dragon-editor h6,
177
+ .dragon-editor p,
178
+ .dragon-editor blockquote,
179
+ .dragon-editor pre,
180
+ .dragon-editor dl,
181
+ .dragon-editor dd,
182
+ .dragon-editor ol,
183
+ .dragon-editor ul,
184
+ .dragon-editor fieldset,
185
+ .dragon-editor legend,
186
+ .dragon-editor figure,
187
+ .dragon-editor menu,
188
+ .dragon-editor hr,
189
+ .dragon-editor-viewer h1,
190
+ .dragon-editor-viewer h2,
191
+ .dragon-editor-viewer h3,
192
+ .dragon-editor-viewer h4,
193
+ .dragon-editor-viewer h5,
194
+ .dragon-editor-viewer h6,
195
+ .dragon-editor-viewer p,
196
+ .dragon-editor-viewer blockquote,
197
+ .dragon-editor-viewer pre,
198
+ .dragon-editor-viewer dl,
199
+ .dragon-editor-viewer dd,
200
+ .dragon-editor-viewer ol,
201
+ .dragon-editor-viewer ul,
202
+ .dragon-editor-viewer fieldset,
203
+ .dragon-editor-viewer legend,
204
+ .dragon-editor-viewer figure,
205
+ .dragon-editor-viewer menu,
206
+ .dragon-editor-viewer hr {
207
+ margin: 0;
208
+ padding: 0;
209
+ border: 0;
210
+ }
211
+ .dragon-editor table,
212
+ .dragon-editor th,
213
+ .dragon-editor td,
214
+ .dragon-editor-viewer table,
215
+ .dragon-editor-viewer th,
216
+ .dragon-editor-viewer td {
217
+ border-spacing: 0;
218
+ border-collapse: collapse;
219
+ }
220
+ .dragon-editor ol,
221
+ .dragon-editor ul,
222
+ .dragon-editor li,
223
+ .dragon-editor-viewer ol,
224
+ .dragon-editor-viewer ul,
225
+ .dragon-editor-viewer li {
226
+ list-style: none;
227
+ }
228
+ .dragon-editor h1,
229
+ .dragon-editor h2,
230
+ .dragon-editor h3,
231
+ .dragon-editor h4,
232
+ .dragon-editor h5,
233
+ .dragon-editor h6,
234
+ .dragon-editor-viewer h1,
235
+ .dragon-editor-viewer h2,
236
+ .dragon-editor-viewer h3,
237
+ .dragon-editor-viewer h4,
238
+ .dragon-editor-viewer h5,
239
+ .dragon-editor-viewer h6 {
240
+ font-size: inherit;
241
+ font-weight: normal;
242
+ }
243
+ .dragon-editor input,
244
+ .dragon-editor textarea,
245
+ .dragon-editor select,
246
+ .dragon-editor button,
247
+ .dragon-editor-viewer input,
248
+ .dragon-editor-viewer textarea,
249
+ .dragon-editor-viewer select,
250
+ .dragon-editor-viewer button {
251
+ margin: 0;
252
+ padding: 0;
253
+ border-radius: 0;
254
+ outline: 0;
255
+ font-size: inherit;
256
+ vertical-align: middle;
257
+ }
258
+ .dragon-editor a,
259
+ .dragon-editor button,
260
+ .dragon-editor input[type=submit],
261
+ .dragon-editor input[type=button],
262
+ .dragon-editor input[type=reset],
263
+ .dragon-editor-viewer a,
264
+ .dragon-editor-viewer button,
265
+ .dragon-editor-viewer input[type=submit],
266
+ .dragon-editor-viewer input[type=button],
267
+ .dragon-editor-viewer input[type=reset] {
268
+ border: 0;
269
+ background: transparent;
270
+ color: inherit;
271
+ font-size: inherit;
272
+ cursor: pointer;
273
+ }
274
+ .dragon-editor img,
275
+ .dragon-editor-viewer img {
276
+ border: 0;
277
+ vertical-align: top;
278
+ }
279
+ .dragon-editor .de-block[data-depth="1"],
280
+ .dragon-editor-viewer .de-block[data-depth="1"] {
281
+ padding-left: 30px;
282
+ }
283
+ .dragon-editor .de-block[data-depth="2"],
284
+ .dragon-editor-viewer .de-block[data-depth="2"] {
285
+ padding-left: 60px;
286
+ }
287
+ .dragon-editor .de-block[data-depth="3"],
288
+ .dragon-editor-viewer .de-block[data-depth="3"] {
289
+ padding-left: 90px;
290
+ }
291
+ .dragon-editor .de-block[data-depth="4"],
292
+ .dragon-editor-viewer .de-block[data-depth="4"] {
293
+ padding-left: 120px;
294
+ }
295
+ .dragon-editor .de-block[data-depth="5"],
296
+ .dragon-editor-viewer .de-block[data-depth="5"] {
297
+ padding-left: 150px;
298
+ }
299
+
300
+ /**
301
+ * 노드 스타일
302
+ */
303
+ .dragon-editor {
304
+ position: relative;
305
+ background: var(--editor-background);
306
+ color: var(--editor-text);
307
+ border: 1px solid var(--editor-border);
308
+ border-radius: var(--editor-radius-default);
309
+ }
310
+ .dragon-editor.--has-menu {
311
+ padding-top: 35px;
312
+ }
313
+ .dragon-editor.--mobile .de-menu-bar .de-link-exit-area {
314
+ left: 50%;
315
+ right: 0;
316
+ transform: translateX(-50%);
317
+ }
318
+ .dragon-editor.--hidden-parent {
319
+ height: 100%;
320
+ box-sizing: border-box;
321
+ }
322
+ .dragon-editor.--hidden-parent .de-body {
323
+ height: 100%;
324
+ overflow-y: auto;
325
+ box-sizing: border-box;
326
+ }
327
+ .dragon-editor .de-body {
328
+ padding: 16px 20px;
329
+ line-height: 1.6;
330
+ }
331
+ .dragon-editor .de-menu-bar {
332
+ position: absolute;
333
+ top: 0;
334
+ left: 0;
335
+ right: 0;
336
+ height: 34px;
337
+ background: var(--editor-background);
338
+ border-bottom: 1px solid var(--editor-border);
339
+ border-radius: var(--editor-radius-default) var(--editor-radius-default) 0 0;
340
+ z-index: 10;
341
+ }
342
+ .dragon-editor .de-menu-bar .de-menu-wrap {
343
+ display: flex;
344
+ overflow-x: auto;
345
+ }
346
+ .dragon-editor .de-menu-bar .de-col {
347
+ display: flex;
348
+ position: relative;
349
+ border-right: 1px solid var(--editor-border);
350
+ }
351
+ .dragon-editor .de-menu-bar .de-col:last-child {
352
+ border-right: 0;
353
+ }
354
+ .dragon-editor .de-menu-bar .de-menu {
355
+ display: flex;
356
+ justify-content: center;
357
+ align-items: center;
358
+ min-width: 34px;
359
+ height: 34px;
360
+ cursor: pointer;
361
+ }
362
+ .dragon-editor .de-menu-bar .de-menu[disabled] .de-path {
363
+ fill: var(--editor-text-disabled);
364
+ }
365
+ .dragon-editor .de-menu-bar .de-menu .de-icon {
366
+ width: 16px;
367
+ height: 16px;
368
+ }
369
+ .dragon-editor .de-menu-bar .de-menu.--lastchild {
370
+ border-right: 0;
371
+ }
372
+ .dragon-editor .de-menu-bar .de-menu .de-path {
373
+ fill: var(--editor-text);
374
+ }
375
+ .dragon-editor .de-menu-bar .de-block-menu-area {
376
+ display: none;
377
+ position: absolute;
378
+ top: 35px;
379
+ left: 0;
380
+ width: 120px;
381
+ background: #fff;
382
+ border-width: 0 1px 1px 0;
383
+ border-style: solid;
384
+ border-color: #ccc;
385
+ border-bottom-right-radius: var(--editor-radius-default);
386
+ z-index: 1000;
387
+ }
388
+ .dragon-editor .de-menu-bar .de-block-menu-area.--active {
389
+ display: block;
390
+ }
391
+ .dragon-editor .de-menu-bar .de-block-menu-area .de-list {
392
+ display: flex;
393
+ flex-direction: column;
394
+ gap: 5px;
395
+ padding: 5px;
396
+ }
397
+ .dragon-editor .de-menu-bar .de-block-menu-area .de-add-block {
398
+ font-size: 0.875em;
399
+ line-height: 1.6;
400
+ }
401
+ .dragon-editor .de-menu-bar .de-link-exit-area {
402
+ display: none;
403
+ position: absolute;
404
+ top: calc(100% + 1px);
405
+ left: 205px;
406
+ width: 200px;
407
+ background: var(--editor-background);
408
+ border: 1px solid var(--editor-border);
409
+ border-top: 0;
410
+ border-radius: 0 0 var(--editor-radius-default) var(--editor-radius-default);
411
+ z-index: 1000;
412
+ }
413
+ .dragon-editor .de-menu-bar .de-link-exit-area.--active {
414
+ display: block;
415
+ }
416
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-btn-area {
417
+ display: flex;
418
+ border-bottom: 1px solid var(--editor-border);
419
+ }
420
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-btn-area .de-btn {
421
+ flex: 1;
422
+ height: 24px;
423
+ color: var(--editor-text-disabled);
424
+ }
425
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-btn-area .de-btn.--active {
426
+ color: var(--editor-text);
427
+ }
428
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-link-text-area {
429
+ display: flex;
430
+ column-gap: 10px;
431
+ padding: 4px;
432
+ }
433
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-link-text-area .de-input {
434
+ flex: 1;
435
+ min-width: 0;
436
+ height: 20px;
437
+ padding: 0 8px;
438
+ background: var(--editor-background);
439
+ color: var(--editor-text);
440
+ border: 1px solid var(--editor-border);
441
+ box-sizing: border-box;
442
+ }
443
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-link-text-area .de-input.--error {
444
+ border-color: red;
445
+ }
446
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-link-text-area .de-btn {
447
+ min-width: 50px;
448
+ height: 20px;
449
+ }
450
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-link-heading-area {
451
+ display: flex;
452
+ flex-direction: column;
453
+ max-height: 150px;
454
+ padding: 8px;
455
+ box-sizing: border-box;
456
+ overflow-y: auto;
457
+ }
458
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-link-heading-area .de-btn {
459
+ padding: 2px 4px;
460
+ text-align: left;
461
+ border-radius: var(--editor-radius-default);
462
+ }
463
+ .dragon-editor .de-menu-bar .de-link-exit-area .de-link-heading-area .de-btn:hover {
464
+ background: var(--editor-decoration-code-bg);
465
+ }
466
+ .dragon-editor .de-block {
467
+ width: 100%;
468
+ padding: 2px 0;
469
+ box-sizing: border-box;
470
+ }
471
+ .dragon-editor .de-text-block {
472
+ min-height: 1.6em;
473
+ word-break: break-all;
474
+ outline: 0;
475
+ }
476
+ .dragon-editor .de-text-block:empty:hover::before, .dragon-editor .de-text-block:empty:focus::before {
477
+ display: inline;
478
+ content: "Type a paragraph";
479
+ color: #ccc;
480
+ cursor: text;
481
+ }
482
+ .dragon-editor .de-heading-block {
483
+ min-height: 1.6em;
484
+ font-weight: bold;
485
+ word-break: break-all;
486
+ outline: 0;
487
+ }
488
+ .dragon-editor .de-heading-block[data-level="1"] {
489
+ font-size: 2em;
490
+ }
491
+ .dragon-editor .de-heading-block[data-level="2"] {
492
+ font-size: 1.5em;
493
+ }
494
+ .dragon-editor .de-heading-block[data-level="3"] {
495
+ font-size: 1.17em;
496
+ }
497
+ .dragon-editor .de-heading-block:empty:hover::before, .dragon-editor .de-heading-block:empty:focus::before {
498
+ display: inline;
499
+ content: "Type a Heading";
500
+ color: #ccc;
501
+ cursor: text;
502
+ }
503
+ .dragon-editor .de-list-block {
504
+ display: flex;
505
+ flex-direction: column;
506
+ row-gap: 4px;
507
+ padding-left: 24px;
508
+ }
509
+ .dragon-editor .de-list-block[data-type=unordered] {
510
+ list-style: disc;
511
+ }
512
+ .dragon-editor .de-list-block[data-type=unordered] .de-list-sub {
513
+ list-style: circle;
514
+ }
515
+ .dragon-editor .de-list-block[data-type=unordered] .de-list-sub .de-list-sub {
516
+ list-style: square;
517
+ }
518
+ .dragon-editor .de-list-block[data-type=unordered] .de-list-sub .de-list-sub .de-list-sub {
519
+ list-style: disclosure-closed;
520
+ }
521
+ .dragon-editor .de-list-block[data-type=unordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
522
+ list-style: "- ";
523
+ }
524
+ .dragon-editor .de-list-block[data-type=unordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
525
+ list-style: "* ";
526
+ }
527
+ .dragon-editor .de-list-block[data-type=ordered] {
528
+ list-style: decimal;
529
+ }
530
+ .dragon-editor .de-list-block[data-type=ordered] .de-list-sub {
531
+ list-style: lower-alpha;
532
+ }
533
+ .dragon-editor .de-list-block[data-type=ordered] .de-list-sub .de-list-sub {
534
+ list-style: lower-roman;
535
+ }
536
+ .dragon-editor .de-list-block[data-type=ordered] .de-list-sub .de-list-sub .de-list-sub {
537
+ list-style: upper-alpha;
538
+ }
539
+ .dragon-editor .de-list-block[data-type=ordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
540
+ list-style: upper-roman;
541
+ }
542
+ .dragon-editor .de-list-block[data-type=ordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
543
+ list-style: decimal;
544
+ }
545
+ .dragon-editor .de-list-block .de-item {
546
+ list-style: inherit;
547
+ }
548
+ .dragon-editor .de-list-block .de-item-text {
549
+ min-height: 1.6em;
550
+ word-break: break-all;
551
+ outline: 0;
552
+ }
553
+ .dragon-editor .de-list-block .de-item-text:empty:hover::before, .dragon-editor .de-list-block .de-item-text:empty:focus::before {
554
+ display: inline;
555
+ content: "Type a list item";
556
+ color: #ccc;
557
+ cursor: text;
558
+ }
559
+ .dragon-editor .de-list-block .de-list-sub {
560
+ padding-left: 30px;
561
+ }
562
+ .dragon-editor .de-image-block {
563
+ display: flex;
564
+ align-items: center;
565
+ flex-direction: column;
566
+ row-gap: 8px;
567
+ }
568
+ .dragon-editor .de-image-block.de-align-left {
569
+ align-items: flex-start;
570
+ }
571
+ .dragon-editor .de-image-block.de-align-left .de-caption {
572
+ text-align: left;
573
+ }
574
+ .dragon-editor .de-image-block.de-align-right {
575
+ align-items: flex-end;
576
+ }
577
+ .dragon-editor .de-image-block.de-align-right .de-caption {
578
+ text-align: right;
579
+ }
580
+ .dragon-editor .de-image-block .de-image-area {
581
+ position: relative;
582
+ max-width: 25%;
583
+ }
584
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="25"] {
585
+ max-width: 25%;
586
+ }
587
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="26"] {
588
+ max-width: 26%;
589
+ }
590
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="27"] {
591
+ max-width: 27%;
592
+ }
593
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="28"] {
594
+ max-width: 28%;
595
+ }
596
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="29"] {
597
+ max-width: 29%;
598
+ }
599
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="30"] {
600
+ max-width: 30%;
601
+ }
602
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="31"] {
603
+ max-width: 31%;
604
+ }
605
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="32"] {
606
+ max-width: 32%;
607
+ }
608
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="33"] {
609
+ max-width: 33%;
610
+ }
611
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="34"] {
612
+ max-width: 34%;
613
+ }
614
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="35"] {
615
+ max-width: 35%;
616
+ }
617
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="36"] {
618
+ max-width: 36%;
619
+ }
620
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="37"] {
621
+ max-width: 37%;
622
+ }
623
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="38"] {
624
+ max-width: 38%;
625
+ }
626
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="39"] {
627
+ max-width: 39%;
628
+ }
629
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="40"] {
630
+ max-width: 40%;
631
+ }
632
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="41"] {
633
+ max-width: 41%;
634
+ }
635
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="42"] {
636
+ max-width: 42%;
637
+ }
638
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="43"] {
639
+ max-width: 43%;
640
+ }
641
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="44"] {
642
+ max-width: 44%;
643
+ }
644
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="45"] {
645
+ max-width: 45%;
646
+ }
647
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="46"] {
648
+ max-width: 46%;
649
+ }
650
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="47"] {
651
+ max-width: 47%;
652
+ }
653
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="48"] {
654
+ max-width: 48%;
655
+ }
656
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="49"] {
657
+ max-width: 49%;
658
+ }
659
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="50"] {
660
+ max-width: 50%;
661
+ }
662
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="51"] {
663
+ max-width: 51%;
664
+ }
665
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="52"] {
666
+ max-width: 52%;
667
+ }
668
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="53"] {
669
+ max-width: 53%;
670
+ }
671
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="54"] {
672
+ max-width: 54%;
673
+ }
674
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="55"] {
675
+ max-width: 55%;
676
+ }
677
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="56"] {
678
+ max-width: 56%;
679
+ }
680
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="57"] {
681
+ max-width: 57%;
682
+ }
683
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="58"] {
684
+ max-width: 58%;
685
+ }
686
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="59"] {
687
+ max-width: 59%;
688
+ }
689
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="60"] {
690
+ max-width: 60%;
691
+ }
692
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="61"] {
693
+ max-width: 61%;
694
+ }
695
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="62"] {
696
+ max-width: 62%;
697
+ }
698
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="63"] {
699
+ max-width: 63%;
700
+ }
701
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="64"] {
702
+ max-width: 64%;
703
+ }
704
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="65"] {
705
+ max-width: 65%;
706
+ }
707
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="66"] {
708
+ max-width: 66%;
709
+ }
710
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="67"] {
711
+ max-width: 67%;
712
+ }
713
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="68"] {
714
+ max-width: 68%;
715
+ }
716
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="69"] {
717
+ max-width: 69%;
718
+ }
719
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="70"] {
720
+ max-width: 70%;
721
+ }
722
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="71"] {
723
+ max-width: 71%;
724
+ }
725
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="72"] {
726
+ max-width: 72%;
727
+ }
728
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="73"] {
729
+ max-width: 73%;
730
+ }
731
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="74"] {
732
+ max-width: 74%;
733
+ }
734
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="75"] {
735
+ max-width: 75%;
736
+ }
737
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="76"] {
738
+ max-width: 76%;
739
+ }
740
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="77"] {
741
+ max-width: 77%;
742
+ }
743
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="78"] {
744
+ max-width: 78%;
745
+ }
746
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="79"] {
747
+ max-width: 79%;
748
+ }
749
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="80"] {
750
+ max-width: 80%;
751
+ }
752
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="81"] {
753
+ max-width: 81%;
754
+ }
755
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="82"] {
756
+ max-width: 82%;
757
+ }
758
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="83"] {
759
+ max-width: 83%;
760
+ }
761
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="84"] {
762
+ max-width: 84%;
763
+ }
764
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="85"] {
765
+ max-width: 85%;
766
+ }
767
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="86"] {
768
+ max-width: 86%;
769
+ }
770
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="87"] {
771
+ max-width: 87%;
772
+ }
773
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="88"] {
774
+ max-width: 88%;
775
+ }
776
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="89"] {
777
+ max-width: 89%;
778
+ }
779
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="90"] {
780
+ max-width: 90%;
781
+ }
782
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="91"] {
783
+ max-width: 91%;
784
+ }
785
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="92"] {
786
+ max-width: 92%;
787
+ }
788
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="93"] {
789
+ max-width: 93%;
790
+ }
791
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="94"] {
792
+ max-width: 94%;
793
+ }
794
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="95"] {
795
+ max-width: 95%;
796
+ }
797
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="96"] {
798
+ max-width: 96%;
799
+ }
800
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="97"] {
801
+ max-width: 97%;
802
+ }
803
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="98"] {
804
+ max-width: 98%;
805
+ }
806
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="99"] {
807
+ max-width: 99%;
808
+ }
809
+ .dragon-editor .de-image-block .de-image-area[data-maxwidth="100"] {
810
+ max-width: 100%;
811
+ }
812
+ .dragon-editor .de-image-block .de-image-area .de-img {
813
+ width: 100%;
814
+ height: auto;
815
+ border-radius: var(--editor-radius-default);
816
+ }
817
+ .dragon-editor .de-image-block .de-image-area .de-btn {
818
+ position: absolute;
819
+ top: 50%;
820
+ width: 8px;
821
+ height: 15%;
822
+ background: #f1f1f1;
823
+ border: 1px solid #ccc;
824
+ border-radius: var(--editor-radius-default);
825
+ transform: translate(-50%, -50%);
826
+ cursor: col-resize;
827
+ user-select: none;
828
+ z-index: 100;
829
+ }
830
+ .dragon-editor .de-image-block .de-image-area .de-btn.de-btn-left {
831
+ left: 0;
832
+ }
833
+ .dragon-editor .de-image-block .de-image-area .de-btn.de-btn-right {
834
+ left: 100%;
835
+ }
836
+ .dragon-editor .de-image-block .de-caption {
837
+ width: 100%;
838
+ min-height: 1.6em;
839
+ color: #909090;
840
+ text-align: center;
841
+ word-break: break-all;
842
+ outline: 0;
843
+ }
844
+ .dragon-editor .de-image-block .de-caption:empty:hover::before, .dragon-editor .de-image-block .de-caption:empty:focus::before {
845
+ display: inline;
846
+ content: "Type a caption";
847
+ color: #ccc;
848
+ cursor: text;
849
+ }
850
+ .dragon-editor .de-code-block {
851
+ display: flex;
852
+ flex-wrap: wrap;
853
+ margin: 2px 0;
854
+ padding: 0;
855
+ color: var(--editor-code-color);
856
+ background: var(--editor-code-bg);
857
+ border-radius: var(--editor-radius-default);
858
+ }
859
+ .dragon-editor .de-code-block .de-filename {
860
+ flex: 1;
861
+ max-width: calc(100% - 120px);
862
+ padding: 5px 10px;
863
+ color: var(--editor-code-color);
864
+ background: var(--editor-code-file-bg);
865
+ box-sizing: border-box;
866
+ outline: 0;
867
+ }
868
+ .dragon-editor .de-code-block .de-filename:empty:hover::before, .dragon-editor .de-code-block .de-filename:empty:focus::before {
869
+ display: inline;
870
+ content: "Type a Filename";
871
+ color: var(--editor-code-placeholder);
872
+ cursor: text;
873
+ }
874
+ .dragon-editor .de-code-block .de-language {
875
+ width: 120px;
876
+ text-align: right;
877
+ padding: 5px 10px;
878
+ color: var(--editor-code-color);
879
+ background: var(--editor-code-file-bg);
880
+ box-sizing: border-box;
881
+ position: relative;
882
+ }
883
+ .dragon-editor .de-code-block .de-language:empty:hover::before, .dragon-editor .de-code-block .de-language:empty:focus::before {
884
+ color: var(--editor-code-placeholder);
885
+ }
886
+ .dragon-editor .de-code-block .de-language .de-btn-language {
887
+ width: 100%;
888
+ text-align: right;
889
+ }
890
+ .dragon-editor .de-code-block .de-language .de-list-language {
891
+ display: none;
892
+ flex-direction: column;
893
+ row-gap: 6px;
894
+ position: absolute;
895
+ top: 100%;
896
+ right: 0;
897
+ left: 0;
898
+ height: 200px;
899
+ padding: 2px 4px;
900
+ background: var(--editor-code-file-bg);
901
+ overflow-y: scroll;
902
+ }
903
+ .dragon-editor .de-code-block .de-language .de-list-language.--active {
904
+ display: flex;
905
+ }
906
+ .dragon-editor .de-code-block .de-pre-wrap {
907
+ display: flex;
908
+ width: 100%;
909
+ overflow-x: auto;
910
+ }
911
+ .dragon-editor .de-code-block .de-pre-wrap .de-number {
912
+ padding: 10px 4px;
913
+ background: var(--editor-code-number);
914
+ color: var(--editor-code-number-bg);
915
+ }
916
+ .dragon-editor .de-code-block .de-pre-wrap .de-number .de-number-item {
917
+ min-height: 1.6em;
918
+ font-family: Inconsolata, monospace, sans-serif;
919
+ text-align: right;
920
+ }
921
+ .dragon-editor .de-code-block .de-pre {
922
+ flex: 1;
923
+ padding: 10px;
924
+ box-sizing: border-box;
925
+ }
926
+ .dragon-editor .de-code-block .de-pre .de-code-content {
927
+ display: block;
928
+ min-height: 1.6em;
929
+ min-width: 100%;
930
+ font-family: Inconsolata, monospace, sans-serif;
931
+ outline: 0;
932
+ }
933
+ .dragon-editor .de-code-block .de-pre .de-code-content:empty:hover::before, .dragon-editor .de-code-block .de-pre .de-code-content:empty:focus::before {
934
+ display: inline;
935
+ content: "Type a Code";
936
+ color: var(--editor-code-placeholder);
937
+ cursor: text;
938
+ }
939
+ .dragon-editor .de-code-block .hljs-doctag,
940
+ .dragon-editor .de-code-block .hljs-keyword,
941
+ .dragon-editor .de-code-block .hljs-meta .hljs-keyword,
942
+ .dragon-editor .de-code-block .hljs-template-tag,
943
+ .dragon-editor .de-code-block .hljs-template-variable,
944
+ .dragon-editor .de-code-block .hljs-type,
945
+ .dragon-editor .de-code-block .hljs-variable.language_ {
946
+ /* prettylights-syntax-keyword */
947
+ color: var(--editor-code-keyword);
948
+ }
949
+ .dragon-editor .de-code-block .hljs-title,
950
+ .dragon-editor .de-code-block .hljs-title.class_,
951
+ .dragon-editor .de-code-block .hljs-title.class_.inherited__,
952
+ .dragon-editor .de-code-block .hljs-title.function_ {
953
+ /* prettylights-syntax-entity */
954
+ color: var(--editor-code-entity);
955
+ }
956
+ .dragon-editor .de-code-block .hljs-attr,
957
+ .dragon-editor .de-code-block .hljs-attribute,
958
+ .dragon-editor .de-code-block .hljs-literal,
959
+ .dragon-editor .de-code-block .hljs-meta,
960
+ .dragon-editor .de-code-block .hljs-number,
961
+ .dragon-editor .de-code-block .hljs-operator,
962
+ .dragon-editor .de-code-block .hljs-variable,
963
+ .dragon-editor .de-code-block .hljs-selector-attr,
964
+ .dragon-editor .de-code-block .hljs-selector-class,
965
+ .dragon-editor .de-code-block .hljs-selector-id {
966
+ /* prettylights-syntax-constant */
967
+ color: var(--editor-code-constant);
968
+ }
969
+ .dragon-editor .de-code-block .hljs-regexp,
970
+ .dragon-editor .de-code-block .hljs-string,
971
+ .dragon-editor .de-code-block .hljs-meta .hljs-string {
972
+ /* prettylights-syntax-string */
973
+ color: var(--editor-code-string);
974
+ }
975
+ .dragon-editor .de-code-block .hljs-built_in,
976
+ .dragon-editor .de-code-block .hljs-symbol {
977
+ /* prettylights-syntax-variable */
978
+ color: var(--editor-code-variable);
979
+ }
980
+ .dragon-editor .de-code-block .hljs-comment,
981
+ .dragon-editor .de-code-block .hljs-code,
982
+ .dragon-editor .de-code-block .hljs-formula {
983
+ /* prettylights-syntax-comment */
984
+ color: var(--editor-code-comment);
985
+ }
986
+ .dragon-editor .de-code-block .hljs-name,
987
+ .dragon-editor .de-code-block .hljs-quote,
988
+ .dragon-editor .de-code-block .hljs-selector-tag,
989
+ .dragon-editor .de-code-block .hljs-selector-pseudo {
990
+ /* prettylights-syntax-entity-tag */
991
+ color: var(--editor-code-entity-tag);
992
+ }
993
+ .dragon-editor .de-code-block .hljs-subst {
994
+ /* prettylights-syntax-storage-modifier-import */
995
+ color: var(--editor-code-storage-modifier-import);
996
+ }
997
+ .dragon-editor .de-code-block .hljs-section {
998
+ /* prettylights-syntax-markup-heading */
999
+ color: var(--editor-code-markup-heading);
1000
+ font-weight: bold;
1001
+ }
1002
+ .dragon-editor .de-code-block .hljs-bullet {
1003
+ /* prettylights-syntax-markup-list */
1004
+ color: var(--editor-code-markup-list);
1005
+ }
1006
+ .dragon-editor .de-code-block .hljs-emphasis {
1007
+ /* prettylights-syntax-markup-italic */
1008
+ color: var(--editor-code-markup-italic);
1009
+ font-style: italic;
1010
+ }
1011
+ .dragon-editor .de-code-block .hljs-strong {
1012
+ /* prettylights-syntax-markup-bold */
1013
+ color: var(--editor-code-markup-bold);
1014
+ font-weight: bold;
1015
+ }
1016
+ .dragon-editor .de-code-block .hljs-addition {
1017
+ /* prettylights-syntax-markup-inserted */
1018
+ color: var(--editor-code-markup-inserted);
1019
+ background-color: var(--editor-code-markup-inserted-bg);
1020
+ }
1021
+ .dragon-editor .de-code-block .hljs-deletion {
1022
+ /* prettylights-syntax-markup-deleted */
1023
+ color: var(--editor-code-markup-deleted);
1024
+ background-color: var(--editor-code-markup-deleted-bg);
1025
+ }
1026
+ .dragon-editor .de-divider-block {
1027
+ display: flex;
1028
+ align-items: center;
1029
+ height: 20px;
1030
+ }
1031
+ .dragon-editor .de-divider-block::before {
1032
+ display: block;
1033
+ content: "";
1034
+ width: 100%;
1035
+ height: 2px;
1036
+ padding: 0;
1037
+ background: var(--editor-divider);
1038
+ border-radius: 2px;
1039
+ }
1040
+ .dragon-editor .de-bold {
1041
+ font-weight: 700;
1042
+ }
1043
+ .dragon-editor .de-italic {
1044
+ font-style: italic;
1045
+ }
1046
+ .dragon-editor .de-underline {
1047
+ text-decoration: underline;
1048
+ }
1049
+ .dragon-editor .de-underline.de-strikethrough {
1050
+ text-decoration: underline line-through;
1051
+ }
1052
+ .dragon-editor .de-strikethrough {
1053
+ text-decoration: line-through;
1054
+ }
1055
+ .dragon-editor .de-strikethrough.de-underline {
1056
+ text-decoration: line-through underline;
1057
+ }
1058
+ .dragon-editor .de-code {
1059
+ display: inline-block;
1060
+ padding: 2px 4px;
1061
+ background: var(--editor-decoration-code-bg);
1062
+ color: var(--editor-decoration-code-color);
1063
+ border-radius: 5px;
1064
+ }
1065
+ .dragon-editor .de-align-left {
1066
+ text-align: left;
1067
+ }
1068
+ .dragon-editor .de-align-right {
1069
+ text-align: right;
1070
+ }
1071
+ .dragon-editor .de-align-center {
1072
+ text-align: center;
1073
+ }
1074
+ .dragon-editor .de-align-justify {
1075
+ text-align: justify;
1076
+ }
1077
+ .dragon-editor .de-link {
1078
+ color: #2c95fe;
1079
+ text-decoration: none;
1080
+ }
1081
+ </style>