@manuscripts/body-editor 3.9.11 → 3.9.13
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/dist/cjs/commands.js +5 -2
- package/dist/cjs/components/keywords/AddKeywordInline.js +12 -1
- package/dist/cjs/components/views/FigureDropdown.js +65 -6
- package/dist/cjs/configs/ManuscriptsEditor.js +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/keys/misc.js +2 -1
- package/dist/cjs/keys/title.js +0 -38
- package/dist/cjs/lib/comments.js +1 -0
- package/dist/cjs/lib/context-menu.js +74 -8
- package/dist/cjs/lib/media.js +27 -3
- package/dist/cjs/lib/navigation-utils.js +132 -0
- package/dist/cjs/lib/popper.js +25 -1
- package/dist/cjs/lib/position-menu.js +3 -0
- package/dist/cjs/lib/utils.js +7 -2
- package/dist/cjs/plugins/accessibility_element.js +10 -2
- package/dist/cjs/plugins/add-subtitle.js +8 -2
- package/dist/cjs/plugins/alt-titles.js +6 -1
- package/dist/cjs/plugins/comments.js +27 -15
- package/dist/cjs/plugins/persistent-cursor.js +4 -6
- package/dist/cjs/plugins/section_category.js +42 -9
- package/dist/cjs/plugins/translations.js +49 -13
- package/dist/cjs/versions.js +1 -1
- package/dist/cjs/views/accessibility_element.js +30 -0
- package/dist/cjs/views/alt_title.js +29 -0
- package/dist/cjs/views/alt_titles_section.js +9 -1
- package/dist/cjs/views/attachment.js +1 -1
- package/dist/cjs/views/bibliography_element.js +39 -17
- package/dist/cjs/views/citation.js +1 -0
- package/dist/cjs/views/citation_editable.js +4 -2
- package/dist/cjs/views/contributors.js +23 -2
- package/dist/cjs/views/cross_reference.js +3 -0
- package/dist/cjs/views/editable_block.js +37 -3
- package/dist/cjs/views/embed.js +3 -3
- package/dist/cjs/views/figure_editable.js +1 -1
- package/dist/cjs/views/figure_element.js +3 -0
- package/dist/cjs/views/footnote.js +3 -0
- package/dist/cjs/views/hero_image.js +4 -1
- package/dist/cjs/views/image_element.js +15 -7
- package/dist/cjs/views/inline_footnote.js +3 -0
- package/dist/cjs/views/keyword.js +15 -0
- package/dist/cjs/views/keyword_group.js +38 -0
- package/dist/cjs/views/quote_image_editable.js +1 -0
- package/dist/cjs/views/supplements.js +4 -1
- package/dist/es/commands.js +5 -2
- package/dist/es/components/keywords/AddKeywordInline.js +12 -1
- package/dist/es/components/views/FigureDropdown.js +66 -7
- package/dist/es/configs/ManuscriptsEditor.js +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/keys/misc.js +2 -1
- package/dist/es/keys/title.js +1 -39
- package/dist/es/lib/comments.js +1 -0
- package/dist/es/lib/context-menu.js +74 -8
- package/dist/es/lib/media.js +27 -3
- package/dist/es/lib/navigation-utils.js +122 -0
- package/dist/es/lib/popper.js +25 -1
- package/dist/es/lib/position-menu.js +3 -0
- package/dist/es/lib/utils.js +7 -2
- package/dist/es/plugins/accessibility_element.js +10 -2
- package/dist/es/plugins/add-subtitle.js +8 -2
- package/dist/es/plugins/alt-titles.js +6 -1
- package/dist/es/plugins/comments.js +27 -15
- package/dist/es/plugins/persistent-cursor.js +4 -6
- package/dist/es/plugins/section_category.js +42 -9
- package/dist/es/plugins/translations.js +49 -13
- package/dist/es/versions.js +1 -1
- package/dist/es/views/accessibility_element.js +30 -0
- package/dist/es/views/alt_title.js +29 -0
- package/dist/es/views/alt_titles_section.js +9 -1
- package/dist/es/views/attachment.js +1 -1
- package/dist/es/views/bibliography_element.js +39 -17
- package/dist/es/views/citation.js +1 -0
- package/dist/es/views/citation_editable.js +4 -2
- package/dist/es/views/contributors.js +23 -2
- package/dist/es/views/cross_reference.js +3 -0
- package/dist/es/views/editable_block.js +37 -3
- package/dist/es/views/embed.js +3 -3
- package/dist/es/views/figure_editable.js +1 -1
- package/dist/es/views/figure_element.js +3 -0
- package/dist/es/views/footnote.js +3 -0
- package/dist/es/views/hero_image.js +4 -1
- package/dist/es/views/image_element.js +15 -7
- package/dist/es/views/inline_footnote.js +3 -0
- package/dist/es/views/keyword.js +15 -0
- package/dist/es/views/keyword_group.js +38 -0
- package/dist/es/views/quote_image_editable.js +1 -0
- package/dist/es/views/supplements.js +4 -1
- package/dist/types/configs/ManuscriptsEditor.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/context-menu.d.ts +1 -0
- package/dist/types/lib/media.d.ts +1 -1
- package/dist/types/lib/navigation-utils.d.ts +45 -0
- package/dist/types/lib/popper.d.ts +3 -0
- package/dist/types/lib/utils.d.ts +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/dist/types/views/accessibility_element.d.ts +2 -0
- package/dist/types/views/alt_title.d.ts +2 -0
- package/dist/types/views/bibliography_element.d.ts +3 -0
- package/dist/types/views/citation_editable.d.ts +1 -1
- package/dist/types/views/contributors.d.ts +3 -1
- package/dist/types/views/keyword.d.ts +1 -0
- package/dist/types/views/keyword_group.d.ts +4 -0
- package/package.json +4 -4
- package/styles/AdvancedEditor.css +116 -10
- package/styles/Editor.css +61 -6
- package/styles/popper.css +3 -1
|
@@ -18,6 +18,7 @@ import { Trackable } from '../types';
|
|
|
18
18
|
import { BaseNodeView } from './base_node_view';
|
|
19
19
|
export declare class KeywordView extends BaseNodeView<Trackable<KeywordNode>> implements ManuscriptNodeView {
|
|
20
20
|
private dialog;
|
|
21
|
+
private isFirstKeyword;
|
|
21
22
|
initialise: () => void;
|
|
22
23
|
createDOM: () => void;
|
|
23
24
|
updateContents(): void;
|
|
@@ -18,8 +18,12 @@ import BlockView from './block_view';
|
|
|
18
18
|
export declare class KeywordGroupView extends BlockView<KeywordGroupNode> {
|
|
19
19
|
private element;
|
|
20
20
|
private addingTools;
|
|
21
|
+
private removeKeydownListener?;
|
|
21
22
|
ignoreMutation: () => boolean;
|
|
22
23
|
createElement: () => void;
|
|
24
|
+
updateContents(): void;
|
|
25
|
+
private setKeywordsTabIndices;
|
|
26
|
+
destroy(): void;
|
|
23
27
|
}
|
|
24
28
|
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<KeywordGroupView>;
|
|
25
29
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/body-editor",
|
|
3
3
|
"description": "Prosemirror components for editing and viewing manuscripts",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.13",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"@citation-js/plugin-ris": "0.7.18",
|
|
39
39
|
"@iarna/word-count": "1.1.2",
|
|
40
40
|
"@manuscripts/json-schema": "2.2.12",
|
|
41
|
-
"@manuscripts/style-guide": "3.4.
|
|
42
|
-
"@manuscripts/track-changes-plugin": "2.2.
|
|
43
|
-
"@manuscripts/transform": "4.3.
|
|
41
|
+
"@manuscripts/style-guide": "3.4.7",
|
|
42
|
+
"@manuscripts/track-changes-plugin": "2.2.9",
|
|
43
|
+
"@manuscripts/transform": "4.3.21",
|
|
44
44
|
"@popperjs/core": "2.11.8",
|
|
45
45
|
"citeproc": "2.4.63",
|
|
46
46
|
"codemirror": "5.65.19",
|
|
@@ -26,12 +26,18 @@
|
|
|
26
26
|
background: transparent;
|
|
27
27
|
color: inherit;
|
|
28
28
|
font: inherit;
|
|
29
|
-
line-height:
|
|
29
|
+
line-height: 0;
|
|
30
30
|
-webkit-font-smoothing: inherit;
|
|
31
31
|
-moz-osx-font-smoothing: inherit;
|
|
32
32
|
-webkit-appearance: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
.button-reset:focus-visible {
|
|
36
|
+
outline: 4px solid var(--focus-outline-color);
|
|
37
|
+
outline-offset: var(--focus-outline-offset);
|
|
38
|
+
border-radius: var(--focus-outline-radius);
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
.ProseMirror > div.body section:not(.toc) .block-section_title h1::before {
|
|
36
42
|
content: attr(data-section-number) '. ';
|
|
37
43
|
}
|
|
@@ -183,10 +189,16 @@
|
|
|
183
189
|
margin-bottom: 30px;
|
|
184
190
|
}
|
|
185
191
|
|
|
186
|
-
.ProseMirror .figure-block:hover .options-button
|
|
192
|
+
.ProseMirror .figure-block:hover .options-button,
|
|
193
|
+
.ProseMirror .block:focus-within .figure-block .options-button {
|
|
187
194
|
visibility: visible;
|
|
188
195
|
}
|
|
189
196
|
|
|
197
|
+
.ProseMirror .options-button:focus-visible {
|
|
198
|
+
outline: 4px solid var(--focus-outline-color);
|
|
199
|
+
outline-offset: var(--focus-outline-offset);
|
|
200
|
+
}
|
|
201
|
+
|
|
190
202
|
.ProseMirror .media-preview:hover .options-button {
|
|
191
203
|
visibility: visible;
|
|
192
204
|
}
|
|
@@ -354,6 +366,14 @@
|
|
|
354
366
|
text-align: center !important;
|
|
355
367
|
}
|
|
356
368
|
|
|
369
|
+
.position-menu-button:focus-visible {
|
|
370
|
+
outline: none;
|
|
371
|
+
}
|
|
372
|
+
.position-menu-button:focus-visible svg {
|
|
373
|
+
outline: 4px solid var(--focus-outline-color);
|
|
374
|
+
border-radius: var(--focus-outline-radius);
|
|
375
|
+
}
|
|
376
|
+
|
|
357
377
|
.ProseMirror .block-figure_element .position-menu,
|
|
358
378
|
.ProseMirror .block-image_element .position-menu,
|
|
359
379
|
ProseMirror .block-embed .position-menu {
|
|
@@ -526,6 +546,12 @@ ProseMirror .block-embed .position-menu {
|
|
|
526
546
|
position: relative;
|
|
527
547
|
}
|
|
528
548
|
|
|
549
|
+
.comment-marker:focus-visible svg {
|
|
550
|
+
outline: 4px solid var(--focus-outline-color);
|
|
551
|
+
outline-offset: var(--focus-outline-offset);
|
|
552
|
+
border-radius: var(--focus-outline-radius);
|
|
553
|
+
}
|
|
554
|
+
|
|
529
555
|
.comment-marker:has(+ .block-contributors),
|
|
530
556
|
.comment-marker:has(+ .block-affiliations),
|
|
531
557
|
.comment-marker:has(+ .block-hero_image) {
|
|
@@ -534,7 +560,6 @@ ProseMirror .block-embed .position-menu {
|
|
|
534
560
|
right: 60px;
|
|
535
561
|
left: unset;
|
|
536
562
|
float: right;
|
|
537
|
-
display: block;
|
|
538
563
|
}
|
|
539
564
|
|
|
540
565
|
.block-subtitles .comment-marker {
|
|
@@ -623,6 +648,11 @@ span.comment-marker {
|
|
|
623
648
|
margin-bottom: 12px;
|
|
624
649
|
min-height: 80px;
|
|
625
650
|
}
|
|
651
|
+
.bib-item:focus-visible {
|
|
652
|
+
outline: 4px solid var(--focus-outline-color);
|
|
653
|
+
outline-offset: var(--focus-outline-offset);
|
|
654
|
+
border-radius: var(--focus-outline-radius);
|
|
655
|
+
}
|
|
626
656
|
|
|
627
657
|
.bibliography-double-button {
|
|
628
658
|
display: inline-flex;
|
|
@@ -743,6 +773,15 @@ span.comment-marker {
|
|
|
743
773
|
opacity: 1;
|
|
744
774
|
}
|
|
745
775
|
|
|
776
|
+
.keywords .keyword:focus-visible {
|
|
777
|
+
outline: none;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.keywords .keyword:focus-visible .delete-keyword {
|
|
781
|
+
outline: 4px solid var(--focus-outline-color);
|
|
782
|
+
outline-offset: var(--focus-outline-offset);
|
|
783
|
+
}
|
|
784
|
+
|
|
746
785
|
.keywords .deleted .delete-keyword {
|
|
747
786
|
display: none;
|
|
748
787
|
}
|
|
@@ -770,7 +809,7 @@ span.comment-marker {
|
|
|
770
809
|
display: flex;
|
|
771
810
|
justify-content: flex-end;
|
|
772
811
|
align-items: center;
|
|
773
|
-
margin-top:
|
|
812
|
+
margin-top: 4px;
|
|
774
813
|
}
|
|
775
814
|
|
|
776
815
|
.block-box_element > .block-gutter {
|
|
@@ -852,6 +891,11 @@ span.comment-marker {
|
|
|
852
891
|
border-style: solid !important;
|
|
853
892
|
border-color: var(--common-color);
|
|
854
893
|
}
|
|
894
|
+
.footnote-marker:focus-visible {
|
|
895
|
+
outline: 4px solid var(--focus-outline-color);
|
|
896
|
+
outline-offset: var(--focus-outline-offset);
|
|
897
|
+
border-radius: var(--focus-outline-radius);
|
|
898
|
+
}
|
|
855
899
|
|
|
856
900
|
.ProseMirror .inconsistency-highlight {
|
|
857
901
|
border: 1px solid #f35143 !important;
|
|
@@ -1275,7 +1319,11 @@ s[data-track-status='pending'][data-track-op='delete'] {
|
|
|
1275
1319
|
.contributor:not(:disabled):focus {
|
|
1276
1320
|
cursor: pointer !important;
|
|
1277
1321
|
}
|
|
1278
|
-
|
|
1322
|
+
.contributor:not(:disabled):focus-visible {
|
|
1323
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1324
|
+
outline-offset: var(--focus-outline-offset);
|
|
1325
|
+
border-radius: var(--focus-outline-radius);
|
|
1326
|
+
}
|
|
1279
1327
|
.contributors-legend {
|
|
1280
1328
|
margin: 16px 0 0 0;
|
|
1281
1329
|
}
|
|
@@ -1336,6 +1384,11 @@ s[data-track-status='pending'][data-track-op='delete'] {
|
|
|
1336
1384
|
padding: 8px 16px;
|
|
1337
1385
|
}
|
|
1338
1386
|
|
|
1387
|
+
.alt-title-text:focus-visible {
|
|
1388
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1389
|
+
outline-offset: var(--focus-outline-offset);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1339
1392
|
.manuscript-alt-title {
|
|
1340
1393
|
display: block;
|
|
1341
1394
|
margin: 13px 0 13px;
|
|
@@ -1390,7 +1443,7 @@ s[data-track-status='pending'][data-track-op='delete'] {
|
|
|
1390
1443
|
position: absolute;
|
|
1391
1444
|
right: var(--body-side-margin);
|
|
1392
1445
|
transform: translateX(100%);
|
|
1393
|
-
bottom:
|
|
1446
|
+
bottom: 8px;
|
|
1394
1447
|
cursor: pointer;
|
|
1395
1448
|
}
|
|
1396
1449
|
.ProseMirror .table-context-menu-button svg {
|
|
@@ -1424,7 +1477,7 @@ th:hover > .table-context-menu-button,
|
|
|
1424
1477
|
position: absolute;
|
|
1425
1478
|
right: 0;
|
|
1426
1479
|
top: 14px;
|
|
1427
|
-
line-height:
|
|
1480
|
+
line-height: 0;
|
|
1428
1481
|
background: unset;
|
|
1429
1482
|
border: none;
|
|
1430
1483
|
opacity: 0;
|
|
@@ -1434,6 +1487,12 @@ th:hover > .table-context-menu-button,
|
|
|
1434
1487
|
z-index: 10;
|
|
1435
1488
|
}
|
|
1436
1489
|
|
|
1490
|
+
.section-category-button:focus-visible {
|
|
1491
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1492
|
+
outline-offset: var(--focus-outline-offset);
|
|
1493
|
+
border-radius: var(--focus-outline-radius);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1437
1496
|
.section-category-button svg {
|
|
1438
1497
|
width: 16px;
|
|
1439
1498
|
height: 20px;
|
|
@@ -1456,7 +1515,9 @@ th:hover > .table-context-menu-button,
|
|
|
1456
1515
|
transform: rotate(45deg);
|
|
1457
1516
|
}
|
|
1458
1517
|
|
|
1459
|
-
.ProseMirror .block-container:hover .section-category-button
|
|
1518
|
+
.ProseMirror .block-container:hover .section-category-button,
|
|
1519
|
+
.ProseMirror .block-container:focus-within .section-category-button,
|
|
1520
|
+
.ProseMirror.popper-open .section-category-button {
|
|
1460
1521
|
opacity: 1;
|
|
1461
1522
|
}
|
|
1462
1523
|
|
|
@@ -1599,6 +1660,14 @@ th:hover > .table-context-menu-button,
|
|
|
1599
1660
|
display: block;
|
|
1600
1661
|
}
|
|
1601
1662
|
|
|
1663
|
+
|
|
1664
|
+
.ProseMirror .ext-link-editor-container .close-button:focus-visible,
|
|
1665
|
+
.ProseMirror .ext-link-editor-container .remove-button:focus-visible,
|
|
1666
|
+
.ProseMirror .ext-link-editor-container .icon-button:focus-visible {
|
|
1667
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1668
|
+
outline-offset: var(--focus-outline-offset);
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1602
1671
|
.ProseMirror .ext-link-editor-placeholder-container {
|
|
1603
1672
|
font-size: 0;
|
|
1604
1673
|
}
|
|
@@ -1660,11 +1729,15 @@ th:hover > .table-context-menu-button,
|
|
|
1660
1729
|
cursor: pointer;
|
|
1661
1730
|
}
|
|
1662
1731
|
|
|
1663
|
-
.ProseMirror .accessibility_element_input:focus
|
|
1664
|
-
.ProseMirror .accessibility_element_input:focus-visible {
|
|
1732
|
+
.ProseMirror .accessibility_element_input:focus{
|
|
1665
1733
|
outline: none;
|
|
1666
1734
|
}
|
|
1667
1735
|
|
|
1736
|
+
.ProseMirror .accessibility_element_input:focus-visible {
|
|
1737
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1738
|
+
outline-offset: var(--focus-outline-offset);
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1668
1741
|
.ProseMirror .accessibility_element_input {
|
|
1669
1742
|
border-radius: 4px;
|
|
1670
1743
|
border: 1px solid var(--accepted-bg-color);
|
|
@@ -1757,6 +1830,12 @@ th:hover > .table-context-menu-button,
|
|
|
1757
1830
|
text-align: center;
|
|
1758
1831
|
}
|
|
1759
1832
|
|
|
1833
|
+
.ProseMirror .placeholder-content a:focus-visible {
|
|
1834
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1835
|
+
outline-offset: var(--focus-outline-offset);
|
|
1836
|
+
border-radius: var(--focus-outline-radius);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1760
1839
|
.ProseMirror .block-embed .placeholder .placeholder-divider {
|
|
1761
1840
|
font-weight: bold;
|
|
1762
1841
|
color: #666;
|
|
@@ -1825,6 +1904,8 @@ th:hover > .table-context-menu-button,
|
|
|
1825
1904
|
.ProseMirror .block-figure_element .add-button {
|
|
1826
1905
|
left: 53px;
|
|
1827
1906
|
position: absolute;
|
|
1907
|
+
width: 25px;
|
|
1908
|
+
height: 25px;
|
|
1828
1909
|
}
|
|
1829
1910
|
|
|
1830
1911
|
.ProseMirror .add-button svg rect {
|
|
@@ -1871,6 +1952,19 @@ th:hover > .table-context-menu-button,
|
|
|
1871
1952
|
color: #353535;
|
|
1872
1953
|
}
|
|
1873
1954
|
|
|
1955
|
+
.add-button:focus-visible {
|
|
1956
|
+
outline: none;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
.ProseMirror .block-figure_element .add-button:focus-visible {
|
|
1960
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1961
|
+
outline-offset: var(--focus-outline-offset);
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
.ProseMirror .abstracts .add-translation-container .add-button svg {
|
|
1965
|
+
width: 10px;
|
|
1966
|
+
height: 8px;
|
|
1967
|
+
}
|
|
1874
1968
|
.ProseMirror .block-trans_abstract .language-selector-btn,
|
|
1875
1969
|
.ProseMirror .block-trans_graphical_abstract .language-selector-btn {
|
|
1876
1970
|
display: flex;
|
|
@@ -1927,6 +2021,18 @@ th:hover > .table-context-menu-button,
|
|
|
1927
2021
|
display: none;
|
|
1928
2022
|
}
|
|
1929
2023
|
|
|
2024
|
+
.add-trans-abstract:focus-visible {
|
|
2025
|
+
outline: 4px solid var(--focus-outline-color);
|
|
2026
|
+
outline-offset: -2px;
|
|
2027
|
+
border-radius: var(--focus-outline-radius);
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
.language-selector-btn:focus-visible {
|
|
2031
|
+
outline: 4px solid var(--focus-outline-color);
|
|
2032
|
+
outline-offset: 4px;
|
|
2033
|
+
border-radius: var(--focus-outline-radius);
|
|
2034
|
+
}
|
|
2035
|
+
|
|
1930
2036
|
.ProseMirror .icon-button {
|
|
1931
2037
|
display: flex;
|
|
1932
2038
|
align-items: center;
|
package/styles/Editor.css
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--body-side-margin: 65px;
|
|
3
|
+
--focus-outline-color: #3DADFF;
|
|
4
|
+
--focus-outline-offset: 2px;
|
|
5
|
+
--focus-outline-radius: 3px;
|
|
3
6
|
}
|
|
4
7
|
|
|
5
8
|
/* Focus styling for editor container when accessed via Escape key */
|
|
6
9
|
#editor:focus {
|
|
7
|
-
outline: 2px solid
|
|
8
|
-
outline-offset:
|
|
10
|
+
outline: 2px solid var(--focus-outline-color) !important;
|
|
11
|
+
outline-offset: var(--focus-outline-offset);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
.ProseMirror.manuscript-editor {
|
|
@@ -159,6 +162,10 @@
|
|
|
159
162
|
text-decoration: inherit;
|
|
160
163
|
max-width: 146px;
|
|
161
164
|
}
|
|
165
|
+
.ProseMirror .figure.placeholder:focus-visible {
|
|
166
|
+
outline: 4px solid var(--focus-outline-color);
|
|
167
|
+
border-radius: var(--focus-outline-radius);
|
|
168
|
+
}
|
|
162
169
|
.ProseMirror .pullquote figure {
|
|
163
170
|
margin: 0;
|
|
164
171
|
}
|
|
@@ -279,6 +286,12 @@
|
|
|
279
286
|
padding: 0 2px;
|
|
280
287
|
cursor: pointer;
|
|
281
288
|
}
|
|
289
|
+
.ProseMirror .citation:focus-visible,
|
|
290
|
+
.ProseMirror .cross-reference:focus-visible {
|
|
291
|
+
outline: 4px solid var(--focus-outline-color);
|
|
292
|
+
outline-offset: var(--focus-outline-offset);
|
|
293
|
+
border-radius: var(--focus-outline-radius);
|
|
294
|
+
}
|
|
282
295
|
|
|
283
296
|
.ProseMirror .cross-reference {
|
|
284
297
|
text-decoration: none;
|
|
@@ -599,7 +612,13 @@
|
|
|
599
612
|
display: inline-flex;
|
|
600
613
|
align-items: center;
|
|
601
614
|
cursor: pointer;
|
|
602
|
-
|
|
615
|
+
margin-left: var(--body-side-margin);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.ProseMirror .add-subtitle:focus-visible {
|
|
619
|
+
outline: 4px solid var(--focus-outline-color);
|
|
620
|
+
outline-offset: var(--focus-outline-offset);
|
|
621
|
+
border-radius: var(--focus-outline-radius);
|
|
603
622
|
}
|
|
604
623
|
|
|
605
624
|
.ProseMirror .add-subtitle-text {
|
|
@@ -736,6 +755,9 @@
|
|
|
736
755
|
transition: 0.2s all;
|
|
737
756
|
display: flex;
|
|
738
757
|
justify-content: flex-end;
|
|
758
|
+
width: fit-content;
|
|
759
|
+
height: fit-content;
|
|
760
|
+
margin-left: auto;
|
|
739
761
|
}
|
|
740
762
|
|
|
741
763
|
.ProseMirror .action-gutter {
|
|
@@ -759,23 +781,49 @@
|
|
|
759
781
|
.block-box_element,
|
|
760
782
|
.block-graphical_abstract_section
|
|
761
783
|
):hover
|
|
784
|
+
.block-gutter,
|
|
785
|
+
.ProseMirror
|
|
786
|
+
.block-container:not(
|
|
787
|
+
.block-section,
|
|
788
|
+
.block-box_element,
|
|
789
|
+
.block-graphical_abstract_section
|
|
790
|
+
):focus-within
|
|
762
791
|
.block-gutter {
|
|
763
792
|
opacity: 1;
|
|
764
793
|
z-index: 2;
|
|
765
794
|
}
|
|
766
795
|
|
|
796
|
+
.block-gutter .add-block:focus-visible,
|
|
797
|
+
.block-gutter .edit-block:focus-visible {
|
|
798
|
+
outline: none;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.block-gutter:focus-within {
|
|
802
|
+
outline: 4px solid var(--focus-outline-color);
|
|
803
|
+
outline-offset: var(--focus-outline-offset);
|
|
804
|
+
border-radius: var(--focus-outline-radius);
|
|
805
|
+
}
|
|
806
|
+
|
|
767
807
|
.ProseMirror:not(.ProseMirror-focused.popper-open)
|
|
768
808
|
.block-container:not(
|
|
769
809
|
.block-section,
|
|
770
810
|
.block-box_element,
|
|
771
811
|
.block-graphical_abstract_section
|
|
772
812
|
):hover
|
|
813
|
+
.action-gutter,
|
|
814
|
+
.ProseMirror:not(.ProseMirror-focused.popper-open)
|
|
815
|
+
.block-container:not(
|
|
816
|
+
.block-section,
|
|
817
|
+
.block-box_element,
|
|
818
|
+
.block-graphical_abstract_section
|
|
819
|
+
):focus-within
|
|
773
820
|
.action-gutter {
|
|
774
821
|
pointer-events: visible;
|
|
775
822
|
opacity: 1;
|
|
776
823
|
}
|
|
777
824
|
|
|
778
|
-
.ProseMirror .block-box_element:hover > .block-gutter
|
|
825
|
+
.ProseMirror .block-box_element:hover > .block-gutter,
|
|
826
|
+
.ProseMirror .block-box_element:focus-within > .block-gutter {
|
|
779
827
|
opacity: 1;
|
|
780
828
|
z-index: 2;
|
|
781
829
|
}
|
|
@@ -961,7 +1009,8 @@
|
|
|
961
1009
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAABLUlEQVRYR+2VsUoEMRCG/8nG4jw4BF9BsNLKJGxzL3E+g2Bjqe8ggj6Eha0PoGCVm92ttPAtBCsVlh1Zq/W4M2tOPJRsmWRmvnwzYQkr/mjF9ZEAkoFkYCkDzrkDACNmPot9ztEA1to9EbkDsK6Uypl5GgMRDWCMGQO4bosS0aQoitsE8H8NiAgRkXRvGJqBeTHzDAWH0Fp7DOAIwEs3gYgMiWgDQC0iz0T0OrO/JSKnVVWdfNWaIIAx5tPNv9tnrfWm9/5pUVwfgEMA50RUdpM0TTNQSm23ayLyRkSPM/trWZZdMPPVUgYWBYdmoK+poIEE8CcMANgvy/Kmb9+756JnIM/znbqu79tkWutd7/3DrwK0xZxzEwADZr6MKf7xJ40N/Km4BJAMJAPJwDufn30jVGW7WQAAAABJRU5ErkJggg==');
|
|
962
1010
|
}
|
|
963
1011
|
|
|
964
|
-
.ProseMirror .add-block:hover
|
|
1012
|
+
.ProseMirror .add-block:hover,
|
|
1013
|
+
.ProseMirror .add-block:focus-visible {
|
|
965
1014
|
/* GutterAddIconHighlight */
|
|
966
1015
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAABQElEQVRYR+2TsUoDURBF712SIgpBsDNJJ1iIVkE3jT8RfyCyBmws9R9E0D4mNha2foCClZtopYU/sLtlwMoEs29kU2Ul8cUXISjvlQ/uzJ0zd4g5P865P6wBS8ASmIlAoeHXhchHnntqes7GBkrNdjlW6h7AAjOshDXXNzFhbuCisxOLumFSwWE13Nu+swb+LwERIUkZnbCkycA4zThC2hCutNpHjOVQIO+jBQguArIkxIDgm4j0vjRYheAkqleOv1uN3kDjITX5T/fsML8ceOvdSTqtgUKrc4A4PhPyMVVEkANkbfhH9gG8pglJVsDzyHOvZyIwSazLwLSktASsgb9BAM5u6G3dTrv3dFhNVACKl08bavDxnMidTHYzqJVfTEoZhzBpVmz6VSjkgn33yqT58IJNhb+lswYsAUvAEvgEb+GZIzw23E0AAAAASUVORK5CYII=');
|
|
967
1016
|
}
|
|
@@ -971,7 +1020,8 @@
|
|
|
971
1020
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAaCAYAAAC6nQw6AAAAYElEQVRIS2NkoBJgpJI5DCPVIAsLC89///7NAoUjExNT2okTJ7bjClO8YWRmZvb4////MiDNjIyMT06dOiU7sAZRzWukpDH6pCOqeW001sCROxprFGZaqiXIwZfXhraLAIz+YBsOHHIxAAAAAElFTkSuQmCC');
|
|
972
1021
|
}
|
|
973
1022
|
|
|
974
|
-
.ProseMirror .edit-block:hover
|
|
1023
|
+
.ProseMirror .edit-block:hover,
|
|
1024
|
+
.ProseMirror .edit-block:focus-visible {
|
|
975
1025
|
/* GutterIconHighlight */
|
|
976
1026
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAaCAYAAAC6nQw6AAAAX0lEQVRIS2NkoBJgpJI5DCPVIJm5xz3//2OcBQpHRqb/aU+SLbfjClO8YSQ9+8Tj/wz/ZcAGMTA+eZpqITuwBlHNa6SkMfqkI6p5bTTWwJE7GmsUZlqqJcjBl9eGtosAsyRaG0sNHWYAAAAASUVORK5CYII=');
|
|
977
1027
|
}
|
|
@@ -1086,6 +1136,11 @@
|
|
|
1086
1136
|
position: relative;
|
|
1087
1137
|
border: 1px solid transparent;
|
|
1088
1138
|
}
|
|
1139
|
+
.ProseMirror .footnote:focus-visible {
|
|
1140
|
+
outline: 4px solid var(--focus-outline-color);
|
|
1141
|
+
outline-offset: var(--focus-outline-offset);
|
|
1142
|
+
border-radius: var(--focus-outline-radius);
|
|
1143
|
+
}
|
|
1089
1144
|
.ProseMirror .footnote .delete-icon {
|
|
1090
1145
|
visibility: hidden;
|
|
1091
1146
|
}
|
package/styles/popper.css
CHANGED