@exmg/exm-markdown-editor 1.1.36 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/actions.d.ts +6 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/actions.js +227 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor-base.d.ts +89 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor-base.js +334 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor-toolbar-base.d.ts +12 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor-toolbar-base.js +52 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor-toolbar.d.ts +9 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor-toolbar.js +12 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor.d.ts +76 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/exm-markdown-editor.js +83 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/icons.d.ts +3 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/icons.js +5 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/index.d.ts +6 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/index.js +6 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/styles/exm-markdown-codemirror-css.d.ts +1 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/styles/exm-markdown-codemirror-css.js +491 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/styles/exm-markdown-editor-css.d.ts +1 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/styles/exm-markdown-editor-css.js +210 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/styles/exm-markdown-editor-toolbar-css.d.ts +1 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/styles/exm-markdown-editor-toolbar-css.js +22 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/types.d.ts +13 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/utils/configurations.d.ts +4 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/utils/configurations.js +14 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/validator/exm-markdown-editor-validator.d.ts +23 -0
- package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/validator/exm-markdown-editor-validator.js +35 -0
- package/dist/actions.js +5 -3
- package/dist/exm-markdown-editor-base.js +11 -8
- package/dist/exm-markdown-editor-toolbar-base.js +6 -3
- package/dist/exm-markdown-editor-toolbar.js +6 -4
- package/dist/exm-markdown-editor.js +7 -5
- package/dist/icons.js +5 -2
- package/dist/index.js +3 -4
- package/dist/styles/exm-markdown-codemirror-css.js +5 -2
- package/dist/styles/exm-markdown-editor-css.js +5 -2
- package/dist/styles/exm-markdown-editor-toolbar-css.js +5 -2
- package/dist/utils/configurations.js +5 -3
- package/dist/validator/exm-markdown-editor-validator.js +6 -3
- package/package.json +2 -2
- /package/{dist → .rollup.cache/root/repo/packages/exm-markdown-editor/dist}/types.js +0 -0
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const style = css `
|
|
3
|
+
.CodeMirror {
|
|
4
|
+
--editor-code-color: var(--exm-markdown-editor-code-color, var(--md-sys-color-on-surface));
|
|
5
|
+
--editor-code-cursor-color: var(--exm-markdown-editor-code-cursor-color, var(--md-sys-color-on-surface));
|
|
6
|
+
--editor-code-header-color: var(--exm-markdown-editor-code-header-color, #4a8fc0);
|
|
7
|
+
--editor-code-inline-code-color: var(--exm-markdown-editor-code-inline-code-color, #ea881f);
|
|
8
|
+
--editor-code-list-color: var(--exm-markdown-editor-code-list-color, rgb(25, 165, 28));
|
|
9
|
+
--editor-selected-code-color: var(--exm-markdown-editor-selected-code-color, rgb(140, 140, 140));
|
|
10
|
+
color: var(--editor-code-color, var(--md-sys-color-on-surface, black));
|
|
11
|
+
direction: ltr;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.CodeMirror-lines {
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.CodeMirror pre {
|
|
19
|
+
padding: 0 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.CodeMirror-scrollbar-filler,
|
|
23
|
+
.CodeMirror-gutter-filler {
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.CodeMirror-gutters {
|
|
28
|
+
border-right: 1px solid #ddd;
|
|
29
|
+
background-color: #f7f7f7;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.CodeMirror-linenumber {
|
|
34
|
+
padding: 0 3px 0 5px;
|
|
35
|
+
min-width: 20px;
|
|
36
|
+
text-align: right;
|
|
37
|
+
color: #999;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.CodeMirror-guttermarker {
|
|
42
|
+
color: #000;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.CodeMirror-guttermarker-subtle {
|
|
46
|
+
color: #999;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.CodeMirror-cursor {
|
|
50
|
+
border-left: 1px solid var(--editor-code-cursor-color, var(--md-sys-color-on-surface, black));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.CodeMirror div.CodeMirror-secondarycursor {
|
|
54
|
+
border-left: 1px solid silver;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cm-fat-cursor .CodeMirror-cursor {
|
|
58
|
+
width: auto;
|
|
59
|
+
border: 0 !important;
|
|
60
|
+
background: #7e7;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.cm-fat-cursor div.CodeMirror-cursors {
|
|
64
|
+
z-index: 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cm-fat-cursor-mark {
|
|
68
|
+
background-color: rgba(20, 255, 20, 0.5);
|
|
69
|
+
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
70
|
+
-moz-animation: blink 1.06s steps(1) infinite;
|
|
71
|
+
animation: blink 1.06s steps(1) infinite;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cm-animate-fat-cursor {
|
|
75
|
+
width: auto;
|
|
76
|
+
border: 0;
|
|
77
|
+
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
78
|
+
-moz-animation: blink 1.06s steps(1) infinite;
|
|
79
|
+
animation: blink 1.06s steps(1) infinite;
|
|
80
|
+
background-color: #7e7;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@-moz-keyframes blink {
|
|
84
|
+
50% {
|
|
85
|
+
background-color: rgba(0, 0, 0, 0);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@-webkit-keyframes blink {
|
|
90
|
+
50% {
|
|
91
|
+
background-color: rgba(0, 0, 0, 0);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes blink {
|
|
96
|
+
50% {
|
|
97
|
+
background-color: rgba(0, 0, 0, 0);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.cm-tab {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
text-decoration: inherit;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.CodeMirror-rulers {
|
|
107
|
+
position: absolute;
|
|
108
|
+
left: 0;
|
|
109
|
+
right: 0;
|
|
110
|
+
top: -50px;
|
|
111
|
+
bottom: -20px;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.CodeMirror-ruler {
|
|
116
|
+
border-left: 1px solid #ccc;
|
|
117
|
+
top: 0;
|
|
118
|
+
bottom: 0;
|
|
119
|
+
position: absolute;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.cm-s-default .cm-header {
|
|
123
|
+
color: var(--editor-code-header-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.cm-s-default .cm-quote {
|
|
127
|
+
color: var(--editor-code-quote-color);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.cm-negative {
|
|
131
|
+
color: #d44;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.cm-positive {
|
|
135
|
+
color: #292;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cm-header,
|
|
139
|
+
.cm-strong {
|
|
140
|
+
font-weight: bold;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.cm-em {
|
|
144
|
+
font-style: italic;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.cm-link {
|
|
148
|
+
text-decoration: underline;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.cm-strikethrough {
|
|
152
|
+
text-decoration: line-through;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.cm-s-default .cm-keyword {
|
|
156
|
+
color: #708;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.cm-s-default .cm-atom {
|
|
160
|
+
color: #219;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.cm-s-default .cm-number {
|
|
164
|
+
color: var(--editor-code-list-color);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.cm-s-default .cm-def {
|
|
168
|
+
color: blue;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.cm-s-default .cm-variable-2 {
|
|
172
|
+
color: var(--editor-code-list-color);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.cm-s-default .cm-variable-3,
|
|
176
|
+
.cm-s-default .cm-type {
|
|
177
|
+
color: var(--editor-code-list-color);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.cm-s-default .cm-comment {
|
|
181
|
+
color: #a50;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.cm-s-default .cm-string {
|
|
185
|
+
color: #a11;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.cm-s-default .cm-string-2 {
|
|
189
|
+
color: var(--editor-code-inline-code-color, #f50);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.cm-s-default .cm-meta {
|
|
193
|
+
color: #555;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.cm-s-default .cm-qualifier {
|
|
197
|
+
color: #555;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.cm-s-default .cm-builtin {
|
|
201
|
+
color: #30a;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.cm-s-default .cm-bracket {
|
|
205
|
+
color: #997;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.cm-s-default .cm-tag {
|
|
209
|
+
color: #170;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.cm-s-default .cm-attribute {
|
|
213
|
+
color: #00c;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.cm-s-default .cm-hr {
|
|
217
|
+
color: #999;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.cm-s-default .cm-link {
|
|
221
|
+
color: #00c;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.cm-s-default .cm-error {
|
|
225
|
+
color: red;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.cm-invalidchar {
|
|
229
|
+
color: red;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.CodeMirror-composing {
|
|
233
|
+
border-bottom: 2px solid;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
div.CodeMirror span.CodeMirror-matchingbracket {
|
|
237
|
+
color: #0b0;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {
|
|
241
|
+
color: #a22;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.CodeMirror-matchingtag {
|
|
245
|
+
background: rgba(255, 150, 0, 0.3);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.CodeMirror-activeline-background {
|
|
249
|
+
background: #e8f2ff;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.CodeMirror {
|
|
253
|
+
position: relative;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.CodeMirror-scroll {
|
|
258
|
+
overflow: scroll !important;
|
|
259
|
+
margin-bottom: -30px;
|
|
260
|
+
margin-right: -30px;
|
|
261
|
+
padding-bottom: 30px;
|
|
262
|
+
height: 100%;
|
|
263
|
+
outline: none;
|
|
264
|
+
position: relative;
|
|
265
|
+
box-sizing: border-box;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.CodeMirror-sizer {
|
|
269
|
+
position: relative;
|
|
270
|
+
border-right: 30px solid rgba(0, 0, 0, 0);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.CodeMirror-vscrollbar,
|
|
274
|
+
.CodeMirror-hscrollbar,
|
|
275
|
+
.CodeMirror-scrollbar-filler,
|
|
276
|
+
.CodeMirror-gutter-filler {
|
|
277
|
+
position: absolute;
|
|
278
|
+
z-index: 6;
|
|
279
|
+
display: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.CodeMirror-vscrollbar {
|
|
283
|
+
right: 0;
|
|
284
|
+
top: 0;
|
|
285
|
+
overflow-x: hidden;
|
|
286
|
+
overflow-y: scroll;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.CodeMirror-hscrollbar {
|
|
290
|
+
bottom: 0;
|
|
291
|
+
left: 0;
|
|
292
|
+
overflow-y: hidden;
|
|
293
|
+
overflow-x: scroll;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.CodeMirror-scrollbar-filler {
|
|
297
|
+
right: 0;
|
|
298
|
+
bottom: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.CodeMirror-gutter-filler {
|
|
302
|
+
left: 0;
|
|
303
|
+
bottom: 0;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.CodeMirror-gutters {
|
|
307
|
+
position: absolute;
|
|
308
|
+
left: 0;
|
|
309
|
+
top: 0;
|
|
310
|
+
min-height: 100%;
|
|
311
|
+
z-index: 3;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.CodeMirror-gutter {
|
|
315
|
+
white-space: normal;
|
|
316
|
+
height: 100%;
|
|
317
|
+
display: inline-block;
|
|
318
|
+
vertical-align: top;
|
|
319
|
+
margin-bottom: -30px;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.CodeMirror-gutter-wrapper {
|
|
323
|
+
position: absolute;
|
|
324
|
+
z-index: 4;
|
|
325
|
+
background: none !important;
|
|
326
|
+
border: none !important;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.CodeMirror-gutter-background {
|
|
330
|
+
position: absolute;
|
|
331
|
+
top: 0;
|
|
332
|
+
bottom: 0;
|
|
333
|
+
z-index: 4;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.CodeMirror-gutter-elt {
|
|
337
|
+
position: absolute;
|
|
338
|
+
cursor: default;
|
|
339
|
+
z-index: 4;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.CodeMirror-gutter-wrapper ::selection {
|
|
343
|
+
background-color: rgba(0, 0, 0, 0);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.CodeMirror-gutter-wrapper ::-moz-selection {
|
|
347
|
+
background-color: rgba(0, 0, 0, 0);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.CodeMirror-lines {
|
|
351
|
+
cursor: text;
|
|
352
|
+
min-height: 1px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.CodeMirror pre {
|
|
356
|
+
-moz-border-radius: 0;
|
|
357
|
+
-webkit-border-radius: 0;
|
|
358
|
+
border-radius: 0;
|
|
359
|
+
border-width: 0;
|
|
360
|
+
background: rgba(0, 0, 0, 0);
|
|
361
|
+
font-family: inherit;
|
|
362
|
+
font-size: inherit;
|
|
363
|
+
margin: 0;
|
|
364
|
+
white-space: pre;
|
|
365
|
+
word-wrap: normal;
|
|
366
|
+
line-height: inherit;
|
|
367
|
+
color: inherit;
|
|
368
|
+
z-index: 2;
|
|
369
|
+
position: relative;
|
|
370
|
+
overflow: visible;
|
|
371
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
372
|
+
-webkit-font-variant-ligatures: contextual;
|
|
373
|
+
font-variant-ligatures: contextual;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.CodeMirror-wrap pre {
|
|
377
|
+
word-wrap: break-word;
|
|
378
|
+
white-space: pre-wrap;
|
|
379
|
+
word-break: normal;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.CodeMirror-linebackground {
|
|
383
|
+
position: absolute;
|
|
384
|
+
left: 0;
|
|
385
|
+
right: 0;
|
|
386
|
+
top: 0;
|
|
387
|
+
bottom: 0;
|
|
388
|
+
z-index: 0;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.CodeMirror-linewidget {
|
|
392
|
+
position: relative;
|
|
393
|
+
z-index: 2;
|
|
394
|
+
padding: 0.1px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.CodeMirror-rtl pre {
|
|
398
|
+
direction: rtl;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.CodeMirror-code {
|
|
402
|
+
outline: none;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.CodeMirror-sizer,
|
|
406
|
+
.CodeMirror-gutter,
|
|
407
|
+
.CodeMirror-gutters,
|
|
408
|
+
.CodeMirror-linenumber {
|
|
409
|
+
-moz-box-sizing: content-box;
|
|
410
|
+
box-sizing: content-box;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.CodeMirror-measure {
|
|
414
|
+
position: absolute;
|
|
415
|
+
width: 100%;
|
|
416
|
+
height: 0;
|
|
417
|
+
overflow: hidden;
|
|
418
|
+
visibility: hidden;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.CodeMirror-cursor {
|
|
422
|
+
position: absolute;
|
|
423
|
+
pointer-events: none;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.CodeMirror-measure pre {
|
|
427
|
+
position: static;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
div.CodeMirror-cursors {
|
|
431
|
+
visibility: hidden;
|
|
432
|
+
position: relative;
|
|
433
|
+
z-index: 3;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
div.CodeMirror-dragcursors {
|
|
437
|
+
visibility: visible;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.CodeMirror-focused div.CodeMirror-cursors {
|
|
441
|
+
visibility: visible;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.CodeMirror-selected {
|
|
445
|
+
background: #d9d9d9;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.CodeMirror-focused .CodeMirror-selected {
|
|
449
|
+
background: var(--editor-selected-code-color);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.CodeMirror-crosshair {
|
|
453
|
+
cursor: crosshair;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.CodeMirror-line::selection,
|
|
457
|
+
.CodeMirror-line > span::selection,
|
|
458
|
+
.CodeMirror-line > span > span::selection {
|
|
459
|
+
background: #d7d4f0;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.CodeMirror-line::-moz-selection,
|
|
463
|
+
.CodeMirror-line > span::-moz-selection,
|
|
464
|
+
.CodeMirror-line > span > span::-moz-selection {
|
|
465
|
+
background: #d7d4f0;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.cm-searching {
|
|
469
|
+
background-color: #ffa;
|
|
470
|
+
background-color: rgba(255, 255, 0, 0.4);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.cm-force-border {
|
|
474
|
+
padding-right: 0.1px;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@media print {
|
|
478
|
+
.CodeMirror div.CodeMirror-cursors {
|
|
479
|
+
visibility: hidden;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.cm-tab-wrap-hack:after {
|
|
484
|
+
content: '';
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
span.CodeMirror-selectedtext {
|
|
488
|
+
background: none;
|
|
489
|
+
}
|
|
490
|
+
`;
|
|
491
|
+
//# sourceMappingURL=exm-markdown-codemirror-css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const style: import("lit").CSSResult;
|
package/.rollup.cache/root/repo/packages/exm-markdown-editor/dist/styles/exm-markdown-editor-css.js
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
--editor-border-color: var(--exm-markdown-editor-border-color, var(--md-sys-color-on-surface-variant));
|
|
7
|
+
--editor-border-color-focus: var(--exm-markdown-editor-border-color-focus, var(--md-sys-color-primary));
|
|
8
|
+
--editor-background-color: var(
|
|
9
|
+
--exm-markdown-editor-background-color,
|
|
10
|
+
var(--md-sys-color-surface-container-highest)
|
|
11
|
+
);
|
|
12
|
+
--editor-code-background-color: var(
|
|
13
|
+
--exm-markdown-editor-code-background-color,
|
|
14
|
+
var(--md-sys-color-surface-container-highest)
|
|
15
|
+
);
|
|
16
|
+
--editor-background-focus-color: var(--exm-markdown-editor-background-focus-color, var(--md-sys-color-on-surface));
|
|
17
|
+
--editor-code-background-focus-color: var(
|
|
18
|
+
--exm-markdown-editor-code-background-focus-color,
|
|
19
|
+
var(--md-sys-color-on-surface)
|
|
20
|
+
);
|
|
21
|
+
--editor-label-focus-color: var(--exm-markdown-editor-label-focus-color, var(--md-sys-color-primary));
|
|
22
|
+
--editor-label-color: var(--exm-markdown-editor-label-color, var(--md-sys-color-on-surface));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.container {
|
|
26
|
+
--label-height: 0px;
|
|
27
|
+
|
|
28
|
+
display: grid;
|
|
29
|
+
position: relative;
|
|
30
|
+
grid-template-columns: repeat(2, 1fr);
|
|
31
|
+
grid-template-rows: var(--label-height) auto auto 1fr auto;
|
|
32
|
+
transition: grid-template-rows 0.2s ease;
|
|
33
|
+
border-top-right-radius: 4px;
|
|
34
|
+
border-top-left-radius: 4px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.container.has-label {
|
|
40
|
+
--label-height: 2rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.container.preview-mode:hover .state-layer {
|
|
44
|
+
cursor: text;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.container.split-view .preview,
|
|
48
|
+
.container.preview-mode .preview {
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.container.preview-mode:not(.split-view) .editor {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.container.preview-mode:not(.split-view) exm-markdown-editor-toolbar {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.container.split-view .preview {
|
|
61
|
+
grid-area: 4/2/5/3;
|
|
62
|
+
border-left: 1px solid var(--md-sys-color-surface-variant);
|
|
63
|
+
background-color: var(--editor-code-background-color, var(--md-sys-color-surface-container-highest));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.container.split-view .editor {
|
|
67
|
+
grid-area: 4/1/5/2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.container.split-view .label-bar {
|
|
71
|
+
display: grid;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.preview {
|
|
75
|
+
grid-area: 2/1/5/3;
|
|
76
|
+
display: none;
|
|
77
|
+
position: relative;
|
|
78
|
+
overflow: scroll;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.editor {
|
|
82
|
+
grid-area: 3/1/5/3;
|
|
83
|
+
position: relative;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#editor {
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
exm-markdown-editor-toolbar {
|
|
92
|
+
grid-area: 2/1/3/3;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.container.split-view exm-markdown-editor-toolbar {
|
|
96
|
+
padding-right: 4rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.full-screen-button {
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: calc(var(--label-height) + 0.5rem);
|
|
102
|
+
right: 1rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.container.preview-mode:not(.split-view) .full-screen-button {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.label-bar {
|
|
110
|
+
display: none;
|
|
111
|
+
grid-template-columns: repeat(2, 1fr);
|
|
112
|
+
grid-area: 3/1/4/3;
|
|
113
|
+
border-bottom: 1px solid var(--md-sys-color-surface-variant);
|
|
114
|
+
background-color: var(--md-sys-color-surface-container);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.label-bar span {
|
|
118
|
+
padding: 0.5rem 1rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.label-bar span + span {
|
|
122
|
+
border-left: 1px solid var(--md-sys-color-surface-variant);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Background and state-layer stuff */
|
|
126
|
+
.background,
|
|
127
|
+
.state-layer {
|
|
128
|
+
grid-area: 1/1/5/3;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.background {
|
|
132
|
+
background-color: var(--editor-code-background-color, var(--md-sys-color-surface-container-highest));
|
|
133
|
+
border-bottom: 1px solid var(--editor-border-color-focus, var(--md-sys-color-primary));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.container:hover .state-layer {
|
|
137
|
+
background-color: var(--editor-code-background-focus-color, var(--md-sys-color-on-surface-variant));
|
|
138
|
+
opacity: 0.08;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.background::after {
|
|
142
|
+
content: ' ';
|
|
143
|
+
display: block;
|
|
144
|
+
position: absolute;
|
|
145
|
+
bottom: 0;
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: 3px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* The form label style */
|
|
151
|
+
label {
|
|
152
|
+
grid-area: 1/1/2/3;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
label[for='markdownEditorContainer'],
|
|
156
|
+
label[for='markdownEditorContainer'].not-empty.preview-mode {
|
|
157
|
+
padding: 0.5rem 0 0 1rem;
|
|
158
|
+
font-size: 0.7rem;
|
|
159
|
+
color: var(--editor-label-focus-color, var(--md-sys-color-primary));
|
|
160
|
+
transition: all 200ms ease;
|
|
161
|
+
transform: scale(1) translateY(0px);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
label[for='markdownEditorContainer'].not-empty.preview-mode {
|
|
165
|
+
color: var(--editor-label-color, var(--md-sys-color-on-surface));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
label[for='markdownEditorContainer'].preview-mode {
|
|
169
|
+
color: var(--editor-label-color, var(--md-sys-color-on-surface));
|
|
170
|
+
padding-bottom: 1rem;
|
|
171
|
+
transform: translateY(8px);
|
|
172
|
+
font-size: 1rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Supporting text, also know as Description */
|
|
176
|
+
.supporting-text {
|
|
177
|
+
grid-area: 5/1/6/3;
|
|
178
|
+
|
|
179
|
+
color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));
|
|
180
|
+
display: flex;
|
|
181
|
+
font-family: var(
|
|
182
|
+
--md-filled-field-supporting-text-font,
|
|
183
|
+
var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto))
|
|
184
|
+
);
|
|
185
|
+
font-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));
|
|
186
|
+
line-height: var(
|
|
187
|
+
--md-filled-field-supporting-text-line-height,
|
|
188
|
+
var(--md-sys-typescale-body-small-line-height, 1rem)
|
|
189
|
+
);
|
|
190
|
+
font-weight: var(
|
|
191
|
+
--md-filled-field-supporting-text-weight,
|
|
192
|
+
var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
193
|
+
);
|
|
194
|
+
gap: 16px;
|
|
195
|
+
justify-content: space-between;
|
|
196
|
+
padding-inline-start: var(--md-filled-field-supporting-text-leading-space, 16px);
|
|
197
|
+
padding-inline-end: var(--md-filled-field-supporting-text-trailing-space, 16px);
|
|
198
|
+
padding-top: var(--md-filled-field-supporting-text-top-space, 4px);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.CodeMirror {
|
|
202
|
+
height: 100%;
|
|
203
|
+
overflow: scroll;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.preview-content {
|
|
207
|
+
padding: 1rem;
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
210
|
+
//# sourceMappingURL=exm-markdown-editor-css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const style: import("lit").CSSResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
border-bottom: 1px solid var(--md-sys-color-surface-variant);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.toolbar-container {
|
|
9
|
+
padding: 0.5rem 1rem;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
md-icon-button:not(:first) {
|
|
15
|
+
margin: 0 0.3rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
md-icon-button:first {
|
|
19
|
+
margin: 0 0;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
//# sourceMappingURL=exm-markdown-editor-toolbar-css.js.map
|