@ckeditor/ckeditor5-theme-lark 39.0.2 → 40.1.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/LICENSE.md +2 -2
- package/package.json +2 -2
- package/theme/ckeditor5-clipboard/clipboard.css +28 -3
- package/theme/ckeditor5-ui/components/autocomplete/autocomplete.css +36 -0
- package/theme/ckeditor5-ui/components/formheader/formheader.css +12 -0
- package/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css +5 -4
- package/theme/ckeditor5-ui/components/list/list.css +24 -1
- package/theme/ckeditor5-ui/components/search/search.css +106 -0
- package/theme/ckeditor5-ui/components/spinner/spinner.css +29 -0
- package/theme/ckeditor5-ui/components/textarea/textarea.css +12 -0
- package/theme/ckeditor5-ui/components/tooltip/tooltip.css +7 -0
- package/theme/ckeditor5-ui/globals/_colors.css +5 -1
package/LICENSE.md
CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
|
|
2
2
|
==========================
|
3
3
|
|
4
4
|
**CKEditor 5 lark theme** – https://github.com/ckeditor/ckeditor5-theme-lark <br>
|
5
|
-
Copyright (c) 2003
|
5
|
+
Copyright (c) 2003–2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
6
6
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
8
8
|
|
@@ -14,4 +14,4 @@ Where not otherwise indicated, all CKEditor content is authored by CKSource engi
|
|
14
14
|
Trademarks
|
15
15
|
----------
|
16
16
|
|
17
|
-
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
17
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-theme-lark",
|
3
|
-
"version": "
|
3
|
+
"version": "40.1.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": "
|
12
|
+
"@ckeditor/ckeditor5-ui": "40.1.0"
|
13
13
|
},
|
14
14
|
"author": "CKSource (http://cksource.com/)",
|
15
15
|
"license": "GPL-2.0-or-later",
|
@@ -3,10 +3,12 @@
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
|
6
|
+
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
7
|
+
|
6
8
|
:root {
|
7
9
|
--ck-clipboard-drop-target-dot-width: 12px;
|
8
10
|
--ck-clipboard-drop-target-dot-height: 8px;
|
9
|
-
--ck-clipboard-drop-target-color: var(--ck-color-focus-border)
|
11
|
+
--ck-clipboard-drop-target-color: var(--ck-color-focus-border);
|
10
12
|
}
|
11
13
|
|
12
14
|
.ck.ck-editor__editable {
|
@@ -23,14 +25,14 @@
|
|
23
25
|
|
24
26
|
/* The triangle above the marker */
|
25
27
|
&::after {
|
26
|
-
content:
|
28
|
+
content: '';
|
27
29
|
width: 0;
|
28
30
|
height: 0;
|
29
31
|
|
30
32
|
display: block;
|
31
33
|
position: absolute;
|
32
34
|
left: 50%;
|
33
|
-
top: calc(var(--ck-clipboard-drop-target-dot-height)
|
35
|
+
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
34
36
|
|
35
37
|
transform: translateX(-50%);
|
36
38
|
border-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;
|
@@ -61,4 +63,27 @@
|
|
61
63
|
border: 1px solid var(--ck-clipboard-drop-target-color);
|
62
64
|
background: var(--ck-clipboard-drop-target-color);
|
63
65
|
margin-top: -1px;
|
66
|
+
|
67
|
+
&::before {
|
68
|
+
content: '';
|
69
|
+
position: absolute;
|
70
|
+
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));
|
71
|
+
width: 0;
|
72
|
+
height: 0;
|
73
|
+
border-style: solid;
|
74
|
+
|
75
|
+
@mixin ck-dir ltr {
|
76
|
+
left: -1px;
|
77
|
+
|
78
|
+
border-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);
|
79
|
+
border-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin ck-dir rtl {
|
83
|
+
right: -1px;
|
84
|
+
|
85
|
+
border-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;
|
86
|
+
border-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;
|
87
|
+
}
|
88
|
+
}
|
64
89
|
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2023, 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 "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
7
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
8
|
+
|
9
|
+
.ck.ck-autocomplete {
|
10
|
+
& > .ck-search__results {
|
11
|
+
@mixin ck-rounded-corners;
|
12
|
+
@mixin ck-drop-shadow;
|
13
|
+
|
14
|
+
max-height: 200px;
|
15
|
+
overflow-y: auto;
|
16
|
+
background: var(--ck-color-base-background);
|
17
|
+
border: 1px solid var(--ck-color-dropdown-panel-border);
|
18
|
+
min-width: auto;
|
19
|
+
|
20
|
+
&.ck-search__results_n {
|
21
|
+
border-bottom-left-radius: 0;
|
22
|
+
border-bottom-right-radius: 0;
|
23
|
+
|
24
|
+
/* Prevent duplicated borders between the input and the results pane. */
|
25
|
+
margin-bottom: -1px;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.ck-search__results_s {
|
29
|
+
border-top-left-radius: 0;
|
30
|
+
border-top-right-radius: 0;
|
31
|
+
|
32
|
+
/* Prevent duplicated borders between the input and the results pane. */
|
33
|
+
margin-top: -1px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -3,6 +3,8 @@
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
|
6
|
+
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
7
|
+
|
6
8
|
:root {
|
7
9
|
--ck-form-header-height: 38px;
|
8
10
|
}
|
@@ -13,6 +15,16 @@
|
|
13
15
|
line-height: var(--ck-form-header-height);
|
14
16
|
border-bottom: 1px solid var(--ck-color-base-border);
|
15
17
|
|
18
|
+
& .ck-icon {
|
19
|
+
@mixin ck-dir ltr {
|
20
|
+
margin-right: var(--ck-spacing-medium);
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin ck-dir rtl {
|
24
|
+
margin-left: var(--ck-spacing-medium);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
16
28
|
& .ck-form__header__label {
|
17
29
|
font-weight: bold;
|
18
30
|
}
|
@@ -25,17 +25,18 @@
|
|
25
25
|
|
26
26
|
@mixin ck-dir ltr {
|
27
27
|
left: 0px;
|
28
|
+
transform-origin: 0 0;
|
29
|
+
/* By default, display the label scaled down above the field. */
|
30
|
+
transform: translate(var(--ck-spacing-medium), -6px) scale(.75);
|
28
31
|
}
|
29
32
|
|
30
33
|
@mixin ck-dir rtl {
|
31
34
|
right: 0px;
|
35
|
+
transform-origin: 100% 0;
|
36
|
+
transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);
|
32
37
|
}
|
33
38
|
|
34
39
|
pointer-events: none;
|
35
|
-
transform-origin: 0 0;
|
36
|
-
|
37
|
-
/* By default, display the label scaled down above the field. */
|
38
|
-
transform: translate(var(--ck-spacing-medium), -6px) scale(.75);
|
39
40
|
|
40
41
|
background: var(--ck-color-labeled-field-label-background);
|
41
42
|
padding: 0 calc(.5 * var(--ck-font-size-tiny));
|
@@ -6,6 +6,7 @@
|
|
6
6
|
@import "../../../mixins/_disabled.css";
|
7
7
|
@import "../../../mixins/_rounded.css";
|
8
8
|
@import "../../../mixins/_shadow.css";
|
9
|
+
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
9
10
|
|
10
11
|
.ck.ck-list {
|
11
12
|
@mixin ck-rounded-corners;
|
@@ -21,9 +22,16 @@
|
|
21
22
|
& .ck-button {
|
22
23
|
min-height: unset;
|
23
24
|
width: 100%;
|
24
|
-
text-align: left;
|
25
25
|
border-radius: 0;
|
26
26
|
|
27
|
+
@mixin ck-dir ltr {
|
28
|
+
text-align: left;
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin ck-dir rtl {
|
32
|
+
text-align: right;
|
33
|
+
}
|
34
|
+
|
27
35
|
/* List items should have the same height. Use absolute units to make sure it is so
|
28
36
|
because e.g. different heading styles may have different height
|
29
37
|
https://github.com/ckeditor/ckeditor5-heading/issues/63 */
|
@@ -77,6 +85,21 @@
|
|
77
85
|
}
|
78
86
|
}
|
79
87
|
|
88
|
+
.ck-list .ck-list__group {
|
89
|
+
padding-top: var(--ck-spacing-medium);
|
90
|
+
|
91
|
+
/* The group should have a border when it's not the first item. */
|
92
|
+
*:not(.ck-hidden) ~ & {
|
93
|
+
border-top: 1px solid var(--ck-color-base-border);
|
94
|
+
}
|
95
|
+
|
96
|
+
& > .ck-label {
|
97
|
+
font-size: 11px;
|
98
|
+
font-weight: bold;
|
99
|
+
padding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
80
103
|
.ck.ck-list__separator {
|
81
104
|
height: 1px;
|
82
105
|
width: 100%;
|
@@ -0,0 +1,106 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2023, 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 "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
7
|
+
|
8
|
+
:root {
|
9
|
+
--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));
|
10
|
+
}
|
11
|
+
|
12
|
+
.ck.ck-search {
|
13
|
+
& > .ck-labeled-field-view {
|
14
|
+
& .ck-input {
|
15
|
+
width: 100%;
|
16
|
+
}
|
17
|
+
|
18
|
+
&.ck-search__query_with-icon {
|
19
|
+
--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);
|
20
|
+
|
21
|
+
& > .ck-labeled-field-view__input-wrapper > .ck-icon {
|
22
|
+
opacity: .5;
|
23
|
+
pointer-events: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
& .ck-input {
|
27
|
+
width: 100%;
|
28
|
+
|
29
|
+
@mixin ck-dir ltr {
|
30
|
+
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
31
|
+
}
|
32
|
+
|
33
|
+
@mixin ck-dir rtl {
|
34
|
+
&:not(.ck-input-text_empty) {
|
35
|
+
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&.ck-search__query_with-reset {
|
42
|
+
--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);
|
43
|
+
|
44
|
+
&.ck-labeled-field-view_empty {
|
45
|
+
--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);
|
46
|
+
}
|
47
|
+
|
48
|
+
& .ck-search__reset {
|
49
|
+
min-width: auto;
|
50
|
+
min-height: auto;
|
51
|
+
|
52
|
+
background: none;
|
53
|
+
opacity: .5;
|
54
|
+
padding: 0;
|
55
|
+
|
56
|
+
@mixin ck-dir ltr {
|
57
|
+
right: var(--ck-spacing-medium);
|
58
|
+
}
|
59
|
+
|
60
|
+
@mixin ck-dir rtl {
|
61
|
+
left: var(--ck-spacing-medium);
|
62
|
+
}
|
63
|
+
|
64
|
+
&:hover {
|
65
|
+
opacity: 1;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
& .ck-input {
|
70
|
+
width: 100%;
|
71
|
+
|
72
|
+
@mixin ck-dir ltr {
|
73
|
+
&:not(.ck-input-text_empty) {
|
74
|
+
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@mixin ck-dir rtl {
|
79
|
+
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
& > .ck-search__results {
|
86
|
+
min-width: 100%;
|
87
|
+
|
88
|
+
& > .ck-search__info {
|
89
|
+
width: 100%;
|
90
|
+
padding: var(--ck-spacing-medium) var(--ck-spacing-large);
|
91
|
+
|
92
|
+
& * {
|
93
|
+
white-space: normal;
|
94
|
+
}
|
95
|
+
|
96
|
+
& > span:first-child {
|
97
|
+
font-weight: bold;
|
98
|
+
}
|
99
|
+
|
100
|
+
& > span:last-child {
|
101
|
+
margin-top: var(--ck-spacing-medium);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2023, 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-toolbar-spinner-size: 18px;
|
8
|
+
}
|
9
|
+
|
10
|
+
.ck.ck-spinner-container {
|
11
|
+
width: var(--ck-toolbar-spinner-size);
|
12
|
+
height: var(--ck-toolbar-spinner-size);
|
13
|
+
animation: 1.5s infinite rotate linear;
|
14
|
+
}
|
15
|
+
|
16
|
+
.ck.ck-spinner {
|
17
|
+
width: var(--ck-toolbar-spinner-size);
|
18
|
+
height: var(--ck-toolbar-spinner-size);
|
19
|
+
border-radius: 50%;
|
20
|
+
border: 2px solid var(--ck-color-text);
|
21
|
+
border-top-color: transparent;
|
22
|
+
}
|
23
|
+
|
24
|
+
@keyframes rotate {
|
25
|
+
to {
|
26
|
+
transform: rotate(360deg)
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2023, 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
|
+
/*
|
7
|
+
* This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.
|
8
|
+
* This bug is especially visible when rows=1.
|
9
|
+
*/
|
10
|
+
.ck-textarea {
|
11
|
+
overflow-x: hidden
|
12
|
+
}
|
@@ -10,6 +10,7 @@
|
|
10
10
|
--ck-balloon-arrow-offset: 0px;
|
11
11
|
--ck-balloon-arrow-half-width: 4px;
|
12
12
|
--ck-balloon-arrow-height: 4px;
|
13
|
+
--ck-tooltip-text-padding: 4px;
|
13
14
|
--ck-color-panel-background: var(--ck-color-tooltip-background);
|
14
15
|
|
15
16
|
padding: 0 var(--ck-spacing-medium);
|
@@ -20,6 +21,12 @@
|
|
20
21
|
color: var(--ck-color-tooltip-text);
|
21
22
|
}
|
22
23
|
|
24
|
+
&.ck-tooltip_multi-line .ck-tooltip__text {
|
25
|
+
white-space: break-spaces;
|
26
|
+
display: inline-block;
|
27
|
+
padding: var(--ck-tooltip-text-padding) 0;
|
28
|
+
}
|
29
|
+
|
23
30
|
/* Reset balloon panel styles */
|
24
31
|
box-shadow: none;
|
25
32
|
|
@@ -110,5 +110,9 @@
|
|
110
110
|
|
111
111
|
/* -- Search result highlight ---------------------------------------------------------------- */
|
112
112
|
|
113
|
-
--ck-color-highlight-background: hsl(60, 100%, 50%)
|
113
|
+
--ck-color-highlight-background: hsl(60, 100%, 50%);
|
114
|
+
|
115
|
+
/* -- Generic colors ------------------------------------------------------------------------- */
|
116
|
+
|
117
|
+
--ck-color-light-red: hsl(0, 100%, 90%);
|
114
118
|
}
|