@ckeditor/ckeditor5-table 48.8.1-alpha.3 → 49.0.0-alpha.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 (251) hide show
  1. package/LICENSE.md +1 -1
  2. package/ckeditor5-metadata.json +12 -1
  3. package/dist/augmentation.d.ts +83 -80
  4. package/dist/commands/insertcolumncommand.d.ts +50 -50
  5. package/dist/commands/insertrowcommand.d.ts +49 -49
  6. package/dist/commands/inserttablecommand.d.ts +48 -43
  7. package/dist/commands/inserttablelayoutcommand.d.ts +39 -34
  8. package/dist/commands/mergecellcommand.d.ts +63 -63
  9. package/dist/commands/mergecellscommand.d.ts +24 -24
  10. package/dist/commands/removecolumncommand.d.ts +24 -24
  11. package/dist/commands/removerowcommand.d.ts +24 -24
  12. package/dist/commands/selectcolumncommand.d.ts +28 -28
  13. package/dist/commands/selectrowcommand.d.ts +28 -28
  14. package/dist/commands/setfooterrowcommand.d.ts +48 -48
  15. package/dist/commands/setheadercolumncommand.d.ts +45 -45
  16. package/dist/commands/setheaderrowcommand.d.ts +48 -48
  17. package/dist/commands/splitcellcommand.d.ts +39 -38
  18. package/dist/converters/downcast.d.ts +77 -77
  19. package/dist/converters/table-caption-post-fixer.d.ts +18 -18
  20. package/dist/converters/table-cell-paragraph-post-fixer.d.ts +30 -30
  21. package/dist/converters/table-cell-refresh-handler.d.ts +16 -16
  22. package/dist/converters/table-layout-post-fixer.d.ts +224 -224
  23. package/dist/converters/table-structure-post-fixer.d.ts +16 -16
  24. package/dist/converters/table-structure-refresh-handler.d.ts +15 -15
  25. package/dist/converters/tableproperties.d.ts +98 -98
  26. package/dist/converters/upcasttable.d.ts +47 -47
  27. package/dist/index-content.css +116 -105
  28. package/dist/index-content.css.map +1 -0
  29. package/dist/index-editor.css +718 -601
  30. package/dist/index-editor.css.map +1 -0
  31. package/dist/index.css +781 -650
  32. package/dist/index.css.map +1 -1
  33. package/dist/index.d.ts +103 -98
  34. package/dist/index.js +13669 -14491
  35. package/dist/index.js.map +1 -1
  36. package/dist/plaintableoutput.d.ts +28 -28
  37. package/dist/table.d.ts +38 -39
  38. package/dist/tablecaption/tablecaptionediting.d.ts +62 -62
  39. package/dist/tablecaption/tablecaptionui.d.ts +18 -18
  40. package/dist/tablecaption/toggletablecaptioncommand.d.ts +61 -61
  41. package/dist/tablecaption/utils.d.ts +31 -31
  42. package/dist/tablecaption.d.ts +22 -23
  43. package/dist/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +27 -27
  44. package/dist/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +32 -32
  45. package/dist/tablecellproperties/commands/tablecellborderstylecommand.d.ts +32 -32
  46. package/dist/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +46 -46
  47. package/dist/tablecellproperties/commands/tablecellheightcommand.d.ts +41 -41
  48. package/dist/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +27 -27
  49. package/dist/tablecellproperties/commands/tablecellpaddingcommand.d.ts +46 -46
  50. package/dist/tablecellproperties/commands/tablecellpropertycommand.d.ts +79 -79
  51. package/dist/tablecellproperties/commands/tablecelltypecommand.d.ts +42 -42
  52. package/dist/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +35 -35
  53. package/dist/tablecellproperties/tablecellpropertiesediting.d.ts +49 -49
  54. package/dist/tablecellproperties/tablecellpropertiesui.d.ts +130 -123
  55. package/dist/tablecellproperties/tablecellpropertiesutils.d.ts +13 -13
  56. package/dist/tablecellproperties/ui/tablecellpropertiesview.d.ts +255 -257
  57. package/dist/tablecellproperties.d.ts +29 -29
  58. package/dist/tablecellwidth/commands/tablecellwidthcommand.d.ts +41 -41
  59. package/dist/tablecellwidth/tablecellwidthediting.d.ts +28 -28
  60. package/dist/tableclipboard.d.ts +79 -79
  61. package/dist/tablecolumnresize/commands/tablecolumnwidthcommand.d.ts +56 -0
  62. package/dist/tablecolumnresize/constants.d.ts +40 -25
  63. package/dist/tablecolumnresize/converters.d.ts +20 -20
  64. package/dist/tablecolumnresize/tablecolumnresizeediting.d.ts +263 -184
  65. package/dist/tablecolumnresize/tablewidthscommand.d.ts +31 -31
  66. package/dist/tablecolumnresize/utils.d.ts +166 -127
  67. package/dist/tablecolumnresize.d.ts +24 -25
  68. package/dist/tableconfig.d.ts +736 -670
  69. package/dist/tableediting.d.ts +98 -99
  70. package/dist/tablekeyboard.d.ts +67 -67
  71. package/dist/tablelayout/commands/tabletypecommand.d.ts +38 -38
  72. package/dist/tablelayout/tablelayoutediting.d.ts +57 -58
  73. package/dist/tablelayout/tablelayoutui.d.ts +27 -27
  74. package/dist/tablelayout.d.ts +25 -25
  75. package/dist/tablemouse/mouseeventsobserver.d.ts +54 -54
  76. package/dist/tablemouse.d.ts +47 -47
  77. package/dist/tableproperties/commands/tablealignmentcommand.d.ts +27 -27
  78. package/dist/tableproperties/commands/tablebackgroundcolorcommand.d.ts +27 -27
  79. package/dist/tableproperties/commands/tablebordercolorcommand.d.ts +32 -32
  80. package/dist/tableproperties/commands/tableborderstylecommand.d.ts +32 -32
  81. package/dist/tableproperties/commands/tableborderwidthcommand.d.ts +46 -46
  82. package/dist/tableproperties/commands/tableheightcommand.d.ts +41 -41
  83. package/dist/tableproperties/commands/tablepropertycommand.d.ts +64 -64
  84. package/dist/tableproperties/commands/tablewidthcommand.d.ts +41 -41
  85. package/dist/tableproperties/tablepropertiesediting.d.ts +48 -48
  86. package/dist/tableproperties/tablepropertiesui.d.ts +131 -131
  87. package/dist/tableproperties/ui/tablepropertiesview.d.ts +210 -207
  88. package/dist/tableproperties.d.ts +29 -29
  89. package/dist/tablescroll/tablescrollediting.d.ts +91 -0
  90. package/dist/tablescroll/watchers.d.ts +29 -0
  91. package/dist/tablescroll.d.ts +23 -0
  92. package/dist/tableselection.d.ts +105 -106
  93. package/dist/tabletoolbar.d.ts +31 -31
  94. package/dist/tableui.d.ts +53 -53
  95. package/dist/tableutils.d.ts +532 -532
  96. package/dist/tablewalker.d.ts +342 -350
  97. package/dist/translations/af.js +1 -1
  98. package/dist/translations/af.umd.js +5 -3
  99. package/dist/translations/ar.js +1 -1
  100. package/dist/translations/ar.umd.js +5 -3
  101. package/dist/translations/ast.js +1 -1
  102. package/dist/translations/ast.umd.js +5 -3
  103. package/dist/translations/az.js +1 -1
  104. package/dist/translations/az.umd.js +5 -3
  105. package/dist/translations/be.js +1 -1
  106. package/dist/translations/be.umd.js +5 -3
  107. package/dist/translations/bg.js +1 -1
  108. package/dist/translations/bg.umd.js +5 -3
  109. package/dist/translations/bn.js +1 -1
  110. package/dist/translations/bn.umd.js +5 -3
  111. package/dist/translations/bs.js +1 -1
  112. package/dist/translations/bs.umd.js +5 -3
  113. package/dist/translations/ca.js +1 -1
  114. package/dist/translations/ca.umd.js +5 -3
  115. package/dist/translations/cs.js +1 -1
  116. package/dist/translations/cs.umd.js +5 -3
  117. package/dist/translations/da.js +1 -1
  118. package/dist/translations/da.umd.js +5 -3
  119. package/dist/translations/de-ch.js +1 -1
  120. package/dist/translations/de-ch.umd.js +5 -3
  121. package/dist/translations/de.js +1 -1
  122. package/dist/translations/de.umd.js +5 -3
  123. package/dist/translations/el.js +1 -1
  124. package/dist/translations/el.umd.js +5 -3
  125. package/dist/translations/en-au.js +1 -1
  126. package/dist/translations/en-au.umd.js +5 -3
  127. package/dist/translations/en-gb.js +1 -1
  128. package/dist/translations/en-gb.umd.js +5 -3
  129. package/dist/translations/en.js +1 -1
  130. package/dist/translations/en.umd.js +5 -3
  131. package/dist/translations/eo.js +1 -1
  132. package/dist/translations/eo.umd.js +5 -3
  133. package/dist/translations/es-co.js +1 -1
  134. package/dist/translations/es-co.umd.js +5 -3
  135. package/dist/translations/es.js +1 -1
  136. package/dist/translations/es.umd.js +5 -3
  137. package/dist/translations/et.js +1 -1
  138. package/dist/translations/et.umd.js +5 -3
  139. package/dist/translations/eu.js +1 -1
  140. package/dist/translations/eu.umd.js +5 -3
  141. package/dist/translations/fa.js +1 -1
  142. package/dist/translations/fa.umd.js +5 -3
  143. package/dist/translations/fi.js +1 -1
  144. package/dist/translations/fi.umd.js +5 -3
  145. package/dist/translations/fr.js +1 -1
  146. package/dist/translations/fr.umd.js +5 -3
  147. package/dist/translations/gl.js +1 -1
  148. package/dist/translations/gl.umd.js +5 -3
  149. package/dist/translations/gu.js +1 -1
  150. package/dist/translations/gu.umd.js +5 -3
  151. package/dist/translations/he.js +1 -1
  152. package/dist/translations/he.umd.js +5 -3
  153. package/dist/translations/hi.js +1 -1
  154. package/dist/translations/hi.umd.js +5 -3
  155. package/dist/translations/hr.js +1 -1
  156. package/dist/translations/hr.umd.js +5 -3
  157. package/dist/translations/hu.js +1 -1
  158. package/dist/translations/hu.umd.js +5 -3
  159. package/dist/translations/hy.js +1 -1
  160. package/dist/translations/hy.umd.js +5 -3
  161. package/dist/translations/id.js +1 -1
  162. package/dist/translations/id.umd.js +5 -3
  163. package/dist/translations/it.js +1 -1
  164. package/dist/translations/it.umd.js +5 -3
  165. package/dist/translations/ja.js +1 -1
  166. package/dist/translations/ja.umd.js +5 -3
  167. package/dist/translations/jv.js +1 -1
  168. package/dist/translations/jv.umd.js +5 -3
  169. package/dist/translations/kk.js +1 -1
  170. package/dist/translations/kk.umd.js +5 -3
  171. package/dist/translations/km.js +1 -1
  172. package/dist/translations/km.umd.js +5 -3
  173. package/dist/translations/kn.js +1 -1
  174. package/dist/translations/kn.umd.js +5 -3
  175. package/dist/translations/ko.js +1 -1
  176. package/dist/translations/ko.umd.js +5 -3
  177. package/dist/translations/ku.js +1 -1
  178. package/dist/translations/ku.umd.js +5 -3
  179. package/dist/translations/lt.js +1 -1
  180. package/dist/translations/lt.umd.js +5 -3
  181. package/dist/translations/lv.js +1 -1
  182. package/dist/translations/lv.umd.js +5 -3
  183. package/dist/translations/ms.js +1 -1
  184. package/dist/translations/ms.umd.js +5 -3
  185. package/dist/translations/nb.js +1 -1
  186. package/dist/translations/nb.umd.js +5 -3
  187. package/dist/translations/ne.js +1 -1
  188. package/dist/translations/ne.umd.js +5 -3
  189. package/dist/translations/nl.js +1 -1
  190. package/dist/translations/nl.umd.js +5 -3
  191. package/dist/translations/no.js +1 -1
  192. package/dist/translations/no.umd.js +5 -3
  193. package/dist/translations/oc.js +1 -1
  194. package/dist/translations/oc.umd.js +5 -3
  195. package/dist/translations/pl.js +1 -1
  196. package/dist/translations/pl.umd.js +5 -3
  197. package/dist/translations/pt-br.js +1 -1
  198. package/dist/translations/pt-br.umd.js +5 -3
  199. package/dist/translations/pt.js +1 -1
  200. package/dist/translations/pt.umd.js +5 -3
  201. package/dist/translations/ro.js +1 -1
  202. package/dist/translations/ro.umd.js +5 -3
  203. package/dist/translations/ru.js +1 -1
  204. package/dist/translations/ru.umd.js +5 -3
  205. package/dist/translations/si.js +1 -1
  206. package/dist/translations/si.umd.js +5 -3
  207. package/dist/translations/sk.js +1 -1
  208. package/dist/translations/sk.umd.js +5 -3
  209. package/dist/translations/sl.js +1 -1
  210. package/dist/translations/sl.umd.js +5 -3
  211. package/dist/translations/sq.js +1 -1
  212. package/dist/translations/sq.umd.js +5 -3
  213. package/dist/translations/sr-latn.js +1 -1
  214. package/dist/translations/sr-latn.umd.js +5 -3
  215. package/dist/translations/sr.js +1 -1
  216. package/dist/translations/sr.umd.js +5 -3
  217. package/dist/translations/sv.js +1 -1
  218. package/dist/translations/sv.umd.js +5 -3
  219. package/dist/translations/th.js +1 -1
  220. package/dist/translations/th.umd.js +5 -3
  221. package/dist/translations/ti.js +1 -1
  222. package/dist/translations/ti.umd.js +5 -3
  223. package/dist/translations/tk.js +1 -1
  224. package/dist/translations/tk.umd.js +5 -3
  225. package/dist/translations/tr.js +1 -1
  226. package/dist/translations/tr.umd.js +5 -3
  227. package/dist/translations/tt.js +1 -1
  228. package/dist/translations/tt.umd.js +5 -3
  229. package/dist/translations/ug.js +1 -1
  230. package/dist/translations/ug.umd.js +5 -3
  231. package/dist/translations/uk.js +1 -1
  232. package/dist/translations/uk.umd.js +5 -3
  233. package/dist/translations/ur.js +1 -1
  234. package/dist/translations/ur.umd.js +5 -3
  235. package/dist/translations/uz.js +1 -1
  236. package/dist/translations/uz.umd.js +5 -3
  237. package/dist/translations/vi.js +1 -1
  238. package/dist/translations/vi.umd.js +5 -3
  239. package/dist/translations/zh-cn.js +1 -1
  240. package/dist/translations/zh-cn.umd.js +5 -3
  241. package/dist/translations/zh.js +1 -1
  242. package/dist/translations/zh.umd.js +5 -3
  243. package/dist/ui/colorinputview.d.ts +136 -137
  244. package/dist/ui/inserttableview.d.ts +77 -78
  245. package/dist/utils/common.d.ts +64 -58
  246. package/dist/utils/structure.d.ts +229 -229
  247. package/dist/utils/table-properties.d.ts +92 -92
  248. package/dist/utils/ui/contextualballoon.d.ts +28 -28
  249. package/dist/utils/ui/table-properties.d.ts +130 -192
  250. package/dist/utils/ui/widget.d.ts +22 -22
  251. package/package.json +11 -10
package/dist/index.css CHANGED
@@ -2,218 +2,130 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- .ck-content .table th {
6
- text-align: start;
7
- }
8
-
9
- .ck-content[dir="rtl"] .table th {
10
- text-align: right;
11
- }
12
-
13
- .ck-content[dir="ltr"] .table th {
14
- text-align: left;
15
- }
16
-
17
- .ck-content figure.table:not(.layout-table) {
18
- display: table;
19
- }
20
-
21
- .ck-content figure.table:not(.layout-table) > table {
22
- width: 100%;
23
- height: 100%;
24
- }
25
-
26
- .ck-content .table:not(.layout-table) {
27
- margin: .9em auto;
28
- }
29
-
30
- .ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table {
31
- border-collapse: collapse;
32
- border-spacing: 0;
33
- border: 1px double #b3b3b3;
34
- }
35
-
36
- :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th {
37
- background: #0000000d;
38
- font-weight: bold;
39
- }
40
-
41
- :is(:is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > td, :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th) > p:first-of-type {
42
- margin-top: 0;
43
- }
44
-
45
- :is(:is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > td, :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th) > p:last-of-type {
46
- margin-bottom: 0;
47
- }
48
-
49
- :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > td, :is(:is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > thead, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tfoot, :is(.ck-content table.table:not(.layout-table), .ck-content figure.table:not(.layout-table) > table) > tbody) > tr > th {
50
- border: 1px solid #bfbfbf;
51
- min-width: 2em;
52
- padding: .4em;
53
- }
54
-
55
- @media print {
56
- .ck-content figure.table:not(.layout-table) {
57
- width: fit-content;
58
- height: fit-content;
59
- }
60
-
61
- .ck-content figure.table:not(.layout-table) > table {
62
- height: initial;
63
- }
64
- }
65
-
66
5
  .ck-editor__editable .ck-table-bogus-paragraph {
67
6
  width: 100%;
68
7
  display: inline-block;
69
8
  }
70
9
 
71
- :root {
10
+ :root, :host {
72
11
  --ck-color-table-focused-cell-background: #9ec9fa4d;
73
12
  --ck-table-content-default-border-color: #d4d4d4;
74
13
  --ck-table-border-none-helper-line-color: #d4d4d4;
75
14
  --ck-table-border-none-helper-line-style: dashed;
76
- --ck-table-border-none-helper-line-width: 1px;
77
- }
78
-
79
- .ck-widget.table table[style*="border:none"], .ck-widget.table table[style*="border-style:none"], .ck-widget.table table[style*="border:0"], .ck-widget.table table[style*="border-width:0"] {
80
- outline: var(--ck-table-content-default-border-color) 1px dashed;
15
+ --ck-table-border-none-helper-line-width: var(--ck-border-width-thin);
81
16
  }
82
17
 
83
- :is(.ck-widget.table td, .ck-widget.table th).ck-editor__nested-editable {
84
- outline: unset;
85
- }
18
+ .ck-widget.table {
19
+ & table[style*="border:none"], & table[style*="border-style:none"], & table[style*="border:0"], & table[style*="border-width:0"] {
20
+ outline: var(--ck-table-content-default-border-color) 1px dashed;
21
+ }
86
22
 
87
- :is(.ck-widget.table td, .ck-widget.table th).ck-editor__nested-editable:not(.ck-editor__editable_selected).ck-editor__nested-editable_focused, :is(.ck-widget.table td, .ck-widget.table th).ck-editor__nested-editable:not(.ck-editor__editable_selected):focus {
88
- background: var(--ck-color-table-focused-cell-background);
89
- outline: 1px solid var(--ck-color-focus-border);
90
- outline-offset: -1px;
23
+ & td, & th {
24
+ &.ck-editor__nested-editable {
25
+ outline: unset;
26
+
27
+ &:not(.ck-editor__editable_selected) {
28
+ &.ck-editor__nested-editable_focused, &:focus {
29
+ background: var(--ck-color-table-focused-cell-background);
30
+ outline: 1px solid var(--ck-color-focus-border, var(--ck-color-interactive-focus-border));
31
+ outline-offset: -1px;
32
+ }
33
+ }
34
+ }
35
+ }
91
36
  }
92
37
 
93
38
  :where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) {
94
39
  --ck-table-border-none-helper-line: var(--ck-table-border-none-helper-line-width)
95
40
  var(--ck-table-border-none-helper-line-style)
96
41
  var(--ck-table-border-none-helper-line-color);
97
- }
98
-
99
- :where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(td, th):where([style*="border:none"], [style*="border:0"], [style*="border-style:none"], [style*="border-width:0"]) {
100
- border: var(--ck-table-border-none-helper-line) !important;
101
- }
102
42
 
103
- :where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table, td, th):where([style*="border-top-style:none"], [style*="border-top-width:0"]) {
104
- border-top: var(--ck-table-border-none-helper-line) !important;
105
- }
106
-
107
- :where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table, td, th):where([style*="border-right-style:none"], [style*="border-right-width:0"]) {
108
- border-right: var(--ck-table-border-none-helper-line) !important;
109
- }
110
-
111
- :where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table, td, th):where([style*="border-bottom-style:none"], [style*="border-bottom-width:0"]) {
112
- border-bottom: var(--ck-table-border-none-helper-line) !important;
113
- }
114
-
115
- :where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table, td, th):where([style*="border-left-style:none"], [style*="border-left-width:0"]) {
116
- border-left: var(--ck-table-border-none-helper-line) !important;
117
- }
118
-
119
- .ck.ck-table-cell-properties-form {
120
- width: 320px;
121
- }
122
-
123
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row {
124
- align-self: flex-end;
125
- width: 25%;
126
- padding: 0;
127
- }
128
-
129
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar {
130
- margin-top: var(--ck-spacing-standard);
131
- background: none;
132
- }
133
-
134
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar.ck-table-cell-properties-form__horizontal-alignment-toolbar {
135
- --ck-table-form-dimensions-input-width: calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));
136
- width: var(--ck-table-form-dimensions-input-width);
137
- max-width: var(--ck-table-form-dimensions-input-width);
138
- min-width: var(--ck-table-form-dimensions-input-width);
139
- padding: 0;
140
- }
141
-
142
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar.ck-table-cell-properties-form__vertical-alignment-toolbar {
143
- flex-grow: 1;
144
- }
145
-
146
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type {
147
- flex-grow: .57;
148
- }
149
-
150
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type {
151
- flex-grow: .43;
152
- }
153
-
154
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button {
155
- flex-grow: 1;
156
- }
157
-
158
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row {
159
- flex-wrap: wrap;
160
- }
161
-
162
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view > .ck-label {
163
- font-size: var(--ck-font-size-tiny);
164
- text-align: center;
165
- }
43
+ & :where(td, th):where([style*="border:none"], [style*="border:0"], [style*="border-style:none"], [style*="border-width:0"]) {
44
+ border: var(--ck-table-border-none-helper-line) !important;
45
+ }
166
46
 
167
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style, .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width {
168
- width: 80px;
169
- min-width: 80px;
170
- max-width: 80px;
171
- }
47
+ & :where(table, td, th) {
48
+ &:where([style*="border-top-style:none"], [style*="border-top-width:0"]) {
49
+ border-top: var(--ck-table-border-none-helper-line) !important;
50
+ }
172
51
 
173
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row {
174
- --ck-table-form-dimensions-input-width: calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));
175
- width: var(--ck-table-form-dimensions-input-width);
176
- max-width: var(--ck-table-form-dimensions-input-width);
177
- min-width: var(--ck-table-form-dimensions-input-width);
178
- padding: 0;
179
- }
52
+ &:where([style*="border-right-style:none"], [style*="border-right-width:0"]) {
53
+ border-right: var(--ck-table-border-none-helper-line) !important;
54
+ }
180
55
 
181
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width, .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height {
182
- width: var(--ck-table-form-default-input-width);
183
- min-width: var(--ck-table-form-default-input-width);
184
- max-width: var(--ck-table-form-default-input-width);
185
- margin: 0;
186
- }
187
-
188
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator {
189
- width: 0;
190
- height: var(--ck-ui-component-min-height);
191
- line-height: var(--ck-ui-component-min-height);
192
- margin: 0 var(--ck-spacing-small);
193
- align-self: flex-end;
194
- display: inline-block;
195
- position: relative;
196
- left: -.5ch;
197
- overflow: visible;
198
- }
56
+ &:where([style*="border-bottom-style:none"], [style*="border-bottom-width:0"]) {
57
+ border-bottom: var(--ck-table-border-none-helper-line) !important;
58
+ }
199
59
 
200
- .ck.ck-table-cell-properties-form .ck-form__row.ck-form__row.ck-table-form__action-row > .ck.ck-button {
201
- flex-grow: initial;
60
+ &:where([style*="border-left-style:none"], [style*="border-left-width:0"]) {
61
+ border-left: var(--ck-table-border-none-helper-line) !important;
62
+ }
63
+ }
202
64
  }
203
65
 
204
- .ck.ck-table-cell-properties-form .ck-form__row.ck-form__row.ck-table-form__action-row > .ck.ck-button .ck-button__label {
205
- color: currentColor;
66
+ :root, :host {
67
+ --ck-table-cell-properties-width: var(--ck-width-balloon-form);
206
68
  }
207
69
 
208
- .ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__cell-type-row {
209
- --ck-table-form-dimensions-input-width: calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));
210
- width: var(--ck-table-form-dimensions-input-width);
211
- max-width: var(--ck-table-form-dimensions-input-width);
212
- min-width: var(--ck-table-form-dimensions-input-width);
213
- padding: 0;
70
+ .ck.ck-table-cell-properties-form {
71
+ width: var(--ck-table-cell-properties-width);
72
+
73
+ & .ck-form__row {
74
+ &.ck-table-cell-properties-form__padding-row {
75
+ --ck-table-cell-properties-padding-width: calc((100% - 2 * var(--ck-spacing-large, var(--ck-spacing-lg))) / 3);
76
+ width: var(--ck-table-cell-properties-padding-width);
77
+ max-width: var(--ck-table-cell-properties-padding-width);
78
+ min-width: var(--ck-table-cell-properties-padding-width);
79
+ align-self: flex-end;
80
+ padding: 0;
81
+ }
82
+
83
+ &.ck-table-cell-properties-form__alignment-row {
84
+ & .ck.ck-toolbar {
85
+ margin-top: var(--ck-spacing-standard, var(--ck-spacing-base));
86
+ background: none;
87
+
88
+ &.ck-table-cell-properties-form__horizontal-alignment-toolbar {
89
+ --ck-table-cell-properties-horizontal-alignment-width: calc((100% - 2 * var(--ck-spacing-large, var(--ck-spacing-lg))) / 3 * 2 + var(--ck-spacing-large, var(--ck-spacing-lg)));
90
+ width: var(--ck-table-cell-properties-horizontal-alignment-width);
91
+ max-width: var(--ck-table-cell-properties-horizontal-alignment-width);
92
+ min-width: var(--ck-table-cell-properties-horizontal-alignment-width);
93
+ padding: 0;
94
+ }
95
+
96
+ &.ck-table-cell-properties-form__vertical-alignment-toolbar, & .ck-button {
97
+ flex-grow: 1;
98
+ }
99
+ }
100
+
101
+ flex-wrap: wrap;
102
+ }
103
+
104
+ &.ck-form__row.ck-table-form__action-row {
105
+ & > .ck.ck-button {
106
+ flex-grow: initial;
107
+
108
+ & .ck-button__label {
109
+ color: currentColor;
110
+ }
111
+ }
112
+ }
113
+
114
+ &.ck-table-form__cell-type-row {
115
+ --ck-table-form-cell-type-width: calc((100% - 2 * var(--ck-spacing-large, var(--ck-spacing-lg))) / 3 * 2 + var(--ck-spacing-large, var(--ck-spacing-lg)));
116
+ width: var(--ck-table-form-cell-type-width);
117
+ max-width: var(--ck-table-form-cell-type-width);
118
+ min-width: var(--ck-table-form-cell-type-width);
119
+ padding: 0;
120
+
121
+ & .ck-dropdown {
122
+ width: 100%;
123
+ }
124
+ }
125
+ }
214
126
  }
215
127
 
216
- :root {
128
+ :root, :host {
217
129
  --ck-table-layout-widget-type-around-button-size: 16px;
218
130
  --ck-table-layout-widget-type-around-icon-width: 10px;
219
131
  --ck-table-layout-widget-type-around-icon-height: 8px;
@@ -221,274 +133,375 @@
221
133
  --ck-table-layout-default-border-color: #d4d4d4;
222
134
  }
223
135
 
224
- .ck-content table.table.layout-table, .ck-content figure.table.layout-table {
225
- margin-top: 0;
226
- margin-bottom: 0;
227
- }
228
-
229
- .ck-content table.table.layout-table, .ck-content figure.table.layout-table > table {
230
- border-spacing: 0;
231
- }
232
-
233
- .ck-editor__editable .table.layout-table > table {
234
- border-collapse: revert;
235
- width: 100%;
236
- height: 100%;
237
- }
238
-
239
- .ck-editor__editable .table.layout-table > table:not([style*="border:"], [style*="border-top"], [style*="border-bottom"], [style*="border-left"], [style*="border-right"], [style*="border-width"], [style*="border-style"], [style*="border-color"]) {
240
- border-width: 0;
241
- border-color: #0000;
242
- outline: none;
243
- }
244
-
245
- .ck-editor__editable .table.layout-table > table > tbody > tr > td {
246
- box-shadow: revert;
247
- padding: revert;
248
- text-indent: 1px;
249
- border-color: var(--ck-table-layout-default-border-color);
250
- border-style: dashed;
251
- min-width: 2em;
252
- }
253
-
254
- .ck-editor__editable .table.layout-table > table > tbody > tr > td[style^="width:"], .ck-editor__editable .table.layout-table > table > tbody > tr > td[style*=" width:"], .ck-editor__editable .table.layout-table > table > tbody > tr > td[style*=";width:"] {
255
- min-width: auto;
256
- }
257
-
258
- .ck-editor__editable .table.layout-table > table > tbody > tr > td:focus {
259
- background-color: #0000;
260
- }
261
-
262
- .ck-editor__editable .table.layout-table > table > tbody > tr > td:not([style*="border:"], [style*="border-top"], [style*="border-bottom"], [style*="border-left"], [style*="border-right"], [style*="border-width"], [style*="border-style"], [style*="border-color"]) {
263
- outline: var(--ck-table-layout-default-border-color) 1px dashed;
264
- outline-offset: -1px;
265
- border-width: 0;
266
- border-color: #0000;
267
- }
268
-
269
- .ck-editor__editable .table.layout-table > table > tbody > tr > td:not([style*="border:"], [style*="border-top"], [style*="border-bottom"], [style*="border-left"], [style*="border-right"], [style*="border-width"], [style*="border-style"], [style*="border-color"]):focus {
270
- outline: var(--ck-color-focus-border) 1px solid;
271
- }
272
-
273
- .ck-editor__editable .table.layout-table > table > tbody > tr > td > .ck-table-bogus-paragraph {
274
- text-indent: 0;
275
- width: calc(100% - 1px);
276
- }
277
-
278
- .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around {
279
- --ck-widget-type-around-button-size: var(--ck-table-layout-widget-type-around-button-size);
280
- }
281
-
282
- .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around > .ck-widget__type-around__button.ck-widget__type-around__button_before, .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around > .ck-widget__type-around__button.ck-widget__type-around__button_after {
283
- z-index: 2;
284
- transform: translateY(0);
285
- }
286
-
287
- .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around > .ck-widget__type-around__button.ck-widget__type-around__button_before {
288
- margin-left: var(--ck-table-layout-widget-type-around-button-size);
289
- border-radius: 0 0 100px 100px;
290
- left: min(10%, 30px);
291
- }
292
-
293
- .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around > .ck-widget__type-around__button.ck-widget__type-around__button_before:after {
294
- border-radius: 0 0 100px 100px;
295
- }
296
-
297
- .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around > .ck-widget__type-around__button.ck-widget__type-around__button_after {
298
- border-radius: 100px 100px 0 0;
299
- }
300
-
301
- .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around > .ck-widget__type-around__button.ck-widget__type-around__button_after:after {
302
- border-radius: 100px 100px 0 0;
303
- }
136
+ .ck-editor__editable {
137
+ & .table.layout-table {
138
+ & > table {
139
+ border-collapse: revert;
140
+ width: 100%;
141
+ height: 100%;
142
+
143
+ &:not([style*="border:"], [style*="border-top"], [style*="border-bottom"], [style*="border-left"], [style*="border-right"], [style*="border-width"], [style*="border-style"], [style*="border-color"]) {
144
+ border-width: 0;
145
+ border-color: #0000;
146
+ outline: none;
147
+ }
148
+ }
149
+
150
+ & > table > tbody > tr > td {
151
+ box-shadow: revert;
152
+ padding: revert;
153
+ text-indent: 1px;
154
+ border-color: var(--ck-table-layout-default-border-color);
155
+ border-style: dashed;
156
+ min-width: 2em;
157
+
158
+ &[style^="width:"], &[style*=" width:"], &[style*=";width:"] {
159
+ min-width: auto;
160
+ }
161
+
162
+ &:focus {
163
+ background-color: #0000;
164
+ }
165
+
166
+ &:not([style*="border:"], [style*="border-top"], [style*="border-bottom"], [style*="border-left"], [style*="border-right"], [style*="border-width"], [style*="border-style"], [style*="border-color"]) {
167
+ outline: var(--ck-table-layout-default-border-color) 1px dashed;
168
+ outline-offset: -1px;
169
+ border-width: 0;
170
+ border-color: #0000;
171
+
172
+ &:focus {
173
+ outline: var(--ck-color-focus-border, var(--ck-color-interactive-focus-border)) 1px solid;
174
+ }
175
+ }
176
+
177
+ & > .ck-table-bogus-paragraph {
178
+ text-indent: 0;
179
+ width: calc(100% - 1px);
180
+ }
181
+ }
182
+
183
+ &.ck-widget {
184
+ & > .ck-widget__type-around {
185
+ --ck-widget-type-around-button-size: var(--ck-table-layout-widget-type-around-button-size);
186
+
187
+ & > .ck-widget__type-around__button {
188
+ &.ck-widget__type-around__button_before, &.ck-widget__type-around__button_after {
189
+ z-index: 2;
190
+ transform: translateY(0);
191
+ }
192
+
193
+ &.ck-widget__type-around__button_before {
194
+ margin-left: var(--ck-table-layout-widget-type-around-button-size);
195
+ border-radius: 0 0 100px 100px;
196
+ left: min(10%, 30px);
197
+
198
+ &:after {
199
+ border-radius: 0 0 100px 100px;
200
+ }
201
+ }
202
+
203
+ &.ck-widget__type-around__button_after {
204
+ border-radius: 100px 100px 0 0;
205
+
206
+ &:after {
207
+ border-radius: 100px 100px 0 0;
208
+ }
209
+ }
210
+
211
+ & svg {
212
+ width: var(--ck-table-layout-widget-type-around-icon-width);
213
+ height: var(--ck-table-layout-widget-type-around-icon-height);
214
+ }
215
+ }
216
+ }
217
+
218
+ &.ck-widget_with-selection-handle {
219
+ & > .ck-widget__selection-handle {
220
+ --ck-widget-handler-icon-size: var(--ck-table-layout-widget-handler-icon-size);
221
+ transform: translateY(calc(0px - var(--ck-widget-outline-thickness)));
222
+ z-index: 3;
223
+ }
224
+ }
225
+
226
+ &.ck-widget_type-around_show-fake-caret_before {
227
+ & > .ck-widget__type-around {
228
+ & > .ck-widget__type-around__fake-caret {
229
+ top: 0;
230
+ }
231
+ }
232
+ }
233
+
234
+ &.ck-widget_type-around_show-fake-caret_after {
235
+ & > .ck-widget__type-around {
236
+ & > .ck-widget__type-around__fake-caret {
237
+ bottom: 0;
238
+ }
239
+ }
240
+ }
241
+
242
+ &:hover {
243
+ z-index: var(--ck-z-default, var(--ck-z-base));
244
+ }
245
+
246
+ &:hover > .ck-widget__selection-handle {
247
+ opacity: .75;
248
+ visibility: visible;
249
+
250
+ &:hover {
251
+ opacity: 1;
252
+ }
253
+ }
254
+
255
+ &:has(.ck-widget.table:hover) > .ck-widget__selection-handle {
256
+ opacity: 0;
257
+ visibility: hidden;
258
+ }
259
+
260
+ &.ck-widget_selected {
261
+ z-index: var(--ck-z-default, var(--ck-z-base));
262
+ }
263
+ }
264
+
265
+ margin: 0;
266
+ display: table;
267
+ }
304
268
 
305
- .ck-editor__editable .table.layout-table.ck-widget > .ck-widget__type-around > .ck-widget__type-around__button svg {
306
- width: var(--ck-table-layout-widget-type-around-icon-width);
307
- height: var(--ck-table-layout-widget-type-around-icon-height);
308
- }
269
+ &.ck-editor__editable_inline {
270
+ & > .ck-widget.ck-widget_with-selection-handle.layout-table {
271
+ &:first-child {
272
+ margin-top: var(--ck-spacing-large, var(--ck-spacing-lg));
273
+ }
309
274
 
310
- .ck-editor__editable .table.layout-table.ck-widget.ck-widget_with-selection-handle > .ck-widget__selection-handle {
311
- --ck-widget-handler-icon-size: var(--ck-table-layout-widget-handler-icon-size);
312
- transform: translateY(calc(0px - var(--ck-widget-outline-thickness)));
313
- z-index: 3;
314
- }
315
-
316
- .ck-editor__editable .table.layout-table.ck-widget.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
317
- top: 0;
275
+ &:last-child, &:nth-last-child(2):has( + .ck-fake-selection-container) {
276
+ margin-bottom: var(--ck-spacing-large, var(--ck-spacing-lg));
277
+ }
278
+ }
279
+ }
318
280
  }
319
281
 
320
- .ck-editor__editable .table.layout-table.ck-widget.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
321
- bottom: 0;
282
+ :root, :host {
283
+ --ck-table-scroll-widget-type-around-icon-width: 10px;
284
+ --ck-table-scroll-widget-type-around-icon-height: 8px;
322
285
  }
323
286
 
324
- .ck-editor__editable .table.layout-table.ck-widget:hover {
325
- z-index: var(--ck-z-default);
326
- }
287
+ .ck.ck-editor__editable figure.table.ck-table-overflowing {
288
+ flex-direction: column;
289
+ max-width: 100%;
290
+ margin-right: 0;
291
+ display: flex;
292
+ overflow: scroll clip;
327
293
 
328
- .ck-editor__editable .table.layout-table.ck-widget:hover > .ck-widget__selection-handle {
329
- opacity: .75;
330
- visibility: visible;
294
+ & > figcaption {
295
+ box-sizing: border-box;
296
+ order: -1;
297
+ align-self: flex-start;
298
+ }
331
299
  }
332
300
 
333
- .ck-editor__editable .table.layout-table.ck-widget:hover > .ck-widget__selection-handle:hover {
334
- opacity: 1;
335
- }
301
+ .ck.ck-editor__editable figure.table.ck-table-overflowing.ck-widget {
302
+ --ck-table-scroll-offset: 0px;
336
303
 
337
- .ck-editor__editable .table.layout-table.ck-widget:has(.ck-widget.table:hover) > .ck-widget__selection-handle {
338
- opacity: 0;
339
- visibility: hidden;
340
- }
304
+ & > table > :is(tbody, thead, tfoot) > tr > :is(td, th):last-of-type {
305
+ --ck-table-column-resizer-position-offset: 0;
306
+ --ck-table-column-resizer-width: 3.5px;
307
+ }
341
308
 
342
- .ck-editor__editable .table.layout-table.ck-widget.ck-widget_selected {
343
- z-index: var(--ck-z-default);
344
- }
309
+ &.ck-widget_with-selection-handle > .ck-widget__selection-handle {
310
+ --ck-widget-handler-icon-size: 10px;
311
+ transform: translate(var(--ck-table-scroll-offset), calc(0px - var(--ck-widget-outline-thickness)));
312
+ z-index: 3;
313
+ }
345
314
 
346
- .ck-editor__editable .table.layout-table {
347
- margin: 0;
348
- display: table;
349
- }
315
+ & > .ck-widget__type-around {
316
+ --ck-widget-type-around-button-size: 16px;
317
+ pointer-events: none;
318
+ position: absolute;
319
+ inset: 0;
320
+
321
+ & > .ck-widget__type-around__button {
322
+ &.ck-widget__type-around__button_before, &.ck-widget__type-around__button_after {
323
+ transform: translate(var(--ck-table-scroll-offset), 0);
324
+ z-index: 2;
325
+ }
326
+
327
+ &.ck-widget__type-around__button_before {
328
+ margin-left: var(--ck-widget-type-around-button-size);
329
+ border-radius: 0 0 100px 100px;
330
+ left: min(10%, 30px);
331
+
332
+ &:after {
333
+ border-radius: 0 0 100px 100px;
334
+ }
335
+ }
336
+
337
+ &.ck-widget__type-around__button_after {
338
+ bottom: calc(-.5 * var(--ck-widget-outline-thickness));
339
+ border-radius: 100px 100px 0 0;
340
+ right: min(10%, 30px);
341
+
342
+ &:after {
343
+ border-radius: 100px 100px 0 0;
344
+ }
345
+ }
346
+
347
+ & svg {
348
+ width: var(--ck-table-scroll-widget-type-around-icon-width);
349
+ height: var(--ck-table-scroll-widget-type-around-icon-height);
350
+ }
351
+ }
352
+ }
350
353
 
351
- .ck-editor__editable.ck-editor__editable_inline > .ck-widget.ck-widget_with-selection-handle.layout-table:first-child {
352
- margin-top: var(--ck-spacing-large);
353
- }
354
+ &.ck-widget_type-around_show-fake-caret_before {
355
+ & > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
356
+ top: 0;
357
+ }
358
+ }
354
359
 
355
- .ck-editor__editable.ck-editor__editable_inline > .ck-widget.ck-widget_with-selection-handle.layout-table:last-child, .ck-editor__editable.ck-editor__editable_inline > .ck-widget.ck-widget_with-selection-handle.layout-table:nth-last-child(2):has( + .ck-fake-selection-container) {
356
- margin-bottom: var(--ck-spacing-large);
360
+ &.ck-widget_type-around_show-fake-caret_after {
361
+ & > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
362
+ bottom: 0;
363
+ }
364
+ }
357
365
  }
358
366
 
359
- .ck.ck-form__row > :not(.ck-label) + * {
360
- margin-inline-start: var(--ck-spacing-large);
361
- }
367
+ .ck.ck-form__row {
368
+ & > :not(.ck-label) {
369
+ & + * {
370
+ margin-inline-start: var(--ck-spacing-large, var(--ck-spacing-lg));
371
+ }
372
+ }
362
373
 
363
- .ck.ck-form__row > .ck-label {
364
- width: 100%;
365
- min-width: 100%;
366
- }
374
+ & > .ck-label {
375
+ width: 100%;
376
+ min-width: 100%;
377
+ }
367
378
 
368
- .ck.ck-form__row.ck-table-form__action-row {
369
- margin-top: var(--ck-spacing-large);
370
- justify-content: flex-end;
371
- }
379
+ &.ck-table-form__action-row {
380
+ justify-content: flex-end;
372
381
 
373
- .ck.ck-form__row.ck-table-form__action-row .ck-button-save, .ck.ck-form__row.ck-table-form__action-row .ck-button-cancel {
374
- justify-content: center;
382
+ & .ck-button-save, & .ck-button-cancel {
383
+ justify-content: center;
384
+ }
385
+ }
375
386
  }
376
387
 
377
- :root {
388
+ :root, :host {
378
389
  --ck-table-properties-error-arrow-size: 6px;
379
390
  --ck-table-properties-min-error-width: 150px;
380
391
  }
381
392
 
382
393
  .ck.ck-table-form {
383
394
  --ck-table-form-default-input-width: 80px;
384
- }
385
-
386
- .ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view > .ck-label {
387
- font-size: var(--ck-font-size-tiny);
388
- text-align: center;
389
- }
390
-
391
- .ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style, .ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width {
392
- width: var(--ck-table-form-default-input-width);
393
- min-width: var(--ck-table-form-default-input-width);
394
- max-width: var(--ck-table-form-default-input-width);
395
- }
396
-
397
- .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row {
398
- --ck-table-form-dimensions-input-width: calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));
399
- width: var(--ck-table-form-dimensions-input-width);
400
- max-width: var(--ck-table-form-dimensions-input-width);
401
- min-width: var(--ck-table-form-dimensions-input-width);
402
- padding: 0;
403
- }
404
-
405
- .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width, .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height {
406
- width: var(--ck-table-form-default-input-width);
407
- min-width: var(--ck-table-form-default-input-width);
408
- max-width: var(--ck-table-form-default-input-width);
409
- margin: 0;
410
- }
411
-
412
- .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator {
413
- width: 0;
414
- height: var(--ck-ui-component-min-height);
415
- line-height: var(--ck-ui-component-min-height);
416
- margin: 0 var(--ck-spacing-small);
417
- align-self: flex-end;
418
- display: inline-block;
419
- position: relative;
420
- left: -.5ch;
421
- overflow: visible;
422
- }
423
-
424
- .ck.ck-table-form .ck-form__row.ck-table-form__border-row, .ck.ck-table-form .ck-form__row.ck-table-form__background-row, .ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row {
425
- flex-wrap: wrap;
426
- }
427
-
428
- .ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row, .ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row {
429
- flex-wrap: wrap;
430
- align-items: center;
431
- }
432
-
433
- :is(.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row, .ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row) .ck-labeled-field-view {
434
- flex-direction: column-reverse;
435
- align-items: center;
436
- display: flex;
437
- }
438
-
439
- :is(.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row, .ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row) .ck-labeled-field-view .ck.ck-dropdown {
440
- flex-grow: 0;
441
- }
442
-
443
- .ck.ck-table-form .ck-form__row:not(.ck-table-form__action-row) > :not(.ck-label, .ck-table-form__dimension-operator) {
444
- flex-grow: 1;
445
- }
446
-
447
- .ck.ck-table-form .ck.ck-labeled-field-view {
448
- padding-top: var(--ck-spacing-standard);
449
- }
450
-
451
- .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {
452
- border-radius: var(--ck-rounded-corners-radius);
453
- background: var(--ck-color-base-error);
454
- color: var(--ck-color-base-background);
455
- padding: var(--ck-spacing-small) var(--ck-spacing-medium);
456
- min-width: var(--ck-table-properties-min-error-width);
457
- text-align: center;
458
- left: 50%;
459
- bottom: calc(-1 * var(--ck-table-properties-error-arrow-size));
460
- animation: .15s both ck-table-form-labeled-view-status-appear;
461
- position: absolute;
462
- transform: translate(-50%, 100%);
463
- }
464
-
465
- .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after {
466
- border-color: transparent transparent var(--ck-color-base-error) transparent;
467
- border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
468
- content: "";
469
- top: calc(-1 * var(--ck-table-properties-error-arrow-size));
470
- border-style: solid;
471
- position: absolute;
472
- left: 50%;
473
- transform: translateX(-50%);
474
- }
475
395
 
476
- @media (prefers-reduced-motion: reduce) {
477
- .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {
478
- animation: none;
396
+ & .ck-form__row {
397
+ &.ck-table-form__border-row {
398
+ & .ck-table-form__border-style, & .ck-table-form__border-width, & .ck-table-form__border-color {
399
+ width: calc((100% - 2 * var(--ck-spacing-large, var(--ck-spacing-lg))) / 3);
400
+ flex: none;
401
+ min-width: 0;
402
+ }
403
+
404
+ & .ck-table-form__border-style .ck-dropdown {
405
+ width: 100%;
406
+ }
407
+ }
408
+
409
+ &.ck-table-form__dimensions-row {
410
+ --ck-table-form-dimensions-input-width: calc((100% - 2 * var(--ck-spacing-large, var(--ck-spacing-lg))) / 3 * 2 + var(--ck-spacing-large, var(--ck-spacing-lg)));
411
+ width: var(--ck-table-form-dimensions-input-width);
412
+ max-width: var(--ck-table-form-dimensions-input-width);
413
+ min-width: var(--ck-table-form-dimensions-input-width);
414
+ padding: 0;
415
+
416
+ & .ck-table-form__dimensions-row__width, & .ck-table-form__dimensions-row__height {
417
+ flex: 1 1 0;
418
+ margin: 0;
419
+ }
420
+
421
+ & .ck-table-form__dimension-operator {
422
+ width: 0;
423
+ height: var(--ck-size-control-min-height);
424
+ line-height: var(--ck-size-control-min-height);
425
+ margin: 0 calc(var(--ck-spacing-large, var(--ck-spacing-lg)) / 2);
426
+ align-self: flex-end;
427
+ display: inline-block;
428
+ position: relative;
429
+ left: -.5ch;
430
+ overflow: visible;
431
+ }
432
+ }
433
+
434
+ &.ck-table-form__background-row {
435
+ --ck-table-form-background-width: calc((100% - 2 * var(--ck-spacing-large, var(--ck-spacing-lg))) / 3);
436
+ width: var(--ck-table-form-background-width);
437
+ max-width: var(--ck-table-form-background-width);
438
+ min-width: var(--ck-table-form-background-width);
439
+ }
440
+
441
+ &.ck-table-form__border-row, &.ck-table-form__background-row, &.ck-table-form__cell-type-row {
442
+ flex-wrap: wrap;
443
+ }
444
+
445
+ &.ck-table-form__dimensions-row, &.ck-table-form__cell-type-row {
446
+ flex-wrap: wrap;
447
+ align-items: center;
448
+
449
+ & .ck-labeled-field-view {
450
+ flex-direction: column-reverse;
451
+ align-items: center;
452
+ display: flex;
453
+
454
+ & .ck.ck-dropdown {
455
+ flex-grow: 0;
456
+ }
457
+ }
458
+ }
459
+
460
+ &:not(.ck-table-form__action-row) > :not(.ck-label, .ck-table-form__dimension-operator) {
461
+ flex-grow: 1;
462
+ }
479
463
  }
480
- }
481
-
482
- .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {
483
- z-index: 1;
484
- }
485
-
486
- .ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
487
- display: none;
488
- }
489
464
 
490
- .ck.ck-table-form .ck.ck-labeled-field-view {
491
- position: relative;
465
+ & .ck.ck-labeled-field-view {
466
+ padding-top: var(--ck-spacing-standard, var(--ck-spacing-base));
467
+
468
+ & .ck.ck-labeled-field-view__status {
469
+ border-radius: var(--ck-rounded-corners-radius, var(--ck-radius-corners));
470
+ background: var(--ck-color-base-error);
471
+ color: var(--ck-color-base-background);
472
+ padding: var(--ck-spacing-small, var(--ck-spacing-sm)) var(--ck-spacing-medium, var(--ck-spacing-base));
473
+ min-width: var(--ck-table-properties-min-error-width);
474
+ text-align: center;
475
+ left: 50%;
476
+ bottom: calc(-1 * var(--ck-table-properties-error-arrow-size));
477
+ animation: .15s both ck-table-form-labeled-view-status-appear;
478
+ position: absolute;
479
+ transform: translate(-50%, 100%);
480
+
481
+ &:after {
482
+ border-color: transparent transparent var(--ck-color-base-error) transparent;
483
+ border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
484
+ content: "";
485
+ top: calc(-1 * var(--ck-table-properties-error-arrow-size));
486
+ border-style: solid;
487
+ position: absolute;
488
+ left: 50%;
489
+ transform: translateX(-50%);
490
+ }
491
+
492
+ @media (prefers-reduced-motion: reduce) {
493
+ animation: none;
494
+ }
495
+
496
+ z-index: 1;
497
+ }
498
+
499
+ & .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
500
+ display: none;
501
+ }
502
+
503
+ position: relative;
504
+ }
492
505
  }
493
506
 
494
507
  @keyframes ck-table-form-labeled-view-status-appear {
@@ -501,122 +514,88 @@
501
514
  }
502
515
  }
503
516
 
504
- .ck.ck-table-properties-form {
505
- width: 320px;
506
- }
507
-
508
- .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row {
509
- flex-wrap: wrap;
510
- flex-basis: 0;
511
- align-content: baseline;
512
- align-self: flex-end;
517
+ :root, :host {
518
+ --ck-table-properties-width: var(--ck-width-balloon-form);
513
519
  }
514
520
 
515
- .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar {
516
- margin-top: var(--ck-spacing-standard);
517
- background: none;
518
- }
519
-
520
- .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items > * {
521
- flex: 1;
522
- }
523
-
524
- .ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items {
525
- flex-wrap: nowrap;
521
+ .ck.ck-table-properties-form {
522
+ width: var(--ck-table-properties-width);
523
+
524
+ & .ck-form__row {
525
+ &.ck-table-properties-form__alignment-row {
526
+ flex-wrap: wrap;
527
+ flex-basis: 0;
528
+ align-content: baseline;
529
+ align-self: flex-end;
530
+
531
+ & .ck.ck-toolbar {
532
+ margin-top: var(--ck-spacing-standard);
533
+ background: none;
534
+
535
+ & .ck-toolbar__items > * {
536
+ flex: 1;
537
+ }
538
+ }
539
+
540
+ & .ck.ck-toolbar .ck-toolbar__items {
541
+ flex-wrap: nowrap;
542
+ }
543
+ }
544
+ }
526
545
  }
527
546
 
528
- :root {
547
+ :root, :host {
529
548
  --ck-content-table-style-spacing: 1.5em;
530
549
  }
531
550
 
532
- .ck-content .table.table-style-align-left {
533
- float: left;
534
- margin-right: var(--ck-content-table-style-spacing);
535
- }
536
-
537
- .ck-content .table.table-style-align-right {
538
- float: right;
539
- margin-left: var(--ck-content-table-style-spacing);
540
- }
551
+ .ck-editor__editable {
552
+ & .table.layout-table {
553
+ &.table-style-align-center {
554
+ margin-left: auto;
555
+ margin-right: auto;
556
+ }
541
557
 
542
- .ck-content .table.table-style-align-center {
543
- margin-left: auto;
544
- margin-right: auto;
545
- }
558
+ &.table-style-align-left {
559
+ margin-right: var(--ck-content-table-style-spacing);
560
+ }
546
561
 
547
- .ck-content .table.table-style-block-align-left {
548
- margin-left: 0;
549
- margin-right: auto;
550
- }
562
+ &.table-style-align-right {
563
+ margin-left: var(--ck-content-table-style-spacing);
564
+ }
551
565
 
552
- .ck-content .table.table-style-block-align-right {
553
- margin-left: auto;
554
- margin-right: 0;
555
- }
556
-
557
- .ck-editor__editable .table.layout-table.table-style-align-center {
558
- margin-left: auto;
559
- margin-right: auto;
560
- }
561
-
562
- .ck-editor__editable .table.layout-table.table-style-align-left {
563
- margin-right: var(--ck-content-table-style-spacing);
564
- }
566
+ &.table-style-block-align-left {
567
+ margin-left: 0;
568
+ margin-right: auto;
569
+ }
565
570
 
566
- .ck-editor__editable .table.layout-table.table-style-align-right {
567
- margin-left: var(--ck-content-table-style-spacing);
568
- }
569
-
570
- .ck-editor__editable .table.layout-table.table-style-block-align-left {
571
- margin-left: 0;
572
- margin-right: auto;
573
- }
574
-
575
- .ck-editor__editable .table.layout-table.table-style-block-align-right {
576
- margin-left: auto;
577
- margin-right: 0;
571
+ &.table-style-block-align-right {
572
+ margin-left: auto;
573
+ margin-right: 0;
574
+ }
575
+ }
578
576
  }
579
577
 
580
- :root {
578
+ :root, :host {
581
579
  --ck-content-color-table-caption-background: #f7f7f7;
582
- --ck-content-color-table-caption-text: #333;
583
580
  --ck-color-table-caption-highlighted-background: #fd0;
584
581
  }
585
582
 
586
- .ck-content .table > figcaption, .ck-content figure.table > table > caption {
587
- caption-side: top;
588
- word-break: normal;
589
- overflow-wrap: anywhere;
590
- text-align: center;
591
- color: var(--ck-content-color-table-caption-text);
592
- background-color: var(--ck-content-color-table-caption-background);
593
- outline-offset: -1px;
594
- padding: .6em;
595
- font-size: .75em;
596
- display: table-caption;
597
- }
598
-
599
- @media (forced-colors: active) {
600
- .ck-content .table > figcaption, .ck-content figure.table > table > caption {
601
- background-color: unset;
602
- color: unset;
583
+ .ck.ck-editor__editable .table > figcaption, .ck.ck-editor__editable figure.table > table > caption {
584
+ @media (forced-colors: none) {
585
+ &.table__caption_highlighted {
586
+ animation: .6s ease-out ck-table-caption-highlight;
587
+ }
603
588
  }
604
- }
605
589
 
606
- @media (forced-colors: none) {
607
- :is(.ck.ck-editor__editable .table > figcaption, .ck.ck-editor__editable figure.table > table > caption).table__caption_highlighted {
608
- animation: .6s ease-out ck-table-caption-highlight;
590
+ &.ck-placeholder:before {
591
+ padding-left: inherit;
592
+ padding-right: inherit;
593
+ white-space: nowrap;
594
+ text-overflow: ellipsis;
595
+ overflow: hidden;
609
596
  }
610
597
  }
611
598
 
612
- :is(.ck.ck-editor__editable .table > figcaption, .ck.ck-editor__editable figure.table > table > caption).ck-placeholder:before {
613
- padding-left: inherit;
614
- padding-right: inherit;
615
- white-space: nowrap;
616
- text-overflow: ellipsis;
617
- overflow: hidden;
618
- }
619
-
620
599
  @keyframes ck-table-caption-highlight {
621
600
  0% {
622
601
  background-color: var(--ck-color-table-caption-highlighted-background);
@@ -627,50 +606,44 @@
627
606
  }
628
607
  }
629
608
 
630
- :root {
609
+ :root, :host {
631
610
  --ck-table-selected-cell-background: #9ecffa4d;
632
611
  }
633
612
 
634
- .ck.ck-editor__editable .table table :where(td, th).ck-editor__editable_selected {
635
- caret-color: #0000;
636
- box-shadow: unset;
637
- position: relative;
638
- }
613
+ .ck.ck-editor__editable .table table {
614
+ & :where(td, th).ck-editor__editable_selected {
615
+ caret-color: #0000;
616
+ box-shadow: unset;
617
+ position: relative;
639
618
 
640
- .ck.ck-editor__editable .table table :where(td, th).ck-editor__editable_selected:after {
641
- content: "";
642
- pointer-events: none;
643
- background-color: var(--ck-table-selected-cell-background);
644
- position: absolute;
645
- inset: 0;
646
- }
619
+ &:after {
620
+ content: "";
621
+ pointer-events: none;
622
+ background-color: var(--ck-table-selected-cell-background);
623
+ position: absolute;
624
+ inset: 0;
625
+ }
647
626
 
648
- .ck.ck-editor__editable .table table :where(td, th).ck-editor__editable_selected ::selection, .ck.ck-editor__editable .table table :where(td, th).ck-editor__editable_selected:focus {
649
- background-color: #0000;
650
- }
627
+ &:focus, & ::selection {
628
+ background-color: #0000;
629
+ }
651
630
 
652
- .ck.ck-editor__editable .table table :where(td, th).ck-editor__editable_selected .ck-widget {
653
- outline: unset;
654
- }
631
+ & .ck-widget {
632
+ outline: unset;
655
633
 
656
- .ck.ck-editor__editable .table table :where(td, th).ck-editor__editable_selected .ck-widget > .ck-widget__selection-handle {
657
- display: none;
634
+ & > .ck-widget__selection-handle {
635
+ display: none;
636
+ }
637
+ }
638
+ }
658
639
  }
659
640
 
660
- :root {
641
+ :root, :host {
661
642
  --ck-color-table-column-resizer-hover: var(--ck-color-base-active);
662
643
  --ck-table-column-resizer-width: 7px;
663
644
  --ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -.5 - .5px);
664
645
  }
665
646
 
666
- .ck-content .table .ck-table-resized {
667
- table-layout: fixed;
668
- }
669
-
670
- .ck-content .table td, .ck-content .table th {
671
- overflow-wrap: break-word;
672
- }
673
-
674
647
  .ck.ck-editor__editable .table td, .ck.ck-editor__editable .table th {
675
648
  position: relative;
676
649
  }
@@ -681,8 +654,9 @@
681
654
  right: var(--ck-table-column-resizer-position-offset);
682
655
  width: var(--ck-table-column-resizer-width);
683
656
  cursor: col-resize;
657
+ -webkit-user-select: none;
684
658
  user-select: none;
685
- z-index: var(--ck-z-default);
659
+ z-index: var(--ck-z-default, var(--ck-z-base));
686
660
  position: absolute;
687
661
  }
688
662
 
@@ -700,121 +674,137 @@
700
674
  right: unset;
701
675
  }
702
676
 
703
- [dir="ltr"] :is(.ck.ck-input-color > .ck.ck-input-text) {
704
- border-top-right-radius: 0;
705
- border-bottom-right-radius: 0;
706
- }
707
-
708
- [dir="rtl"] :is(.ck.ck-input-color > .ck.ck-input-text) {
709
- border-top-left-radius: 0;
710
- border-bottom-left-radius: 0;
711
- }
712
-
713
- .ck.ck-input-color > .ck.ck-input-text:focus {
714
- z-index: 0;
715
- }
716
-
717
- .ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button {
718
- padding: 0;
719
- display: flex;
720
- }
721
-
722
- [dir="ltr"] :is(.ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button) {
723
- border-top-left-radius: 0;
724
- border-bottom-left-radius: 0;
725
- }
726
-
727
- [dir="ltr"] :is(.ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button):not(:focus) {
728
- border-left: 1px solid #0000;
677
+ .ck-table-column-resize__resizing-cursor, .ck-table-column-resize__resizing-cursor * {
678
+ cursor: col-resize !important;
729
679
  }
730
680
 
731
- [dir="rtl"] :is(.ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button) {
732
- border-top-right-radius: 0;
733
- border-bottom-right-radius: 0;
681
+ :root, :host {
682
+ --ck-input-color-preview-border-radius: 0;
734
683
  }
735
684
 
736
- [dir="rtl"] :is(.ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button):not(:focus) {
737
- border-right: 1px solid #0000;
738
- }
685
+ .ck.ck-input-color {
686
+ & > .ck.ck-input-text {
687
+ [dir="ltr"] & {
688
+ border-top-right-radius: 0;
689
+ border-bottom-right-radius: 0;
690
+ }
691
+
692
+ [dir="rtl"] & {
693
+ border-top-left-radius: 0;
694
+ border-bottom-left-radius: 0;
695
+ }
696
+
697
+ &:focus {
698
+ z-index: 0;
699
+ }
700
+ }
739
701
 
740
- .ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button.ck-disabled {
741
- background: var(--ck-color-input-disabled-background);
742
- }
702
+ & > .ck.ck-dropdown {
703
+ & > .ck.ck-button.ck-input-color__button {
704
+ height: 100%;
705
+ padding: 0;
706
+ display: flex;
707
+
708
+ [dir="ltr"] & {
709
+ border-top-left-radius: 0;
710
+ border-bottom-left-radius: 0;
711
+
712
+ &:not(:focus) {
713
+ border-left: 1px solid #0000;
714
+ }
715
+ }
716
+
717
+ [dir="rtl"] & {
718
+ border-top-right-radius: 0;
719
+ border-bottom-right-radius: 0;
720
+
721
+ &:not(:focus) {
722
+ border-right: 1px solid #0000;
723
+ }
724
+ }
725
+
726
+ &.ck-disabled {
727
+ background: var(--ck-color-input-disabled-background);
728
+ }
729
+
730
+ & > .ck.ck-input-color__button__preview {
731
+ border-radius: var(--ck-input-color-preview-border-radius);
732
+ border: 1px solid var(--ck-color-input-border);
733
+ width: 20px;
734
+ height: 20px;
735
+ position: relative;
736
+ overflow: hidden;
737
+
738
+ & > .ck.ck-input-color__button__preview__no-color-indicator {
739
+ transform-origin: 50%;
740
+ background: red;
741
+ border-radius: 2px;
742
+ width: 8%;
743
+ height: 150%;
744
+ display: block;
745
+ position: absolute;
746
+ top: -30%;
747
+ left: 50%;
748
+ transform: rotate(45deg);
749
+ }
750
+ }
751
+ }
752
+ }
743
753
 
744
- .ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button > .ck.ck-input-color__button__preview {
745
- border-radius: var(--ck-rounded-corners-radius);
746
- border: 1px solid var(--ck-color-input-border);
747
- width: 20px;
748
- height: 20px;
749
- position: relative;
750
- overflow: hidden;
751
- }
754
+ & .ck.ck-input-color__remove-color {
755
+ width: 100%;
756
+ padding: calc(var(--ck-spacing-standard, var(--ck-spacing-base)) / 2) var(--ck-spacing-standard, var(--ck-spacing-base));
757
+ border-bottom-right-radius: 0;
758
+ border-bottom-left-radius: 0;
752
759
 
753
- .ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button > .ck.ck-input-color__button__preview > .ck.ck-input-color__button__preview__no-color-indicator {
754
- transform-origin: 50%;
755
- background: red;
756
- border-radius: 2px;
757
- width: 8%;
758
- height: 150%;
759
- display: block;
760
- position: absolute;
761
- top: -30%;
762
- left: 50%;
763
- transform: rotate(45deg);
764
- }
760
+ &:not(:focus) {
761
+ border-bottom: 1px solid var(--ck-color-input-border);
762
+ }
765
763
 
766
- .ck.ck-input-color .ck.ck-input-color__remove-color {
767
- width: 100%;
768
- padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
769
- border-bottom-right-radius: 0;
770
- border-bottom-left-radius: 0;
771
- }
764
+ [dir="ltr"] & {
765
+ border-top-right-radius: 0;
766
+ }
772
767
 
773
- .ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus) {
774
- border-bottom: 1px solid var(--ck-color-input-border);
775
- }
776
-
777
- [dir="ltr"] :is(.ck.ck-input-color .ck.ck-input-color__remove-color) {
778
- border-top-right-radius: 0;
779
- }
780
-
781
- [dir="rtl"] :is(.ck.ck-input-color .ck.ck-input-color__remove-color) {
782
- border-top-left-radius: 0;
783
- }
768
+ [dir="rtl"] & {
769
+ border-top-left-radius: 0;
770
+ }
784
771
 
785
- .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon {
786
- margin-right: var(--ck-spacing-standard);
787
- }
772
+ & .ck.ck-icon {
773
+ margin-right: var(--ck-spacing-standard, var(--ck-spacing-base));
788
774
 
789
- [dir="rtl"] :is(.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon) {
790
- margin-right: 0;
791
- margin-left: var(--ck-spacing-standard);
792
- }
775
+ [dir="rtl"] & {
776
+ margin-right: 0;
777
+ margin-left: var(--ck-spacing-standard, var(--ck-spacing-base));
778
+ }
779
+ }
780
+ }
793
781
 
794
- .ck.ck-input-color {
795
782
  flex-direction: row-reverse;
796
783
  width: 100%;
797
784
  display: flex;
798
- }
799
785
 
800
- .ck.ck-input-color > input.ck.ck-input-text {
801
- flex-grow: 1;
802
- min-width: auto;
803
- }
786
+ & > input.ck.ck-input-text {
787
+ flex-grow: 1;
788
+ min-width: auto;
789
+ }
804
790
 
805
- .ck.ck-input-color > div.ck.ck-dropdown {
806
- min-width: auto;
807
- }
791
+ & > div.ck.ck-dropdown {
792
+ min-width: auto;
808
793
 
809
- .ck.ck-input-color > div.ck.ck-dropdown > .ck-input-color__button .ck-dropdown__arrow {
810
- display: none;
794
+ & > .ck-input-color__button .ck-dropdown__arrow {
795
+ display: none;
796
+ }
797
+ }
811
798
  }
812
799
 
813
- :root {
814
- --ck-insert-table-dropdown-padding: 10px;
815
- --ck-insert-table-dropdown-box-height: 11px;
816
- --ck-insert-table-dropdown-box-width: 12px;
800
+ :root, :host {
801
+ --ck-insert-table-dropdown-padding: var(--ck-spacing-padding);
802
+ --ck-insert-table-dropdown-box-height: 16px;
803
+ --ck-insert-table-dropdown-box-width: 16px;
817
804
  --ck-insert-table-dropdown-box-margin: 1px;
805
+ --ck-insert-table-dropdown-box-border-radius: var(--ck-radius-xs);
806
+ --ck-insert-table-dropdown-label-font-size: var(--ck-font-size-sm);
807
+ --ck-insert-table-dropdown-label-padding: var(--ck-spacing-padding-compact) 0;
818
808
  }
819
809
 
820
810
  .ck .ck-insert-table-dropdown__grid {
@@ -826,31 +816,172 @@
826
816
 
827
817
  .ck .ck-insert-table-dropdown__label, .ck[dir="rtl"] .ck-insert-table-dropdown__label {
828
818
  text-align: center;
819
+ font-size: var(--ck-insert-table-dropdown-label-font-size);
820
+ padding: var(--ck-insert-table-dropdown-label-padding);
829
821
  }
830
822
 
831
823
  .ck .ck-insert-table-dropdown-grid-box {
832
824
  min-width: var(--ck-insert-table-dropdown-box-width);
833
825
  min-height: var(--ck-insert-table-dropdown-box-height);
834
826
  margin: var(--ck-insert-table-dropdown-box-margin);
835
- border: 1px solid var(--ck-color-base-border);
836
- border-radius: 1px;
827
+ border: var(--ck-border-width-thin) solid var(--ck-color-base-border);
828
+ border-radius: var(--ck-insert-table-dropdown-box-border-radius);
837
829
  outline: none;
838
830
  transition: none;
839
- }
840
831
 
841
- @media (prefers-reduced-motion: reduce) {
842
- .ck .ck-insert-table-dropdown-grid-box {
832
+ @media (prefers-reduced-motion: reduce) {
843
833
  transition: none;
844
834
  }
835
+
836
+ &:focus {
837
+ box-shadow: none;
838
+ }
839
+
840
+ &.ck-on {
841
+ border-color: var(--ck-color-focus-border, var(--ck-color-interactive-focus-border));
842
+ background: var(--ck-color-focus-outer-shadow, var(--ck-focus-shadow));
843
+ }
844
+ }
845
+
846
+ :root, :host {
847
+ --ck-content-table-style-spacing: 1.5em;
848
+ --ck-content-color-table-caption-background: #f7f7f7;
849
+ --ck-content-color-table-caption-text: #333;
850
+ }
851
+
852
+ .ck-content {
853
+ & .table th {
854
+ text-align: start;
855
+ }
856
+
857
+ &[dir="rtl"] .table th {
858
+ text-align: right;
859
+ }
860
+
861
+ &[dir="ltr"] .table th {
862
+ text-align: left;
863
+ }
864
+
865
+ & figure.table:not(.layout-table) {
866
+ display: table;
867
+
868
+ & > table {
869
+ width: 100%;
870
+ height: 100%;
871
+ }
872
+ }
873
+
874
+ & .table:not(.layout-table) {
875
+ margin: .9em auto;
876
+ }
877
+
878
+ & table.table:not(.layout-table), & figure.table:not(.layout-table) > table {
879
+ border-collapse: collapse;
880
+ border-spacing: 0;
881
+ border: 1px double #b3b3b3;
882
+
883
+ & > thead, & > tfoot, & > tbody {
884
+ & > tr {
885
+ & > th {
886
+ background: #0000000d;
887
+ font-weight: bold;
888
+ }
889
+
890
+ & > td, & > th {
891
+ & > p:first-of-type {
892
+ margin-top: 0;
893
+ }
894
+
895
+ & > p:last-of-type {
896
+ margin-bottom: 0;
897
+ }
898
+
899
+ border: 1px solid #bfbfbf;
900
+ min-width: 2em;
901
+ padding: .4em;
902
+ }
903
+ }
904
+ }
905
+ }
906
+ }
907
+
908
+ @media print {
909
+ .ck-content figure.table {
910
+ &:not(.layout-table) {
911
+ width: fit-content;
912
+ height: fit-content;
913
+ }
914
+
915
+ &:not(.layout-table) > table {
916
+ height: initial;
917
+ }
918
+ }
919
+ }
920
+
921
+ .ck-content {
922
+ & table.table.layout-table, & figure.table.layout-table {
923
+ margin-top: 0;
924
+ margin-bottom: 0;
925
+ }
926
+
927
+ & table.table.layout-table, & figure.table.layout-table > table {
928
+ border-spacing: 0;
929
+ }
930
+ }
931
+
932
+ .ck-content {
933
+ & .table {
934
+ &.table-style-align-left {
935
+ float: left;
936
+ margin-right: var(--ck-content-table-style-spacing);
937
+ }
938
+
939
+ &.table-style-align-right {
940
+ float: right;
941
+ margin-left: var(--ck-content-table-style-spacing);
942
+ }
943
+
944
+ &.table-style-align-center {
945
+ margin-left: auto;
946
+ margin-right: auto;
947
+ }
948
+
949
+ &.table-style-block-align-left {
950
+ margin-left: 0;
951
+ margin-right: auto;
952
+ }
953
+
954
+ &.table-style-block-align-right {
955
+ margin-left: auto;
956
+ margin-right: 0;
957
+ }
958
+ }
845
959
  }
846
960
 
847
- .ck .ck-insert-table-dropdown-grid-box:focus {
848
- box-shadow: none;
961
+ .ck-content .table > figcaption, .ck-content figure.table > table > caption {
962
+ caption-side: top;
963
+ word-break: normal;
964
+ overflow-wrap: anywhere;
965
+ text-align: center;
966
+ color: var(--ck-content-color-table-caption-text);
967
+ background-color: var(--ck-content-color-table-caption-background);
968
+ outline-offset: -1px;
969
+ padding: .6em;
970
+ font-size: .75em;
971
+ display: table-caption;
972
+
973
+ @media (forced-colors: active) {
974
+ background-color: unset;
975
+ color: unset;
976
+ }
977
+ }
978
+
979
+ .ck-content .table .ck-table-resized {
980
+ table-layout: fixed;
849
981
  }
850
982
 
851
- .ck .ck-insert-table-dropdown-grid-box.ck-on {
852
- border-color: var(--ck-color-focus-border);
853
- background: var(--ck-color-focus-outer-shadow);
983
+ .ck-content .table td, .ck-content .table th {
984
+ overflow-wrap: break-word;
854
985
  }
855
986
 
856
987
  /*# sourceMappingURL=index.css.map */