@ckeditor/ckeditor5-theme-lark 39.0.1 → 40.0.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/CHANGELOG.md +2 -2
- package/LICENSE.md +1 -1
- package/README.md +3 -3
- package/package.json +2 -6
- package/theme/ckeditor5-clipboard/clipboard.css +28 -3
- package/theme/ckeditor5-ui/components/autocomplete/autocomplete.css +36 -0
- package/theme/ckeditor5-ui/components/list/list.css +15 -0
- 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/CHANGELOG.md
CHANGED
@@ -264,7 +264,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
264
264
|
|
265
265
|
### BREAKING CHANGES
|
266
266
|
|
267
|
-
* The license under which CKEditor
|
267
|
+
* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
|
268
268
|
|
269
269
|
|
270
270
|
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-theme-lark/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19)
|
@@ -332,7 +332,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
332
332
|
|
333
333
|
* The `.ck-editor-toolbar` CSS class has been removed.
|
334
334
|
* Various CSS variables (mostly colors) have been removed. Please make sure your code uses the latest theme API.
|
335
|
-
* From now on there's only one subset of the theme, aligned to the default look of CKEditor
|
335
|
+
* From now on there's only one subset of the theme, aligned to the default look of CKEditor 5.
|
336
336
|
* Various UI components' styles have been rewritten. The CSS selectors that used to style them may have a different specificity and appear in a different order.
|
337
337
|
* The styles are no longer developed in SASS which means various `.scss` files (including variables, mixins, etc.) became unavailable. Please refer to the [Theme Customization](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/ui/theme-customization.html) guide to learn more about migration to PostCSS.
|
338
338
|
|
package/LICENSE.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Software License Agreement
|
2
2
|
==========================
|
3
3
|
|
4
|
-
**CKEditor
|
4
|
+
**CKEditor 5 lark theme** – https://github.com/ckeditor/ckeditor5-theme-lark <br>
|
5
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).
|
package/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
CKEditor
|
1
|
+
CKEditor 5 lark theme
|
2
2
|
========================================
|
3
3
|
|
4
4
|
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark)
|
5
5
|
[](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
6
6
|
[](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
7
7
|
|
8
|
-
This package implements lark theme — the default CKEditor
|
8
|
+
This package implements lark theme — the default CKEditor 5 theme.
|
9
9
|
|
10
10
|
## Documentation
|
11
11
|
|
12
|
-
See the [`@ckeditor/ckeditor5-theme-lark` package](https://ckeditor.com/docs/ckeditor5/latest/api/theme-lark.html) page in [CKEditor
|
12
|
+
See the [`@ckeditor/ckeditor5-theme-lark` package](https://ckeditor.com/docs/ckeditor5/latest/api/theme-lark.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
|
13
13
|
|
14
14
|
## License
|
15
15
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-theme-lark",
|
3
|
-
"version": "
|
3
|
+
"version": "40.0.0",
|
4
4
|
"description": "A bright theme for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -9,11 +9,7 @@
|
|
9
9
|
"ckeditor5-theme"
|
10
10
|
],
|
11
11
|
"dependencies": {
|
12
|
-
"@ckeditor/ckeditor5-ui": "
|
13
|
-
},
|
14
|
-
"engines": {
|
15
|
-
"node": ">=16.0.0",
|
16
|
-
"npm": ">=5.7.1"
|
12
|
+
"@ckeditor/ckeditor5-ui": "40.0.0"
|
17
13
|
},
|
18
14
|
"author": "CKSource (http://cksource.com/)",
|
19
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
|
+
}
|
@@ -77,6 +77,21 @@
|
|
77
77
|
}
|
78
78
|
}
|
79
79
|
|
80
|
+
.ck-list .ck-list__group {
|
81
|
+
padding-top: var(--ck-spacing-medium);
|
82
|
+
|
83
|
+
/* The group should have a border when it's not the first item. */
|
84
|
+
*:not(.ck-hidden) ~ & {
|
85
|
+
border-top: 1px solid var(--ck-color-base-border);
|
86
|
+
}
|
87
|
+
|
88
|
+
& > span {
|
89
|
+
font-size: 11px;
|
90
|
+
font-weight: bold;
|
91
|
+
padding: var(--ck-spacing-medium);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
80
95
|
.ck.ck-list__separator {
|
81
96
|
height: 1px;
|
82
97
|
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
|
|