@ckeditor/ckeditor5-collaboration-core 0.0.0-internal-20241017.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/CHANGELOG.md +4 -0
- package/LICENSE.md +23 -0
- package/README.md +35 -0
- package/dist/augmentation.d.ts +42 -0
- package/dist/collaborationhistory.d.ts +25 -0
- package/dist/collaborationoperation.d.ts +32 -0
- package/dist/config.d.ts +106 -0
- package/dist/index-content.css +470 -0
- package/dist/index-editor.css +426 -0
- package/dist/index.css +1080 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +23 -0
- package/dist/legacyerrors.d.ts +33 -0
- package/dist/permissions.d.ts +58 -0
- package/dist/suggestions/view/ariadescriptionview.d.ts +27 -0
- package/dist/suggestions/view/latefocusbuttonview.d.ts +41 -0
- package/dist/suggestionstyles.d.ts +18 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/users/view/userview.d.ts +20 -0
- package/dist/users.d.ts +172 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/dist/utils/confirmmixin.d.ts +28 -0
- package/dist/utils/confirmview.d.ts +33 -0
- package/dist/utils/getdatetimeformatter.d.ts +33 -0
- package/dist/utils/getmarkerdomelement.d.ts +26 -0
- package/dist/utils/hashobject.d.ts +12 -0
- package/dist/utils/sanitizeEditorConfig.d.ts +19 -0
- package/dist/utils/setupthreadkeyboardnavigation.d.ts +49 -0
- package/dist/utils/surroundingmarkersdetector.d.ts +20 -0
- package/dist/utils/trim-html.d.ts +23 -0
- package/lang/contexts.json +6 -0
- package/lang/translations/af.po +34 -0
- package/lang/translations/ar.po +34 -0
- package/lang/translations/az.po +34 -0
- package/lang/translations/bg.po +34 -0
- package/lang/translations/bn.po +34 -0
- package/lang/translations/bs.po +34 -0
- package/lang/translations/ca.po +34 -0
- package/lang/translations/cs.po +34 -0
- package/lang/translations/da.po +34 -0
- package/lang/translations/de-ch.po +34 -0
- package/lang/translations/de.po +34 -0
- package/lang/translations/el.po +34 -0
- package/lang/translations/en-au.po +34 -0
- package/lang/translations/en.po +34 -0
- package/lang/translations/es-co.po +34 -0
- package/lang/translations/es.po +34 -0
- package/lang/translations/et.po +34 -0
- package/lang/translations/fa.po +34 -0
- package/lang/translations/fi.po +34 -0
- package/lang/translations/fr.po +34 -0
- package/lang/translations/gl.po +34 -0
- package/lang/translations/he.po +34 -0
- package/lang/translations/hi.po +34 -0
- package/lang/translations/hr.po +34 -0
- package/lang/translations/hu.po +34 -0
- package/lang/translations/id.po +34 -0
- package/lang/translations/it.po +34 -0
- package/lang/translations/ja.po +34 -0
- package/lang/translations/jv.po +34 -0
- package/lang/translations/ko.po +34 -0
- package/lang/translations/lt.po +34 -0
- package/lang/translations/lv.po +34 -0
- package/lang/translations/ms.po +34 -0
- package/lang/translations/nl.po +34 -0
- package/lang/translations/no.po +34 -0
- package/lang/translations/pl.po +34 -0
- package/lang/translations/pt-br.po +34 -0
- package/lang/translations/pt.po +34 -0
- package/lang/translations/ro.po +34 -0
- package/lang/translations/ru.po +34 -0
- package/lang/translations/sk.po +34 -0
- package/lang/translations/sr-latn.po +34 -0
- package/lang/translations/sr.po +34 -0
- package/lang/translations/sv.po +34 -0
- package/lang/translations/th.po +34 -0
- package/lang/translations/tk.po +34 -0
- package/lang/translations/tr.po +34 -0
- package/lang/translations/tt.po +34 -0
- package/lang/translations/ug.po +34 -0
- package/lang/translations/uk.po +34 -0
- package/lang/translations/ur.po +34 -0
- package/lang/translations/vi.po +34 -0
- package/lang/translations/zh-cn.po +34 -0
- package/lang/translations/zh.po +34 -0
- package/package.json +52 -0
- package/src/augmentation.d.ts +38 -0
- package/src/augmentation.js +23 -0
- package/src/collaborationhistory.d.ts +21 -0
- package/src/collaborationhistory.js +23 -0
- package/src/collaborationoperation.d.ts +28 -0
- package/src/collaborationoperation.js +23 -0
- package/src/config.d.ts +102 -0
- package/src/config.js +23 -0
- package/src/index.d.ts +22 -0
- package/src/index.js +23 -0
- package/src/legacyerrors.d.ts +29 -0
- package/src/legacyerrors.js +23 -0
- package/src/permissions.d.ts +54 -0
- package/src/permissions.js +23 -0
- package/src/suggestions/view/ariadescriptionview.d.ts +23 -0
- package/src/suggestions/view/ariadescriptionview.js +23 -0
- package/src/suggestions/view/latefocusbuttonview.d.ts +37 -0
- package/src/suggestions/view/latefocusbuttonview.js +23 -0
- package/src/suggestionstyles.d.ts +14 -0
- package/src/suggestionstyles.js +23 -0
- package/src/users/view/userview.d.ts +16 -0
- package/src/users/view/userview.js +23 -0
- package/src/users.d.ts +168 -0
- package/src/users.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils/confirmmixin.d.ts +24 -0
- package/src/utils/confirmmixin.js +23 -0
- package/src/utils/confirmview.d.ts +29 -0
- package/src/utils/confirmview.js +23 -0
- package/src/utils/getdatetimeformatter.d.ts +29 -0
- package/src/utils/getdatetimeformatter.js +23 -0
- package/src/utils/getmarkerdomelement.d.ts +22 -0
- package/src/utils/getmarkerdomelement.js +23 -0
- package/src/utils/hashobject.d.ts +8 -0
- package/src/utils/hashobject.js +23 -0
- package/src/utils/sanitizeEditorConfig.d.ts +15 -0
- package/src/utils/sanitizeEditorConfig.js +23 -0
- package/src/utils/setupthreadkeyboardnavigation.d.ts +45 -0
- package/src/utils/setupthreadkeyboardnavigation.js +23 -0
- package/src/utils/surroundingmarkersdetector.d.ts +16 -0
- package/src/utils/surroundingmarkersdetector.js +23 -0
- package/src/utils/trim-html.d.ts +19 -0
- package/src/utils/trim-html.js +23 -0
- package/theme/ariadescription.css +12 -0
- package/theme/icons/notification.svg +11 -0
- package/theme/integrations/codeblock.css +17 -0
- package/theme/integrations/horizontalline.css +24 -0
- package/theme/integrations/image.css +66 -0
- package/theme/integrations/mediaembed.css +28 -0
- package/theme/integrations/mergefields.css +67 -0
- package/theme/integrations/pagebreak.css +24 -0
- package/theme/integrations/table.css +200 -0
- package/theme/suggestion.css +131 -0
- package/theme/suggestionmarker.css +162 -0
- package/theme/usercolormixin.css +41 -0
- package/theme/usercolors.css +49 -0
- package/theme/users.css +110 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.ck-content .ck-suggestion-marker.ck-widget.ck-merge-field,
|
|
11
|
+
.ck-content .ck-comment-marker.ck-widget.ck-merge-field {
|
|
12
|
+
/* Note that comments markers have transparent border to be better aligned with suggestions markers. */
|
|
13
|
+
border-width: 2px;
|
|
14
|
+
border-left: none;
|
|
15
|
+
border-right: none;
|
|
16
|
+
padding-top: 0;
|
|
17
|
+
padding-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field {
|
|
21
|
+
border-top-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
22
|
+
border-bottom-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
23
|
+
|
|
24
|
+
background: var(--ck-color-suggestion-marker-deletion-background);
|
|
25
|
+
|
|
26
|
+
& :not(.ck-merge-field__affix),
|
|
27
|
+
&.ck-merge-field_with-value,
|
|
28
|
+
&.ck-merge-field_with-warning {
|
|
29
|
+
text-decoration: line-through;
|
|
30
|
+
text-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);
|
|
31
|
+
text-decoration-thickness: 3px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.ck-suggestion-marker--active {
|
|
35
|
+
background-color: var(--ck-color-suggestion-marker-deletion-background-active);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field {
|
|
40
|
+
background-color: var(--ck-color-suggestion-marker-insertion-background);
|
|
41
|
+
|
|
42
|
+
&.ck-suggestion-marker--active {
|
|
43
|
+
background-color: var(--ck-color-suggestion-marker-insertion-background-active);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ck-content .ck-comment-marker.ck-widget.ck-merge-field {
|
|
48
|
+
background: var(--ck-color-comment-marker);
|
|
49
|
+
|
|
50
|
+
&.ck-comment-marker--active {
|
|
51
|
+
background: var(--ck-color-comment-marker-active);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
This is a hack for a specific situation. The selector targets all regular markers made on text that are just before
|
|
57
|
+
a merge field (also in marker). This is a common situation. For example, if you have some text and a merge field
|
|
58
|
+
just after and all that is in a suggestion. Without this hack, there is a 1px spacing between the span and the merge
|
|
59
|
+
field, because the merge field has margin. The margin is needed because otherwise caret does not display. To
|
|
60
|
+
"remove" the spacing, we extend the span before the merge field by 1px using padding, but we need to compensate
|
|
61
|
+
by using negative margin, so that the whole content does not change its position.
|
|
62
|
+
*/
|
|
63
|
+
.ck-content span.ck-comment-marker:has(+.ck-comment-marker.ck-widget.ck-merge-field),
|
|
64
|
+
.ck-content span.ck-suggestion-marker:has(+.ck-suggestion-marker.ck-widget.ck-merge-field) {
|
|
65
|
+
padding-right: 1px;
|
|
66
|
+
margin-right: -1px;
|
|
67
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break {
|
|
11
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
12
|
+
|
|
13
|
+
&.ck-suggestion-marker--active {
|
|
14
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break {
|
|
19
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
20
|
+
|
|
21
|
+
&.ck-suggestion-marker--active {
|
|
22
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--ck-color-suggestion-widget-th-insertion-background: hsla(128, 71%, 65%, .12);
|
|
12
|
+
--ck-color-suggestion-widget-th-insertion-background-active: hsla(128, 71%, 50%, .14);
|
|
13
|
+
|
|
14
|
+
--ck-color-suggestion-widget-th-deletion-background: hsla(345, 71%, 65%, .14);
|
|
15
|
+
--ck-color-suggestion-widget-th-deletion-background-active: hsla(345, 71%, 45%, .16);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ck-content figure.table .ck-suggestion-marker-formatBlock {
|
|
19
|
+
box-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border);
|
|
20
|
+
|
|
21
|
+
&.ck-suggestion-marker--active {
|
|
22
|
+
box-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ck-content .ck-widget.table > figcaption {
|
|
27
|
+
&.ck-suggestion-marker-deletion {
|
|
28
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
29
|
+
border: none;
|
|
30
|
+
|
|
31
|
+
&.ck-suggestion-marker--active {
|
|
32
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.ck-suggestion-marker-insertion {
|
|
37
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
38
|
+
border: none;
|
|
39
|
+
|
|
40
|
+
&.ck-suggestion-marker--active {
|
|
41
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ck-content .ck-suggestion-marker-insertion.table {
|
|
47
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
48
|
+
|
|
49
|
+
& > figcaption {
|
|
50
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& > table {
|
|
54
|
+
& > tbody > tr > th {
|
|
55
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
|
56
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
& > thead > tr > th {
|
|
60
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
|
61
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& > tbody > tr > td {
|
|
65
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
66
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table {
|
|
72
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
73
|
+
|
|
74
|
+
& > figcaption {
|
|
75
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& > table {
|
|
79
|
+
& > tbody > tr > th {
|
|
80
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
|
81
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
& > thead > tr > th {
|
|
85
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
|
86
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& > tbody > tr > td {
|
|
90
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
91
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ck-content .ck-suggestion-marker-deletion.ck-widget.table {
|
|
97
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
98
|
+
|
|
99
|
+
& > figcaption {
|
|
100
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
& > table {
|
|
104
|
+
& > tbody > tr > th {
|
|
105
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
|
106
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
107
|
+
text-decoration: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& > thead > tr > th {
|
|
111
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
|
112
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
113
|
+
text-decoration: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& > tbody > tr > td {
|
|
117
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
118
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
119
|
+
text-decoration: none;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table {
|
|
125
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
126
|
+
|
|
127
|
+
& > figcaption {
|
|
128
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& > table {
|
|
132
|
+
& > tbody > tr > th {
|
|
133
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
|
134
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
& > thead > tr > th {
|
|
138
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
|
139
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
& > tbody > tr > td {
|
|
143
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
144
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* We need here at least 022 CSS Specificity because of table styles like `.ck-content .table table th { background: ... }
|
|
151
|
+
* See: https://github.com/ckeditor/ckeditor5-table/blob/master/theme/table.css#L29
|
|
152
|
+
*/
|
|
153
|
+
.ck-content .table {
|
|
154
|
+
& th.ck-suggestion-marker-insertion {
|
|
155
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
|
156
|
+
|
|
157
|
+
&.ck-suggestion-marker--active {
|
|
158
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
& th.ck-suggestion-marker-deletion {
|
|
163
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
|
|
166
|
+
&.ck-suggestion-marker--active {
|
|
167
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
& td.ck-suggestion-marker-insertion {
|
|
172
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
173
|
+
|
|
174
|
+
&.ck-suggestion-marker--active {
|
|
175
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
& td.ck-suggestion-marker-deletion {
|
|
180
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
181
|
+
text-decoration: none;
|
|
182
|
+
|
|
183
|
+
&.ck-suggestion-marker--active {
|
|
184
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
& th.ck-suggestion-marker-formatInline,
|
|
189
|
+
& td.ck-suggestion-marker-formatInline,
|
|
190
|
+
& th.ck-suggestion-marker-formatBlock,
|
|
191
|
+
& td.ck-suggestion-marker-formatBlock {
|
|
192
|
+
background-color: var(--ck-color-suggestion-widget-format-background);
|
|
193
|
+
box-shadow: none;
|
|
194
|
+
|
|
195
|
+
&.ck-suggestion-marker--active {
|
|
196
|
+
background-color: var(--ck-color-suggestion-widget-format-background-active);
|
|
197
|
+
box-shadow: none;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
|
|
11
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
|
12
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
--ck-color-comment-box-border: hsl(55, 98%, 48%);
|
|
16
|
+
--ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
|
|
17
|
+
--ck-color-suggestion-box-insertion-border: hsl(128, 62%, 60%);
|
|
18
|
+
--ck-color-suggestion-box-format-border: hsl(191, 62%, 60%);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ck .ck-suggestion {
|
|
22
|
+
border-top-left-radius: var(--ck-border-radius);
|
|
23
|
+
|
|
24
|
+
&:focus {
|
|
25
|
+
background: var(--ck-color-button-default-hover-background);
|
|
26
|
+
outline: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ck .ck-annotation {
|
|
31
|
+
border-left: 3px solid transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/* See: #3683.
|
|
36
|
+
* Inline Suggestion annotations that can't be commented on contains a scrollbar by default */
|
|
37
|
+
.ck .ck-suggestion--disabled-comments .ck-annotation {
|
|
38
|
+
min-height: 80px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* See: #2459.
|
|
42
|
+
With track-changes feature enabled, we need to distinguish various types of annotations (comments and suggestions). */
|
|
43
|
+
.ck .ck-comment,
|
|
44
|
+
.ck .ck-thread__comment-count,
|
|
45
|
+
.ck .ck-comment__input-container,
|
|
46
|
+
.ck .ck-thread__header {
|
|
47
|
+
border-left: 3px solid var(--ck-color-comment-box-border);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ck .ck-suggestion-insertion .ck-suggestion {
|
|
51
|
+
border-left-color: var(--ck-color-suggestion-box-insertion-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ck .ck-suggestion-deletion .ck-suggestion {
|
|
55
|
+
border-left-color: var(--ck-color-suggestion-box-deletion-border);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ck .ck-suggestion-replace .ck-suggestion {
|
|
59
|
+
border-left-color: var(--ck-color-suggestion-box-insertion-border);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ck .ck-suggestion-format .ck-suggestion {
|
|
63
|
+
border-left-color: var(--ck-color-suggestion-box-format-border);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ck .ck-suggestion-wrapper {
|
|
67
|
+
@mixin ck-rounded-corners;
|
|
68
|
+
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
|
|
71
|
+
&:focus {
|
|
72
|
+
/*
|
|
73
|
+
* We cannot use the ck-focus-ring mixin here because it adds a border that would need to stay transparent
|
|
74
|
+
* in non-focused state and create an odd space inside the surrounding annotation container.
|
|
75
|
+
*/
|
|
76
|
+
outline: var(--ck-focus-ring);
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
* We cannot use the ck-box-shadow mixin because we're using outline instead of border (see the comment above).
|
|
80
|
+
* And the shadow size has to be custom because outline is rendered on top of the shadow.
|
|
81
|
+
*/
|
|
82
|
+
box-shadow: 0 0 0 4px var(--ck-color-focus-outer-shadow);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
* In case of inline annotations, their focus styles get hoisted to the balloon panel to work around overflow that would
|
|
88
|
+
* otherwise get them cropped..
|
|
89
|
+
*/
|
|
90
|
+
.ck-balloon-panel:has( .ck-suggestion-wrapper:focus ) {
|
|
91
|
+
@mixin ck-focus-ring;
|
|
92
|
+
@mixin ck-box-shadow var(--ck-drop-shadow), var(--ck-focus-outer-shadow);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ck .ck-suggestion-type {
|
|
96
|
+
font-weight: bold;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ck .ck-suggestion-color {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
width: 14px;
|
|
102
|
+
height: 14px;
|
|
103
|
+
border-radius: 14px;
|
|
104
|
+
vertical-align: text-bottom;
|
|
105
|
+
margin: 0 5px;
|
|
106
|
+
box-shadow: 0 0 0 1px hsl(0, 0%, 27%);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Comments inside suggestion. */
|
|
110
|
+
|
|
111
|
+
/* Handle comments inside suggestion keep same border-color. */
|
|
112
|
+
.ck .ck-suggestion-insertion .ck-comment,
|
|
113
|
+
.ck .ck-suggestion-insertion .ck-thread__comment-count,
|
|
114
|
+
.ck .ck-suggestion-insertion .ck-comment__input-container,
|
|
115
|
+
.ck .ck-suggestion-replace .ck-comment,
|
|
116
|
+
.ck .ck-suggestion-replace .ck-thread__comment-count,
|
|
117
|
+
.ck .ck-suggestion-replace .ck-comment__input-container {
|
|
118
|
+
border-left-color: var(--ck-color-suggestion-box-insertion-border);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ck .ck-suggestion-deletion .ck-comment,
|
|
122
|
+
.ck .ck-suggestion-deletion .ck-thread__comment-count,
|
|
123
|
+
.ck .ck-suggestion-deletion .ck-comment__input-container {
|
|
124
|
+
border-left-color: var(--ck-color-suggestion-box-deletion-border);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ck .ck-suggestion-format .ck-comment,
|
|
128
|
+
.ck .ck-suggestion-format .ck-thread__comment-count,
|
|
129
|
+
.ck .ck-suggestion-format .ck-comment__input-container {
|
|
130
|
+
border-left-color: var(--ck-color-suggestion-box-format-border);
|
|
131
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--ck-color-suggestion-marker-insertion-border: hsla(128, 71%, 40%, .35);
|
|
12
|
+
--ck-color-suggestion-marker-insertion-border-active: hsla(128, 71%, 25%, .5);
|
|
13
|
+
--ck-color-suggestion-marker-insertion-background: hsla(128, 71%, 65%, .35);
|
|
14
|
+
--ck-color-suggestion-marker-insertion-background-active: hsla(128, 71%, 50%, .5);
|
|
15
|
+
|
|
16
|
+
--ck-color-suggestion-marker-deletion-border: hsla(345, 71%, 40%, .35);
|
|
17
|
+
--ck-color-suggestion-marker-deletion-border-active: hsla(345, 71%, 25%, .5);
|
|
18
|
+
--ck-color-suggestion-marker-deletion-background: hsla(345, 71%, 65%, .35);
|
|
19
|
+
--ck-color-suggestion-marker-deletion-background-active: hsla(345, 71%, 50%, .5);
|
|
20
|
+
--ck-color-suggestion-marker-deletion-stroke: hsla(345, 71%, 20%, .5);
|
|
21
|
+
|
|
22
|
+
--ck-color-suggestion-marker-format-border: hsla(191, 60%, 75%, 1);
|
|
23
|
+
--ck-color-suggestion-marker-format-border-active: hsla(191, 60%, 60%, 1);
|
|
24
|
+
|
|
25
|
+
--ck-color-suggestion-widget-insertion-background: hsla(128, 71%, 65%, .05);
|
|
26
|
+
--ck-color-suggestion-widget-insertion-background-active: hsla(128, 71%, 50%, .07);
|
|
27
|
+
|
|
28
|
+
--ck-color-suggestion-widget-deletion-background: hsla(345, 71%, 65%, .05);
|
|
29
|
+
--ck-color-suggestion-widget-deletion-background-active: hsla(345, 71%, 45%, .07);
|
|
30
|
+
|
|
31
|
+
--ck-color-suggestion-widget-format-background: hsla(191, 90%, 40%, .09);
|
|
32
|
+
--ck-color-suggestion-widget-format-background-active: hsla(191, 90%, 40%, .16);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ck-content .ck-suggestion-marker-insertion {
|
|
36
|
+
border-top: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
37
|
+
border-bottom: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
38
|
+
background: var(--ck-color-suggestion-marker-insertion-background);
|
|
39
|
+
|
|
40
|
+
&.ck-suggestion-marker--active {
|
|
41
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
42
|
+
background: var(--ck-color-suggestion-marker-insertion-background-active);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Disable background of marker inside widget. */
|
|
46
|
+
&.ck-widget {
|
|
47
|
+
background: none;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
border: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
50
|
+
|
|
51
|
+
&.ck-suggestion-marker--active {
|
|
52
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ck-content .ck-suggestion-marker-deletion {
|
|
58
|
+
border-top: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
59
|
+
border-bottom: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
60
|
+
|
|
61
|
+
/* #2810. Safari doesn't support combined text-decoration values. */
|
|
62
|
+
text-decoration: line-through;
|
|
63
|
+
text-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);
|
|
64
|
+
text-decoration-thickness: 3px;
|
|
65
|
+
|
|
66
|
+
background: var(--ck-color-suggestion-marker-deletion-background);
|
|
67
|
+
|
|
68
|
+
&.ck-suggestion-marker--active {
|
|
69
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
70
|
+
background: var(--ck-color-suggestion-marker-deletion-background-active);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Disable background of marker inside widget. */
|
|
74
|
+
&.ck-widget {
|
|
75
|
+
background: none;
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
border: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
78
|
+
|
|
79
|
+
&.ck-suggestion-marker--active {
|
|
80
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ck-content .ck-suggestion-marker-merge {
|
|
86
|
+
&::after {
|
|
87
|
+
border-top: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
88
|
+
border-bottom: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
89
|
+
|
|
90
|
+
/* #2810. Safari doesn't support combined text-decoration values. */
|
|
91
|
+
text-decoration: line-through;
|
|
92
|
+
text-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);
|
|
93
|
+
|
|
94
|
+
background: var(--ck-color-suggestion-marker-deletion-background);
|
|
95
|
+
color: var(--ck-color-suggestion-marker-deletion-stroke);
|
|
96
|
+
content: '¶';
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.ck-suggestion-marker--active::after {
|
|
100
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
101
|
+
background: var(--ck-color-suggestion-marker-deletion-background-active);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ck-content .ck-suggestion-marker-split {
|
|
106
|
+
&::after {
|
|
107
|
+
border-top: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
108
|
+
border-bottom: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
109
|
+
background: var(--ck-color-suggestion-marker-insertion-background);
|
|
110
|
+
color: var(--ck-color-suggestion-marker-insertion-border);
|
|
111
|
+
content: '¶';
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.ck-suggestion-marker--active::after {
|
|
115
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
116
|
+
background: var(--ck-color-suggestion-marker-insertion-background-active);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ck-content .ck-suggestion-marker-formatInline {
|
|
121
|
+
border-top: 3px solid var(--ck-color-suggestion-marker-format-border);
|
|
122
|
+
border-bottom: 3px solid var(--ck-color-suggestion-marker-format-border);
|
|
123
|
+
|
|
124
|
+
&.ck-suggestion-marker--active {
|
|
125
|
+
border-color: var(--ck-color-suggestion-marker-format-border-active);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.ck-widget {
|
|
129
|
+
background: none;
|
|
130
|
+
border: 3px solid var(--ck-color-suggestion-marker-format-border);
|
|
131
|
+
|
|
132
|
+
&.ck-suggestion-marker--active {
|
|
133
|
+
border-color: var(--ck-color-suggestion-marker-format-border-active);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* This is a tricky case.
|
|
139
|
+
* We can't use `border-left` because sticky marker to the element looks kinda ugly.
|
|
140
|
+
* We can't use `::before` pseudoelement because it requires `position: relative` of parent, which breaks side-image.
|
|
141
|
+
* We can't use `outline` because it's impossible to display only left side of outline.
|
|
142
|
+
* So... we need to use power of CSS hacks <3 and use doubled box-shadow.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
.ck-content .ck-suggestion-marker-formatBlock {
|
|
146
|
+
border: 0;
|
|
147
|
+
background: none;
|
|
148
|
+
box-shadow: -7px 0 0 0 var(--ck-color-base-background), -10px 0 0 0 var(--ck-color-suggestion-marker-format-border);
|
|
149
|
+
|
|
150
|
+
&.ck-suggestion-marker--active {
|
|
151
|
+
box-shadow: -5px 0 0 0 var(--ck-color-base-background), -8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ck-content ul .ck-suggestion-marker-formatBlock,
|
|
156
|
+
.ck-content ol .ck-suggestion-marker-formatBlock {
|
|
157
|
+
box-shadow: -2px 0 0 0 var(--ck-color-base-background), -5px 0 0 0 var(--ck-color-suggestion-marker-format-border);
|
|
158
|
+
|
|
159
|
+
&.ck-suggestion-marker--active {
|
|
160
|
+
box-shadow: -2px 0 0 0 var(--ck-color-base-background), -5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@define-mixin userColor $color, $colorAlpha, $number {
|
|
11
|
+
.ck .ck-user__color--$(number) {
|
|
12
|
+
color: $color;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ck .ck-user__bg-color--$(number) {
|
|
16
|
+
background-color: $color;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ck .ck-user__selection--$(number) {
|
|
20
|
+
background-color: $colorAlpha;
|
|
21
|
+
|
|
22
|
+
&.ck-widget {
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
border: 3px solid $color;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ck .ck-user__marker--$(number) {
|
|
29
|
+
&,
|
|
30
|
+
& .ck-user__marker-tooltip,
|
|
31
|
+
& .ck-user__marker-dot {
|
|
32
|
+
&, &::selection {
|
|
33
|
+
background-color: $color;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& .ck-user__marker-line {
|
|
38
|
+
border: 1px solid $color;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@import "./usercolormixin.css";
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--ck-user-colors--0: hsla(235, 73%, 67%, 1);
|
|
14
|
+
--ck-user-colors--0-alpha: hsla(235, 73%, 67%, 0.15);
|
|
15
|
+
|
|
16
|
+
--ck-user-colors--1: hsla(173, 100%, 24%, 1);
|
|
17
|
+
--ck-user-colors--1-alpha: hsla(173, 100%, 24%, 0.15);
|
|
18
|
+
|
|
19
|
+
--ck-user-colors--2: hsla(0, 46%, 50%, 1);
|
|
20
|
+
--ck-user-colors--2-alpha: hsla(0, 46%, 50%, 0.15);
|
|
21
|
+
|
|
22
|
+
--ck-user-colors--3: hsla(256, 54%, 45%, 1);
|
|
23
|
+
--ck-user-colors--3-alpha: hsla(256, 54%, 45%, 0.15);
|
|
24
|
+
|
|
25
|
+
--ck-user-colors--4: hsla(95, 50%, 36%, 1);
|
|
26
|
+
--ck-user-colors--4-alpha: hsla(95, 50%, 36%, 0.15);
|
|
27
|
+
|
|
28
|
+
--ck-user-colors--5: hsla(336, 78%, 43%, 1);
|
|
29
|
+
--ck-user-colors--5-alpha: hsla(336, 78%, 43%, 0.15);
|
|
30
|
+
|
|
31
|
+
--ck-user-colors--6: hsla(0, 80%, 59%, 1);
|
|
32
|
+
--ck-user-colors--6-alpha: hsla(0, 80%, 59%, 0.15);
|
|
33
|
+
|
|
34
|
+
--ck-user-colors--7: hsla(184, 90%, 43%, 1);
|
|
35
|
+
--ck-user-colors--7-alpha: hsla(184, 90%, 43%, 0.15);
|
|
36
|
+
|
|
37
|
+
--ck-user-dot-size: 6px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* We are using mixins here because of lack of PostCSS loop plugin. */
|
|
41
|
+
|
|
42
|
+
@mixin userColor var(--ck-user-colors--0), var(--ck-user-colors--0-alpha), 0;
|
|
43
|
+
@mixin userColor var(--ck-user-colors--1), var(--ck-user-colors--1-alpha), 1;
|
|
44
|
+
@mixin userColor var(--ck-user-colors--2), var(--ck-user-colors--2-alpha), 2;
|
|
45
|
+
@mixin userColor var(--ck-user-colors--3), var(--ck-user-colors--3-alpha), 3;
|
|
46
|
+
@mixin userColor var(--ck-user-colors--4), var(--ck-user-colors--4-alpha), 4;
|
|
47
|
+
@mixin userColor var(--ck-user-colors--5), var(--ck-user-colors--5-alpha), 5;
|
|
48
|
+
@mixin userColor var(--ck-user-colors--6), var(--ck-user-colors--6-alpha), 6;
|
|
49
|
+
@mixin userColor var(--ck-user-colors--7), var(--ck-user-colors--7-alpha), 7;
|