@ckeditor/ckeditor5-theme-lark 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.
Files changed (110) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +17 -0
  3. package/README.md +22 -0
  4. package/dist/index-content.css +12 -0
  5. package/dist/index-editor.css +3653 -0
  6. package/dist/index.css +5335 -0
  7. package/dist/index.css.map +1 -0
  8. package/dist/index.js +6 -0
  9. package/dist/index.js.map +1 -0
  10. package/package.json +32 -0
  11. package/theme/ckeditor5-clipboard/clipboard.css +89 -0
  12. package/theme/ckeditor5-code-block/codeblock.css +28 -0
  13. package/theme/ckeditor5-editor-classic/classiceditor.css +48 -0
  14. package/theme/ckeditor5-engine/placeholder.css +39 -0
  15. package/theme/ckeditor5-find-and-replace/findandreplaceform.css +194 -0
  16. package/theme/ckeditor5-heading/heading.css +15 -0
  17. package/theme/ckeditor5-horizontal-line/horizontalline.css +10 -0
  18. package/theme/ckeditor5-html-embed/htmlembed.css +156 -0
  19. package/theme/ckeditor5-image/imageinsert.css +66 -0
  20. package/theme/ckeditor5-image/imageupload.css +4 -0
  21. package/theme/ckeditor5-image/imageuploadicon.css +108 -0
  22. package/theme/ckeditor5-image/imageuploadloader.css +50 -0
  23. package/theme/ckeditor5-image/imageuploadprogress.css +33 -0
  24. package/theme/ckeditor5-link/link.css +30 -0
  25. package/theme/ckeditor5-link/linkactions.css +84 -0
  26. package/theme/ckeditor5-link/linkform.css +61 -0
  27. package/theme/ckeditor5-link/linkimage.css +43 -0
  28. package/theme/ckeditor5-list/listproperties.css +62 -0
  29. package/theme/ckeditor5-list/liststyles.css +40 -0
  30. package/theme/ckeditor5-media-embed/mediaembedediting.css +109 -0
  31. package/theme/ckeditor5-mention/mention.css +14 -0
  32. package/theme/ckeditor5-restricted-editing/restrictedediting.css +69 -0
  33. package/theme/ckeditor5-special-characters/charactergrid.css +51 -0
  34. package/theme/ckeditor5-special-characters/characterinfo.css +26 -0
  35. package/theme/ckeditor5-special-characters/specialcharacters.css +32 -0
  36. package/theme/ckeditor5-style/style.css +8 -0
  37. package/theme/ckeditor5-style/stylegrid.css +98 -0
  38. package/theme/ckeditor5-style/stylegroup.css +16 -0
  39. package/theme/ckeditor5-style/stylepanel.css +14 -0
  40. package/theme/ckeditor5-table/colorinput.css +103 -0
  41. package/theme/ckeditor5-table/form.css +32 -0
  42. package/theme/ckeditor5-table/formrow.css +36 -0
  43. package/theme/ckeditor5-table/inserttable.css +46 -0
  44. package/theme/ckeditor5-table/tablecellproperties.css +25 -0
  45. package/theme/ckeditor5-table/tableediting.css +27 -0
  46. package/theme/ckeditor5-table/tableform.css +90 -0
  47. package/theme/ckeditor5-table/tableproperties.css +26 -0
  48. package/theme/ckeditor5-table/tableselection.css +47 -0
  49. package/theme/ckeditor5-ui/components/autocomplete/autocomplete.css +36 -0
  50. package/theme/ckeditor5-ui/components/button/button.css +167 -0
  51. package/theme/ckeditor5-ui/components/button/listitembutton.css +42 -0
  52. package/theme/ckeditor5-ui/components/button/switchbutton.css +134 -0
  53. package/theme/ckeditor5-ui/components/collapsible/collapsible.css +42 -0
  54. package/theme/ckeditor5-ui/components/colorgrid/colorgrid.css +94 -0
  55. package/theme/ckeditor5-ui/components/colorselector/colorselector.css +70 -0
  56. package/theme/ckeditor5-ui/components/dialog/dialog.css +49 -0
  57. package/theme/ckeditor5-ui/components/dialog/dialogactions.css +14 -0
  58. package/theme/ckeditor5-ui/components/dropdown/dropdown.css +126 -0
  59. package/theme/ckeditor5-ui/components/dropdown/listdropdown.css +33 -0
  60. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenubutton.css +89 -0
  61. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitem.css +12 -0
  62. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitembutton.css +36 -0
  63. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenupanel.css +52 -0
  64. package/theme/ckeditor5-ui/components/dropdown/splitbutton.css +112 -0
  65. package/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css +8 -0
  66. package/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css +103 -0
  67. package/theme/ckeditor5-ui/components/editorui/editorui.css +69 -0
  68. package/theme/ckeditor5-ui/components/formheader/formheader.css +32 -0
  69. package/theme/ckeditor5-ui/components/icon/icon.css +42 -0
  70. package/theme/ckeditor5-ui/components/input/input.css +81 -0
  71. package/theme/ckeditor5-ui/components/label/label.css +8 -0
  72. package/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css +127 -0
  73. package/theme/ckeditor5-ui/components/labeledinput/labeledinput.css +17 -0
  74. package/theme/ckeditor5-ui/components/list/list.css +114 -0
  75. package/theme/ckeditor5-ui/components/menubar/menubar.css +15 -0
  76. package/theme/ckeditor5-ui/components/menubar/menubarmenu.css +13 -0
  77. package/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css +98 -0
  78. package/theme/ckeditor5-ui/components/menubar/menubarmenulistitem.css +12 -0
  79. package/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css +36 -0
  80. package/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css +70 -0
  81. package/theme/ckeditor5-ui/components/panel/balloonpanel.css +207 -0
  82. package/theme/ckeditor5-ui/components/panel/balloonrotator.css +33 -0
  83. package/theme/ckeditor5-ui/components/panel/fakepanel.css +46 -0
  84. package/theme/ckeditor5-ui/components/panel/stickypanel.css +16 -0
  85. package/theme/ckeditor5-ui/components/responsive-form/responsiveform.css +82 -0
  86. package/theme/ckeditor5-ui/components/search/search.css +106 -0
  87. package/theme/ckeditor5-ui/components/spinner/spinner.css +32 -0
  88. package/theme/ckeditor5-ui/components/textarea/textarea.css +12 -0
  89. package/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css +14 -0
  90. package/theme/ckeditor5-ui/components/toolbar/toolbar.css +203 -0
  91. package/theme/ckeditor5-ui/components/tooltip/tooltip.css +38 -0
  92. package/theme/ckeditor5-ui/globals/_colors.css +123 -0
  93. package/theme/ckeditor5-ui/globals/_disabled.css +11 -0
  94. package/theme/ckeditor5-ui/globals/_focus.css +31 -0
  95. package/theme/ckeditor5-ui/globals/_fonts.css +16 -0
  96. package/theme/ckeditor5-ui/globals/_reset.css +97 -0
  97. package/theme/ckeditor5-ui/globals/_rounded.css +11 -0
  98. package/theme/ckeditor5-ui/globals/_shadow.css +21 -0
  99. package/theme/ckeditor5-ui/globals/_spacing.css +14 -0
  100. package/theme/ckeditor5-ui/globals/globals.css +13 -0
  101. package/theme/ckeditor5-ui/mixins/_button.css +29 -0
  102. package/theme/ckeditor5-widget/widget.css +195 -0
  103. package/theme/ckeditor5-widget/widgetresize.css +44 -0
  104. package/theme/ckeditor5-widget/widgettypearound.css +302 -0
  105. package/theme/index.css +97 -0
  106. package/theme/mixins/_disabled.css +11 -0
  107. package/theme/mixins/_focus.css +13 -0
  108. package/theme/mixins/_rounded.css +19 -0
  109. package/theme/mixins/_shadow.css +18 -0
  110. package/theme/theme.css +4 -0
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck.ck-table-properties-form {
7
+ width: 320px;
8
+
9
+ & .ck-form__row {
10
+ &.ck-table-properties-form__alignment-row {
11
+ align-self: flex-end;
12
+ padding: 0;
13
+
14
+ & .ck.ck-toolbar {
15
+ background: none;
16
+
17
+ /* Compensate for missing input label that would push the margin (toolbar has no inputs). */
18
+ margin-top: var(--ck-spacing-standard);
19
+
20
+ & .ck-toolbar__items > * {
21
+ width: 40px;
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ :root {
7
+ --ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);
8
+ }
9
+
10
+ .ck.ck-editor__editable .table table {
11
+ & td.ck-editor__editable_selected,
12
+ & th.ck-editor__editable_selected {
13
+ position: relative;
14
+ caret-color: transparent;
15
+ outline: unset;
16
+ box-shadow: unset;
17
+
18
+ /* https://github.com/ckeditor/ckeditor5/issues/6446 */
19
+ &:after {
20
+ content: '';
21
+ pointer-events: none;
22
+ background-color: var(--ck-table-selected-cell-background);
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ right: 0;
27
+ bottom: 0;
28
+ }
29
+
30
+ & ::selection,
31
+ &:focus {
32
+ background-color: transparent;
33
+ }
34
+
35
+ /*
36
+ * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.
37
+ * See https://github.com/ckeditor/ckeditor5/issues/9491.
38
+ */
39
+ & .ck-widget {
40
+ outline: unset;
41
+
42
+ & > .ck-widget__selection-handle {
43
+ display: none;
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
7
+ @import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
8
+
9
+ .ck.ck-autocomplete {
10
+ & > .ck-search__results {
11
+ @mixin ck-rounded-corners;
12
+ @mixin ck-drop-shadow;
13
+
14
+ max-height: 200px;
15
+ overflow-y: auto;
16
+ background: var(--ck-color-base-background);
17
+ border: 1px solid var(--ck-color-dropdown-panel-border);
18
+ min-width: auto;
19
+
20
+ &.ck-search__results_n {
21
+ border-bottom-left-radius: 0;
22
+ border-bottom-right-radius: 0;
23
+
24
+ /* Prevent duplicated borders between the input and the results pane. */
25
+ margin-bottom: -1px;
26
+ }
27
+
28
+ &.ck-search__results_s {
29
+ border-top-left-radius: 0;
30
+ border-top-right-radius: 0;
31
+
32
+ /* Prevent duplicated borders between the input and the results pane. */
33
+ margin-top: -1px;
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_focus.css";
7
+ @import "../../../mixins/_shadow.css";
8
+ @import "../../../mixins/_disabled.css";
9
+ @import "../../../mixins/_rounded.css";
10
+ @import "../../mixins/_button.css";
11
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
12
+
13
+ .ck.ck-button,
14
+ a.ck.ck-button {
15
+ @mixin ck-button-colors --ck-color-button-default;
16
+ @mixin ck-rounded-corners;
17
+
18
+ white-space: nowrap;
19
+ cursor: default;
20
+ vertical-align: middle;
21
+ padding: var(--ck-spacing-tiny);
22
+ text-align: center;
23
+
24
+ /* A very important piece of styling. Go to variable declaration to learn more. */
25
+ min-width: var(--ck-ui-component-min-height);
26
+ min-height: var(--ck-ui-component-min-height);
27
+
28
+ /* Normalize the height of the line. Removing this will break consistent height
29
+ among text and text-less buttons (with icons). */
30
+ line-height: 1;
31
+
32
+ /* Enable font size inheritance, which allows fluid UI scaling. */
33
+ font-size: inherit;
34
+
35
+ /* Avoid flickering when the foucs border shows up. */
36
+ border: 1px solid transparent;
37
+
38
+ /* Apply some smooth transition to the box-shadow and border. */
39
+ transition: box-shadow .2s ease-in-out, border .2s ease-in-out;
40
+
41
+ /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */
42
+ -webkit-appearance: none;
43
+
44
+ @media (prefers-reduced-motion: reduce) {
45
+ transition: none;
46
+ }
47
+
48
+ &:active,
49
+ &:focus {
50
+ @mixin ck-focus-ring;
51
+ @mixin ck-box-shadow var(--ck-focus-outer-shadow);
52
+ }
53
+
54
+ /* Allow icon coloring using the text "color" property. */
55
+ & .ck-button__icon {
56
+ & use,
57
+ & use * {
58
+ color: inherit;
59
+ }
60
+ }
61
+
62
+ & .ck-button__label {
63
+ /* Enable font size inheritance, which allows fluid UI scaling. */
64
+ font-size: inherit;
65
+ font-weight: inherit;
66
+ color: inherit;
67
+ cursor: inherit;
68
+
69
+ /* Must be consistent with .ck-icon's vertical align. Otherwise, buttons with and
70
+ without labels (but with icons) have different sizes in Chrome */
71
+ vertical-align: middle;
72
+
73
+ @mixin ck-dir ltr {
74
+ text-align: left;
75
+ }
76
+
77
+ @mixin ck-dir rtl {
78
+ text-align: right;
79
+ }
80
+ }
81
+
82
+ & .ck-button__keystroke {
83
+ color: inherit;
84
+
85
+ @mixin ck-dir ltr {
86
+ margin-left: var(--ck-spacing-large);
87
+ }
88
+
89
+ @mixin ck-dir rtl {
90
+ margin-right: var(--ck-spacing-large);
91
+ }
92
+
93
+ opacity: .5;
94
+ }
95
+
96
+ /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
97
+ &.ck-disabled {
98
+ &:active,
99
+ &:focus {
100
+ /* The disabled button should have a slightly less visible shadow when focused. */
101
+ @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
102
+ }
103
+
104
+ & .ck-button__icon {
105
+ @mixin ck-disabled;
106
+ }
107
+
108
+ /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
109
+ & .ck-button__label {
110
+ @mixin ck-disabled;
111
+ }
112
+
113
+ & .ck-button__keystroke {
114
+ opacity: .3;
115
+ }
116
+ }
117
+
118
+ &.ck-button_with-text {
119
+ padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);
120
+
121
+ /* stylelint-disable-next-line no-descending-specificity */
122
+ & .ck-button__icon {
123
+ @mixin ck-dir ltr {
124
+ margin-right: var(--ck-spacing-medium);
125
+ }
126
+
127
+ @mixin ck-dir rtl {
128
+ margin-left: var(--ck-spacing-medium);
129
+ }
130
+ }
131
+ }
132
+
133
+ &.ck-button_with-keystroke {
134
+ /* stylelint-disable-next-line no-descending-specificity */
135
+ & .ck-button__label {
136
+ flex-grow: 1;
137
+ }
138
+ }
139
+
140
+ /* A style of the button which is currently on, e.g. its feature is active. */
141
+ &.ck-on {
142
+ @mixin ck-button-colors --ck-color-button-on;
143
+
144
+ color: var(--ck-color-button-on-color);
145
+ }
146
+
147
+ &.ck-button-save {
148
+ color: var(--ck-color-button-save);
149
+ }
150
+
151
+ &.ck-button-cancel {
152
+ color: var(--ck-color-button-cancel);
153
+ }
154
+ }
155
+
156
+ /* A style of the button which handles the primary action. */
157
+ .ck.ck-button-action,
158
+ a.ck.ck-button-action {
159
+ @mixin ck-button-colors --ck-color-button-action;
160
+
161
+ color: var(--ck-color-button-action-text);
162
+ }
163
+
164
+ .ck.ck-button-bold,
165
+ a.ck.ck-button-bold {
166
+ font-weight: bold;
167
+ }
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
7
+
8
+ .ck.ck-button.ck-list-item-button {
9
+ padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));
10
+
11
+ &,
12
+ &.ck-on {
13
+ background: var(--ck-color-list-background);
14
+ color: var(--ck-color-text);
15
+ }
16
+
17
+ &:has(.ck-list-item-button__check-holder) {
18
+ @mixin ck-dir ltr {
19
+ padding-left: var(--ck-spacing-small);
20
+ }
21
+
22
+ @mixin ck-dir rtl {
23
+ padding-right: var(--ck-spacing-small);
24
+ }
25
+ }
26
+
27
+ /*
28
+ * `.ck-on` class and background styling is overridden for `ck-button` in many places.
29
+ * This is a workaround to make sure that the background is not overridden and uses similar
30
+ * selector specificity as the other overrides.
31
+ */
32
+ &:hover:not(.ck-disabled),
33
+ &.ck-button.ck-on:hover,
34
+ &.ck-on:not(.ck-list-item-button_toggleable),
35
+ &.ck-on:hover {
36
+ background: var(--ck-color-list-button-hover-background);
37
+
38
+ &:not(.ck-disabled) {
39
+ color: var(--ck-color-text);
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,134 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_rounded.css";
7
+ @import "../../../mixins/_disabled.css";
8
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
9
+
10
+ /* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature
11
+ of the component, floating–point numbers have been used which, for the default font size
12
+ (see: --ck-font-size-base), will generate simple integers. */
13
+ :root {
14
+ /* 34px at 13px font-size */
15
+ --ck-switch-button-toggle-width: 2.6153846154em;
16
+ /* 14px at 13px font-size */
17
+ --ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);
18
+ --ck-switch-button-translation: calc(
19
+ var(--ck-switch-button-toggle-width) -
20
+ var(--ck-switch-button-toggle-inner-size) -
21
+ 2px /* Border */
22
+ );
23
+ --ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);
24
+ }
25
+
26
+ .ck.ck-button.ck-switchbutton {
27
+ /* Unlike a regular button, the switch button text color and background should never change.
28
+ * Changing toggle switch (background, outline) is enough to carry the information about the
29
+ * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)
30
+ */
31
+ &, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {
32
+ color: inherit;
33
+ background: transparent;
34
+ }
35
+
36
+ & .ck-button__label {
37
+ @mixin ck-dir ltr {
38
+ /* Separate the label from the switch */
39
+ margin-right: calc(2 * var(--ck-spacing-large));
40
+ }
41
+
42
+ @mixin ck-dir rtl {
43
+ /* Separate the label from the switch */
44
+ margin-left: calc(2 * var(--ck-spacing-large));
45
+ }
46
+ }
47
+
48
+ & .ck-button__toggle {
49
+ @mixin ck-rounded-corners;
50
+
51
+ @mixin ck-dir ltr {
52
+ /* Make sure the toggle is always to the right as far as possible. */
53
+ margin-left: auto;
54
+ }
55
+
56
+ @mixin ck-dir rtl {
57
+ /* Make sure the toggle is always to the left as far as possible. */
58
+ margin-right: auto;
59
+ }
60
+
61
+ /* Apply some smooth transition to the box-shadow and border. */
62
+ /* Gently animate the background color of the toggle switch */
63
+ transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;
64
+ border: 1px solid transparent;
65
+ width: var(--ck-switch-button-toggle-width);
66
+ background: var(--ck-color-switch-button-off-background);
67
+
68
+ & .ck-button__toggle__inner {
69
+ @mixin ck-rounded-corners {
70
+ border-radius: calc(.5 * var(--ck-border-radius));
71
+ }
72
+
73
+ width: var(--ck-switch-button-toggle-inner-size);
74
+ height: var(--ck-switch-button-toggle-inner-size);
75
+ background: var(--ck-color-switch-button-inner-background);
76
+
77
+ /* Gently animate the inner part of the toggle switch */
78
+ transition: all 300ms ease;
79
+
80
+ @media (prefers-reduced-motion: reduce) {
81
+ transition: none;
82
+ }
83
+ }
84
+
85
+ &:hover {
86
+ background: var(--ck-color-switch-button-off-hover-background);
87
+
88
+ & .ck-button__toggle__inner {
89
+ box-shadow: var(--ck-switch-button-inner-hover-shadow);
90
+ }
91
+ }
92
+ }
93
+
94
+ &.ck-disabled .ck-button__toggle {
95
+ @mixin ck-disabled;
96
+ }
97
+
98
+ /* Overriding default .ck-button:focus styles + an outline around the toogle */
99
+ &:focus {
100
+ border-color: transparent;
101
+ outline: none;
102
+ box-shadow: none;
103
+
104
+ & .ck-button__toggle {
105
+ box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);
106
+ outline-offset: 1px;
107
+ outline: var(--ck-focus-ring);
108
+ }
109
+ }
110
+
111
+ /* stylelint-disable-next-line no-descending-specificity */
112
+ &.ck-on {
113
+ & .ck-button__toggle {
114
+ background: var(--ck-color-switch-button-on-background);
115
+
116
+ &:hover {
117
+ background: var(--ck-color-switch-button-on-hover-background);
118
+ }
119
+
120
+ & .ck-button__toggle__inner {
121
+ /*
122
+ * Move the toggle switch to the right. It will be animated.
123
+ */
124
+ @mixin ck-dir ltr {
125
+ transform: translateX( var( --ck-switch-button-translation ) );
126
+ }
127
+
128
+ @mixin ck-dir rtl {
129
+ transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ :root {
7
+ --ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));
8
+ }
9
+
10
+ .ck.ck-collapsible {
11
+ & > .ck.ck-button {
12
+ width: 100%;
13
+ font-weight: bold;
14
+ border-radius: 0;
15
+ color: inherit;
16
+
17
+ &:focus {
18
+ background: transparent;
19
+ }
20
+
21
+ &:active, &:not(:focus), &:hover:not(:focus) {
22
+ background: transparent;
23
+ border-color: transparent;
24
+ box-shadow: none;
25
+ }
26
+
27
+ & > .ck-icon {
28
+ margin-right: var(--ck-spacing-medium);
29
+ width: var(--ck-collapsible-arrow-size);
30
+ }
31
+ }
32
+
33
+ & > .ck-collapsible__children {
34
+ padding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);
35
+ }
36
+
37
+ &.ck-collapsible_collapsed {
38
+ & > .ck.ck-button .ck-icon {
39
+ transform: rotate(-90deg);
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,94 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_rounded.css";
7
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
8
+
9
+ :root {
10
+ --ck-color-grid-tile-size: 24px;
11
+
12
+ /* Not using global colors here because these may change but some colors in a pallette
13
+ * require special treatment. For instance, this ensures no matter what the UI text color is,
14
+ * the check icon will look good on the black color tile. */
15
+ --ck-color-color-grid-check-icon: hsl(212, 81%, 46%);
16
+ }
17
+
18
+ .ck.ck-color-grid {
19
+ grid-gap: 5px;
20
+ padding: 8px;
21
+ }
22
+
23
+ .ck.ck-color-grid__tile {
24
+ transition: .2s ease box-shadow;
25
+
26
+ @mixin ck-media-default-colors {
27
+ width: var(--ck-color-grid-tile-size);
28
+ height: var(--ck-color-grid-tile-size);
29
+ min-width: var(--ck-color-grid-tile-size);
30
+ min-height: var(--ck-color-grid-tile-size);
31
+ padding: 0;
32
+ border: 0;
33
+
34
+ &.ck-on,
35
+ &:focus:not( .ck-disabled ),
36
+ &:hover:not( .ck-disabled ) {
37
+ /* Disable the default .ck-button's border ring. */
38
+ border: 0;
39
+ }
40
+
41
+ &.ck-color-selector__color-tile_bordered {
42
+ box-shadow: 0 0 0 1px var(--ck-color-base-border);
43
+ }
44
+
45
+ &.ck-on {
46
+ box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);
47
+ }
48
+
49
+ &:focus:not( .ck-disabled ),
50
+ &:hover:not( .ck-disabled ) {
51
+ box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
52
+ }
53
+ }
54
+
55
+ /*
56
+ * In high contrast mode, the colors are replaced with text labels.
57
+ * See https://github.com/ckeditor/ckeditor5/issues/14907.
58
+ */
59
+ @mixin ck-media-forced-colors {
60
+ width: unset;
61
+ height: unset;
62
+ min-width: unset;
63
+ min-height: unset;
64
+ padding: 0 var(--ck-spacing-small);
65
+
66
+ & .ck-button__label {
67
+ display: inline-block;
68
+ }
69
+ }
70
+
71
+ @media (prefers-reduced-motion: reduce) {
72
+ transition: none;
73
+ }
74
+
75
+ &.ck-disabled {
76
+ cursor: unset;
77
+ transition: unset;
78
+ }
79
+
80
+ & .ck.ck-icon {
81
+ display: none;
82
+ color: var(--ck-color-color-grid-check-icon);
83
+ }
84
+
85
+ &.ck-on {
86
+ & .ck.ck-icon {
87
+ display: block;
88
+ }
89
+ }
90
+ }
91
+
92
+ .ck.ck-color-grid__label {
93
+ padding: 0 var(--ck-spacing-standard);
94
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
7
+
8
+ .ck.ck-color-selector {
9
+ /* View fragment with color grids. */
10
+ & .ck-color-grids-fragment {
11
+ & .ck-button.ck-color-selector__remove-color,
12
+ & .ck-button.ck-color-selector__color-picker {
13
+ width: 100%;
14
+ }
15
+
16
+ & .ck-button.ck-color-selector__color-picker {
17
+ padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
18
+ border-bottom-left-radius: 0;
19
+ border-bottom-right-radius: 0;
20
+
21
+ &:not(:focus) {
22
+ border-top: 1px solid var(--ck-color-base-border);
23
+ }
24
+
25
+ & .ck.ck-icon {
26
+ @mixin ck-dir ltr {
27
+ margin-right: var(--ck-spacing-standard);
28
+ }
29
+
30
+ @mixin ck-dir rtl {
31
+ margin-left: var(--ck-spacing-standard);
32
+ }
33
+ }
34
+ }
35
+
36
+ & label.ck.ck-color-grid__label {
37
+ font-weight: unset;
38
+ }
39
+ }
40
+
41
+ /* View fragment with a color picker. */
42
+ & .ck-color-picker-fragment {
43
+ & .ck.ck-color-picker {
44
+ padding: 8px;
45
+
46
+ & .hex-color-picker {
47
+ height: 100px;
48
+ min-width: 180px;
49
+
50
+ &::part(saturation) {
51
+ border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
52
+ }
53
+
54
+ &::part(hue) {
55
+ border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);
56
+ }
57
+
58
+ &::part(saturation-pointer),
59
+ &::part(hue-pointer) {
60
+ width: 15px;
61
+ height: 15px;
62
+ }
63
+ }
64
+ }
65
+
66
+ & .ck.ck-color-selector_action-bar {
67
+ padding: 0 8px 8px;
68
+ }
69
+ }
70
+ }