@fiduswriter/editor 0.1.52 → 0.1.53

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 (36) hide show
  1. package/css/access_rights_dialog.css +75 -0
  2. package/css/carets.css +17 -0
  3. package/css/chat.css +70 -0
  4. package/css/citation_dialog.css +71 -0
  5. package/css/colors.css +97 -0
  6. package/css/contributors.css +13 -0
  7. package/css/document.css +286 -0
  8. package/css/dot_menu.css +42 -0
  9. package/css/e2ee.css +331 -0
  10. package/css/editor.css +1484 -0
  11. package/css/footnotes.css +81 -0
  12. package/css/margin_boxes.css +514 -0
  13. package/css/merge.css +197 -0
  14. package/css/review.css +7 -0
  15. package/css/table.css +13 -0
  16. package/css/tags.css +36 -0
  17. package/css/tracking.css +63 -0
  18. package/package.json +56 -10
  19. package/static/fonts/document/Cardo-Bold.woff +0 -0
  20. package/static/fonts/document/Cardo-Italic.woff +0 -0
  21. package/static/fonts/document/Cardo-Regular.woff +0 -0
  22. package/static/fonts/document/CrimsonText-Bold.woff +0 -0
  23. package/static/fonts/document/CrimsonText-BoldItalic.woff +0 -0
  24. package/static/fonts/document/CrimsonText-Italic.woff +0 -0
  25. package/static/fonts/document/CrimsonText-Roman.woff +0 -0
  26. package/static/fonts/document/Lobster-1.4.woff +0 -0
  27. package/static/fonts/document/NoticiaText-Bold.woff +0 -0
  28. package/static/fonts/document/NoticiaText-BoldItalic.woff +0 -0
  29. package/static/fonts/document/NoticiaText-Italic.woff +0 -0
  30. package/static/fonts/document/NoticiaText-Regular.woff +0 -0
  31. package/static/fonts/document/OpenSans-Bold.woff +0 -0
  32. package/static/fonts/document/OpenSans-Regular.woff +0 -0
  33. package/static/fonts/document/SourceSansPro-Bold.woff +0 -0
  34. package/static/img/accept_change.avif +0 -0
  35. package/static/img/fidus_face.avif +0 -0
  36. package/static/ogg/chat_notification.ogg +0 -0
@@ -0,0 +1,81 @@
1
+ /* Footnotes */
2
+
3
+ .user-contents .footnote-container h1,
4
+ .user-contents .footnote-container h2,
5
+ .user-contents .footnote-container h3,
6
+ .user-contents .footnote-container h4,
7
+ .user-contents .footnote-container h5,
8
+ .user-contents .footnote-container h6,
9
+ .user-contents .footnote-container p,
10
+ .user-contents .footnote-container blockquote,
11
+ .user-contents .footnote-container code,
12
+ .user-contents .footnote-container ol,
13
+ .user-contents .footnote-container ul {
14
+ margin-bottom: unset;
15
+ }
16
+
17
+ /* footnotes in main editor */
18
+
19
+ .footnote-marker::before,
20
+ .citation-footnote-marker::before {
21
+ counter-increment: footnote-marker-counter;
22
+ content: counter(footnote-marker-counter);
23
+ }
24
+
25
+ .footnote-container,
26
+ .footnote-citation {
27
+ margin-top: 10px;
28
+ overflow-wrap: break-word;
29
+ }
30
+
31
+ /* footnotes in footnote in print */
32
+
33
+ .pagination-footnotes .footnote-marker::before {
34
+ content: "";
35
+ counter-increment: none;
36
+ }
37
+
38
+ .pagination-footnotes .footnote-marker > *:first-child::before {
39
+ counter-increment: footnote-counter;
40
+ content: counter(footnote-counter) " ";
41
+ }
42
+
43
+ .pagination-contents .footnote-marker > * {
44
+ display: none;
45
+ }
46
+
47
+ .footnote-marker,
48
+ .citation-footnote-marker {
49
+ font-size: 75%;
50
+ position: relative;
51
+ vertical-align: baseline;
52
+ top: -0.5em;
53
+ }
54
+
55
+ #footnote-box-container {
56
+ display: table-cell;
57
+ width: 20vw;
58
+ vertical-align: top;
59
+ }
60
+
61
+ /* Make the <hr> at the end of the footnote editor not show. It is only there
62
+ because PM needs some content. */
63
+
64
+ #footnote-box-container > div.ProseMirror > div:last-child > hr {
65
+ display: none;
66
+ }
67
+
68
+ #citation-footnote-box-container {
69
+ position: absolute;
70
+ width: 20vw;
71
+ max-width: 20vw;
72
+ }
73
+
74
+ #footnote-box-container .footnote-container > *:first-child::before {
75
+ counter-increment: footnote-counter;
76
+ content: counter(footnote-counter) " ";
77
+ }
78
+
79
+ #footnote-box-container .ProseMirror {
80
+ display: grid;
81
+ }
@@ -0,0 +1,514 @@
1
+ /* Comments */
2
+
3
+ #margin-box-column {
4
+ width: 240px;
5
+ padding-left: 20px;
6
+ margin-top: -0.5in;
7
+ }
8
+
9
+ #margin-box-filter {
10
+ height: 44px;
11
+ z-index: 6;
12
+ position: relative;
13
+ position: sticky;
14
+ width: 220px;
15
+ margin-bottom: 6px;
16
+ margin-left: -3px;
17
+ display: flex;
18
+ border: 2px solid var(--main-background-color);
19
+ border-top: 0 none;
20
+ top: 225px;
21
+ }
22
+
23
+ body.header-closed #margin-box-filter {
24
+ top: 72px;
25
+ z-index: 100;
26
+ }
27
+
28
+ .margin-box-filter-button {
29
+ flex: 1;
30
+ background-color: var(--cs-5-background);
31
+ color: var(--cs-5-text);
32
+ border-right: 1px solid var(--cs-5-border);
33
+ border-left: 1px solid var(--cs-5-border);
34
+ position: relative;
35
+ cursor: pointer;
36
+ }
37
+
38
+ .margin-box-filter-button:hover {
39
+ background-color: var(--cs-5-background-hover);
40
+ }
41
+
42
+ .margin-box-filter-button.fw-disabled {
43
+ background-color: var(--cs-disabled-background);
44
+ color: var(--cs-disabled);
45
+ }
46
+
47
+ .fw-marginbox-options.fw-pulldown.fw-right {
48
+ right: -16px;
49
+ top: 22px;
50
+ }
51
+
52
+ .margin-box-filter-button .fw-marginbox-options.fw-pulldown.fw-right {
53
+ top: 27px;
54
+ }
55
+
56
+ .margin-box-filter-button .label {
57
+ top: 0;
58
+ left: 16px;
59
+ position: absolute;
60
+ font-size: 12px;
61
+ font-weight: 700;
62
+ letter-spacing: 0.06px;
63
+ line-height: 44px;
64
+ }
65
+
66
+ .margin-box-filter-button:nth-child(1):nth-last-child(3) .label,
67
+ .margin-box-filter-button:nth-child(2):nth-last-child(2) .label,
68
+ .margin-box-filter-button:nth-child(3):nth-last-child(1) .label {
69
+ font-size: 10px;
70
+ left: 4px;
71
+ }
72
+
73
+ #margin-box-container div.margin-box {
74
+ width: 218px;
75
+ margin: 2px 0 0;
76
+ position: relative;
77
+ padding: 0;
78
+ border: 0;
79
+ }
80
+
81
+ .margin-box {
82
+ background-color: var(--cs-white-background);
83
+ color: var(--cs-white-text);
84
+ }
85
+
86
+ .comment-item {
87
+ padding: 12px 10px;
88
+ }
89
+
90
+ .margin-box .comment-item:first-child {
91
+ color: var(--cs-white-text);
92
+ background-color: var(--cs-white-background);
93
+ }
94
+
95
+ .margin-box.track {
96
+ background-color: rgb(var(--editor-track-background-color));
97
+ color: var(--editor-track-text-color);
98
+ }
99
+
100
+ .margin-box.track.fw-active {
101
+ background-color: var(--editor-track-active-background-color);
102
+ color: var(--editor-track-text-color);
103
+ border: 0 none;
104
+ }
105
+
106
+ .margin-box.track.fw-active::after {
107
+ color: var(--editor-track-active-background-color);
108
+ text-shadow: none;
109
+ }
110
+
111
+ #margin-box-container div.margin-box.fw-active {
112
+ color: var(--cs-white-text);
113
+ border: 1px solid var(--cs-white-border);
114
+ left: -18px;
115
+ z-index: 5;
116
+ }
117
+
118
+ .margin-box.comment.fw-active {
119
+ background-color: var(--editor-active-comment-background-color);
120
+ }
121
+
122
+ .margin-box.help.fw-active {
123
+ background-color: var(--editor-active-help-background-color);
124
+ left: -15px;
125
+ }
126
+
127
+ .margin-box.fw-warning {
128
+ background-color: rgb(var(--warning-background-color));
129
+ color: var(--warning-text-color);
130
+ }
131
+
132
+ #margin-box-container div.margin-box.fw-warning.fw-active {
133
+ background-color: var(--error-background-color);
134
+ color: var(--error-text-color);
135
+ }
136
+
137
+ .margin-box.fw-active::after {
138
+ position: absolute;
139
+ left: -11px;
140
+ top: 30px;
141
+ line-height: 1em;
142
+ font-size: 36px;
143
+ color: var(--editor-active-comment-background-color);
144
+ text-shadow: -1px 0 0 var(--cs-white-border);
145
+ }
146
+
147
+ .margin-box.fw-warning.fw-active::after {
148
+ top: 0;
149
+ color: var(--cs-1-text);
150
+ }
151
+
152
+ .margin-box.help.fw-active::after {
153
+ color: var(--editor-active-help-arrow-color);
154
+ left: -13px;
155
+ top: 10px;
156
+ }
157
+
158
+ .margin-box.hidden {
159
+ display: none;
160
+ }
161
+
162
+ .comment-item.comment-answer {
163
+ position: relative;
164
+ }
165
+
166
+ .fw-active .comment-answer[id]::before,
167
+ .inactive .comment-answer + .comment-answer[id]::before {
168
+ position: absolute;
169
+ left: 10px;
170
+ right: 10px;
171
+ top: 0;
172
+ display: block;
173
+ height: 1px;
174
+ background-color: var(--cs-white-border);
175
+ content: "";
176
+ }
177
+
178
+ .comment .collaborator {
179
+ font-weight: 700;
180
+ }
181
+
182
+ .comment-answer.wait .comment-answer-text {
183
+ background-size: 20px 20px;
184
+ }
185
+
186
+ .comment-btns {
187
+ margin-top: 5px;
188
+ text-align: right;
189
+ }
190
+
191
+ .wait .comment-btns {
192
+ display: none;
193
+ }
194
+
195
+ .comment-user {
196
+ margin-bottom: 9px;
197
+ }
198
+
199
+ .comment-user::after {
200
+ display: block;
201
+ clear: both;
202
+ content: "";
203
+ }
204
+
205
+ .comment-user .fw-avatar,
206
+ .comment-user .fw-string-avatar,
207
+ .tag-user .fw-avatar,
208
+ .tag-user .fw-string-avatar {
209
+ width: 26px;
210
+ height: 26px;
211
+ float: left;
212
+ margin-right: 8px;
213
+ }
214
+
215
+ .comment-user-avatar {
216
+ width: 26px;
217
+ height: 26px;
218
+ float: left;
219
+ margin-right: 8px;
220
+ border: 1px solid var(--cs-white-border);
221
+ }
222
+
223
+ .comment-user-name {
224
+ font-family: Lato, sans-serif;
225
+ font-size: 12px;
226
+ font-weight: 700;
227
+ line-height: 20px;
228
+ }
229
+
230
+ .comment-date {
231
+ font-size: 10px;
232
+ }
233
+
234
+ .assigned-user {
235
+ border: 1px solid var(--cs-white-border);
236
+ padding: 5px;
237
+ margin: 10px 0;
238
+ font-size: 0.9em;
239
+ text-align: center;
240
+ }
241
+
242
+ .assigned-user em {
243
+ font-weight: 700;
244
+ }
245
+
246
+ .comment-p {
247
+ line-height: 18px;
248
+ max-height: 54px;
249
+ overflow: hidden;
250
+ overflow-wrap: break-word;
251
+ }
252
+
253
+ .margin-box .ProseMirror-wrapper {
254
+ width: auto;
255
+ max-width: 97%;
256
+ background-color: var(--cs-white-background);
257
+ min-height: 40px;
258
+ border: 1px solid var(--cs-white-border);
259
+ padding: 2px;
260
+ margin-bottom: 6px;
261
+ cursor: text;
262
+ max-height: 120px;
263
+ overflow: auto;
264
+ }
265
+
266
+ .margin-box .btn {
267
+ font-size: 12px;
268
+ height: 24px;
269
+ line-height: 24px;
270
+ padding: 0 7px;
271
+ margin: 0;
272
+ }
273
+
274
+ .comment-form {
275
+ display: none;
276
+ }
277
+
278
+ .show-marginbox-options {
279
+ position: absolute;
280
+ right: 0;
281
+ top: 0;
282
+ cursor: pointer;
283
+ opacity: 0.4;
284
+ height: auto;
285
+ width: 17px;
286
+ line-height: 44px;
287
+ }
288
+
289
+ .comment-is-major {
290
+ margin: 5px 5px 9px 3px;
291
+ }
292
+
293
+ .comment-is-major-bgc .comment-item:first-child::after {
294
+ border-bottom-color: var(--editor-major-comment-background-color);
295
+ }
296
+
297
+ .comment-is-major-bgc .comment-item:first-child::after,
298
+ .comment.resolved .comment-item:first-child::after {
299
+ display: block;
300
+ content: "";
301
+ position: absolute;
302
+ right: 30px;
303
+ top: 18px;
304
+ width: 0;
305
+ height: 0;
306
+ border-style: solid;
307
+ border-width: 0 9px 7px;
308
+ border-color: transparent;
309
+ }
310
+
311
+ .comment.resolved .comment-item:first-child::after {
312
+ border-bottom-color: var(--editor-comment-resolved-border-color);
313
+ }
314
+
315
+ .comment-is-major-bgc.fw-active .comment-item:first-child::after,
316
+ .comment.resolved.fw-active .comment-item:first-child::after {
317
+ border-bottom-color: var(--editor-active-comment-background-color);
318
+ }
319
+
320
+ .margin-box .ProseMirror-wrapper::-webkit-scrollbar,
321
+ .comment-answer-container::-webkit-scrollbar {
322
+ width: 5px;
323
+ }
324
+
325
+ .margin-box .ProseMirror-wrapper::-webkit-scrollbar-track,
326
+ .comment-answer-container::-webkit-scrollbar-track {
327
+ background: var(--editor-active-comment-background-color);
328
+ }
329
+
330
+ .margin-box .ProseMirror-wrapper::-webkit-scrollbar-thumb,
331
+ .comment-answer-container::-webkit-scrollbar-thumb {
332
+ background: #999999;
333
+ }
334
+
335
+ .margin-box .ProseMirror-wrapper::-webkit-scrollbar-thumb:hover,
336
+ .comment-answer-container::-webkit-scrollbar-thumb:hover {
337
+ background: #777777;
338
+ }
339
+
340
+ .comment.fw-active.resolved
341
+ .comment-answer
342
+ #answer-editor
343
+ .ProseMirror-wrapper {
344
+ pointer-events: none;
345
+ }
346
+
347
+ .comment-is-major-bgc .comment-item:first-child {
348
+ background-color: var(--editor-major-comment-background-color);
349
+ }
350
+
351
+ .comment.resolved .comment-item [class^="comment-"] {
352
+ opacity: var(--editor-comment-resolved-opacity);
353
+ }
354
+
355
+ .comment-is-major-bgc .comment-item:first-child::before {
356
+ content: "HP";
357
+ background-color: var(--editor-major-comment-icon-color);
358
+ }
359
+
360
+ .comment-is-major-bgc .comment-item:first-child::before,
361
+ .comment.resolved .comment-item:first-child::before {
362
+ display: block;
363
+ position: absolute;
364
+ right: 30px;
365
+ top: 0;
366
+ color: var(--editor-comment-resolved-text-color);
367
+ font-size: 8px;
368
+ width: 18px;
369
+ text-align: center;
370
+ height: 20px;
371
+ padding-top: 5px;
372
+ font-weight: 700;
373
+ }
374
+
375
+ .comment.resolved .comment-item:first-child::before {
376
+ content: "RC";
377
+ background-color: var(--editor-resolved-comment-icon-color);
378
+ }
379
+
380
+ .margin-box.fw-active .comment-item:first-child {
381
+ background-color: var(--editor-active-comment-background-color);
382
+ padding-bottom: 10px;
383
+ }
384
+
385
+ #comment-editor .ProseMirror-suggestion,
386
+ #answer-editor .ProseMirror-suggestion {
387
+ font-weight: 700;
388
+ }
389
+
390
+ #comment-editor .tagger,
391
+ #answer-editor .tagger {
392
+ margin: 5px -10px -11px;
393
+ background-color: var(--cs-light-background);
394
+ border: 1px solid var(--cs-light-border);
395
+ }
396
+
397
+ #comment-editor .tagger:empty,
398
+ #answer-editor .tagger:empty {
399
+ display: none;
400
+ }
401
+
402
+ #comment-editor .tagger .tag,
403
+ #answer-editor .tagger .tag {
404
+ padding: 10px;
405
+ cursor: pointer;
406
+ }
407
+
408
+ #comment-editor .tagger .tag.fw-selected,
409
+ #answer-editor .tagger .tag.fw-selected {
410
+ background-color: var(--cs-6-background-focus);
411
+ }
412
+
413
+ #comment-editor .tagger .tag:hover,
414
+ #answer-editor .tagger .tag:hover {
415
+ background-color: var(--cs-6-background-hover);
416
+ }
417
+
418
+ #comment-editor .tagger .tag-user,
419
+ #answer-editor .tagger .tag-user {
420
+ min-height: 28px;
421
+ }
422
+
423
+ .help-text-wrapper {
424
+ padding: 10px;
425
+ }
426
+
427
+ .help-text-wrapper p {
428
+ margin-bottom: 8px;
429
+ text-align: justify;
430
+ }
431
+
432
+ .help-text-wrapper strong {
433
+ font-weight: 700;
434
+ }
435
+
436
+ .help-text-wrapper em {
437
+ font-style: italic;
438
+ }
439
+
440
+ .help-text-wrapper blockquote {
441
+ border-left: 2px solid var(--cs-white-border);
442
+ margin-left: 5px;
443
+ padding-left: 5px;
444
+ }
445
+
446
+ .comment-expand-compress {
447
+ text-decoration: none;
448
+ font-weight: bolder;
449
+ }
450
+
451
+ .show-more:not(.inactive) {
452
+ max-height: 1000px;
453
+ }
454
+
455
+ .comment-collapsible-buttons {
456
+ display: flex;
457
+ justify-content: space-between;
458
+ }
459
+
460
+ .collapse:not(.show) {
461
+ display: none;
462
+ }
463
+
464
+ .margin-box.comment.fw-active .comment-answer-container {
465
+ max-height: 325px;
466
+ overflow: hidden scroll;
467
+ }
468
+
469
+ .comment-option {
470
+ right: 8px;
471
+ }
472
+
473
+ #global-comments {
474
+ margin-top: 20px;
475
+ padding: 0 10px;
476
+ }
477
+
478
+ #global-comment-container {
479
+ width: 100%;
480
+ }
481
+
482
+ #global-comment-container .margin-box.comment {
483
+ position: relative;
484
+ width: 100%;
485
+ margin: 10px 0 0;
486
+ border: 1px solid var(--cs-white-border);
487
+ }
488
+
489
+ #global-comment-container .margin-box.comment.fw-active {
490
+ left: 0;
491
+ border: 1px solid var(--cs-white-border);
492
+ }
493
+
494
+ #global-comment-container .comment-answer-container {
495
+ padding: 10px;
496
+ }
497
+
498
+ #new-global-comment {
499
+ margin-top: 10px;
500
+ }
501
+
502
+ .global-comment-label {
503
+ font-size: 10px;
504
+ font-weight: 700;
505
+ text-transform: uppercase;
506
+ letter-spacing: 0.05em;
507
+ padding: 5px 10px 0;
508
+ color: var(--cs-disabled);
509
+ }
510
+
511
+ .global-comment {
512
+ border-top: 2px solid var(--cs-white-border);
513
+ margin-top: 10px;
514
+ }