@ckeditor/ckeditor5-theme-lark 41.3.0-alpha.3 → 41.3.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": "41.3.0-alpha.3",
3
+ "version": "41.3.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": "41.3.0-alpha.3"
12
+ "@ckeditor/ckeditor5-ui": "41.3.0"
13
13
  },
14
14
  "author": "CKSource (http://cksource.com/)",
15
15
  "license": "GPL-2.0-or-later",
@@ -21,7 +21,6 @@
21
21
  "directory": "packages/ckeditor5-theme-lark"
22
22
  },
23
23
  "files": [
24
- "dist",
25
24
  "lang",
26
25
  "src",
27
26
  "theme",
@@ -7,20 +7,22 @@
7
7
 
8
8
  .ck.ck-editor__top {
9
9
  & .ck-sticky-panel {
10
- & .ck-toolbar {
10
+ & .ck-sticky-panel__content {
11
11
  @mixin ck-rounded-corners {
12
12
  border-bottom-left-radius: 0;
13
13
  border-bottom-right-radius: 0;
14
14
  }
15
15
 
16
+ border: 1px solid var(--ck-color-base-border);
16
17
  border-bottom-width: 0;
17
- }
18
18
 
19
- & .ck-sticky-panel__content_sticky .ck-toolbar {
20
- border-bottom-width: 1px;
19
+ &.ck-sticky-panel__content_sticky {
20
+ border-bottom-width: 1px;
21
+ }
21
22
 
22
- @mixin ck-rounded-corners {
23
- border-radius: 0;
23
+ & .ck-menu-bar,
24
+ & .ck-toolbar {
25
+ border: 0;
24
26
  }
25
27
  }
26
28
  }
@@ -86,8 +86,7 @@ a.ck.ck-button {
86
86
  margin-right: var(--ck-spacing-large);
87
87
  }
88
88
 
89
- font-weight: bold;
90
- opacity: .7;
89
+ opacity: .5;
91
90
  }
92
91
 
93
92
  /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
@@ -5,7 +5,7 @@
5
5
 
6
6
  @import "../../../mixins/_rounded.css";
7
7
 
8
- .ck.ck-dropdown .ck-dropdown__panel .ck-list {
8
+ .ck.ck-dropdown > .ck-dropdown__panel > .ck-list {
9
9
  /* Disabled radius of top-left border to be consistent with .dropdown__button
10
10
  https://github.com/ckeditor/ckeditor5/issues/816 */
11
11
  @mixin ck-rounded-corners {
@@ -15,7 +15,7 @@
15
15
  /* Make sure the button belonging to the first/last child of the list goes well with the
16
16
  border radius of the entire panel. */
17
17
  & .ck-list__item {
18
- &:first-child .ck-button {
18
+ &:first-child > .ck-button {
19
19
  @mixin ck-rounded-corners {
20
20
  border-top-left-radius: 0;
21
21
  border-bottom-left-radius: 0;
@@ -23,7 +23,7 @@
23
23
  }
24
24
  }
25
25
 
26
- &:last-child .ck-button {
26
+ &:last-child > .ck-button {
27
27
  @mixin ck-rounded-corners {
28
28
  border-top-left-radius: 0;
29
29
  border-top-right-radius: 0;
@@ -10,7 +10,7 @@
10
10
 
11
11
  :root {
12
12
  --ck-list-button-padding:
13
- calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))
13
+ calc(.11 * var(--ck-line-height-base) * var(--ck-font-size-base))
14
14
  calc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));
15
15
  }
16
16
 
@@ -25,7 +25,7 @@
25
25
  cursor: default;
26
26
  min-width: 12em;
27
27
 
28
- & .ck-button {
28
+ & > .ck-button {
29
29
  min-height: unset;
30
30
  width: 100%;
31
31
  border-radius: 0;
@@ -43,11 +43,6 @@
43
43
  https://github.com/ckeditor/ckeditor5-heading/issues/63 */
44
44
  padding: var(--ck-list-button-padding);
45
45
 
46
- & .ck-button__label {
47
- /* https://github.com/ckeditor/ckeditor5-heading/issues/63 */
48
- line-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
49
- }
50
-
51
46
  &:active {
52
47
  box-shadow: none;
53
48
  }
@@ -76,7 +71,7 @@
76
71
 
77
72
  /* It's unnecessary to change the background/text of a switch toggle; it has different ways
78
73
  of conveying its state (like the switcher) */
79
- & .ck-switchbutton {
74
+ & > .ck-switchbutton {
80
75
  &.ck-on {
81
76
  background: var(--ck-color-list-background);
82
77
  color: inherit;
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck.ck-menu-bar {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ justify-content: flex-start;
10
+ background: var(--ck-color-base-background);
11
+ padding: var(--ck-spacing-small);
12
+ gap: var(--ck-spacing-small);
13
+ border: 1px solid var(--ck-color-toolbar-border);
14
+ width: 100%;
15
+ }
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck.ck-menu-bar__menu {
7
+ /* Enable font size inheritance, which allows fluid UI scaling. */
8
+ font-size: inherit;
9
+
10
+ &.ck-menu-bar__menu_top-level {
11
+ max-width: 100%;
12
+ }
13
+ }
@@ -0,0 +1,117 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_disabled.css";
7
+ @import "../../mixins/_button.css";
8
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
9
+
10
+ .ck.ck-menu-bar__menu {
11
+ /*
12
+ * All menu buttons.
13
+ */
14
+ & > .ck-menu-bar__menu__button {
15
+ padding: var(--ck-list-button-padding);
16
+ width: 100%;
17
+
18
+ & > .ck-button__label {
19
+ flex-grow: 1;
20
+ overflow: hidden;
21
+ text-overflow: ellipsis;
22
+ }
23
+
24
+ &.ck-disabled > .ck-button__label {
25
+ @mixin ck-disabled;
26
+ }
27
+
28
+ @mixin ck-dir ltr {
29
+ &:not(.ck-button_with-text) {
30
+ padding-left: var(--ck-spacing-small);
31
+ }
32
+ }
33
+
34
+ @mixin ck-dir rtl {
35
+ &:not(.ck-button_with-text) {
36
+ padding-right: var(--ck-spacing-small);
37
+ }
38
+ }
39
+ }
40
+
41
+ /*
42
+ * Top-level menu buttons only.
43
+ */
44
+ &.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button {
45
+ padding: var(--ck-spacing-small) var(--ck-spacing-medium);
46
+ min-height: unset;
47
+
48
+ & .ck-button__label {
49
+ width: unset;
50
+ line-height: unset;
51
+ }
52
+
53
+ &.ck-on {
54
+ border-bottom-left-radius: 0;
55
+ border-bottom-right-radius: 0;
56
+ }
57
+
58
+ & .ck-icon {
59
+ display: none;
60
+ }
61
+ }
62
+
63
+ /*
64
+ * Sub-menu buttons.
65
+ */
66
+ &:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {
67
+ border-radius: 0;
68
+
69
+ &:focus {
70
+ border-color: transparent;
71
+ box-shadow: none;
72
+
73
+ &:not(.ck-on) {
74
+ background: var(--ck-color-button-default-hover-background);
75
+ }
76
+ }
77
+
78
+ /* Spacing in buttons that miss the icon. */
79
+ &:not(:has(.ck-button__icon)) > .ck-button__label {
80
+ margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
81
+ }
82
+
83
+ & > .ck-menu-bar__menu__button__arrow {
84
+ width: var(--ck-dropdown-arrow-size);
85
+
86
+ @mixin ck-dir ltr {
87
+ transform: rotate(-90deg);
88
+ }
89
+
90
+ @mixin ck-dir rtl {
91
+ transform: rotate(90deg);
92
+ }
93
+ }
94
+
95
+ &.ck-disabled > .ck-menu-bar__menu__button__arrow {
96
+ @mixin ck-disabled;
97
+ }
98
+
99
+ @mixin ck-dir ltr {
100
+ & > .ck-menu-bar__menu__button__arrow {
101
+ right: var(--ck-spacing-standard);
102
+
103
+ /* A space to accommodate the triangle. */
104
+ margin-left: var(--ck-spacing-standard);
105
+ }
106
+ }
107
+
108
+ @mixin ck-dir rtl {
109
+ & > .ck-menu-bar__menu__button__arrow {
110
+ left: var(--ck-spacing-standard);
111
+
112
+ /* A space to accommodate the triangle. */
113
+ margin-right: var(--ck-spacing-small);
114
+ }
115
+ }
116
+ }
117
+ }
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ :root {
7
+ --ck-menu-bar-menu-item-min-width: 18em;
8
+ }
9
+
10
+ .ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item {
11
+ min-width: var(--ck-menu-bar-menu-item-min-width);
12
+ }
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck.ck-menu-bar__menu {
7
+ /*
8
+ * List item buttons.
9
+ */
10
+ & .ck-button.ck-menu-bar__menu__item__button {
11
+ border-radius: 0;
12
+
13
+ & > .ck-spinner-container,
14
+ & > .ck-spinner-container .ck-spinner {
15
+ /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */
16
+ --ck-toolbar-spinner-size: 20px;
17
+ }
18
+
19
+ & > .ck-spinner-container {
20
+ /* These margins are the same as for .ck-icon. */
21
+ margin-left: calc(-1 * var(--ck-spacing-small));
22
+ margin-right: var(--ck-spacing-small);
23
+ }
24
+
25
+ /*
26
+ * Hovered items automatically get focused. Default focus styles look odd
27
+ * while moving across a huge list of items so let's get rid of them
28
+ */
29
+ &:focus {
30
+ border-color: transparent;
31
+ box-shadow: none;
32
+
33
+ &:not(.ck-on) {
34
+ background: var(--ck-color-button-default-hover-background);
35
+ }
36
+ }
37
+ }
38
+
39
+ /*
40
+ * First-level sub-menu item buttons.
41
+ */
42
+ &.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__panel > ul > .ck-menu-bar__menu__item > .ck-menu-bar__menu__item__button {
43
+ /* Spacing in buttons that miss the icon. */
44
+ &:not(:has(.ck-button__icon)) > .ck-button__label {
45
+ margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
46
+ }
47
+ }
48
+ }
49
+
50
+
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_rounded.css";
7
+ @import "../../../mixins/_shadow.css";
8
+
9
+ :root {
10
+ --ck-menu-bar-menu-panel-max-width: 75vw;
11
+ }
12
+
13
+ .ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {
14
+ @mixin ck-rounded-corners;
15
+ @mixin ck-drop-shadow;
16
+
17
+ background: var(--ck-color-dropdown-panel-background);
18
+ border: 1px solid var(--ck-color-dropdown-panel-border);
19
+ bottom: 0;
20
+ height: fit-content;
21
+ max-width: var(--ck-menu-bar-menu-panel-max-width);
22
+
23
+ /* Corner border radius consistent with the button. */
24
+ &.ck-menu-bar__menu__panel_position_es,
25
+ &.ck-menu-bar__menu__panel_position_se {
26
+ border-top-left-radius: 0;
27
+ }
28
+
29
+ &.ck-menu-bar__menu__panel_position_ws,
30
+ &.ck-menu-bar__menu__panel_position_sw {
31
+ border-top-right-radius: 0;
32
+ }
33
+
34
+ &.ck-menu-bar__menu__panel_position_en,
35
+ &.ck-menu-bar__menu__panel_position_ne {
36
+ border-bottom-left-radius: 0;
37
+ }
38
+
39
+ &.ck-menu-bar__menu__panel_position_wn,
40
+ &.ck-menu-bar__menu__panel_position_nw {
41
+ border-bottom-right-radius: 0;
42
+ }
43
+
44
+ &:focus {
45
+ outline: none;
46
+ }
47
+ }
@@ -17,11 +17,6 @@
17
17
  .ck.ck-reset,
18
18
  .ck.ck-reset_all,
19
19
  .ck-reset_all *:not(.ck-reset_all-excluded *) {
20
- box-sizing: border-box;
21
- width: auto;
22
- height: auto;
23
- position: static;
24
-
25
20
  /* Do not include inheritable rules here. */
26
21
  margin: 0;
27
22
  padding: 0;
@@ -1,12 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- :root {
6
- --ck-color-mention-background: hsla(341, 100%, 30%, 0.1);
7
- --ck-color-mention-text: hsl(341, 100%, 30%);
8
- }
9
- .ck-content .mention {
10
- background: var(--ck-color-mention-background);
11
- color: var(--ck-color-mention-text);
12
- }