@ckeditor/ckeditor5-theme-lark 47.2.0 → 47.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-theme-lark",
3
- "version": "47.2.0",
3
+ "version": "47.3.0-alpha.0",
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": "47.2.0"
12
+ "@ckeditor/ckeditor5-ui": "47.3.0-alpha.0"
13
13
  },
14
14
  "author": "CKSource (http://cksource.com/)",
15
15
  "license": "SEE LICENSE IN LICENSE.md",
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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 "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
7
+
8
+ .ck.ck-form__row {
9
+ /* Ignore labels that work as fieldset legends */
10
+ & > *:not(.ck-label) {
11
+ & + * {
12
+ margin-inline-start: var(--ck-spacing-large);
13
+ }
14
+ }
15
+
16
+ & > .ck-label {
17
+ width: 100%;
18
+ min-width: 100%;
19
+ }
20
+
21
+ &.ck-table-form__action-row {
22
+ margin-top: var(--ck-spacing-large);
23
+ }
24
+ }
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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/_rounded.css";
7
+
8
+ :root {
9
+ --ck-table-properties-error-arrow-size: 6px;
10
+ --ck-table-properties-min-error-width: 150px;
11
+ }
12
+
13
+ .ck.ck-table-form.ck-table-properties-form_experimental {
14
+ --ck-table-form-default-input-width: 80px;
15
+
16
+ & .ck-form__row {
17
+ &.ck-table-form__border-row {
18
+ & .ck-labeled-field-view {
19
+ & > .ck-label {
20
+ font-size: var(--ck-font-size-tiny);
21
+ text-align: center;
22
+ }
23
+ }
24
+
25
+ & .ck-table-form__border-style,
26
+ & .ck-table-form__border-width {
27
+ width: var(--ck-table-form-default-input-width);
28
+ min-width: var(--ck-table-form-default-input-width);
29
+ max-width: var(--ck-table-form-default-input-width);
30
+ }
31
+ }
32
+
33
+ &.ck-table-form__dimensions-row {
34
+ --ck-table-form-dimensions-input-width: calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));
35
+
36
+ width: var(--ck-table-form-dimensions-input-width);
37
+ max-width: var(--ck-table-form-dimensions-input-width);
38
+ min-width: var(--ck-table-form-dimensions-input-width);
39
+ padding: 0;
40
+
41
+ & .ck-table-form__dimensions-row__width,
42
+ & .ck-table-form__dimensions-row__height {
43
+ width: var(--ck-table-form-default-input-width);
44
+ min-width: var(--ck-table-form-default-input-width);
45
+ max-width: var(--ck-table-form-default-input-width);
46
+ margin: 0
47
+ }
48
+
49
+ & .ck-table-form__dimension-operator {
50
+ position: relative;
51
+ left: -0.5ch;
52
+ width: 0;
53
+ overflow: visible;
54
+ align-self: flex-end;
55
+ display: inline-block;
56
+ height: var(--ck-ui-component-min-height);
57
+ line-height: var(--ck-ui-component-min-height);
58
+ margin: 0 var(--ck-spacing-small);
59
+ }
60
+ }
61
+ }
62
+
63
+ & .ck.ck-labeled-field-view {
64
+ padding-top: var(--ck-spacing-standard);
65
+
66
+ & .ck.ck-labeled-field-view__status {
67
+ @mixin ck-rounded-corners;
68
+
69
+ background: var(--ck-color-base-error);
70
+ color: var(--ck-color-base-background);
71
+ padding: var(--ck-spacing-small) var(--ck-spacing-medium);
72
+ min-width: var(--ck-table-properties-min-error-width);
73
+ text-align: center;
74
+
75
+ /* The arrow pointing towards the field. */
76
+ &::after {
77
+ border-color: transparent transparent var(--ck-color-base-error) transparent;
78
+ border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
79
+ border-style: solid;
80
+ }
81
+
82
+ animation: ck-table-form-labeled-view-status-appear .15s ease both;
83
+
84
+ @media (prefers-reduced-motion: reduce) {
85
+ animation: none;
86
+ }
87
+ }
88
+
89
+ /* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
90
+ & .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
91
+ display: none;
92
+ }
93
+ }
94
+ }
95
+
96
+ @keyframes ck-table-form-labeled-view-status-appear {
97
+ 0% {
98
+ opacity: 0;
99
+ }
100
+
101
+ 100% {
102
+ opacity: 1;
103
+ }
104
+ }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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
+ .ck.ck-table-properties-form {
7
+ width: 320px;
8
+
9
+ & .ck-form__row {
10
+ &.ck-table-properties-form__alignment-row {
11
+ align-self: flex-end;
12
+
13
+ & .ck.ck-toolbar {
14
+ background: none;
15
+
16
+ /* Compensate for missing input label that would push the margin (toolbar has no inputs). */
17
+ margin-top: var(--ck-spacing-standard);
18
+
19
+ & .ck-toolbar__items > * {
20
+ flex: 1;
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ &.ck-table-properties-form_experimental {
27
+ & .ck-form__row {
28
+ &.ck-table-properties-form__alignment-row {
29
+ padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;
30
+ }
31
+
32
+ &.ck-table-form__action-row {
33
+ justify-content: flex-end;
34
+
35
+ & > .ck.ck-button {
36
+ flex-grow: initial;
37
+
38
+ & .ck-button__label {
39
+ color: currentColor;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
package/theme/index.css CHANGED
@@ -100,6 +100,9 @@
100
100
  @import "./ckeditor5-table/tableproperties.css";
101
101
  @import "./ckeditor5-table/tableselection.css";
102
102
  @import "./ckeditor5-table/tablelayout.css";
103
+ @import "./ckeditor5-table/tableproperties-experimental.css";
104
+ @import "./ckeditor5-table/tableform-experimental.css";
105
+ @import "./ckeditor5-table/formrow-experimental.css";
103
106
  @import "./ckeditor5-widget/widget.css";
104
107
  @import "./ckeditor5-widget/widgetresize.css";
105
108
  @import "./ckeditor5-widget/widgettypearound.css";