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.
@@ -8,7 +8,6 @@
8
8
  </template>
9
9
 
10
10
  <script setup>
11
- import "../scss/viewer.scss";
12
11
  import { _getBody } from "../utils/layout";
13
12
  import { useEditorStore } from "../store/editor";
14
13
  const editorStore = useEditorStore();
@@ -23,3 +22,773 @@ editorStore.option.isMobile = props.isMobile;
23
22
  editorStore.option.mediaHostURL = props.mediaHostURL;
24
23
  editorStore.option.codeBlockSpaces = props.codeBlockSpaces;
25
24
  </script>
25
+
26
+ <style>
27
+ @charset "UTF-8";
28
+ .dragon-editor,
29
+ .dragon-editor-viewer {
30
+ --editor-radius-default: 4px;
31
+ }
32
+ .dragon-editor[data-theme=dark],
33
+ .dragon-editor-viewer[data-theme=dark] {
34
+ --editor-text: #dfdfe1;
35
+ --editor-text-disabled: #768390;
36
+ --editor-background: #09090b;
37
+ --editor-border: #555;
38
+ --editor-divider: #333;
39
+ --editor-decoration-code-color:#fff;
40
+ --editor-decoration-code-bg:#555;
41
+ --editor-code-color: #adbac7;
42
+ --editor-code-bg: #22272e;
43
+ --editor-code-file-bg: #494e54;
44
+ --editor-code-placeholder: #96a0aa;
45
+ --editor-code-number: #555;
46
+ --editor-code-number-bg: #e5e5e5;
47
+ --editor-code-keyword: #f47067;
48
+ --editor-code-entity: #dcbdfb;
49
+ --editor-code-constant: #6cb6ff;
50
+ --editor-code-string: #96d0ff;
51
+ --editor-code-variable: #f69d50;
52
+ --editor-code-comment: #768390;
53
+ --editor-code-entity-tag: #8ddb8c;
54
+ --editor-code-storage-modifier-import: #adbac7;
55
+ --editor-code-markup-heading: #316dca;
56
+ --editor-code-markup-list: #eac55f;
57
+ --editor-code-markup-italic: #adbac7;
58
+ --editor-code-markup-bold: #adbac7;
59
+ --editor-code-markup-inserted: #b4f1b4;
60
+ --editor-code-markup-inserted-bg: #1b4721;
61
+ --editor-code-markup-deleted: #ffd8d3;
62
+ --editor-code-markup-deleted-bg: #78191b;
63
+ }
64
+ .dragon-editor[data-theme=white],
65
+ .dragon-editor-viewer[data-theme=white] {
66
+ --editor-text: #333;
67
+ --editor-text-disabled: #ccc;
68
+ --editor-background: #f9f9f9;
69
+ --editor-border: #ccc;
70
+ --editor-divider: #e5e5e5;
71
+ --editor-decoration-code-color:#ff0000;
72
+ --editor-decoration-code-bg:#f1f1f1;
73
+ --editor-code-color: #24292e;
74
+ --editor-code-bg: #f1f1f1;
75
+ --editor-code-file-bg: #ccc;
76
+ --editor-code-placeholder: #8b8d8f;
77
+ --editor-code-number: #e5e5e5;
78
+ --editor-code-number-bg: #8c8c8c;
79
+ --editor-code-keyword: #d73a49;
80
+ --editor-code-entity: #6f42c1;
81
+ --editor-code-constant: #005cc5;
82
+ --editor-code-string: #032f62;
83
+ --editor-code-variable: #e36209;
84
+ --editor-code-comment: #6a737d;
85
+ --editor-code-entity-tag: #22863a;
86
+ --editor-code-storage-modifier-import: #24292e;
87
+ --editor-code-markup-heading: #005cc5;
88
+ --editor-code-markup-list: #735c0f;
89
+ --editor-code-markup-italic: #24292e;
90
+ --editor-code-markup-bold: #24292e;
91
+ --editor-code-markup-inserted: #22863a;
92
+ --editor-code-markup-inserted-bg: #f0fff4;
93
+ --editor-code-markup-deleted: #b31d28;
94
+ --editor-code-markup-deleted-bg: #ffeef0;
95
+ }
96
+ .dragon-editor,
97
+ .dragon-editor-viewer {
98
+ /**
99
+ * Reset style start
100
+ */
101
+ }
102
+ .dragon-editor h1,
103
+ .dragon-editor h2,
104
+ .dragon-editor h3,
105
+ .dragon-editor h4,
106
+ .dragon-editor h5,
107
+ .dragon-editor h6,
108
+ .dragon-editor p,
109
+ .dragon-editor blockquote,
110
+ .dragon-editor pre,
111
+ .dragon-editor dl,
112
+ .dragon-editor dd,
113
+ .dragon-editor ol,
114
+ .dragon-editor ul,
115
+ .dragon-editor fieldset,
116
+ .dragon-editor legend,
117
+ .dragon-editor figure,
118
+ .dragon-editor menu,
119
+ .dragon-editor hr,
120
+ .dragon-editor-viewer h1,
121
+ .dragon-editor-viewer h2,
122
+ .dragon-editor-viewer h3,
123
+ .dragon-editor-viewer h4,
124
+ .dragon-editor-viewer h5,
125
+ .dragon-editor-viewer h6,
126
+ .dragon-editor-viewer p,
127
+ .dragon-editor-viewer blockquote,
128
+ .dragon-editor-viewer pre,
129
+ .dragon-editor-viewer dl,
130
+ .dragon-editor-viewer dd,
131
+ .dragon-editor-viewer ol,
132
+ .dragon-editor-viewer ul,
133
+ .dragon-editor-viewer fieldset,
134
+ .dragon-editor-viewer legend,
135
+ .dragon-editor-viewer figure,
136
+ .dragon-editor-viewer menu,
137
+ .dragon-editor-viewer hr {
138
+ margin: 0;
139
+ padding: 0;
140
+ border: 0;
141
+ }
142
+ .dragon-editor table,
143
+ .dragon-editor th,
144
+ .dragon-editor td,
145
+ .dragon-editor-viewer table,
146
+ .dragon-editor-viewer th,
147
+ .dragon-editor-viewer td {
148
+ border-spacing: 0;
149
+ border-collapse: collapse;
150
+ }
151
+ .dragon-editor ol,
152
+ .dragon-editor ul,
153
+ .dragon-editor li,
154
+ .dragon-editor-viewer ol,
155
+ .dragon-editor-viewer ul,
156
+ .dragon-editor-viewer li {
157
+ list-style: none;
158
+ }
159
+ .dragon-editor h1,
160
+ .dragon-editor h2,
161
+ .dragon-editor h3,
162
+ .dragon-editor h4,
163
+ .dragon-editor h5,
164
+ .dragon-editor h6,
165
+ .dragon-editor-viewer h1,
166
+ .dragon-editor-viewer h2,
167
+ .dragon-editor-viewer h3,
168
+ .dragon-editor-viewer h4,
169
+ .dragon-editor-viewer h5,
170
+ .dragon-editor-viewer h6 {
171
+ font-size: inherit;
172
+ font-weight: normal;
173
+ }
174
+ .dragon-editor input,
175
+ .dragon-editor textarea,
176
+ .dragon-editor select,
177
+ .dragon-editor button,
178
+ .dragon-editor-viewer input,
179
+ .dragon-editor-viewer textarea,
180
+ .dragon-editor-viewer select,
181
+ .dragon-editor-viewer button {
182
+ margin: 0;
183
+ padding: 0;
184
+ border-radius: 0;
185
+ outline: 0;
186
+ font-size: inherit;
187
+ vertical-align: middle;
188
+ }
189
+ .dragon-editor a,
190
+ .dragon-editor button,
191
+ .dragon-editor input[type=submit],
192
+ .dragon-editor input[type=button],
193
+ .dragon-editor input[type=reset],
194
+ .dragon-editor-viewer a,
195
+ .dragon-editor-viewer button,
196
+ .dragon-editor-viewer input[type=submit],
197
+ .dragon-editor-viewer input[type=button],
198
+ .dragon-editor-viewer input[type=reset] {
199
+ border: 0;
200
+ background: transparent;
201
+ color: inherit;
202
+ font-size: inherit;
203
+ cursor: pointer;
204
+ }
205
+ .dragon-editor img,
206
+ .dragon-editor-viewer img {
207
+ border: 0;
208
+ vertical-align: top;
209
+ }
210
+ .dragon-editor .de-block[data-depth="1"],
211
+ .dragon-editor-viewer .de-block[data-depth="1"] {
212
+ padding-left: 30px;
213
+ }
214
+ .dragon-editor .de-block[data-depth="2"],
215
+ .dragon-editor-viewer .de-block[data-depth="2"] {
216
+ padding-left: 60px;
217
+ }
218
+ .dragon-editor .de-block[data-depth="3"],
219
+ .dragon-editor-viewer .de-block[data-depth="3"] {
220
+ padding-left: 90px;
221
+ }
222
+ .dragon-editor .de-block[data-depth="4"],
223
+ .dragon-editor-viewer .de-block[data-depth="4"] {
224
+ padding-left: 120px;
225
+ }
226
+ .dragon-editor .de-block[data-depth="5"],
227
+ .dragon-editor-viewer .de-block[data-depth="5"] {
228
+ padding-left: 150px;
229
+ }
230
+
231
+ /**
232
+ * 노드 스타일
233
+ */
234
+ .dragon-editor-viewer {
235
+ width: 100%;
236
+ line-height: 1.6;
237
+ box-sizing: border-box;
238
+ }
239
+ .dragon-editor-viewer .de-block {
240
+ width: 100%;
241
+ padding: 2px 0;
242
+ box-sizing: border-box;
243
+ }
244
+ .dragon-editor-viewer .de-text-block {
245
+ min-height: 1.6em;
246
+ word-break: break-all;
247
+ outline: 0;
248
+ }
249
+ .dragon-editor-viewer .de-heading-block {
250
+ min-height: 1.6em;
251
+ font-weight: bold;
252
+ word-break: break-all;
253
+ outline: 0;
254
+ }
255
+ .dragon-editor-viewer .de-heading-block[data-level="1"] {
256
+ font-size: 2em;
257
+ }
258
+ .dragon-editor-viewer .de-heading-block[data-level="2"] {
259
+ font-size: 1.5em;
260
+ }
261
+ .dragon-editor-viewer .de-heading-block[data-level="3"] {
262
+ font-size: 1.17em;
263
+ }
264
+ .dragon-editor-viewer .de-list-block {
265
+ display: flex;
266
+ flex-direction: column;
267
+ row-gap: 4px;
268
+ padding-left: 24px;
269
+ }
270
+ .dragon-editor-viewer .de-list-block[data-type=unordered] {
271
+ list-style: disc;
272
+ }
273
+ .dragon-editor-viewer .de-list-block[data-type=unordered] .de-list-sub {
274
+ list-style: circle;
275
+ }
276
+ .dragon-editor-viewer .de-list-block[data-type=unordered] .de-list-sub .de-list-sub {
277
+ list-style: square;
278
+ }
279
+ .dragon-editor-viewer .de-list-block[data-type=unordered] .de-list-sub .de-list-sub .de-list-sub {
280
+ list-style: disclosure-closed;
281
+ }
282
+ .dragon-editor-viewer .de-list-block[data-type=unordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
283
+ list-style: "- ";
284
+ }
285
+ .dragon-editor-viewer .de-list-block[data-type=unordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
286
+ list-style: "* ";
287
+ }
288
+ .dragon-editor-viewer .de-list-block[data-type=ordered] {
289
+ list-style: decimal;
290
+ }
291
+ .dragon-editor-viewer .de-list-block[data-type=ordered] .de-list-sub {
292
+ list-style: lower-alpha;
293
+ }
294
+ .dragon-editor-viewer .de-list-block[data-type=ordered] .de-list-sub .de-list-sub {
295
+ list-style: lower-roman;
296
+ }
297
+ .dragon-editor-viewer .de-list-block[data-type=ordered] .de-list-sub .de-list-sub .de-list-sub {
298
+ list-style: upper-alpha;
299
+ }
300
+ .dragon-editor-viewer .de-list-block[data-type=ordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
301
+ list-style: upper-roman;
302
+ }
303
+ .dragon-editor-viewer .de-list-block[data-type=ordered] .de-list-sub .de-list-sub .de-list-sub .de-list-sub .de-list-sub {
304
+ list-style: decimal;
305
+ }
306
+ .dragon-editor-viewer .de-list-block .de-item {
307
+ list-style: inherit;
308
+ }
309
+ .dragon-editor-viewer .de-list-block .de-item-text {
310
+ min-height: 1.6em;
311
+ word-break: break-all;
312
+ outline: 0;
313
+ }
314
+ .dragon-editor-viewer .de-list-block .de-list-sub {
315
+ padding-left: 30px;
316
+ }
317
+ .dragon-editor-viewer .de-image-block {
318
+ display: flex;
319
+ align-items: center;
320
+ flex-direction: column;
321
+ row-gap: 8px;
322
+ }
323
+ .dragon-editor-viewer .de-image-block.de-align-left {
324
+ align-items: flex-start;
325
+ }
326
+ .dragon-editor-viewer .de-image-block.de-align-left .de-caption {
327
+ text-align: left;
328
+ }
329
+ .dragon-editor-viewer .de-image-block.de-align-right {
330
+ align-items: flex-end;
331
+ }
332
+ .dragon-editor-viewer .de-image-block.de-align-right .de-caption {
333
+ text-align: right;
334
+ }
335
+ .dragon-editor-viewer .de-image-block .de-image-area {
336
+ position: relative;
337
+ max-width: 25%;
338
+ }
339
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="25"] {
340
+ max-width: 25%;
341
+ }
342
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="26"] {
343
+ max-width: 26%;
344
+ }
345
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="27"] {
346
+ max-width: 27%;
347
+ }
348
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="28"] {
349
+ max-width: 28%;
350
+ }
351
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="29"] {
352
+ max-width: 29%;
353
+ }
354
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="30"] {
355
+ max-width: 30%;
356
+ }
357
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="31"] {
358
+ max-width: 31%;
359
+ }
360
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="32"] {
361
+ max-width: 32%;
362
+ }
363
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="33"] {
364
+ max-width: 33%;
365
+ }
366
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="34"] {
367
+ max-width: 34%;
368
+ }
369
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="35"] {
370
+ max-width: 35%;
371
+ }
372
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="36"] {
373
+ max-width: 36%;
374
+ }
375
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="37"] {
376
+ max-width: 37%;
377
+ }
378
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="38"] {
379
+ max-width: 38%;
380
+ }
381
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="39"] {
382
+ max-width: 39%;
383
+ }
384
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="40"] {
385
+ max-width: 40%;
386
+ }
387
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="41"] {
388
+ max-width: 41%;
389
+ }
390
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="42"] {
391
+ max-width: 42%;
392
+ }
393
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="43"] {
394
+ max-width: 43%;
395
+ }
396
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="44"] {
397
+ max-width: 44%;
398
+ }
399
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="45"] {
400
+ max-width: 45%;
401
+ }
402
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="46"] {
403
+ max-width: 46%;
404
+ }
405
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="47"] {
406
+ max-width: 47%;
407
+ }
408
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="48"] {
409
+ max-width: 48%;
410
+ }
411
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="49"] {
412
+ max-width: 49%;
413
+ }
414
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="50"] {
415
+ max-width: 50%;
416
+ }
417
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="51"] {
418
+ max-width: 51%;
419
+ }
420
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="52"] {
421
+ max-width: 52%;
422
+ }
423
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="53"] {
424
+ max-width: 53%;
425
+ }
426
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="54"] {
427
+ max-width: 54%;
428
+ }
429
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="55"] {
430
+ max-width: 55%;
431
+ }
432
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="56"] {
433
+ max-width: 56%;
434
+ }
435
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="57"] {
436
+ max-width: 57%;
437
+ }
438
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="58"] {
439
+ max-width: 58%;
440
+ }
441
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="59"] {
442
+ max-width: 59%;
443
+ }
444
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="60"] {
445
+ max-width: 60%;
446
+ }
447
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="61"] {
448
+ max-width: 61%;
449
+ }
450
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="62"] {
451
+ max-width: 62%;
452
+ }
453
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="63"] {
454
+ max-width: 63%;
455
+ }
456
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="64"] {
457
+ max-width: 64%;
458
+ }
459
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="65"] {
460
+ max-width: 65%;
461
+ }
462
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="66"] {
463
+ max-width: 66%;
464
+ }
465
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="67"] {
466
+ max-width: 67%;
467
+ }
468
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="68"] {
469
+ max-width: 68%;
470
+ }
471
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="69"] {
472
+ max-width: 69%;
473
+ }
474
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="70"] {
475
+ max-width: 70%;
476
+ }
477
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="71"] {
478
+ max-width: 71%;
479
+ }
480
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="72"] {
481
+ max-width: 72%;
482
+ }
483
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="73"] {
484
+ max-width: 73%;
485
+ }
486
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="74"] {
487
+ max-width: 74%;
488
+ }
489
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="75"] {
490
+ max-width: 75%;
491
+ }
492
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="76"] {
493
+ max-width: 76%;
494
+ }
495
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="77"] {
496
+ max-width: 77%;
497
+ }
498
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="78"] {
499
+ max-width: 78%;
500
+ }
501
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="79"] {
502
+ max-width: 79%;
503
+ }
504
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="80"] {
505
+ max-width: 80%;
506
+ }
507
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="81"] {
508
+ max-width: 81%;
509
+ }
510
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="82"] {
511
+ max-width: 82%;
512
+ }
513
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="83"] {
514
+ max-width: 83%;
515
+ }
516
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="84"] {
517
+ max-width: 84%;
518
+ }
519
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="85"] {
520
+ max-width: 85%;
521
+ }
522
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="86"] {
523
+ max-width: 86%;
524
+ }
525
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="87"] {
526
+ max-width: 87%;
527
+ }
528
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="88"] {
529
+ max-width: 88%;
530
+ }
531
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="89"] {
532
+ max-width: 89%;
533
+ }
534
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="90"] {
535
+ max-width: 90%;
536
+ }
537
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="91"] {
538
+ max-width: 91%;
539
+ }
540
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="92"] {
541
+ max-width: 92%;
542
+ }
543
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="93"] {
544
+ max-width: 93%;
545
+ }
546
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="94"] {
547
+ max-width: 94%;
548
+ }
549
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="95"] {
550
+ max-width: 95%;
551
+ }
552
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="96"] {
553
+ max-width: 96%;
554
+ }
555
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="97"] {
556
+ max-width: 97%;
557
+ }
558
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="98"] {
559
+ max-width: 98%;
560
+ }
561
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="99"] {
562
+ max-width: 99%;
563
+ }
564
+ .dragon-editor-viewer .de-image-block .de-image-area[data-maxwidth="100"] {
565
+ max-width: 100%;
566
+ }
567
+ .dragon-editor-viewer .de-image-block .de-image-area .de-img {
568
+ width: 100%;
569
+ height: auto;
570
+ border-radius: var(--editor-radius-default);
571
+ }
572
+ .dragon-editor-viewer .de-image-block .de-image-area .de-btn {
573
+ position: absolute;
574
+ top: 50%;
575
+ width: 8px;
576
+ height: 15%;
577
+ background: #f1f1f1;
578
+ border: 1px solid #ccc;
579
+ border-radius: var(--editor-radius-default);
580
+ transform: translate(-50%, -50%);
581
+ cursor: col-resize;
582
+ user-select: none;
583
+ z-index: 100;
584
+ }
585
+ .dragon-editor-viewer .de-image-block .de-image-area .de-btn.de-btn-left {
586
+ left: 0;
587
+ }
588
+ .dragon-editor-viewer .de-image-block .de-image-area .de-btn.de-btn-right {
589
+ left: 100%;
590
+ }
591
+ .dragon-editor-viewer .de-image-block .de-caption {
592
+ width: 100%;
593
+ min-height: 1.6em;
594
+ color: #909090;
595
+ text-align: center;
596
+ word-break: break-all;
597
+ outline: 0;
598
+ }
599
+ .dragon-editor-viewer .de-code-block {
600
+ display: flex;
601
+ flex-wrap: wrap;
602
+ margin: 2px 0;
603
+ padding: 0;
604
+ color: var(--editor-code-color);
605
+ background: var(--editor-code-bg);
606
+ border-radius: var(--editor-radius-default);
607
+ }
608
+ .dragon-editor-viewer .de-code-block .de-filename {
609
+ flex: 1;
610
+ max-width: calc(100% - 120px);
611
+ padding: 5px 10px;
612
+ color: var(--editor-code-color);
613
+ background: var(--editor-code-file-bg);
614
+ box-sizing: border-box;
615
+ outline: 0;
616
+ }
617
+ .dragon-editor-viewer .de-code-block .de-language {
618
+ width: 120px;
619
+ text-align: right;
620
+ padding: 5px 10px;
621
+ color: var(--editor-code-color);
622
+ background: var(--editor-code-file-bg);
623
+ box-sizing: border-box;
624
+ }
625
+ .dragon-editor-viewer .de-code-block .de-pre-wrap {
626
+ display: flex;
627
+ width: 100%;
628
+ overflow-x: auto;
629
+ }
630
+ .dragon-editor-viewer .de-code-block .de-pre-wrap .de-number {
631
+ padding: 10px 4px;
632
+ background: var(--editor-code-number);
633
+ color: var(--editor-code-number-bg);
634
+ }
635
+ .dragon-editor-viewer .de-code-block .de-pre-wrap .de-number .de-number-item {
636
+ min-height: 1.6em;
637
+ font-family: Inconsolata, monospace, sans-serif;
638
+ text-align: right;
639
+ }
640
+ .dragon-editor-viewer .de-code-block .de-pre {
641
+ flex: 1;
642
+ padding: 10px;
643
+ box-sizing: border-box;
644
+ }
645
+ .dragon-editor-viewer .de-code-block .de-pre .de-code-content {
646
+ display: block;
647
+ min-height: 1.6em;
648
+ min-width: 100%;
649
+ font-family: Inconsolata, monospace, sans-serif;
650
+ outline: 0;
651
+ }
652
+ .dragon-editor-viewer .de-code-block .hljs-doctag,
653
+ .dragon-editor-viewer .de-code-block .hljs-keyword,
654
+ .dragon-editor-viewer .de-code-block .hljs-meta .hljs-keyword,
655
+ .dragon-editor-viewer .de-code-block .hljs-template-tag,
656
+ .dragon-editor-viewer .de-code-block .hljs-template-variable,
657
+ .dragon-editor-viewer .de-code-block .hljs-type,
658
+ .dragon-editor-viewer .de-code-block .hljs-variable.language_ {
659
+ /* prettylights-syntax-keyword */
660
+ color: var(--editor-code-keyword);
661
+ }
662
+ .dragon-editor-viewer .de-code-block .hljs-title,
663
+ .dragon-editor-viewer .de-code-block .hljs-title.class_,
664
+ .dragon-editor-viewer .de-code-block .hljs-title.class_.inherited__,
665
+ .dragon-editor-viewer .de-code-block .hljs-title.function_ {
666
+ /* prettylights-syntax-entity */
667
+ color: var(--editor-code-entity);
668
+ }
669
+ .dragon-editor-viewer .de-code-block .hljs-attr,
670
+ .dragon-editor-viewer .de-code-block .hljs-attribute,
671
+ .dragon-editor-viewer .de-code-block .hljs-literal,
672
+ .dragon-editor-viewer .de-code-block .hljs-meta,
673
+ .dragon-editor-viewer .de-code-block .hljs-number,
674
+ .dragon-editor-viewer .de-code-block .hljs-operator,
675
+ .dragon-editor-viewer .de-code-block .hljs-variable,
676
+ .dragon-editor-viewer .de-code-block .hljs-selector-attr,
677
+ .dragon-editor-viewer .de-code-block .hljs-selector-class,
678
+ .dragon-editor-viewer .de-code-block .hljs-selector-id {
679
+ /* prettylights-syntax-constant */
680
+ color: var(--editor-code-constant);
681
+ }
682
+ .dragon-editor-viewer .de-code-block .hljs-regexp,
683
+ .dragon-editor-viewer .de-code-block .hljs-string,
684
+ .dragon-editor-viewer .de-code-block .hljs-meta .hljs-string {
685
+ /* prettylights-syntax-string */
686
+ color: var(--editor-code-string);
687
+ }
688
+ .dragon-editor-viewer .de-code-block .hljs-built_in,
689
+ .dragon-editor-viewer .de-code-block .hljs-symbol {
690
+ /* prettylights-syntax-variable */
691
+ color: var(--editor-code-variable);
692
+ }
693
+ .dragon-editor-viewer .de-code-block .hljs-comment,
694
+ .dragon-editor-viewer .de-code-block .hljs-code,
695
+ .dragon-editor-viewer .de-code-block .hljs-formula {
696
+ /* prettylights-syntax-comment */
697
+ color: var(--editor-code-comment);
698
+ }
699
+ .dragon-editor-viewer .de-code-block .hljs-name,
700
+ .dragon-editor-viewer .de-code-block .hljs-quote,
701
+ .dragon-editor-viewer .de-code-block .hljs-selector-tag,
702
+ .dragon-editor-viewer .de-code-block .hljs-selector-pseudo {
703
+ /* prettylights-syntax-entity-tag */
704
+ color: var(--editor-code-entity-tag);
705
+ }
706
+ .dragon-editor-viewer .de-code-block .hljs-subst {
707
+ /* prettylights-syntax-storage-modifier-import */
708
+ color: var(--editor-code-storage-modifier-import);
709
+ }
710
+ .dragon-editor-viewer .de-code-block .hljs-section {
711
+ /* prettylights-syntax-markup-heading */
712
+ color: var(--editor-code-markup-heading);
713
+ font-weight: bold;
714
+ }
715
+ .dragon-editor-viewer .de-code-block .hljs-bullet {
716
+ /* prettylights-syntax-markup-list */
717
+ color: var(--editor-code-markup-list);
718
+ }
719
+ .dragon-editor-viewer .de-code-block .hljs-emphasis {
720
+ /* prettylights-syntax-markup-italic */
721
+ color: var(--editor-code-markup-italic);
722
+ font-style: italic;
723
+ }
724
+ .dragon-editor-viewer .de-code-block .hljs-strong {
725
+ /* prettylights-syntax-markup-bold */
726
+ color: var(--editor-code-markup-bold);
727
+ font-weight: bold;
728
+ }
729
+ .dragon-editor-viewer .de-code-block .hljs-addition {
730
+ /* prettylights-syntax-markup-inserted */
731
+ color: var(--editor-code-markup-inserted);
732
+ background-color: var(--editor-code-markup-inserted-bg);
733
+ }
734
+ .dragon-editor-viewer .de-code-block .hljs-deletion {
735
+ /* prettylights-syntax-markup-deleted */
736
+ color: var(--editor-code-markup-deleted);
737
+ background-color: var(--editor-code-markup-deleted-bg);
738
+ }
739
+ .dragon-editor-viewer .de-divider-block {
740
+ display: flex;
741
+ align-items: center;
742
+ height: 20px;
743
+ }
744
+ .dragon-editor-viewer .de-divider-block::before {
745
+ display: block;
746
+ content: "";
747
+ width: 100%;
748
+ height: 2px;
749
+ padding: 0;
750
+ background: var(--editor-divider);
751
+ border-radius: 2px;
752
+ }
753
+ .dragon-editor-viewer .de-bold {
754
+ font-weight: 700;
755
+ }
756
+ .dragon-editor-viewer .de-italic {
757
+ font-style: italic;
758
+ }
759
+ .dragon-editor-viewer .de-underline {
760
+ text-decoration: underline;
761
+ }
762
+ .dragon-editor-viewer .de-underline.de-strikethrough {
763
+ text-decoration: underline line-through;
764
+ }
765
+ .dragon-editor-viewer .de-strikethrough {
766
+ text-decoration: line-through;
767
+ }
768
+ .dragon-editor-viewer .de-strikethrough.de-underline {
769
+ text-decoration: line-through underline;
770
+ }
771
+ .dragon-editor-viewer .de-code {
772
+ display: inline-block;
773
+ padding: 2px 4px;
774
+ background: var(--editor-decoration-code-bg);
775
+ color: var(--editor-decoration-code-color);
776
+ border-radius: 5px;
777
+ }
778
+ .dragon-editor-viewer .de-align-left {
779
+ text-align: left;
780
+ }
781
+ .dragon-editor-viewer .de-align-right {
782
+ text-align: right;
783
+ }
784
+ .dragon-editor-viewer .de-align-center {
785
+ text-align: center;
786
+ }
787
+ .dragon-editor-viewer .de-align-justify {
788
+ text-align: justify;
789
+ }
790
+ .dragon-editor-viewer .de-link {
791
+ color: #2c95fe;
792
+ text-decoration: none;
793
+ }
794
+ </style>