@_sh/strapi-plugin-ckeditor 2.0.3 → 2.1.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.
Files changed (36) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +437 -448
  3. package/admin/src/components/CKEditorIcon.js +46 -46
  4. package/admin/src/components/Input/CKEditor/configs/base.js +636 -627
  5. package/admin/src/components/Input/CKEditor/configs/blockBalloon.js +25 -0
  6. package/admin/src/components/Input/CKEditor/configs/index.js +11 -11
  7. package/admin/src/components/Input/CKEditor/configs/toolbar.js +17 -17
  8. package/admin/src/components/Input/CKEditor/configs/toolbarBalloon.js +17 -0
  9. package/admin/src/components/Input/CKEditor/configuration.js +166 -165
  10. package/admin/src/components/Input/CKEditor/index.js +119 -119
  11. package/admin/src/components/Input/CKEditor/plugins/StrapiMediaLib.js +43 -43
  12. package/admin/src/components/Input/CKEditor/plugins/StrapiUploadAdapter.js +204 -203
  13. package/admin/src/components/Input/CKEditor/plugins/index.js +1 -1
  14. package/admin/src/components/Input/CKEditor/styling.js +16 -16
  15. package/admin/src/components/Input/CKEditor/theme/additional.js +186 -212
  16. package/admin/src/components/Input/CKEditor/theme/common.js +232 -232
  17. package/admin/src/components/Input/CKEditor/theme/dark.js +144 -144
  18. package/admin/src/components/Input/CKEditor/theme/index.js +12 -12
  19. package/admin/src/components/Input/CKEditor/theme/light.js +135 -135
  20. package/admin/src/components/Input/MediaLib/index.js +70 -79
  21. package/admin/src/components/Input/index.js +48 -48
  22. package/admin/src/index.js +110 -110
  23. package/admin/src/utils/getEditorConfig.js +37 -37
  24. package/admin/src/utils/pluginId.js +4 -4
  25. package/package.json +90 -86
  26. package/server/controllers/config.js +16 -16
  27. package/server/controllers/index.js +7 -7
  28. package/server/index.js +13 -13
  29. package/server/register.js +11 -11
  30. package/server/routes/index.js +15 -15
  31. package/server/services/config.js +19 -19
  32. package/server/services/index.js +7 -7
  33. package/strapi-admin.js +3 -3
  34. package/strapi-server.js +3 -3
  35. package/admin/src/components/Input/CKEditor/configs/blockBaloon.js +0 -25
  36. package/admin/src/components/Input/CKEditor/configs/toolbarBaloon.js +0 -17
@@ -1,144 +1,144 @@
1
- import { css } from "styled-components";
2
-
3
- export const dark = css`
4
- :root {
5
- --ck-color-focus-outer-shadow: rgba(77, 115, 255, 0.2) !important;
6
- --ck-color-focus-disabled-shadow: rgba(106, 114, 143, 0.4) !important;
7
- --ck-focus-ring: 1px solid #4945ff !important;
8
- --ck-color-button-default-hover-background: #262630 !important;
9
-
10
- .ck .ck-color-picker > svg {
11
- color: #ffffff !important;
12
- }
13
- .ck .ck-color-picker-save {
14
- & > svg {
15
- stroke: #ffffff !important;
16
- }
17
- & > svg > #primary,
18
- #primary-2 {
19
- stroke: #7b79ff !important;
20
- }
21
- }
22
- }
23
-
24
- .ck {
25
- --ck-scroll-track-background: #3d3d57;
26
- --ck-scroll-thumb-background: #181826;
27
- --ck-scroll-thumb-border-color: rgb(70, 70, 70);
28
- --ck-scroll-thumb-hover-background: #202033;
29
- --ck-scroll-thumb-active-background: #2b2b45;
30
-
31
- --ck-color-editor-base-text: rgb(236, 236, 236);
32
- /* Overrides the border radius setting in the theme. */
33
- --ck-border-radius: 4px;
34
-
35
- /* Helper variables to avoid duplication in the colors. */
36
- --ck-color-base-border: #4a4a6a;
37
- --ck-color-base-background: #212134;
38
- --ck-custom-background: #181826;
39
- --ck-custom-foreground: #26263b;
40
- --ck-custom-border: #4a4a6a;
41
- --ck-custom-white: hsl(0, 0%, 100%);
42
-
43
- --ck-color-focus-outer-shadow: #212134;
44
-
45
- --ck-color-base-focus: #bbbaf1;
46
- --ck-color-base-active: #2e2e5c;
47
- --ck-color-base-active-focus: #28284d;
48
- /* -- Overrides generic colors. ------------------------------------------------------------- */
49
-
50
- --ck-color-base-foreground: var(--ck-custom-background);
51
- --ck-color-focus-border: #6765bd;
52
- --ck-color-text: hsl(0, 0%, 93%);
53
- --ck-color-shadow-drop: hsla(0, 0%, 0%, 0.2);
54
- --ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);
55
-
56
- /* -- Overrides the default .ck-button class colors. ---------------------------------------- */
57
-
58
- --ck-color-button-default-background: rgb(33, 33, 52);
59
-
60
- --ck-color-button-default-hover-background: #262630;
61
- --ck-color-button-default-active-background: #3c3c47;
62
- --ck-color-button-default-active-shadow: #3c3c47;
63
- --ck-color-button-default-disabled-background: var(--ck-custom-background);
64
-
65
- --ck-color-button-on-color: #7b79ff;
66
- --ck-color-button-on-background: #2b2b36;
67
- --ck-color-button-on-hover-background: #30303b;
68
- --ck-color-button-on-active-background: #3c3c47;
69
- --ck-color-button-on-active-shadow: #3c3c47;
70
- --ck-color-button-on-disabled-background: var(--ck-custom-foreground);
71
-
72
- --ck-color-button-action-background: hsl(168, 76%, 42%);
73
- --ck-color-button-action-hover-background: hsl(168, 76%, 38%);
74
- --ck-color-button-action-active-background: hsl(168, 76%, 36%);
75
- --ck-color-button-action-active-shadow: hsl(168, 75%, 34%);
76
- --ck-color-button-action-disabled-background: hsl(168, 76%, 42%);
77
- --ck-color-button-action-text: var(--ck-custom-white);
78
-
79
- --ck-color-button-save: hsl(120, 100%, 46%);
80
- --ck-color-button-cancel: hsl(15, 100%, 56%);
81
-
82
- /* -- Overrides the default .ck-dropdown class colors. -------------------------------------- */
83
-
84
- --ck-color-dropdown-panel-background: var(--ck-custom-background);
85
- --ck-color-dropdown-panel-border: var(--ck-custom-foreground);
86
-
87
- /* -- Overrides the default .ck-splitbutton class colors. ----------------------------------- */
88
-
89
- --ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);
90
- --ck-color-split-button-hover-border: var(--ck-custom-foreground);
91
-
92
- /* -- Overrides the default .ck-input class colors. ----------------------------------------- */
93
-
94
- --ck-color-input-background: var(--ck-custom-background);
95
- --ck-color-input-border: hsl(257, 3%, 43%);
96
- --ck-color-input-text: hsl(0, 0%, 98%);
97
- --ck-color-input-disabled-background: hsl(255, 4%, 21%);
98
- --ck-color-input-disabled-border: hsl(250, 3%, 38%);
99
- --ck-color-input-disabled-text: hsl(0, 0%, 78%);
100
-
101
- /* -- Overrides the default .ck-labeled-field-view class colors. ---------------------------- */
102
-
103
- --ck-color-labeled-field-label-background: var(--ck-custom-background);
104
-
105
- /* -- Overrides the default .ck-list class colors. ------------------------------------------ */
106
-
107
- --ck-color-list-background: var(--ck-custom-background);
108
- --ck-color-list-button-hover-background: #121221;
109
- --ck-color-list-button-on-background: var(--ck-color-base-active);
110
- --ck-color-list-button-on-background-focus: var(--ck-color-base-active-focus);
111
- --ck-color-list-button-on-text: #ffffff;
112
-
113
- /* -- Overrides the default .ck-balloon-panel class colors. --------------------------------- */
114
-
115
- --ck-color-panel-background: var(--ck-custom-background);
116
- --ck-color-panel-border: var(--ck-custom-border);
117
-
118
- /* -- Overrides the default .ck-toolbar class colors. --------------------------------------- */
119
-
120
- --ck-color-toolbar-background: var(--ck-custom-background);
121
- --ck-color-toolbar-border: var(--ck-custom-border);
122
-
123
- /* -- Overrides the default .ck-tooltip class colors. --------------------------------------- */
124
-
125
- --ck-color-tooltip-background: #3a3955;
126
- --ck-color-tooltip-text: hsl(0, 0%, 93%);
127
-
128
- /* -- Overrides the default colors used by the ckeditor5-image package. --------------------- */
129
-
130
- --ck-color-image-caption-background: hsl(0, 0%, 97%);
131
- --ck-color-image-caption-text: hsl(0, 0%, 20%);
132
-
133
- /* -- Overrides the default colors used by the ckeditor5-widget package. -------------------- */
134
-
135
- --ck-color-widget-blurred-border: #7c7c96;
136
- --ck-color-widget-hover-border: #666687;
137
- --ck-color-widget-editable-focus-background: var(--ck-custom-white);
138
-
139
- /* -- Overrides the default colors used by the ckeditor5-link package. ---------------------- */
140
-
141
- --ck-color-link-default: hsl(216, 100%, 75%);
142
- }
143
-
144
- `;
1
+ import { css } from "styled-components";
2
+
3
+ export const dark = css`
4
+ :root {
5
+ --ck-color-focus-outer-shadow: rgba(77, 115, 255, 0.2) !important;
6
+ --ck-color-focus-disabled-shadow: rgba(106, 114, 143, 0.4) !important;
7
+ --ck-focus-ring: 1px solid #4945ff !important;
8
+ --ck-color-button-default-hover-background: #262630 !important;
9
+
10
+ .ck .ck-color-picker > svg {
11
+ color: #ffffff !important;
12
+ }
13
+ .ck .ck-color-picker-save {
14
+ & > svg {
15
+ stroke: #ffffff !important;
16
+ }
17
+ & > svg > #primary,
18
+ #primary-2 {
19
+ stroke: #7b79ff !important;
20
+ }
21
+ }
22
+ }
23
+
24
+ .ck {
25
+ --ck-scroll-track-background: #3d3d57;
26
+ --ck-scroll-thumb-background: #181826;
27
+ --ck-scroll-thumb-border-color: rgb(70, 70, 70);
28
+ --ck-scroll-thumb-hover-background: #202033;
29
+ --ck-scroll-thumb-active-background: #2b2b45;
30
+
31
+ --ck-color-editor-base-text: rgb(236, 236, 236);
32
+ /* Overrides the border radius setting in the theme. */
33
+ --ck-border-radius: 4px;
34
+
35
+ /* Helper variables to avoid duplication in the colors. */
36
+ --ck-color-base-border: #4a4a6a;
37
+ --ck-color-base-background: #212134;
38
+ --ck-custom-background: #181826;
39
+ --ck-custom-foreground: #26263b;
40
+ --ck-custom-border: #4a4a6a;
41
+ --ck-custom-white: hsl(0, 0%, 100%);
42
+
43
+ --ck-color-focus-outer-shadow: #212134;
44
+
45
+ --ck-color-base-focus: #bbbaf1;
46
+ --ck-color-base-active: #2e2e5c;
47
+ --ck-color-base-active-focus: #28284d;
48
+ /* -- Overrides generic colors. ------------------------------------------------------------- */
49
+
50
+ --ck-color-base-foreground: var(--ck-custom-background);
51
+ --ck-color-focus-border: #6765bd;
52
+ --ck-color-text: hsl(0, 0%, 93%);
53
+ --ck-color-shadow-drop: hsla(0, 0%, 0%, 0.2);
54
+ --ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);
55
+
56
+ /* -- Overrides the default .ck-button class colors. ---------------------------------------- */
57
+
58
+ --ck-color-button-default-background: rgb(33, 33, 52);
59
+
60
+ --ck-color-button-default-hover-background: #262630;
61
+ --ck-color-button-default-active-background: #3c3c47;
62
+ --ck-color-button-default-active-shadow: #3c3c47;
63
+ --ck-color-button-default-disabled-background: var(--ck-custom-background);
64
+
65
+ --ck-color-button-on-color: #7b79ff;
66
+ --ck-color-button-on-background: #2b2b36;
67
+ --ck-color-button-on-hover-background: #30303b;
68
+ --ck-color-button-on-active-background: #3c3c47;
69
+ --ck-color-button-on-active-shadow: #3c3c47;
70
+ --ck-color-button-on-disabled-background: var(--ck-custom-foreground);
71
+
72
+ --ck-color-button-action-background: hsl(168, 76%, 42%);
73
+ --ck-color-button-action-hover-background: hsl(168, 76%, 38%);
74
+ --ck-color-button-action-active-background: hsl(168, 76%, 36%);
75
+ --ck-color-button-action-active-shadow: hsl(168, 75%, 34%);
76
+ --ck-color-button-action-disabled-background: hsl(168, 76%, 42%);
77
+ --ck-color-button-action-text: var(--ck-custom-white);
78
+
79
+ --ck-color-button-save: hsl(120, 100%, 46%);
80
+ --ck-color-button-cancel: hsl(15, 100%, 56%);
81
+
82
+ /* -- Overrides the default .ck-dropdown class colors. -------------------------------------- */
83
+
84
+ --ck-color-dropdown-panel-background: var(--ck-custom-background);
85
+ --ck-color-dropdown-panel-border: var(--ck-custom-foreground);
86
+
87
+ /* -- Overrides the default .ck-splitbutton class colors. ----------------------------------- */
88
+
89
+ --ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);
90
+ --ck-color-split-button-hover-border: var(--ck-custom-foreground);
91
+
92
+ /* -- Overrides the default .ck-input class colors. ----------------------------------------- */
93
+
94
+ --ck-color-input-background: var(--ck-custom-background);
95
+ --ck-color-input-border: hsl(257, 3%, 43%);
96
+ --ck-color-input-text: hsl(0, 0%, 98%);
97
+ --ck-color-input-disabled-background: hsl(255, 4%, 21%);
98
+ --ck-color-input-disabled-border: hsl(250, 3%, 38%);
99
+ --ck-color-input-disabled-text: hsl(0, 0%, 78%);
100
+
101
+ /* -- Overrides the default .ck-labeled-field-view class colors. ---------------------------- */
102
+
103
+ --ck-color-labeled-field-label-background: var(--ck-custom-background);
104
+
105
+ /* -- Overrides the default .ck-list class colors. ------------------------------------------ */
106
+
107
+ --ck-color-list-background: var(--ck-custom-background);
108
+ --ck-color-list-button-hover-background: #121221;
109
+ --ck-color-list-button-on-background: var(--ck-color-base-active);
110
+ --ck-color-list-button-on-background-focus: var(--ck-color-base-active-focus);
111
+ --ck-color-list-button-on-text: #ffffff;
112
+
113
+ /* -- Overrides the default .ck-balloon-panel class colors. --------------------------------- */
114
+
115
+ --ck-color-panel-background: var(--ck-custom-background);
116
+ --ck-color-panel-border: var(--ck-custom-border);
117
+
118
+ /* -- Overrides the default .ck-toolbar class colors. --------------------------------------- */
119
+
120
+ --ck-color-toolbar-background: var(--ck-custom-background);
121
+ --ck-color-toolbar-border: var(--ck-custom-border);
122
+
123
+ /* -- Overrides the default .ck-tooltip class colors. --------------------------------------- */
124
+
125
+ --ck-color-tooltip-background: #3a3955;
126
+ --ck-color-tooltip-text: hsl(0, 0%, 93%);
127
+
128
+ /* -- Overrides the default colors used by the ckeditor5-image package. --------------------- */
129
+
130
+ --ck-color-image-caption-background: hsl(0, 0%, 97%);
131
+ --ck-color-image-caption-text: hsl(0, 0%, 20%);
132
+
133
+ /* -- Overrides the default colors used by the ckeditor5-widget package. -------------------- */
134
+
135
+ --ck-color-widget-blurred-border: #7c7c96;
136
+ --ck-color-widget-hover-border: #666687;
137
+ --ck-color-widget-editable-focus-background: var(--ck-custom-white);
138
+
139
+ /* -- Overrides the default colors used by the ckeditor5-link package. ---------------------- */
140
+
141
+ --ck-color-link-default: hsl(216, 100%, 75%);
142
+ }
143
+
144
+ `;
@@ -1,13 +1,13 @@
1
- import { common } from './common';
2
- import { light } from './light';
3
- import { dark } from './dark';
4
- import { additional } from './additional';
5
-
6
- const baseTheme = {
7
- common: common,
8
- light: light,
9
- dark: dark,
10
- additional: additional
11
- }
12
-
1
+ import { common } from './common';
2
+ import { light } from './light';
3
+ import { dark } from './dark';
4
+ import { additional } from './additional';
5
+
6
+ const baseTheme = {
7
+ common: common,
8
+ light: light,
9
+ dark: dark,
10
+ additional: additional
11
+ }
12
+
13
13
  export default baseTheme;
@@ -1,135 +1,135 @@
1
- import { css } from "styled-components";
2
-
3
- export const light = css`
4
- :root {
5
- --ck-color-focus-outer-shadow: rgba(77, 115, 255, 0.2) !important;
6
- --ck-color-focus-disabled-shadow: #e4e3ff !important;
7
- --ck-focus-ring: 1px solid rgb(73, 69, 255) !important;
8
- --ck-color-button-default-hover-background: #F0F0FF !important;
9
-
10
- .ck .ck-color-picker-save {
11
- & > svg {
12
- stroke: #7b79ff !important;
13
- }
14
- }
15
- }
16
-
17
- .ck {
18
- --ck-scroll-track-background: rgb(242, 242, 242);
19
- --ck-scroll-thumb-background: rgb(236, 236, 236);
20
- --ck-scroll-thumb-border-color: #cdcdf8;
21
- --ck-scroll-thumb-hover-background: #f0f0ff;
22
- --ck-scroll-thumb-active-background: #d9d8ff;
23
-
24
- --ck-color-editor-base-text: #001234;
25
- /* Overrides the border radius setting in the theme. */
26
- --ck-border-radius: 4px;
27
-
28
- /* Helper variables to avoid duplication in the colors. */
29
- --ck-color-base-border: #dcdce4;
30
- --ck-color-base-background: #ffffff;
31
- --ck-custom-background: #ffffff;
32
- --ck-custom-foreground: #dedede;
33
- --ck-custom-border: #dcdce4;
34
- --ck-custom-white: hsl(0, 0%, 100%);
35
-
36
- --ck-color-base-focus: #bbbaf1;
37
- --ck-color-base-active: #f0f0ff;
38
- --ck-color-base-active-focus: #e2e2fd;
39
- /* -- Overrides generic colors. ------------------------------------------------------------- */
40
-
41
- --ck-color-base-foreground: var(--ck-custom-background);
42
-
43
- --ck-color-focus-border: rgb(73, 69, 255);
44
-
45
- --ck-color-text: #32324d;
46
- --ck-color-shadow-drop: hsla(250, 31%, 80%, 0.1);
47
- --ck-color-shadow-inner: hsla(250, 31%, 80%, 0.1);
48
-
49
- /* -- Overrides the default .ck-button class colors. ---------------------------------------- */
50
-
51
- --ck-color-button-default-background: var(--ck-custom-background);
52
- --ck-color-button-default-hover-background: #f0f0ff;
53
- --ck-color-button-default-active-background: #f6f6f9;
54
- --ck-color-button-default-active-shadow: #dedefb;
55
- --ck-color-button-default-disabled-background: var(--ck-custom-background);
56
-
57
- --ck-color-button-on-color: rgb(73, 69, 255);
58
- --ck-color-button-on-background: #f0f0ff;
59
- --ck-color-button-on-hover-background: #e6e9fc;
60
- --ck-color-button-on-active-background: #f6f6f9;
61
- --ck-color-button-on-active-shadow: #cdcdf8;
62
- --ck-color-button-on-disabled-background: var(--ck-custom-foreground);
63
-
64
- --ck-color-button-action-background: hsl(168, 76%, 42%);
65
- --ck-color-button-action-hover-background: hsl(168, 76%, 38%);
66
- --ck-color-button-action-active-background: hsl(168, 76%, 36%);
67
- --ck-color-button-action-active-shadow: hsl(168, 75%, 34%);
68
- --ck-color-button-action-disabled-background: hsl(168, 76%, 42%);
69
- --ck-color-button-action-text: var(--ck-custom-white);
70
-
71
- --ck-color-button-save: hsl(120, 100%, 46%);
72
- --ck-color-button-cancel: hsl(15, 100%, 56%);
73
-
74
- /* -- Overrides the default .ck-dropdown class colors. -------------------------------------- */
75
-
76
- --ck-color-dropdown-panel-background: var(--ck-custom-background);
77
- --ck-color-dropdown-panel-border: var(--ck-custom-foreground);
78
-
79
- /* -- Overrides the default .ck-splitbutton class colors. ----------------------------------- */
80
-
81
- --ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);
82
- --ck-color-split-button-hover-border: var(--ck-custom-foreground);
83
-
84
- /* -- Overrides the default .ck-input class colors. ----------------------------------------- */
85
-
86
- --ck-color-input-background: var(--ck-custom-background);
87
- --ck-color-input-border: hsl(257, 3%, 43%);
88
- --ck-color-input-text: hsl(0, 0%, 98%);
89
- --ck-color-input-disabled-background: hsl(0, 0%, 97%);
90
- --ck-color-input-disabled-border: rgb(214, 214, 214);
91
- --ck-color-input-disabled-text: hsl(0, 0%, 78%);
92
-
93
- /* -- Overrides the default .ck-labeled-field-view class colors. ---------------------------- */
94
-
95
- --ck-color-labeled-field-label-background: var(--ck-custom-background);
96
-
97
- /* -- Overrides the default .ck-list class colors. ------------------------------------------ */
98
-
99
- --ck-color-list-background: var(--ck-custom-background);
100
- --ck-color-list-button-hover-background: #f4f4fb;
101
- --ck-color-list-button-on-background: var(--ck-color-base-active);
102
- --ck-color-list-button-on-background-focus: var(--ck-color-base-active-focus);
103
- --ck-color-list-button-on-text: #271fe2;
104
-
105
- /* -- Overrides the default .ck-balloon-panel class colors. --------------------------------- */
106
-
107
- --ck-color-panel-background: var(--ck-custom-background);
108
- --ck-color-panel-border: var(--ck-custom-border);
109
-
110
- /* -- Overrides the default .ck-toolbar class colors. --------------------------------------- */
111
-
112
- --ck-color-toolbar-background: var(--ck-custom-background);
113
- --ck-color-toolbar-border: var(--ck-custom-border);
114
-
115
- /* -- Overrides the default .ck-tooltip class colors. --------------------------------------- */
116
-
117
- --ck-color-tooltip-background: #3a3955;
118
- --ck-color-tooltip-text: hsl(0, 0%, 93%);
119
-
120
- /* -- Overrides the default colors used by the ckeditor5-image package. --------------------- */
121
-
122
- --ck-color-image-caption-background: hsl(0, 0%, 97%);
123
- --ck-color-image-caption-text: hsl(0, 0%, 20%);
124
-
125
- /* -- Overrides the default colors used by the ckeditor5-widget package. -------------------- */
126
-
127
- --ck-color-widget-blurred-border: #cfcffa;
128
- --ck-color-widget-hover-border: #c9c9e4;
129
- --ck-color-widget-editable-focus-background: var(--ck-custom-white);
130
-
131
- /* -- Overrides the default colors used by the ckeditor5-link package. ---------------------- */
132
-
133
- --ck-color-link-default: hsl(209, 89%, 33%);
134
- }
135
- `;
1
+ import { css } from "styled-components";
2
+
3
+ export const light = css`
4
+ :root {
5
+ --ck-color-focus-outer-shadow: rgba(77, 115, 255, 0.2) !important;
6
+ --ck-color-focus-disabled-shadow: #e4e3ff !important;
7
+ --ck-focus-ring: 1px solid rgb(73, 69, 255) !important;
8
+ --ck-color-button-default-hover-background: #F0F0FF !important;
9
+
10
+ .ck .ck-color-picker-save {
11
+ & > svg {
12
+ stroke: #7b79ff !important;
13
+ }
14
+ }
15
+ }
16
+
17
+ .ck {
18
+ --ck-scroll-track-background: rgb(242, 242, 242);
19
+ --ck-scroll-thumb-background: rgb(236, 236, 236);
20
+ --ck-scroll-thumb-border-color: #cdcdf8;
21
+ --ck-scroll-thumb-hover-background: #f0f0ff;
22
+ --ck-scroll-thumb-active-background: #d9d8ff;
23
+
24
+ --ck-color-editor-base-text: #001234;
25
+ /* Overrides the border radius setting in the theme. */
26
+ --ck-border-radius: 4px;
27
+
28
+ /* Helper variables to avoid duplication in the colors. */
29
+ --ck-color-base-border: #dcdce4;
30
+ --ck-color-base-background: #ffffff;
31
+ --ck-custom-background: #ffffff;
32
+ --ck-custom-foreground: #dedede;
33
+ --ck-custom-border: #dcdce4;
34
+ --ck-custom-white: hsl(0, 0%, 100%);
35
+
36
+ --ck-color-base-focus: #bbbaf1;
37
+ --ck-color-base-active: #f0f0ff;
38
+ --ck-color-base-active-focus: #e2e2fd;
39
+ /* -- Overrides generic colors. ------------------------------------------------------------- */
40
+
41
+ --ck-color-base-foreground: var(--ck-custom-background);
42
+
43
+ --ck-color-focus-border: rgb(73, 69, 255);
44
+
45
+ --ck-color-text: #32324d;
46
+ --ck-color-shadow-drop: hsla(250, 31%, 80%, 0.1);
47
+ --ck-color-shadow-inner: hsla(250, 31%, 80%, 0.1);
48
+
49
+ /* -- Overrides the default .ck-button class colors. ---------------------------------------- */
50
+
51
+ --ck-color-button-default-background: var(--ck-custom-background);
52
+ --ck-color-button-default-hover-background: #f0f0ff;
53
+ --ck-color-button-default-active-background: #f6f6f9;
54
+ --ck-color-button-default-active-shadow: #dedefb;
55
+ --ck-color-button-default-disabled-background: var(--ck-custom-background);
56
+
57
+ --ck-color-button-on-color: rgb(73, 69, 255);
58
+ --ck-color-button-on-background: #f0f0ff;
59
+ --ck-color-button-on-hover-background: #e6e9fc;
60
+ --ck-color-button-on-active-background: #f6f6f9;
61
+ --ck-color-button-on-active-shadow: #cdcdf8;
62
+ --ck-color-button-on-disabled-background: var(--ck-custom-foreground);
63
+
64
+ --ck-color-button-action-background: hsl(168, 76%, 42%);
65
+ --ck-color-button-action-hover-background: hsl(168, 76%, 38%);
66
+ --ck-color-button-action-active-background: hsl(168, 76%, 36%);
67
+ --ck-color-button-action-active-shadow: hsl(168, 75%, 34%);
68
+ --ck-color-button-action-disabled-background: hsl(168, 76%, 42%);
69
+ --ck-color-button-action-text: var(--ck-custom-white);
70
+
71
+ --ck-color-button-save: hsl(120, 100%, 46%);
72
+ --ck-color-button-cancel: hsl(15, 100%, 56%);
73
+
74
+ /* -- Overrides the default .ck-dropdown class colors. -------------------------------------- */
75
+
76
+ --ck-color-dropdown-panel-background: var(--ck-custom-background);
77
+ --ck-color-dropdown-panel-border: var(--ck-custom-foreground);
78
+
79
+ /* -- Overrides the default .ck-splitbutton class colors. ----------------------------------- */
80
+
81
+ --ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);
82
+ --ck-color-split-button-hover-border: var(--ck-custom-foreground);
83
+
84
+ /* -- Overrides the default .ck-input class colors. ----------------------------------------- */
85
+
86
+ --ck-color-input-background: var(--ck-custom-background);
87
+ --ck-color-input-border: hsl(257, 3%, 43%);
88
+ --ck-color-input-text: hsl(0, 0%, 98%);
89
+ --ck-color-input-disabled-background: hsl(0, 0%, 97%);
90
+ --ck-color-input-disabled-border: rgb(214, 214, 214);
91
+ --ck-color-input-disabled-text: hsl(0, 0%, 78%);
92
+
93
+ /* -- Overrides the default .ck-labeled-field-view class colors. ---------------------------- */
94
+
95
+ --ck-color-labeled-field-label-background: var(--ck-custom-background);
96
+
97
+ /* -- Overrides the default .ck-list class colors. ------------------------------------------ */
98
+
99
+ --ck-color-list-background: var(--ck-custom-background);
100
+ --ck-color-list-button-hover-background: #f4f4fb;
101
+ --ck-color-list-button-on-background: var(--ck-color-base-active);
102
+ --ck-color-list-button-on-background-focus: var(--ck-color-base-active-focus);
103
+ --ck-color-list-button-on-text: #271fe2;
104
+
105
+ /* -- Overrides the default .ck-balloon-panel class colors. --------------------------------- */
106
+
107
+ --ck-color-panel-background: var(--ck-custom-background);
108
+ --ck-color-panel-border: var(--ck-custom-border);
109
+
110
+ /* -- Overrides the default .ck-toolbar class colors. --------------------------------------- */
111
+
112
+ --ck-color-toolbar-background: var(--ck-custom-background);
113
+ --ck-color-toolbar-border: var(--ck-custom-border);
114
+
115
+ /* -- Overrides the default .ck-tooltip class colors. --------------------------------------- */
116
+
117
+ --ck-color-tooltip-background: #3a3955;
118
+ --ck-color-tooltip-text: hsl(0, 0%, 93%);
119
+
120
+ /* -- Overrides the default colors used by the ckeditor5-image package. --------------------- */
121
+
122
+ --ck-color-image-caption-background: hsl(0, 0%, 97%);
123
+ --ck-color-image-caption-text: hsl(0, 0%, 20%);
124
+
125
+ /* -- Overrides the default colors used by the ckeditor5-widget package. -------------------- */
126
+
127
+ --ck-color-widget-blurred-border: #cfcffa;
128
+ --ck-color-widget-hover-border: #c9c9e4;
129
+ --ck-color-widget-editable-focus-background: var(--ck-custom-white);
130
+
131
+ /* -- Overrides the default colors used by the ckeditor5-link package. ---------------------- */
132
+
133
+ --ck-color-link-default: hsl(209, 89%, 33%);
134
+ }
135
+ `;