-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathEnrichedText.css
More file actions
385 lines (333 loc) · 8.33 KB
/
Copy pathEnrichedText.css
File metadata and controls
385 lines (333 loc) · 8.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
.tiptap.ProseMirror p {
margin-top: 0;
margin-bottom: 0;
}
.tiptap.ProseMirror-focused {
outline: none;
}
.et-view {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.et-view p {
margin-top: 0;
margin-bottom: 0;
}
.et-view p:empty::before {
content: '\200B';
}
.eti-editor p.is-editor-empty:first-child::before {
color: var(--et-placeholder-text-color, #adb5bd);
content: attr(data-placeholder);
float: left;
height: 0;
pointer-events: none;
}
.eti-editor ::selection,
.et-view ::selection {
background-color: var(--et-selection-color, Highlight);
}
.eti-editor code,
.et-view code {
font-family: monospace;
background-color: var(--et-code-bg-color);
color: var(--et-code-color);
display: inline;
padding: 0;
line-height: inherit;
vertical-align: baseline;
}
.eti-editor h1,
.et-view h1 {
font-size: var(--et-h1-font-size);
font-weight: var(--et-h1-font-weight);
margin: 0;
line-height: normal;
color: inherit;
}
.eti-editor h2,
.et-view h2 {
font-size: var(--et-h2-font-size);
font-weight: var(--et-h2-font-weight);
margin: 0;
line-height: normal;
color: inherit;
}
.eti-editor h3,
.et-view h3 {
font-size: var(--et-h3-font-size);
font-weight: var(--et-h3-font-weight);
margin: 0;
line-height: normal;
color: inherit;
}
.eti-editor h4,
.et-view h4 {
font-size: var(--et-h4-font-size);
font-weight: var(--et-h4-font-weight);
margin: 0;
line-height: normal;
color: inherit;
}
.eti-editor h5,
.et-view h5 {
font-size: var(--et-h5-font-size);
font-weight: var(--et-h5-font-weight);
margin: 0;
line-height: normal;
color: inherit;
}
.eti-editor h6,
.et-view h6 {
font-size: var(--et-h6-font-size);
font-weight: var(--et-h6-font-weight);
margin: 0;
line-height: normal;
color: inherit;
}
.eti-editor blockquote,
.et-view blockquote {
border-left: var(--et-blockquote-border-width) solid
var(--et-blockquote-border-color);
padding-left: var(--et-blockquote-gap-width);
margin: 0;
color: var(--et-blockquote-color);
}
.eti-editor blockquote p,
.et-view blockquote p {
margin: 0;
}
.eti-editor codeblock,
.et-view codeblock {
display: block;
font-family: monospace;
background-color: var(--et-codeblock-bg-color);
color: var(--et-codeblock-color);
border-radius: var(--et-codeblock-border-radius);
}
.eti-editor codeblock p,
.et-view codeblock p {
margin: 0;
}
.eti-editor a,
.et-view a {
color: var(--et-link-color);
text-decoration-line: var(--et-link-text-decoration-line);
transition: none;
}
.et-view a {
cursor: default
}
.et-link-pressable a {
cursor: pointer;
}
.et-link-pressable a:active,
.et-link-pressable a.et-link-pressed {
color: var(--et-link-press-color);
}
.eti-editor li,
.et-view li {
margin: 0;
min-height: 1.2em;
}
@supports (min-height: 1lh) {
.eti-editor li,
.et-view li {
min-height: 1lh;
}
}
/* Zero-width space to correctly display empty list elements */
.eti-editor ul:not([data-type]) > li > p:empty::after,
.et-view ul:not([data-type]) > li > p:empty::after,
.eti-editor ol > li > p:empty::after,
.et-view ol > li > p:empty::after,
.eti-editor ul[data-type='checkboxList'] > li > div:empty::after,
.et-view ul[data-type="checkbox"] > li > label:empty::after {
content: '\200b';
}
.eti-editor ul:not([data-type]),
.et-view ul:not([data-type]) {
margin: 0;
list-style: none;
padding-left: calc(
var(--et-ul-margin-left, 16px) +
var(--et-ul-bullet-size, 8px) +
var(--et-ul-gap-width, 16px)
);
}
.eti-editor ul:not([data-type]) > li,
.et-view ul:not([data-type]) > li {
margin: 0;
display: flex;
align-items: baseline;
}
.eti-editor ul:not([data-type]) > li::before,
.et-view ul:not([data-type]) > li::before {
content: '';
flex-shrink: 0;
width: var(--et-ul-bullet-size, 8px);
height: var(--et-ul-bullet-size, 8px);
border-radius: 50%;
background-color: var(--et-ul-bullet-color, currentColor);
margin-left: calc(-1 * (var(--et-ul-bullet-size, 8px) + var(--et-ul-gap-width, 16px)));
margin-right: var(--et-ul-gap-width, 16px);
position: relative;
top: calc(var(--et-ul-bullet-size, 8px) * 0.5 - 0.35em);
}
.eti-editor ol,
.et-view ol {
margin: 0;
list-style: none;
/* marker column grows to fit the widest counter ("N."), floored at the
configured margin. */
--et-ol-marker-col: max(
var(--et-ol-margin-left, 16px),
calc((var(--et-ol-digits, 1) + 1) * 1ch)
);
padding-left: calc(var(--et-ol-marker-col) + var(--et-ol-gap-width, 16px));
counter-reset: et-ol;
}
.eti-editor ol > li,
.et-view ol > li {
margin: 0;
counter-increment: et-ol;
display: flex;
align-items: baseline;
}
.eti-editor ol > li::before,
.et-view ol > li::before {
content: counter(et-ol) '.';
flex-shrink: 0;
width: var(--et-ol-marker-col, var(--et-ol-margin-left, 16px));
text-align: right;
margin-right: calc(var(--et-ol-gap-width, 16px));
margin-left: calc(-1 * (var(--et-ol-marker-col, var(--et-ol-margin-left, 16px)) + var(--et-ol-gap-width, 16px)));
color: var(--et-ol-marker-color, currentColor);
font-weight: var(--et-ol-marker-font-weight, inherit);
white-space: nowrap;
}
.eti-editor ul:not([data-type]) > li > p,
.et-view ul:not([data-type]) > li > p,
.eti-editor ol > li > p,
.et-view ol > li > p {
display: block;
flex: 1 1 auto;
min-width: 0;
margin: 0;
}
.eti-editor li p,
.et-view li p {
margin: 0;
}
.eti-editor .eti-inline-image {
vertical-align: text-bottom;
line-height: 0;
display: inline-block;
}
.eti-editor .eti-inline-image-img {
object-fit: contain;
}
.eti-editor .eti-inline-image--placeholder {
display: inline-block;
overflow: hidden;
color: inherit;
}
.eti-editor .eti-inline-image-broken-glyph {
display: block;
width: 100%;
height: 100%;
}
.eti-editor
.react-renderer.node-image.ProseMirror-selectednode
.eti-inline-image {
box-shadow: inset 0 0 0 999px Highlight;
}
.eti-editor ul[data-type='checkboxList'] {
margin: 0;
list-style: none;
padding-left: calc(
var(--et-checkbox-margin-left, 16px) +
var(--et-checkbox-box-size, 24px) +
var(--et-checkbox-gap-width, 16px)
);
}
.eti-editor ul[data-type='checkboxList'] > li {
margin: 0;
display: flex;
align-items: baseline;
}
.eti-editor ul[data-type='checkboxList'] > li > label {
display: inline-flex;
align-items: center;
flex-shrink: 0;
width: var(--et-checkbox-box-size, 24px);
height: var(--et-checkbox-box-size, 24px);
margin-left: calc(-1 * (var(--et-checkbox-box-size, 24px) + var(--et-checkbox-gap-width, 16px)));
margin-right: var(--et-checkbox-gap-width, 16px);
margin-top: 0;
position: relative;
top: calc(var(--et-checkbox-box-size, 24px) * 0.5 - 0.35em);
}
.eti-editor ul[data-type='checkboxList'] > li > label input[type='checkbox'] {
width: 100%;
height: 100%;
margin: 0;
flex-shrink: 0;
accent-color: var(--et-checkbox-box-color, #0000ff);
}
.eti-editor ul[data-type='checkboxList'] > li > div {
display: block;
flex: 1 1 auto;
min-width: 0;
margin: 0;
}
.et-view ul[data-type="checkbox"] {
margin: 0;
list-style: none;
padding-left: calc(
var(--et-checkbox-margin-left, 16px) +
var(--et-checkbox-box-size, 24px) +
var(--et-checkbox-gap-width, 16px)
);
}
.et-view ul[data-type="checkbox"] > li {
margin: 0;
display: flex;
align-items: baseline;
}
.et-view ul[data-type="checkbox"] > li > input[type='checkbox'] {
flex-shrink: 0;
margin-left: calc(-1 * (var(--et-checkbox-box-size, 24px) + var(--et-checkbox-gap-width, 16px)));
margin-right: var(--et-checkbox-gap-width, 16px);
margin-bottom: 0;
width: var(--et-checkbox-box-size, 24px);
height: var(--et-checkbox-box-size, 24px);
accent-color: var(--et-checkbox-box-color, #0000ff);
/* disable checkbox press style as it's read-only */
pointer-events: none;
-webkit-tap-highlight-color: transparent;
margin-top: 0;
position: relative;
top: calc(var(--et-checkbox-box-size, 24px) * 0.5 - 0.35em);
}
.et-view ul[data-type="checkbox"] > li > label {
display: block;
flex: 1 1 auto;
min-width: 0;
margin: 0;
padding: 0;
}
.et-view img {
display: inline-block;
position: relative;
overflow: hidden;
vertical-align: text-bottom;
}
.et-view img.error,
.et-view img:not([src]),
.et-view img[src=""] {
content: linear-gradient(transparent, transparent);
background-color: currentColor;
-webkit-mask: var(--et-broken-image-glyph) no-repeat center / contain;
mask: var(--et-broken-image-glyph) no-repeat center / contain;
}