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