@ckeditor/ckeditor5-theme-lark 45.0.0-alpha.6 → 45.0.0-alpha.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-theme-lark",
3
- "version": "45.0.0-alpha.6",
3
+ "version": "45.0.0-alpha.8",
4
4
  "description": "A bright theme for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -9,7 +9,7 @@
9
9
  "ckeditor5-theme"
10
10
  ],
11
11
  "dependencies": {
12
- "@ckeditor/ckeditor5-ui": "45.0.0-alpha.6"
12
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.8"
13
13
  },
14
14
  "author": "CKSource (http://cksource.com/)",
15
15
  "license": "SEE LICENSE IN LICENSE.md",
@@ -18,11 +18,6 @@
18
18
  width: 100%;
19
19
  height: 100%;
20
20
 
21
- /* Styles to make the layout table outline visible when the layout table is inside another layout table inside edge cells.
22
- Currently, this solution works on every browser except Safari. */
23
- overflow: clip;
24
- overflow-clip-margin: var(--ck-widget-outline-thickness);
25
-
26
21
  /* Resetting `border-collapse` property to the user agent styles. */
27
22
  border-collapse: revert;
28
23
 
@@ -100,6 +95,8 @@
100
95
  &.ck-widget__type-around__button_before,
101
96
  &.ck-widget__type-around__button_after {
102
97
  transform: translateY(0);
98
+ /* Same value as inline-image widget because it is after the inline-image in HTML structure */
99
+ z-index: 2;
103
100
  }
104
101
 
105
102
  &.ck-widget__type-around__button_before {
@@ -132,7 +129,9 @@
132
129
  --ck-widget-handler-icon-size: var(--ck-table-layout-widget-handler-icon-size);
133
130
 
134
131
  transform: translateY(calc(0px - var(--ck-widget-outline-thickness)));
135
- z-index: var(--ck-z-default);
132
+ /* Value increased by 1 as in selected inline-image widget
133
+ because it is before the inline-image in HTML structure. */
134
+ z-index: 3;
136
135
  }
137
136
  }
138
137
 
@@ -37,13 +37,6 @@
37
37
  &:hover {
38
38
  outline-color: var(--ck-color-widget-hover-border);
39
39
  }
40
-
41
- /*
42
- * Hide the outline of all widget parents when the widget is being hovered.
43
- */
44
- &:has( .ck-widget:hover ) {
45
- outline-color: transparent;
46
- }
47
40
  }
48
41
 
49
42
  .ck .ck-editor__nested-editable {
@@ -143,12 +136,6 @@
143
136
  }
144
137
  }
145
138
  }
146
-
147
- /* Hide the selection handle on mouse hover over the widget of all the widget parents. */
148
- &:has( .ck-widget:hover ) > .ck-widget__selection-handle {
149
- opacity: 0;
150
- visibility: hidden;
151
- }
152
139
  }
153
140
 
154
141
  /* In a RTL environment, align the selection handler to the right side of the widget */
@@ -181,6 +168,19 @@
181
168
  }
182
169
  }
183
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
184
  /* Style the widget when it's selected but the editable it belongs to lost focus. */
185
185
  /* stylelint-disable-next-line no-descending-specificity */
186
186
  .ck.ck-editor__editable.ck-blurred .ck-widget {
@@ -219,15 +219,6 @@
219
219
  opacity: 0
220
220
  }
221
221
  }
222
-
223
- /*
224
- * Hide type around buttons of all widget parents when the widget is being hovered.
225
- */
226
- &:has( .ck-widget:hover ) {
227
- & > .ck-widget__type-around > .ck-widget__type-around__button {
228
- @mixin ck-widget-type-around-button-hidden;
229
- }
230
- }
231
222
  }
232
223
 
233
224
  /*
@@ -258,6 +249,15 @@
258
249
  }
259
250
  }
260
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
261
  /*
262
262
  * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).
263
263
  */