@ckeditor/ckeditor5-theme-lark 0.0.0-nightly-20260129.0 → 0.0.0-nightly-next-20260129.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 (116) hide show
  1. package/dist/index-editor.css +80 -216
  2. package/dist/index.css +80 -252
  3. package/dist/index.css.map +1 -1
  4. package/package.json +18 -16
  5. package/theme/ckeditor5-bookmark/bookmark.css +0 -68
  6. package/theme/ckeditor5-bookmark/bookmarkform.css +0 -20
  7. package/theme/ckeditor5-bookmark/bookmarktoolbar.css +0 -27
  8. package/theme/ckeditor5-clipboard/clipboard.css +0 -89
  9. package/theme/ckeditor5-code-block/codeblock.css +0 -28
  10. package/theme/ckeditor5-editor-classic/classiceditor.css +0 -48
  11. package/theme/ckeditor5-engine/placeholder.css +0 -39
  12. package/theme/ckeditor5-find-and-replace/findandreplaceform.css +0 -194
  13. package/theme/ckeditor5-heading/heading.css +0 -15
  14. package/theme/ckeditor5-horizontal-line/horizontalline.css +0 -10
  15. package/theme/ckeditor5-html-embed/htmlembed.css +0 -156
  16. package/theme/ckeditor5-image/imagecustomresizeform.css +0 -22
  17. package/theme/ckeditor5-image/imageinsert.css +0 -66
  18. package/theme/ckeditor5-image/imageupload.css +0 -4
  19. package/theme/ckeditor5-image/imageuploadicon.css +0 -108
  20. package/theme/ckeditor5-image/imageuploadloader.css +0 -50
  21. package/theme/ckeditor5-image/imageuploadprogress.css +0 -33
  22. package/theme/ckeditor5-image/textalternativeform.css +0 -22
  23. package/theme/ckeditor5-link/link.css +0 -30
  24. package/theme/ckeditor5-link/linkform.css +0 -58
  25. package/theme/ckeditor5-link/linkimage.css +0 -43
  26. package/theme/ckeditor5-link/linkproperties.css +0 -20
  27. package/theme/ckeditor5-link/linkprovideritems.css +0 -50
  28. package/theme/ckeditor5-link/linktoolbar.css +0 -66
  29. package/theme/ckeditor5-list/listproperties.css +0 -62
  30. package/theme/ckeditor5-list/liststyles.css +0 -40
  31. package/theme/ckeditor5-media-embed/mediaembedediting.css +0 -109
  32. package/theme/ckeditor5-mention/mention.css +0 -14
  33. package/theme/ckeditor5-restricted-editing/restrictedediting.css +0 -69
  34. package/theme/ckeditor5-special-characters/charactergrid.css +0 -51
  35. package/theme/ckeditor5-special-characters/characterinfo.css +0 -26
  36. package/theme/ckeditor5-special-characters/specialcharacters.css +0 -32
  37. package/theme/ckeditor5-style/style.css +0 -8
  38. package/theme/ckeditor5-style/stylegrid.css +0 -98
  39. package/theme/ckeditor5-style/stylegroup.css +0 -16
  40. package/theme/ckeditor5-style/stylepanel.css +0 -14
  41. package/theme/ckeditor5-table/colorinput.css +0 -103
  42. package/theme/ckeditor5-table/formrow-experimental.css +0 -24
  43. package/theme/ckeditor5-table/formrow.css +0 -28
  44. package/theme/ckeditor5-table/inserttable.css +0 -46
  45. package/theme/ckeditor5-table/tablecellproperties-experimental.css +0 -131
  46. package/theme/ckeditor5-table/tablecellproperties.css +0 -25
  47. package/theme/ckeditor5-table/tableediting.css +0 -73
  48. package/theme/ckeditor5-table/tableform-experimental.css +0 -104
  49. package/theme/ckeditor5-table/tableform.css +0 -90
  50. package/theme/ckeditor5-table/tablelayout.css +0 -157
  51. package/theme/ckeditor5-table/tableproperties-experimental.css +0 -45
  52. package/theme/ckeditor5-table/tableproperties.css +0 -26
  53. package/theme/ckeditor5-table/tableselection.css +0 -46
  54. package/theme/ckeditor5-ui/components/autocomplete/autocomplete.css +0 -36
  55. package/theme/ckeditor5-ui/components/button/button.css +0 -167
  56. package/theme/ckeditor5-ui/components/button/listitembutton.css +0 -42
  57. package/theme/ckeditor5-ui/components/button/switchbutton.css +0 -134
  58. package/theme/ckeditor5-ui/components/collapsible/collapsible.css +0 -42
  59. package/theme/ckeditor5-ui/components/colorgrid/colorgrid.css +0 -94
  60. package/theme/ckeditor5-ui/components/colorselector/colorselector.css +0 -70
  61. package/theme/ckeditor5-ui/components/dialog/dialog.css +0 -54
  62. package/theme/ckeditor5-ui/components/dialog/dialogactions.css +0 -14
  63. package/theme/ckeditor5-ui/components/dropdown/dropdown.css +0 -126
  64. package/theme/ckeditor5-ui/components/dropdown/listdropdown.css +0 -33
  65. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenubutton.css +0 -89
  66. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitem.css +0 -12
  67. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitembutton.css +0 -36
  68. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenupanel.css +0 -52
  69. package/theme/ckeditor5-ui/components/dropdown/splitbutton.css +0 -112
  70. package/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css +0 -8
  71. package/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css +0 -103
  72. package/theme/ckeditor5-ui/components/editorui/editorui.css +0 -69
  73. package/theme/ckeditor5-ui/components/form/form.css +0 -4
  74. package/theme/ckeditor5-ui/components/formheader/formheader.css +0 -47
  75. package/theme/ckeditor5-ui/components/icon/icon.css +0 -39
  76. package/theme/ckeditor5-ui/components/input/input.css +0 -81
  77. package/theme/ckeditor5-ui/components/label/label.css +0 -8
  78. package/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css +0 -131
  79. package/theme/ckeditor5-ui/components/labeledinput/labeledinput.css +0 -17
  80. package/theme/ckeditor5-ui/components/list/list.css +0 -114
  81. package/theme/ckeditor5-ui/components/menubar/menubar.css +0 -15
  82. package/theme/ckeditor5-ui/components/menubar/menubarmenu.css +0 -13
  83. package/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css +0 -104
  84. package/theme/ckeditor5-ui/components/menubar/menubarmenulistitem.css +0 -12
  85. package/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css +0 -36
  86. package/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css +0 -70
  87. package/theme/ckeditor5-ui/components/panel/balloonpanel.css +0 -207
  88. package/theme/ckeditor5-ui/components/panel/balloonrotator.css +0 -33
  89. package/theme/ckeditor5-ui/components/panel/fakepanel.css +0 -46
  90. package/theme/ckeditor5-ui/components/panel/stickypanel.css +0 -16
  91. package/theme/ckeditor5-ui/components/responsive-form/responsiveform.css +0 -82
  92. package/theme/ckeditor5-ui/components/search/search.css +0 -106
  93. package/theme/ckeditor5-ui/components/spinner/spinner.css +0 -32
  94. package/theme/ckeditor5-ui/components/textarea/textarea.css +0 -12
  95. package/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css +0 -14
  96. package/theme/ckeditor5-ui/components/toolbar/toolbar.css +0 -203
  97. package/theme/ckeditor5-ui/components/tooltip/tooltip.css +0 -38
  98. package/theme/ckeditor5-ui/globals/_colors.css +0 -123
  99. package/theme/ckeditor5-ui/globals/_disabled.css +0 -11
  100. package/theme/ckeditor5-ui/globals/_focus.css +0 -31
  101. package/theme/ckeditor5-ui/globals/_fonts.css +0 -16
  102. package/theme/ckeditor5-ui/globals/_reset.css +0 -97
  103. package/theme/ckeditor5-ui/globals/_rounded.css +0 -11
  104. package/theme/ckeditor5-ui/globals/_shadow.css +0 -21
  105. package/theme/ckeditor5-ui/globals/_spacing.css +0 -16
  106. package/theme/ckeditor5-ui/globals/globals.css +0 -13
  107. package/theme/ckeditor5-ui/mixins/_button.css +0 -29
  108. package/theme/ckeditor5-widget/widget.css +0 -208
  109. package/theme/ckeditor5-widget/widgetresize.css +0 -44
  110. package/theme/ckeditor5-widget/widgettypearound.css +0 -318
  111. package/theme/index.css +0 -109
  112. package/theme/mixins/_disabled.css +0 -11
  113. package/theme/mixins/_focus.css +0 -13
  114. package/theme/mixins/_rounded.css +0 -19
  115. package/theme/mixins/_shadow.css +0 -18
  116. package/theme/theme.css +0 -4
@@ -1,11 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- /**
7
- * Default border-radius value.
8
- */
9
- :root{
10
- --ck-border-radius: 2px;
11
- }
@@ -1,21 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- :root {
7
- /**
8
- * A visual style of element's inner shadow (i.e. input).
9
- */
10
- --ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;
11
-
12
- /**
13
- * A visual style of element's drop shadow (i.e. panel).
14
- */
15
- --ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);
16
-
17
- /**
18
- * A visual style of element's active shadow (i.e. comment or suggestion).
19
- */
20
- --ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);
21
- }
@@ -1,16 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- :root {
7
- --ck-spacing-unit: 0.6em;
8
- --ck-spacing-extra-large: calc(var(--ck-spacing-unit) * 2);
9
- --ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5);
10
- --ck-spacing-standard: var(--ck-spacing-unit);
11
- --ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8);
12
- --ck-spacing-medium-small: calc(var(--ck-spacing-unit) * 0.667);
13
- --ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5);
14
- --ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3);
15
- --ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16);
16
- }
@@ -1,13 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- @import "./_colors.css";
7
- @import "./_disabled.css";
8
- @import "./_focus.css";
9
- @import "./_fonts.css";
10
- @import "./_reset.css";
11
- @import "./_rounded.css";
12
- @import "./_shadow.css";
13
- @import "./_spacing.css";
@@ -1,29 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- /**
7
- * Implements a button of given background color.
8
- *
9
- * @param {String} $background - Background color of the button.
10
- * @param {String} $border - Border color of the button.
11
- */
12
- @define-mixin ck-button-colors $prefix {
13
- background: var($(prefix)-background);
14
-
15
- &:not(.ck-disabled) {
16
- &:hover {
17
- background: var($(prefix)-hover-background);
18
- }
19
-
20
- &:active {
21
- background: var($(prefix)-active-background);
22
- }
23
- }
24
-
25
- /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
26
- &.ck-disabled {
27
- background: var($(prefix)-disabled-background);
28
- }
29
- }
@@ -1,208 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- @import "../mixins/_focus.css";
7
- @import "../mixins/_shadow.css";
8
- @import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
9
-
10
- :root {
11
- --ck-widget-outline-thickness: 3px;
12
- --ck-widget-handler-icon-size: 16px;
13
- --ck-widget-handler-animation-duration: 200ms;
14
- --ck-widget-handler-animation-curve: ease;
15
-
16
- --ck-color-widget-blurred-border: hsl(0, 0%, 87%);
17
- --ck-color-widget-hover-border: hsl(43, 100%, 62%);
18
- --ck-color-widget-editable-focus-background: var(--ck-color-base-background);
19
- --ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);
20
- }
21
-
22
- .ck .ck-widget {
23
- outline-width: var(--ck-widget-outline-thickness);
24
- outline-style: solid;
25
- outline-color: transparent;
26
- transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
27
-
28
- @media (prefers-reduced-motion: reduce) {
29
- transition: none;
30
- }
31
-
32
- &.ck-widget_selected,
33
- &.ck-widget_selected:hover {
34
- outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);
35
- }
36
-
37
- &:hover {
38
- outline-color: var(--ck-color-widget-hover-border);
39
- }
40
- }
41
-
42
- .ck .ck-editor__nested-editable {
43
- border: 1px solid transparent;
44
-
45
- /* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.
46
- These styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */
47
- &.ck-editor__nested-editable_focused,
48
- &:focus {
49
- @mixin ck-box-shadow var(--ck-inner-shadow);
50
- @mixin ck-media-default-colors {
51
- background-color: var(--ck-color-widget-editable-focus-background);
52
- }
53
-
54
- /**
55
- * Focus border should not be applied to table cells because it overrides the default table cell border color.
56
- * In other words - in some scenarios, the part of the table cell border has focus color style, which is not expected behavior
57
- * because it should be the same as the table cell border color.
58
- */
59
- &:not(td, th) {
60
- @mixin ck-focus-ring;
61
- }
62
- }
63
- }
64
-
65
- .ck .ck-widget.ck-widget_with-selection-handle {
66
- & .ck-widget__selection-handle {
67
- padding: 4px;
68
- box-sizing: border-box;
69
-
70
- /* Background and opacity will be animated as the handler shows up or the widget gets selected. */
71
- background-color: transparent;
72
- opacity: 0;
73
-
74
- /* Transition:
75
- * background-color for the .ck-widget_selected state change,
76
- * visibility for hiding the handler,
77
- * opacity for the proper look of the icon when the handler disappears. */
78
- transition:
79
- background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),
80
- visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),
81
- opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
82
-
83
- /* Make only top corners round. */
84
- border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
85
-
86
- /* Place the drag handler outside the widget wrapper. */
87
- transform: translateY(-100%);
88
- left: calc(0px - var(--ck-widget-outline-thickness));
89
- top: 0;
90
-
91
- @media (prefers-reduced-motion: reduce) {
92
- transition: none;
93
- }
94
-
95
- & .ck-icon {
96
- /* Make sure the dimensions of the icon are independent of the fon-size of the content. */
97
- width: var(--ck-widget-handler-icon-size);
98
- height: var(--ck-widget-handler-icon-size);
99
- color: var(--ck-color-widget-drag-handler-icon-color);
100
-
101
- /* The "selected" part of the icon is invisible by default */
102
- & .ck-icon__selected-indicator {
103
- opacity: 0;
104
-
105
- /* Note: The animation is longer on purpose. Simply feels better. */
106
- transition: opacity 300ms var(--ck-widget-handler-animation-curve);
107
-
108
- @media (prefers-reduced-motion: reduce) {
109
- transition: none;
110
- }
111
- }
112
- }
113
-
114
- /* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */
115
- &:hover .ck-icon .ck-icon__selected-indicator {
116
- opacity: 1;
117
- }
118
- }
119
-
120
- /* Show the selection handler on mouse hover over the widget, but not for nested widgets. */
121
- &:hover > .ck-widget__selection-handle {
122
- opacity: 1;
123
- background-color: var(--ck-color-widget-hover-border);
124
- }
125
-
126
- /* Show the selection handler when the widget is selected, but not for nested widgets. */
127
- &.ck-widget_selected,
128
- &.ck-widget_selected:hover {
129
- & > .ck-widget__selection-handle {
130
- opacity: 1;
131
- background-color: var(--ck-color-focus-border);
132
-
133
- /* When the widget is selected, notify the user using the proper look of the icon. */
134
- & .ck-icon .ck-icon__selected-indicator {
135
- opacity: 1;
136
- }
137
- }
138
- }
139
- }
140
-
141
- /* In a RTL environment, align the selection handler to the right side of the widget */
142
- /* stylelint-disable-next-line no-descending-specificity */
143
- .ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
144
- left: auto;
145
- right: calc(0px - var(--ck-widget-outline-thickness));
146
- }
147
-
148
- /* https://github.com/ckeditor/ckeditor5/issues/6415 */
149
- .ck.ck-editor__editable.ck-read-only .ck-widget {
150
- /* Prevent the :hover outline from showing up because of the used outline-color transition. */
151
- transition: none;
152
-
153
- &:not(.ck-widget_selected) {
154
- /* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.
155
- * See: https://github.com/ckeditor/ckeditor5/issues/1261
156
- *
157
- * Leave the unit because this custom property is used in calc() by other features.
158
- * See: https://github.com/ckeditor/ckeditor5/issues/6775
159
- */
160
- --ck-widget-outline-thickness: 0px;
161
- }
162
-
163
- &.ck-widget_with-selection-handle {
164
- & .ck-widget__selection-handle,
165
- & .ck-widget__selection-handle:hover {
166
- background: var(--ck-color-widget-blurred-border);
167
- }
168
- }
169
- }
170
-
171
- /*
172
- * Hide the outline of all widget parents when the widget is being hovered.
173
- */
174
- .ck .ck-widget:has( .ck-widget.table:hover ) {
175
- outline-color: transparent;
176
- }
177
-
178
- /* Hide the selection handle on mouse hover over the widget of all the widget parents. */
179
- .ck .ck-widget.ck-widget_with-selection-handle:has( .ck-widget.table:hover ) > .ck-widget__selection-handle {
180
- opacity: 0;
181
- visibility: hidden;
182
- }
183
-
184
- /* Style the widget when it's selected but the editable it belongs to lost focus. */
185
- /* stylelint-disable-next-line no-descending-specificity */
186
- .ck.ck-editor__editable.ck-blurred .ck-widget {
187
- &.ck-widget_selected,
188
- &.ck-widget_selected:hover {
189
- outline-color: var(--ck-color-widget-blurred-border);
190
-
191
- &.ck-widget_with-selection-handle {
192
- & > .ck-widget__selection-handle,
193
- & > .ck-widget__selection-handle:hover {
194
- background: var(--ck-color-widget-blurred-border);
195
- }
196
- }
197
- }
198
- }
199
-
200
- .ck.ck-editor__editable:not(.ck-pagination-view) > .ck-widget.ck-widget_with-selection-handle:first-child,
201
- .ck.ck-editor__editable:not(.ck-pagination-view) blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {
202
- /* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.
203
- In fact, anything with overflow: hidden.
204
- https://github.com/ckeditor/ckeditor5-block-quote/issues/28
205
- https://github.com/ckeditor/ckeditor5-widget/issues/44
206
- https://github.com/ckeditor/ckeditor5-widget/issues/66 */
207
- margin-top: calc(1em + var(--ck-widget-handler-icon-size));
208
- }
@@ -1,44 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- :root {
7
- --ck-resizer-size: 10px;
8
-
9
- /* Set the resizer with a 50% offset. */
10
- --ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);
11
- --ck-resizer-border-width: 1px;
12
- }
13
-
14
- .ck .ck-widget__resizer {
15
- outline: 1px solid var(--ck-color-resizer);
16
- }
17
-
18
- .ck .ck-widget__resizer__handle {
19
- width: var(--ck-resizer-size);
20
- height: var(--ck-resizer-size);
21
- background: var(--ck-color-focus-border);
22
- border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);
23
- border-radius: var(--ck-resizer-border-radius);
24
-
25
- &.ck-widget__resizer__handle-top-left {
26
- top: var(--ck-resizer-offset);
27
- left: var(--ck-resizer-offset);
28
- }
29
-
30
- &.ck-widget__resizer__handle-top-right {
31
- top: var(--ck-resizer-offset);
32
- right: var(--ck-resizer-offset);
33
- }
34
-
35
- &.ck-widget__resizer__handle-bottom-right {
36
- bottom: var(--ck-resizer-offset);
37
- right: var(--ck-resizer-offset);
38
- }
39
-
40
- &.ck-widget__resizer__handle-bottom-left {
41
- bottom: var(--ck-resizer-offset);
42
- left: var(--ck-resizer-offset);
43
- }
44
- }
@@ -1,318 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
-
6
- :root {
7
- --ck-widget-type-around-button-size: 20px;
8
- --ck-color-widget-type-around-button-active: var(--ck-color-focus-border);
9
- --ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);
10
- --ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);
11
- --ck-color-widget-type-around-button-radar-start-alpha: 0;
12
- --ck-color-widget-type-around-button-radar-end-alpha: .3;
13
- --ck-color-widget-type-around-button-icon: var(--ck-color-base-background);
14
- }
15
-
16
- @define-mixin ck-widget-type-around-button-visible {
17
- opacity: 1;
18
- pointer-events: auto;
19
- }
20
-
21
- @define-mixin ck-widget-type-around-button-hidden {
22
- opacity: 0;
23
- pointer-events: none;
24
- }
25
-
26
- .ck .ck-widget {
27
- /*
28
- * Styles of the type around buttons
29
- */
30
- & .ck-widget__type-around__button {
31
- width: var(--ck-widget-type-around-button-size);
32
- height: var(--ck-widget-type-around-button-size);
33
- background: var(--ck-color-widget-type-around-button);
34
- border-radius: 100px;
35
- transition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
36
-
37
- @mixin ck-widget-type-around-button-hidden;
38
-
39
- @media (prefers-reduced-motion: reduce) {
40
- transition: none;
41
- }
42
-
43
- & svg {
44
- width: 10px;
45
- height: 8px;
46
- transform: translate(-50%,-50%);
47
- transition: transform .5s ease;
48
- margin-top: 1px;
49
-
50
- @media (prefers-reduced-motion: reduce) {
51
- transition: none;
52
- }
53
-
54
- & * {
55
- stroke-dasharray: 10;
56
- stroke-dashoffset: 0;
57
-
58
- fill: none;
59
- stroke: var(--ck-color-widget-type-around-button-icon);
60
- stroke-width: 1.5px;
61
- stroke-linecap: round;
62
- stroke-linejoin: round;
63
- }
64
-
65
- & line {
66
- stroke-dasharray: 7;
67
- }
68
- }
69
-
70
- &:hover {
71
- /*
72
- * Display the "sonar" around the button when hovered.
73
- */
74
- animation: ck-widget-type-around-button-sonar 1s ease infinite;
75
-
76
- /*
77
- * Animate active button's icon.
78
- */
79
- & svg {
80
- & polyline {
81
- animation: ck-widget-type-around-arrow-dash 2s linear;
82
- }
83
-
84
- & line {
85
- animation: ck-widget-type-around-arrow-tip-dash 2s linear;
86
- }
87
- }
88
-
89
- @media (prefers-reduced-motion: reduce) {
90
- animation: none;
91
-
92
- & svg {
93
- & polyline {
94
- animation: none;
95
- }
96
-
97
- & line {
98
- animation: none;
99
- }
100
- }
101
- }
102
- }
103
- }
104
-
105
- /*
106
- * Show type around buttons when the widget is being hovered.
107
- */
108
- &:hover {
109
- & > .ck-widget__type-around > .ck-widget__type-around__button {
110
- @mixin ck-widget-type-around-button-visible;
111
- }
112
- }
113
-
114
- /*
115
- * Styles for the buttons when the widget is NOT selected (but the buttons are visible
116
- * and still can be hovered).
117
- */
118
- &:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {
119
- background: var(--ck-color-widget-type-around-button-hover);
120
- }
121
-
122
- /*
123
- * Styles for the buttons when:
124
- * - the widget is selected,
125
- * - or the button is being hovered (regardless of the widget state).
126
- */
127
- &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
128
- & > .ck-widget__type-around > .ck-widget__type-around__button:hover {
129
- background: var(--ck-color-widget-type-around-button-active);
130
-
131
- &::after {
132
- width: calc(var(--ck-widget-type-around-button-size) - 2px);
133
- height: calc(var(--ck-widget-type-around-button-size) - 2px);
134
- border-radius: 100px;
135
- background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);
136
- }
137
- }
138
-
139
- &.ck-widget_selected {
140
- /*
141
- * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).
142
- * Despite the widget being physically selected in the model, its outline should disappear.
143
- */
144
- &.ck-widget_type-around_show-fake-caret_before,
145
- &.ck-widget_type-around_show-fake-caret_after {
146
- outline-color: transparent;
147
- }
148
-
149
- /*
150
- * Show type around buttons when the widget gets selected.
151
- */
152
- & > .ck-widget__type-around > .ck-widget__type-around__button {
153
- @mixin ck-widget-type-around-button-visible;
154
- }
155
- }
156
-
157
- /*
158
- * Styles for the "before" button when the widget has a selection handle. Because some space
159
- * is consumed by the handle, the button must be moved slightly to the right to let it breathe.
160
- */
161
- &.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {
162
- margin-left: 20px;
163
- }
164
-
165
- /*
166
- * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
167
- */
168
- & .ck-widget__type-around__fake-caret {
169
- pointer-events: none;
170
- height: 1px;
171
- animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;
172
-
173
- /*
174
- * The semi-transparent-outline+background combo improves the contrast
175
- * when the background underneath the fake caret is dark.
176
- */
177
- outline: solid 1px hsla(0, 0%, 100%, .5);
178
- background: var(--ck-color-base-text);
179
- }
180
-
181
- &.ck-widget_type-around_show-fake-caret_before,
182
- &.ck-widget_type-around_show-fake-caret_after {
183
- /*
184
- * When the "fake caret" is visible we simulate that the widget is not selected
185
- * (despite being physically selected), so the outline color should be for the
186
- * unselected widget.
187
- */
188
- &.ck-widget_selected:hover {
189
- outline-color: var(--ck-color-widget-hover-border);
190
- }
191
-
192
- /*
193
- * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).
194
- * In this state, the type around buttons would collide with the fake carets so they should disappear.
195
- */
196
- & > .ck-widget__type-around > .ck-widget__type-around__button {
197
- @mixin ck-widget-type-around-button-hidden;
198
- }
199
-
200
- /*
201
- * Fake horizontal caret integration with the selection handle. When the caret is visible, simply
202
- * hide the handle because it intersects with the caret (and does not make much sense anyway).
203
- */
204
- &.ck-widget_with-selection-handle {
205
- &.ck-widget_selected,
206
- &.ck-widget_selected:hover {
207
- & > .ck-widget__selection-handle {
208
- opacity: 0
209
- }
210
- }
211
- }
212
-
213
- /*
214
- * Fake horizontal caret integration with the resize UI. When the caret is visible, simply
215
- * hide the resize UI because it creates too much noise. It can be visible when the user
216
- * hovers the widget, though.
217
- */
218
- &.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {
219
- opacity: 0
220
- }
221
- }
222
- }
223
-
224
- /*
225
- * Styles for the "before" button when the widget has a selection handle in an RTL environment.
226
- * The selection handler is aligned to the right side of the widget so there is no need to create
227
- * additional space for it next to the "before" button.
228
- */
229
- .ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {
230
- margin-left: 0;
231
- margin-right: 20px;
232
- }
233
-
234
- /*
235
- * Hide type around buttons when the widget is selected as a child of a selected
236
- * nested editable (e.g. mulit-cell table selection).
237
- *
238
- * See https://github.com/ckeditor/ckeditor5/issues/7263.
239
- */
240
- .ck-editor__nested-editable.ck-editor__editable_selected {
241
- /* stylelint-disable-next-line no-descending-specificity */
242
- & .ck-widget {
243
- &.ck-widget_selected,
244
- &:hover {
245
- & > .ck-widget__type-around > .ck-widget__type-around__button {
246
- @mixin ck-widget-type-around-button-hidden;
247
- }
248
- }
249
- }
250
- }
251
-
252
- /*
253
- * Hide type around buttons of all widget parents when the widget is being hovered.
254
- */
255
- .ck .ck-widget:has( .ck-widget.table:hover ) {
256
- & > .ck-widget__type-around > .ck-widget__type-around__button {
257
- @mixin ck-widget-type-around-button-hidden;
258
- }
259
- }
260
-
261
- /*
262
- * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).
263
- */
264
- .ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {
265
- background: var(--ck-color-widget-type-around-button-blurred-editable);
266
-
267
- & svg * {
268
- stroke: hsl(0,0%,60%);
269
- }
270
- }
271
-
272
- @keyframes ck-widget-type-around-arrow-dash {
273
- 0% {
274
- stroke-dashoffset: 10;
275
- }
276
- 20%, 100% {
277
- stroke-dashoffset: 0;
278
- }
279
- }
280
-
281
- @keyframes ck-widget-type-around-arrow-tip-dash {
282
- 0%, 20% {
283
- stroke-dashoffset: 7;
284
- }
285
- 40%, 100% {
286
- stroke-dashoffset: 0;
287
- }
288
- }
289
-
290
- @keyframes ck-widget-type-around-button-sonar {
291
- 0% {
292
- box-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));
293
- }
294
- 50% {
295
- box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));
296
- }
297
- 100% {
298
- box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));
299
- }
300
- }
301
-
302
- @keyframes ck-widget-type-around-fake-caret-pulse {
303
- 0% {
304
- opacity: 1;
305
- }
306
- 49% {
307
- opacity: 1;
308
- }
309
- 50% {
310
- opacity: 0;
311
- }
312
- 99% {
313
- opacity: 0;
314
- }
315
- 100% {
316
- opacity: 1;
317
- }
318
- }