@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
package/css/editor.css ADDED
@@ -0,0 +1,1484 @@
1
+ body.editor {
2
+ height: 100%;
3
+ font-family: Lato, sans-serif;
4
+ font-size: 13px;
5
+ width: 100%;
6
+ overflow-x: hidden;
7
+ }
8
+
9
+ body.editor header {
10
+ position: fixed;
11
+ width: 100%;
12
+ z-index: 91;
13
+ }
14
+
15
+ .user-contents figure {
16
+ border: 1px solid var(--cs-white-border);
17
+ }
18
+
19
+ .user-contents .figure figure {
20
+ width: 100%;
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+
25
+ .ProseMirror figcaption.empty span.text,
26
+ .ProseMirror caption.empty span.text {
27
+ display: inline-block;
28
+ }
29
+
30
+ .ProseMirror figcaption.empty::after,
31
+ .ProseMirror caption.empty::after {
32
+ color: var(--cs-white-placeholder-text);
33
+ content: attr(data-placeholder);
34
+ cursor: text;
35
+ }
36
+
37
+ .ProseMirror span.placeholder::before {
38
+ color: var(--cs-white-placeholder-text);
39
+ content: attr(data-placeholder);
40
+ cursor: text;
41
+ }
42
+
43
+ .ProseMirror-focused span.placeholder.selected {
44
+ display: none;
45
+ }
46
+
47
+ .ProseMirror-focused
48
+ .ProseMirror:not(.ProseMirror-focused)
49
+ span.placeholder.selected {
50
+ display: inline;
51
+ }
52
+
53
+ .user-contents a,
54
+ .user-contents a:hover {
55
+ color: var(--cs-1-text);
56
+ }
57
+
58
+ .pagination-footnote-item {
59
+ width: 100%;
60
+ }
61
+
62
+ .pagination-footnote-item-container {
63
+ cursor: pointer;
64
+ }
65
+
66
+ .pagination-footnote-item-container::before {
67
+ content: "\0000a0x";
68
+ position: absolute;
69
+ visibility: hidden;
70
+ font-weight: bold;
71
+ }
72
+
73
+ .pagination-footnote-item-container:hover::before {
74
+ visibility: visible;
75
+ }
76
+
77
+ .pagination-footnote-item-container > div {
78
+ margin-left: 15px;
79
+ }
80
+
81
+ .doc-body,
82
+ .pagination-footnote > * > * {
83
+ font-size: 12pt;
84
+ }
85
+
86
+ #document-top {
87
+ padding: 16px 0;
88
+ background-color: var(--cs-5-background);
89
+ width: 100%;
90
+ border-bottom: 1px solid var(--cs-5-border);
91
+ }
92
+
93
+ #document-top > h1 {
94
+ font-size: 22px;
95
+ color: var(--cs-5-text);
96
+ font-style: italic;
97
+ padding: 0 48px 0 110px;
98
+ background: url("../static/img/fidus_face.avif") no-repeat 42px 0;
99
+ background-size: 23px auto;
100
+ line-height: 32px;
101
+ overflow: hidden;
102
+ white-space: nowrap;
103
+ text-overflow: ellipsis;
104
+ height: 1.45em;
105
+ }
106
+
107
+ #header-navigation {
108
+ position: relative;
109
+ margin: 20px 0 0 110px;
110
+ user-select: none;
111
+ }
112
+
113
+ #header-navigation > div {
114
+ position: relative;
115
+ display: inline-block;
116
+ margin-right: 18px;
117
+ height: 18px;
118
+ overflow: visible;
119
+ }
120
+
121
+ #header-navigation span {
122
+ cursor: pointer;
123
+ }
124
+
125
+ #header-navigation .header-nav-item {
126
+ line-height: 35px;
127
+ color: var(--nagivation-link-text-color);
128
+ letter-spacing: 1px;
129
+ }
130
+
131
+ .fw-pulldown-item.fw-cursor {
132
+ border-left: 3px var(--menu-cursor-border-color) solid;
133
+ }
134
+
135
+ #header-navigation .header-nav-item:hover {
136
+ color: var(--nagivation-link-active-text-color);
137
+ text-shadow: 1px 0 0 var(--nagivation-link-active-text-color);
138
+ }
139
+
140
+ #header-navigation span.deactivated {
141
+ text-decoration: line-through;
142
+ }
143
+
144
+ #header-navigation span.fw-disabled,
145
+ #toolbar span.fw-disabled {
146
+ color: var(--cs-disabled) !important;
147
+ text-shadow: none;
148
+ }
149
+
150
+ #header-navigation span.fw-selected.fw-disabled,
151
+ #toolbar span.fw-selected.fw-disabled {
152
+ background-color: var(--cs-disabled-background);
153
+ color: var(--cs-disabled) !important;
154
+ }
155
+
156
+ /*
157
+ * Selection Menu style
158
+ */
159
+ #selection-menu {
160
+ margin-left: -23px;
161
+ z-index: 1;
162
+ }
163
+
164
+ #selection-menu > div {
165
+ width: 46px;
166
+ }
167
+
168
+ /*
169
+ * Toolbar Style
170
+ */
171
+
172
+ #toolbar {
173
+ display: block;
174
+ z-index: 108;
175
+ width: 100%;
176
+ user-select: none;
177
+ padding-top: 34px;
178
+ padding-bottom: 34px;
179
+ background-color: var(--main-background-color);
180
+ }
181
+
182
+ #ice-control {
183
+ right: 0;
184
+ }
185
+
186
+ #comments-display {
187
+ left: 100%;
188
+ margin-left: 14px;
189
+ background-color: var(--input-focus-background-color);
190
+ vertical-align: top;
191
+ }
192
+
193
+ #comments-display.fw-selected {
194
+ background-color: var(--cs-light-background);
195
+ }
196
+
197
+ #comments-display:hover {
198
+ background-color: var(--cs-light-background-hover);
199
+ }
200
+
201
+ #comments-display.fw-disabled {
202
+ color: var(--cs-disabled);
203
+ background-color: var(--cs-disabled-background);
204
+ }
205
+
206
+ #reviewed {
207
+ left: 100%;
208
+ margin-left: 14px;
209
+ background-color: var(--editor-reviewed);
210
+ }
211
+
212
+ #reviewed:hover {
213
+ background-color: var(--cs-light-background-hover);
214
+ }
215
+
216
+ .editor-toolbar {
217
+ position: relative;
218
+ width: auto !important;
219
+ padding-left: 110px;
220
+ }
221
+
222
+ .editor-toolbar div.ui-buttonset {
223
+ position: relative;
224
+ display: inline-block;
225
+ white-space: nowrap;
226
+ vertical-align: top;
227
+ margin-right: 6px;
228
+ }
229
+
230
+ .editor-toolbar div.ui-buttonset:first-child {
231
+ position: absolute;
232
+ left: 30px;
233
+ }
234
+
235
+ .editor-toolbar div.info {
236
+ /* max-width: 90px; */
237
+ min-width: 62px;
238
+ color: var(--cs-white-text);
239
+ background-color: var(--cs-white-background);
240
+ text-shadow: none;
241
+ border-color: var(--cs-white-border);
242
+ height: 46px;
243
+ line-height: 46px;
244
+ padding: 0 10px;
245
+ display: inline-block;
246
+ font-size: 14px;
247
+ border-width: 0;
248
+ border-radius: 23px;
249
+ text-decoration: none;
250
+ box-shadow: none;
251
+ box-sizing: content-box;
252
+ white-space: nowrap;
253
+ margin-right: 6px;
254
+ text-align: center;
255
+ }
256
+
257
+ .editor-toolbar div.multi-buttons {
258
+ width: auto;
259
+ }
260
+
261
+ .editor-toolbar div.multi-buttons .multi-buttons-cover {
262
+ position: relative;
263
+ min-width: 35px;
264
+ max-width: 120px;
265
+ color: var(--cs-light-text);
266
+ font-family: Lato, sans-serif;
267
+ font-size: 13px;
268
+ font-weight: 700;
269
+ letter-spacing: 0.07px;
270
+ padding: 0 40px 0 20px;
271
+ }
272
+
273
+ .editor-toolbar div.multi-buttons .multi-buttons-cover::after {
274
+ display: block;
275
+ position: absolute;
276
+ right: 10px;
277
+ top: 16px;
278
+ text-align: right;
279
+ margin-top: 0;
280
+ width: 9px;
281
+ height: 5px;
282
+ opacity: 0.5;
283
+ color: var(--cs-light-text);
284
+ font-size: 15px;
285
+ line-height: 15.75px;
286
+ letter-spacing: 0.15px;
287
+ }
288
+
289
+ .editor-toolbar div.multi-buttons .multi-buttons-cover.fw-disabled::after {
290
+ display: none;
291
+ }
292
+
293
+ .editor-toolbar .fw-button.no-border {
294
+ background: transparent;
295
+ border-color: transparent;
296
+ }
297
+
298
+ .editor-toolbar .fw-button.no-border .ui-button-text {
299
+ width: 10px;
300
+ height: 10px;
301
+ opacity: 0.4;
302
+ color: var(--cs-light-text);
303
+ font-size: 17px;
304
+ font-weight: 400;
305
+ line-height: 15.75px;
306
+ letter-spacing: 0.17px;
307
+ }
308
+
309
+ .editor-toolbar .fw-button,
310
+ .editor-selection-menu .fw-button {
311
+ border-width: 0;
312
+ }
313
+
314
+ .editor-selection-menu .fw-button {
315
+ margin-bottom: 4px;
316
+ }
317
+
318
+ .editor-toolbar .fw-button.fw-large,
319
+ .editor-selection-menu .fw-button.fw-large {
320
+ height: 46px;
321
+ line-height: 46px;
322
+ border-radius: 23px;
323
+ }
324
+
325
+ .editor-toolbar .fw-button.fw-large.fw-square,
326
+ .editor-selection-menu .fw-button.fw-large.fw-square {
327
+ width: 46px;
328
+ }
329
+
330
+ .fw-dialog-content.math {
331
+ min-width: 200px;
332
+ padding-right: 50px;
333
+ padding-bottom: 10px;
334
+ }
335
+
336
+ /* stylelint-disable selector-class-pattern */
337
+ .ML__popover {
338
+ z-index: 1000;
339
+ }
340
+
341
+ .ML__fieldcontainer__field {
342
+ min-height: 23px;
343
+ }
344
+ /* stylelint-enable selector-class-pattern */
345
+
346
+ math-field {
347
+ border: 0;
348
+ min-width: calc(100% - 10px);
349
+ }
350
+
351
+ #editor-content {
352
+ display: flex;
353
+ position: relative;
354
+ top: 225px;
355
+ max-width: 1600px;
356
+ padding: 0.5in 54px 0 110px;
357
+ }
358
+
359
+ body.header-closed #toolbar {
360
+ padding-top: 12px;
361
+ }
362
+
363
+ body.header-closed #editor-content {
364
+ top: 72px;
365
+ }
366
+
367
+ #flow .doc-bibliography {
368
+ background-color: var(--editor-text-content-item-background-color);
369
+ }
370
+
371
+ #paper-editable .citation,
372
+ #paper-editable .cross-reference,
373
+ #paper-editable .equation {
374
+ cursor: pointer;
375
+ background-color: var(--editor-text-content-item-background-color);
376
+ }
377
+
378
+ #paper-editable .citation:hover,
379
+ #paper-editable .cross-reference:hover,
380
+ #paper-editable .equation:hover {
381
+ background-color: var(--editor-text-content-item-hover-background-color);
382
+ }
383
+
384
+ #paper-editable .cross-reference.missing-target {
385
+ text-transform: uppercase;
386
+ }
387
+
388
+ #paper-editable .cross-reference.missing-target,
389
+ #paper-editable .cross-reference.missing-target:hover,
390
+ #paper-editable a.missing-target {
391
+ background-color: var(--error-background-color);
392
+ }
393
+
394
+ #paper-editable .fw-search {
395
+ background-color: var(--cs-5-background);
396
+ }
397
+
398
+ #paper-editable .fw-search.fw-selected {
399
+ background-color: var(--cs-5-background-hover);
400
+ }
401
+
402
+ div.search-result-count {
403
+ position: absolute;
404
+ right: 10px;
405
+ top: 10px;
406
+ }
407
+
408
+ #paper-editable {
409
+ display: table;
410
+ width: 100%;
411
+ }
412
+
413
+ #document-editable {
414
+ display: table-cell;
415
+ vertical-align: top;
416
+ white-space: pre-wrap;
417
+ }
418
+
419
+ div#layout {
420
+ padding-top: 60px;
421
+ }
422
+
423
+ /*
424
+ * Dialog
425
+ */
426
+
427
+ .dialogSubmit {
428
+ text-align: right;
429
+ margin-top: 20px;
430
+ }
431
+
432
+ /* for forms */
433
+
434
+ input.required,
435
+ input.error {
436
+ border: 2px solid var(--error-border-color);
437
+ }
438
+
439
+ /* Overwrite color changes through font in editor. Webkit bug */
440
+
441
+ font {
442
+ color: inherit !important;
443
+ }
444
+
445
+ /* Borders in editor */
446
+
447
+ .ProseMirror {
448
+ border: none !important;
449
+ padding: 0 !important;
450
+ line-height: inherit !important;
451
+ }
452
+
453
+ .ProseMirror table {
454
+ border-collapse: collapse;
455
+ table-layout: fixed;
456
+ }
457
+
458
+ .ProseMirror td,
459
+ .ProseMirror th,
460
+ .ProseMirror caption {
461
+ vertical-align: top;
462
+ border: 1px solid #dddddd;
463
+ padding: 3px 5px;
464
+ }
465
+
466
+ .ProseMirror th {
467
+ background-color: var(--cs-6-background);
468
+ color: var(--cs-6-text);
469
+ }
470
+
471
+ /* Don't show parts marked as hidden */
472
+
473
+ .ProseMirror .doc-part[data-hidden] {
474
+ display: none;
475
+ }
476
+
477
+ .ProseMirror table[data-caption-hidden][data-category="none"] caption,
478
+ .ProseMirror figure[data-caption-hidden][data-category="none"] figcaption,
479
+ .ProseMirror table[data-caption-hidden] caption span.text,
480
+ .ProseMirror table[data-category="none"] caption span.label,
481
+ .ProseMirror figure[data-caption-hidden] figcaption span.text,
482
+ .ProseMirror figure[data-category="none"] figcaption span.label {
483
+ display: none;
484
+ }
485
+
486
+ /* For default contents of title and contents field */
487
+
488
+ .doc-part::before {
489
+ text-transform: none;
490
+ color: var(--cs-white-border);
491
+ }
492
+
493
+ /* For Firefox problem: shows input fields without height. */
494
+
495
+ .doc-part {
496
+ min-height: 1.5em;
497
+ line-height: initial;
498
+
499
+ /* Cancel out 1.6em line height for metadata/title. */
500
+ }
501
+
502
+ /* overwrite dropkick layout for access rights dialogue */
503
+
504
+ .access-rights-dialog select {
505
+ position: static;
506
+ visibility: inherit;
507
+ top: 0;
508
+ }
509
+
510
+ /* delete icon in access rights dialogue */
511
+
512
+ span.delete {
513
+ cursor: pointer;
514
+ }
515
+
516
+ .doc-title:focus,
517
+ .doc-body:focus {
518
+ outline: none;
519
+ }
520
+
521
+ /* Prevent user from writing in the footnote editor while there are no footnotes. */
522
+
523
+ #footnote-box-container div.ProseMirror:empty {
524
+ display: none;
525
+ }
526
+
527
+ #flow {
528
+ padding: 50px;
529
+ position: relative;
530
+ width: 100%;
531
+ bottom: 50px;
532
+ color: var(--cs-white-text);
533
+ background-color: var(--cs-white-background);
534
+ }
535
+
536
+ #flow.fw-hide {
537
+ display: none;
538
+ }
539
+
540
+ #comments-filter {
541
+ margin-left: 7px;
542
+ }
543
+
544
+ #unobtrusive-messages {
545
+ position: fixed;
546
+ bottom: 0;
547
+ left: 100px;
548
+ background-color: var(--cs-light-background);
549
+ border-top: 1px solid var(--cs-light-border);
550
+ border-right: 1px solid var(--cs-light-border);
551
+ border-left: 1px solid var(--cs-light-border);
552
+ padding: 4px;
553
+ }
554
+
555
+ #unobtrusive-messages .warn {
556
+ color: var(--warning-text-color);
557
+ background-color: rgb(var(--warning-background-color));
558
+ }
559
+
560
+ #unobtrusive-messages:empty {
561
+ display: none;
562
+ }
563
+
564
+ /* Show key bindings menu */
565
+
566
+ .help-key {
567
+ float: none;
568
+ line-height: 1.5;
569
+ position: relative;
570
+ bottom: 4px;
571
+ }
572
+
573
+ .help-list-wrap {
574
+ overflow: hidden;
575
+ margin: 0 auto;
576
+ transition: width 0.2s linear;
577
+ }
578
+
579
+ .help-list {
580
+ list-style: none;
581
+ margin: 0;
582
+ padding: 0 0 10px;
583
+ overflow: hidden;
584
+ float: left;
585
+ width: 420px;
586
+ }
587
+
588
+ .help-list li {
589
+ margin-right: 40px;
590
+ }
591
+
592
+ .help-key-unit {
593
+ line-height: 1.8;
594
+ margin-right: 2em;
595
+ padding: 5px 0;
596
+ }
597
+
598
+ .help-key-def {
599
+ display: inline-block;
600
+ margin-left: 1em;
601
+ float: right;
602
+ }
603
+
604
+ .image-selection-table tr {
605
+ cursor: pointer;
606
+ }
607
+
608
+ .image-selection-table .datatable-container tbody tr:nth-child(2n + 1) {
609
+ background-color: var(--table-row-background-color);
610
+ }
611
+
612
+ /* MathLive Editor Overwrite */
613
+
614
+ .math-field {
615
+ background-color: var(--cs-white-background);
616
+ margin: 9px 10px 7px;
617
+ padding-left: 5px;
618
+ font-size: 20px;
619
+ display: block;
620
+ height: 59px;
621
+ border: solid 1px var(--cs-white-border);
622
+ cursor: text;
623
+ position: relative;
624
+ }
625
+
626
+ .math-field .fw-placeholder {
627
+ position: absolute;
628
+ top: 20px;
629
+ left: 10px;
630
+ color: var(--editor-text-content-item-background-color);
631
+ }
632
+
633
+ .math-latex {
634
+ display: block;
635
+ min-width: 250px;
636
+ margin: 5px 0;
637
+ font-size: 18px;
638
+ padding-left: 5px;
639
+ }
640
+
641
+ .fw-media-uploader {
642
+ margin-top: 15px;
643
+ margin-right: 30px;
644
+ }
645
+
646
+ .math-field-outer {
647
+ margin-top: 32px;
648
+ }
649
+
650
+ div.table-edit-button-group {
651
+ margin-bottom: 10px;
652
+ text-align: left;
653
+ }
654
+
655
+ table.insert-table-selection {
656
+ margin: 10px 0;
657
+ }
658
+
659
+ table.insert-table-selection,
660
+ table.insert-table-selection td {
661
+ border: 1px solid var(--cs-white-border);
662
+ }
663
+
664
+ table.insert-table-selection td {
665
+ min-width: 30px;
666
+ height: 18px;
667
+ }
668
+
669
+ table.insert-table-selection td.hover {
670
+ color: var(--cs-white-hover);
671
+ background-color: var(--cs-white-background-hover);
672
+ }
673
+
674
+ table.insert-table-selection td.fw-selected {
675
+ color: var(--cs-white-selected);
676
+ background-color: var(--cs-white-background-selected);
677
+ }
678
+
679
+ .ProseMirror td.selectedCell {
680
+ background-color: var(--cs-2-background);
681
+ caret-color: transparent;
682
+ }
683
+
684
+ /* Wide table: used for submission dialog */
685
+
686
+ .fw-dialog-table-wide .fw-entry-field input[type="text"],
687
+ .fw-dialog-table-wide .fw-entry-field textarea {
688
+ width: 678px;
689
+ }
690
+
691
+ .fw-dialog-table-wide .fw-entry-field textarea {
692
+ resize: none;
693
+ }
694
+
695
+ .fw-dialog-table-wide th {
696
+ vertical-align: top;
697
+ padding: 0 6px 0 8px;
698
+ width: 164px;
699
+ }
700
+
701
+ /* Links & Anchors */
702
+
703
+ .drop-up-outer {
704
+ /* 1. Reset cascade to browser defaults */
705
+ all: revert;
706
+
707
+ /* 2. Predictable box model */
708
+ box-sizing: border-box;
709
+
710
+ /* 3. Clear spacing & borders */
711
+ margin: 0;
712
+ padding: 0;
713
+ border: none;
714
+ outline: none;
715
+
716
+ /* 4. Typography isolation */
717
+ font-family:
718
+ system-ui,
719
+ -apple-system,
720
+ BlinkMacSystemFont,
721
+ "Segoe UI",
722
+ Roboto,
723
+ sans-serif;
724
+ font-size: 16px;
725
+ font-weight: 400;
726
+ line-height: 1.5;
727
+ color: inherit; /* Change to explicit hex if needed */
728
+ text-align: left;
729
+ text-transform: none;
730
+ letter-spacing: normal;
731
+
732
+ /* 5. Layout & dimensions */
733
+ width: auto;
734
+ max-width: 100vw;
735
+ height: auto;
736
+ min-width: 0;
737
+ min-height: 0;
738
+ overflow: visible;
739
+
740
+ /* 6. Break inherited animations/transforms that distort layout */
741
+ transform: none !important;
742
+ transition: none !important;
743
+ animation: none !important;
744
+
745
+ /* 7. Modern containment & stacking isolation */
746
+ contain: layout style;
747
+ isolation: isolate;
748
+
749
+ /* 8. White space */
750
+ white-space: initial;
751
+ position: absolute;
752
+ }
753
+
754
+ .drop-up-inner {
755
+ position: relative;
756
+ background-color: var(--cs-white-background);
757
+ z-index: 1;
758
+ font-weight: normal;
759
+ color: var(--cs-white-text);
760
+ left: 10px;
761
+ }
762
+
763
+ .drop-up-head {
764
+ padding: 20px 22px;
765
+ background-color: var(--cs-dark-background);
766
+ color: var(--cs-dark-text);
767
+ font-family: Lato, sans-serif;
768
+ font-size: 13px;
769
+ font-weight: 400;
770
+ line-height: 18px;
771
+ letter-spacing: 0.13px;
772
+ border-radius: 6px 6px 0 0;
773
+ }
774
+
775
+ .drop-up-head .link-href a {
776
+ color: var(--cs-dark-text);
777
+ font-family: Lato, sans-serif;
778
+ font-size: 12px;
779
+ font-weight: 700;
780
+ text-decoration: none;
781
+ }
782
+
783
+ .drop-up-head > * + * {
784
+ margin-top: 14px;
785
+ }
786
+
787
+ .link.drop-up-inner {
788
+ box-shadow: 0 0 20px rgb(var(--dropup-box-shadow-color));
789
+ border-radius: 6px;
790
+ }
791
+
792
+ .user-contents ul.drop-up-options li {
793
+ border-top: 1px solid var(--cs-light-border);
794
+ padding: 16px 30px;
795
+ color: var(--cs-light-text);
796
+ background: var(--cs-light-background);
797
+ font-family: Lato, sans-serif;
798
+ font-size: 13px;
799
+ font-weight: 400;
800
+ line-height: 1em;
801
+ }
802
+
803
+ .user-contents ul.drop-up-options {
804
+ list-style: none;
805
+ padding: 0 0 12px;
806
+ cursor: pointer;
807
+ }
808
+
809
+ ul.drop-up-options li:hover,
810
+ ul.drop-up-options li.fw-focused {
811
+ background-color: var(--cs-light-background-hover);
812
+ }
813
+
814
+ ul.drop-up-options li.fw-focused {
815
+ outline: 2px solid var(--cs-light-border);
816
+ outline-offset: -2px;
817
+ }
818
+
819
+ .drop-up-options .remove-link::after {
820
+ font-family: "Font Awesome 7 Free", monospace;
821
+ content: "\f2ed";
822
+ opacity: 0.4;
823
+ float: right;
824
+ display: block;
825
+ }
826
+
827
+ .drop-up-inner .edit {
828
+ font-size: 0.8em;
829
+ text-align: right;
830
+ }
831
+
832
+ *:focus {
833
+ outline: none;
834
+ }
835
+
836
+ .ProseMirror-gapcursor {
837
+ display: none;
838
+ pointer-events: none;
839
+ position: absolute;
840
+ }
841
+
842
+ /* gapcursor related */
843
+
844
+ .ProseMirror-gapcursor::after {
845
+ content: "";
846
+ display: block;
847
+ position: absolute;
848
+ top: -2px;
849
+ width: 20px;
850
+ border-top: 1px solid black;
851
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
852
+ }
853
+
854
+ /* stylelint-disable keyframes-name-pattern */
855
+ @keyframes ProseMirror-cursor-blink {
856
+ to {
857
+ visibility: hidden;
858
+ }
859
+ }
860
+ /* stylelint-enable keyframes-name-pattern */
861
+
862
+ .ProseMirror-focused .ProseMirror-gapcursor {
863
+ display: block;
864
+ }
865
+
866
+ /* For users who use one of the inverted high contrast modes. Likely want
867
+ as much black as possible. */
868
+
869
+ html[hc="a3"] .fw-overlay,
870
+ html[hc="a4"] .fw-overlay,
871
+ html[hc="a5"] .fw-overlay {
872
+ background-color: rgb(var(--highcontrast-overlay-color));
873
+ }
874
+
875
+ html[hc="a3"] body,
876
+ html[hc="a4"] body,
877
+ html[hc="a5"] body {
878
+ background-color: var(--highcontrast-background-color);
879
+ }
880
+
881
+ html[hc="a3"] #toolbar,
882
+ html[hc="a4"] #toolbar,
883
+ html[hc="a5"] #toolbar {
884
+ border-bottom: 1px solid var(--highcontrast-border-color);
885
+ }
886
+
887
+ #close-document-top {
888
+ position: fixed;
889
+ right: 30px;
890
+ top: 28px;
891
+ z-index: 100;
892
+ }
893
+
894
+ #close-document-top a,
895
+ #close-document-top .fw-link-text {
896
+ width: 10px;
897
+ height: 10px;
898
+ opacity: 0.6;
899
+ color: var(--cs-5-text);
900
+ font-size: 14px;
901
+ font-weight: 400;
902
+ line-height: 25px;
903
+ letter-spacing: -0.35px;
904
+ }
905
+
906
+ .doc-part.doc-deleted {
907
+ border: 3px solid rgb(var(--warning-border-color));
908
+ border-radius: 5px;
909
+ padding: 10px 20px 10px 10px;
910
+ margin: 5px 0;
911
+ position: relative;
912
+ }
913
+
914
+ .remove-doc-part {
915
+ position: absolute;
916
+ top: 5px;
917
+ right: 5px;
918
+ cursor: pointer;
919
+ font-size: 16px;
920
+ color: var(--cs-1-icon);
921
+ }
922
+
923
+ .remove-doc-part:hover {
924
+ color: var(--cs-1-hover);
925
+ }
926
+
927
+ .editor .doc .table-of-contents {
928
+ background-color: var(--editor-text-content-item-background-color);
929
+ font-family: Lato, sans-serif;
930
+ padding: 10px;
931
+ }
932
+
933
+ #navigator {
934
+ top: 250px;
935
+ left: 0;
936
+ position: fixed;
937
+ z-index: 9;
938
+ }
939
+
940
+ #navigator-content {
941
+ position: fixed;
942
+ top: auto;
943
+ left: 0;
944
+ display: block;
945
+ background-color: rgb(var(--editor-navigator-background-color));
946
+ min-width: 216px;
947
+ max-width: 480px;
948
+ color: var(--editor-navigator-color);
949
+ padding: 15px 30px 15px 50px;
950
+ box-sizing: border-box;
951
+ font-size: 13px;
952
+ line-height: 1.2;
953
+ transform: translateX(-100%);
954
+ transition: transform 0.2s ease-out;
955
+ overflow-y: auto;
956
+ }
957
+
958
+ #navigator.opened #navigator-content {
959
+ transform: translateX(0);
960
+ }
961
+
962
+ #navigator-list {
963
+ max-height: min(550px, 100vh - 315px);
964
+ overflow-y: hidden;
965
+ }
966
+
967
+ #navigator-content a {
968
+ color: var(--editor-navigator-color);
969
+ }
970
+
971
+ #navigator-list a:focus {
972
+ outline: var(--editor-navigator-focus-color) solid 2px;
973
+ outline-offset: 2px;
974
+ }
975
+
976
+ #navigator-filter span {
977
+ display: block;
978
+ padding-bottom: 10px;
979
+ }
980
+
981
+ #navigator-list.fw-hide,
982
+ #navigator-filter.fw-hide {
983
+ display: block;
984
+ height: 0;
985
+ overflow: hidden;
986
+ }
987
+
988
+ #navigator-list::-webkit-scrollbar {
989
+ width: 5px;
990
+ }
991
+
992
+ ::-webkit-scrollbar-thumb {
993
+ background: var(--editor-navigator-scrollbar-background-color);
994
+ border-radius: 10px;
995
+ }
996
+
997
+ ::-webkit-scrollbar-thumb:hover {
998
+ cursor: pointer;
999
+ background: var(--editor-navigator-scrollbar-background-color-hover);
1000
+ }
1001
+
1002
+ #navigator-list > * {
1003
+ padding-bottom: 12px;
1004
+ }
1005
+
1006
+ #navigator-list a:hover {
1007
+ text-decoration: underline;
1008
+ }
1009
+
1010
+ #navigator-content h2 {
1011
+ padding-left: 1em;
1012
+ }
1013
+
1014
+ #navigator-content h3 {
1015
+ padding-left: 2em;
1016
+ }
1017
+
1018
+ #navigator-content h4 {
1019
+ padding-left: 3em;
1020
+ }
1021
+
1022
+ #navigator-content h5 {
1023
+ padding-left: 4em;
1024
+ }
1025
+
1026
+ #navigator-content h6 {
1027
+ padding-left: 5em;
1028
+ }
1029
+
1030
+ #navigator-content .header {
1031
+ text-transform: uppercase;
1032
+ padding-bottom: 20px;
1033
+ }
1034
+
1035
+ .header-container {
1036
+ position: relative;
1037
+ padding-right: 28px;
1038
+ }
1039
+
1040
+ .active-heading {
1041
+ text-decoration: underline;
1042
+ }
1043
+
1044
+ #navigator-button {
1045
+ position: absolute;
1046
+ left: 0;
1047
+ top: 0;
1048
+ display: block;
1049
+ width: 42px;
1050
+ height: 42px;
1051
+ text-align: center;
1052
+ line-height: 42px;
1053
+ background-color: rgb(var(--editor-navigator-background-color));
1054
+ cursor: pointer;
1055
+ z-index: 4;
1056
+ }
1057
+
1058
+ #navigator.opened #navigator-button {
1059
+ background-color: inherit;
1060
+ }
1061
+
1062
+ .navigator-arrow-icon {
1063
+ color: var(--editor-navigator-color);
1064
+ }
1065
+
1066
+ .navigator-arrow-icon i {
1067
+ transition: all 0.5s 0.25s;
1068
+ }
1069
+
1070
+ .rotate {
1071
+ transform: rotate(180deg);
1072
+ }
1073
+
1074
+ #navigator-filter-icon,
1075
+ #navigator-filter-back {
1076
+ cursor: pointer;
1077
+ position: absolute;
1078
+ right: 0;
1079
+ top: 0;
1080
+ }
1081
+
1082
+ #navigator-filter-icon {
1083
+ transition: transform 0.2s;
1084
+ }
1085
+
1086
+ #navigator-filter-icon:hover {
1087
+ transform: rotate(90deg);
1088
+ }
1089
+
1090
+ .form-checkbox {
1091
+ appearance: none;
1092
+ display: inline-block;
1093
+ position: relative;
1094
+ background-color: var(--editor-navigator-color);
1095
+ color: var(--editor-navigator-checkbox-color);
1096
+ top: 5px;
1097
+ height: 18px;
1098
+ width: 18px;
1099
+ border: 0;
1100
+ border-radius: 3px;
1101
+ cursor: pointer;
1102
+ margin-right: 7px;
1103
+ outline: none;
1104
+ }
1105
+
1106
+ .form-checkbox:checked::before {
1107
+ position: absolute;
1108
+ left: 3px;
1109
+ content: "\2713";
1110
+ font-weight: bold;
1111
+ font-size: 1.2em;
1112
+ }
1113
+
1114
+ .navigator-label {
1115
+ color: var(--editor-navigator-color);
1116
+ cursor: pointer;
1117
+ display: inline-block;
1118
+ vertical-align: middle;
1119
+ }
1120
+
1121
+ .fw-hide {
1122
+ display: none;
1123
+ }
1124
+
1125
+ body.no-scroll {
1126
+ overflow: hidden;
1127
+ }
1128
+
1129
+ /* Additions for tablets + mobile */
1130
+ @media screen and (width <= 1279px) {
1131
+ #document-top > h1 {
1132
+ padding-left: 52px;
1133
+ background-position: 14px 0;
1134
+ }
1135
+
1136
+ #header-navigation {
1137
+ margin-left: 52px;
1138
+ }
1139
+
1140
+ .editor-toolbar div.ui-buttonset:first-child {
1141
+ left: 3px;
1142
+ }
1143
+
1144
+ .editor-toolbar {
1145
+ padding-left: 52px;
1146
+ }
1147
+
1148
+ #editor-content {
1149
+ padding-left: 52px;
1150
+ padding-right: 30px;
1151
+ }
1152
+ }
1153
+
1154
+ @media screen and (width <= 1023px) {
1155
+ #toolbar {
1156
+ padding-bottom: 6px;
1157
+ }
1158
+
1159
+ #editor-content {
1160
+ padding-right: 0;
1161
+ padding-left: 15px;
1162
+ }
1163
+
1164
+ #flow {
1165
+ padding: 16px 25px 8px 8px;
1166
+ }
1167
+
1168
+ #document-top > h1 {
1169
+ background: initial;
1170
+ padding-left: 8px;
1171
+ }
1172
+
1173
+ #header-navigation {
1174
+ margin-left: 8px;
1175
+ }
1176
+
1177
+ #navigator {
1178
+ top: 195px;
1179
+ z-index: 90;
1180
+ }
1181
+
1182
+ #navigator-button {
1183
+ width: 46px;
1184
+ height: 46px;
1185
+ line-height: 46px;
1186
+ }
1187
+
1188
+ body.header-closed #navigator {
1189
+ top: 64px;
1190
+ }
1191
+
1192
+ body.header-closed #editor-content {
1193
+ top: 96px;
1194
+ }
1195
+
1196
+ /* Show footnotes at bottom rather than next to main editor. */
1197
+ #footnote-box-container {
1198
+ display: block !important;
1199
+ width: auto !important;
1200
+ }
1201
+
1202
+ #document-editable {
1203
+ display: block;
1204
+ }
1205
+
1206
+ .margin-box.inactive {
1207
+ display: none;
1208
+ }
1209
+
1210
+ #margin-box-filter {
1211
+ position: fixed !important;
1212
+ top: 195px !important;
1213
+ right: 8px;
1214
+ }
1215
+
1216
+ body.header-closed #margin-box-filter {
1217
+ top: 64px !important;
1218
+ }
1219
+
1220
+ #margin-box-column {
1221
+ width: auto;
1222
+ position: absolute;
1223
+ }
1224
+
1225
+ #margin-box-container {
1226
+ overflow: hidden auto;
1227
+ bottom: 0;
1228
+ position: fixed;
1229
+ left: -1px;
1230
+ right: 0;
1231
+ max-height: 35vh;
1232
+ z-index: 2;
1233
+ }
1234
+
1235
+ .comment-btns {
1236
+ text-align: left !important;
1237
+ }
1238
+
1239
+ .margin-box.fw-active {
1240
+ left: 0 !important;
1241
+ right: 0 !important;
1242
+ width: 100% !important;
1243
+ margin-top: 0 !important;
1244
+ }
1245
+
1246
+ .footnote-container {
1247
+ margin-top: 0 !important;
1248
+ }
1249
+
1250
+ .margin-box.comment.fw-active .comment-answer-container {
1251
+ max-height: none !important;
1252
+ }
1253
+ }
1254
+
1255
+ @media screen and (width <= 420px) {
1256
+ .editor-toolbar div.ui-buttonset {
1257
+ margin-right: 0;
1258
+ }
1259
+
1260
+ .editor-toolbar div.multi-buttons .multi-buttons-cover {
1261
+ padding: 0 25px 0 15px;
1262
+ }
1263
+ }
1264
+
1265
+ /* Code block styling */
1266
+ .code-block-wrapper {
1267
+ position: relative;
1268
+ margin: 1em 0;
1269
+ }
1270
+
1271
+ .code-block-wrapper pre {
1272
+ padding-top: 30px;
1273
+ position: relative;
1274
+ }
1275
+
1276
+ .code-block-wrapper.ProseMirror-selectednode {
1277
+ outline: 2px solid #4a90e2;
1278
+ }
1279
+
1280
+ .code-block-language-badge {
1281
+ position: absolute;
1282
+ top: 8px;
1283
+ left: 8px;
1284
+ background: #4a90e2;
1285
+ color: white;
1286
+ padding: 3px 8px;
1287
+ border-radius: 3px;
1288
+ font-size: 10px;
1289
+ font-weight: bold;
1290
+ text-transform: uppercase;
1291
+ z-index: 10;
1292
+ pointer-events: none;
1293
+ }
1294
+
1295
+ .code-block-menu-btn {
1296
+ position: absolute;
1297
+ top: 5px;
1298
+ right: 5px;
1299
+ background: rgb(255 255 255 / 80%);
1300
+ border: 1px solid #dddddd;
1301
+ border-radius: 3px;
1302
+ padding: 2px 6px;
1303
+ cursor: pointer;
1304
+ z-index: 10;
1305
+ opacity: 0;
1306
+ transition: opacity 0.2s;
1307
+ }
1308
+
1309
+ .code-block-menu-btn:hover {
1310
+ background: rgb(255 255 255 / 100%);
1311
+ }
1312
+
1313
+ .code-block-wrapper:hover .code-block-menu-btn {
1314
+ opacity: 1;
1315
+ }
1316
+
1317
+ .code-block-label {
1318
+ font-weight: bold;
1319
+ font-size: 0.9em;
1320
+ margin-bottom: 0.5em;
1321
+ color: #333333;
1322
+ }
1323
+
1324
+ .code-block-label .label-text {
1325
+ background: #f5f5f5;
1326
+ padding: 2px 8px;
1327
+ border-left: 3px solid #4a90e2;
1328
+ display: inline-block;
1329
+ }
1330
+
1331
+ /* Language indicator for code blocks */
1332
+ pre[data-language]:not([data-language=""], [data-category])::after {
1333
+ content: attr(data-language);
1334
+ position: absolute;
1335
+ top: 5px;
1336
+ right: 5px;
1337
+ background: rgb(0 0 0 / 10%);
1338
+ padding: 2px 6px;
1339
+ font-size: 0.75em;
1340
+ border-radius: 3px;
1341
+ text-transform: uppercase;
1342
+ font-weight: bold;
1343
+ opacity: 0.6;
1344
+ }
1345
+
1346
+ pre[data-language] {
1347
+ position: relative;
1348
+ }
1349
+
1350
+ /* Inline reference drop-up */
1351
+ .inline-reference-drop-up .drop-up-inner {
1352
+ min-width: 280px;
1353
+ max-width: 400px;
1354
+ max-height: 200px;
1355
+ overflow-y: auto;
1356
+ background: var(--cs-white-background);
1357
+ border: 1px solid var(--cs-white-border);
1358
+ border-radius: 4px;
1359
+ box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
1360
+ padding: 4px 0;
1361
+ }
1362
+
1363
+ .inline-reference-drop-up-list {
1364
+ list-style: none;
1365
+ margin: 0;
1366
+ padding: 0;
1367
+ }
1368
+
1369
+ .inline-reference-drop-up-item {
1370
+ padding: 4px 10px;
1371
+ cursor: pointer;
1372
+ font-size: 12px;
1373
+ line-height: 1.4;
1374
+ display: flex;
1375
+ flex-direction: column;
1376
+ gap: 1px;
1377
+ }
1378
+
1379
+ .inline-reference-drop-up-item:hover,
1380
+ .inline-reference-drop-up-item.fw-selected {
1381
+ background-color: var(--cs-light-background-hover);
1382
+ }
1383
+
1384
+ .citation-drop-up-key {
1385
+ font-weight: bold;
1386
+ color: var(--cs-light-text);
1387
+ font-size: 12px;
1388
+ }
1389
+
1390
+ .citation-drop-up-meta {
1391
+ color: var(--cs-light-text-secondary);
1392
+ font-size: 11px;
1393
+ white-space: nowrap;
1394
+ overflow: hidden;
1395
+ text-overflow: ellipsis;
1396
+ }
1397
+
1398
+ .inline-reference-drop-up-empty {
1399
+ padding: 8px 10px;
1400
+ color: var(--cs-light-text-secondary);
1401
+ font-size: 12px;
1402
+ font-style: italic;
1403
+ }
1404
+
1405
+ .inline-reference-drop-up-section-header {
1406
+ padding: 4px 10px 2px;
1407
+ font-size: 10px;
1408
+ font-weight: bold;
1409
+ text-transform: uppercase;
1410
+ letter-spacing: 0.05em;
1411
+ color: var(--cs-light-text-secondary);
1412
+ border-top: 1px solid var(--cs-light-border);
1413
+ margin-top: 2px;
1414
+ }
1415
+
1416
+ .inline-reference-drop-up-xref-text {
1417
+ font-size: 12px;
1418
+ color: var(--cs-light-text);
1419
+ }
1420
+
1421
+ /* Inline reference widget */
1422
+ .inline-reference-widget {
1423
+ position: relative;
1424
+ display: inline-block;
1425
+ vertical-align: bottom;
1426
+ }
1427
+
1428
+ .inline-reference-input {
1429
+ display: inline-block;
1430
+ font-family: inherit;
1431
+ font-size: inherit;
1432
+ line-height: inherit;
1433
+ border: 1px solid var(--cs-light-border);
1434
+ border-radius: 3px;
1435
+ padding: 0 4px;
1436
+ margin: 0;
1437
+ background: var(--cs-white-background);
1438
+ color: var(--cs-light-text);
1439
+ outline: none;
1440
+ min-width: 120px;
1441
+ white-space: nowrap;
1442
+ cursor: text;
1443
+ }
1444
+
1445
+ .inline-reference-input:focus {
1446
+ border-color: var(--cs-2-background);
1447
+ box-shadow: 0 0 0 1px var(--cs-2-background);
1448
+ }
1449
+
1450
+ /* Inline math widget */
1451
+ .inline-math-widget {
1452
+ position: relative;
1453
+ display: inline-block;
1454
+ vertical-align: bottom;
1455
+ }
1456
+
1457
+ .inline-math-input {
1458
+ display: inline-block;
1459
+ font-family: monospace;
1460
+ font-size: 0.9em;
1461
+ line-height: inherit;
1462
+ border: 1px solid var(--cs-light-border);
1463
+ border-radius: 3px;
1464
+ padding: 0 4px;
1465
+ margin: 0;
1466
+ background: var(--cs-white-background);
1467
+ color: var(--cs-light-text);
1468
+ outline: none;
1469
+ min-width: 80px;
1470
+ white-space: nowrap;
1471
+ cursor: text;
1472
+ }
1473
+
1474
+ .inline-math-input:focus {
1475
+ border-color: var(--cs-2-background);
1476
+ box-shadow: 0 0 0 1px var(--cs-2-background);
1477
+ }
1478
+
1479
+ .inline-math-dropup-latex {
1480
+ font-family: monospace;
1481
+ font-size: 0.9em;
1482
+ color: var(--cs-light-text-secondary);
1483
+ word-break: break-all;
1484
+ }