@ckeditor/ckeditor5-theme-lark 35.0.1 → 35.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/CHANGELOG.md +2 -2
- package/package.json +28 -28
- package/theme/ckeditor5-link/linkactions.css +0 -1
- package/theme/ckeditor5-link/linkform.css +6 -5
- package/theme/ckeditor5-special-characters/charactergrid.css +10 -1
- package/theme/ckeditor5-special-characters/characterinfo.css +6 -0
- package/theme/ckeditor5-special-characters/specialcharacters.css +10 -0
- package/theme/ckeditor5-style/stylegrid.css +14 -25
- package/theme/ckeditor5-table/inserttable.css +1 -0
- package/theme/ckeditor5-table/tableediting.css +1 -1
- package/theme/ckeditor5-ui/components/button/button.css +2 -0
- package/theme/ckeditor5-ui/components/button/switchbutton.css +40 -20
- package/theme/ckeditor5-ui/components/colorgrid/colorgrid.css +1 -1
- package/theme/ckeditor5-ui/components/list/list.css +1 -1
- package/theme/ckeditor5-ui/components/panel/balloonpanel.css +58 -3
- package/theme/ckeditor5-ui/components/responsive-form/responsiveform.css +10 -9
- package/theme/ckeditor5-ui/components/toolbar/toolbar.css +0 -3
- package/theme/ckeditor5-ui/components/tooltip/tooltip.css +12 -176
- package/theme/ckeditor5-ui/globals/_colors.css +24 -25
- package/theme/ckeditor5-ui/mixins/_button.css +0 -1
package/CHANGELOG.md
CHANGED
@@ -74,7 +74,7 @@ Changes for the past releases are available below.
|
|
74
74
|
* Enabled additional box-shadow on `.ck-button` to meet WCAG AA recommendations. Adjusted the color of the `--ck-color-focus-border` for the same reason (editables, widget selection, etc.). Closes [ckeditor/ckeditor5#5580](https://github.com/ckeditor/ckeditor5/issues/5580). ([0fe1500](https://github.com/ckeditor/ckeditor5-theme-lark/commit/0fe1500))
|
75
75
|
|
76
76
|
Also:
|
77
|
-
* Optimized the color of a
|
77
|
+
* Optimized the color of a grid component for WCAG AA.
|
78
78
|
* Imported insert table UI styles from ckeditor5-table (code refactoring).
|
79
79
|
* Improved the table UI contrast and accessibility.
|
80
80
|
|
@@ -101,7 +101,7 @@ Changes for the past releases are available below.
|
|
101
101
|
### Other changes
|
102
102
|
|
103
103
|
* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([59e4777](https://github.com/ckeditor/ckeditor5-theme-lark/commit/59e4777))
|
104
|
-
* The `.ck-progress-bar` styles should not be under with `.ck-content`.
|
104
|
+
* The `.ck-progress-bar` styles should not be under with `.ck-content`. Additionally removed two unused custom properties: `--ck-color-upload-infinite-background` and `--ck-image-upload-progress-line-width`. Closes https://github.com/ckeditor/ckeditor5-theme-lark/issues/239. Closes https://github.com/ckeditor/ckeditor5/issues/1915. ([cb92793](https://github.com/ckeditor/ckeditor5-theme-lark/commit/cb92793))
|
105
105
|
|
106
106
|
|
107
107
|
## [14.1.1](https://github.com/ckeditor/ckeditor5-theme-lark/compare/v14.1.0...v14.1.1) (2019-07-10)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-theme-lark",
|
3
|
-
"version": "35.0
|
3
|
+
"version": "35.1.0",
|
4
4
|
"description": "A bright theme for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -9,35 +9,35 @@
|
|
9
9
|
"ckeditor5-theme"
|
10
10
|
],
|
11
11
|
"dependencies": {
|
12
|
-
"@ckeditor/ckeditor5-ui": "^35.0
|
12
|
+
"@ckeditor/ckeditor5-ui": "^35.1.0"
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
|
-
"@ckeditor/ckeditor5-basic-styles": "^35.0
|
16
|
-
"@ckeditor/ckeditor5-ckfinder": "^35.0
|
17
|
-
"@ckeditor/ckeditor5-code-block": "^35.0
|
18
|
-
"@ckeditor/ckeditor5-core": "^35.0
|
19
|
-
"@ckeditor/ckeditor5-editor-balloon": "^35.0
|
20
|
-
"@ckeditor/ckeditor5-editor-classic": "^35.0
|
21
|
-
"@ckeditor/ckeditor5-find-and-replace": "^35.0
|
22
|
-
"@ckeditor/ckeditor5-font": "^35.0
|
23
|
-
"@ckeditor/ckeditor5-heading": "^35.0
|
24
|
-
"@ckeditor/ckeditor5-highlight": "^35.0
|
25
|
-
"@ckeditor/ckeditor5-html-embed": "^35.0
|
26
|
-
"@ckeditor/ckeditor5-indent": "^35.0
|
27
|
-
"@ckeditor/ckeditor5-link": "^35.0
|
28
|
-
"@ckeditor/ckeditor5-list": "^35.0
|
29
|
-
"@ckeditor/ckeditor5-media-embed": "^35.0
|
30
|
-
"@ckeditor/ckeditor5-page-break": "^35.0
|
31
|
-
"@ckeditor/ckeditor5-paragraph": "^35.0
|
32
|
-
"@ckeditor/ckeditor5-remove-format": "^35.0
|
33
|
-
"@ckeditor/ckeditor5-restricted-editing": "^35.0
|
34
|
-
"@ckeditor/ckeditor5-select-all": "^35.0
|
35
|
-
"@ckeditor/ckeditor5-source-editing": "^35.0
|
36
|
-
"@ckeditor/ckeditor5-special-characters": "^35.0
|
37
|
-
"@ckeditor/ckeditor5-undo": "^35.0
|
38
|
-
"@ckeditor/ckeditor5-utils": "^35.0
|
39
|
-
"@ckeditor/ckeditor5-table": "^35.0
|
40
|
-
"ckeditor5": "^35.0
|
15
|
+
"@ckeditor/ckeditor5-basic-styles": "^35.1.0",
|
16
|
+
"@ckeditor/ckeditor5-ckfinder": "^35.1.0",
|
17
|
+
"@ckeditor/ckeditor5-code-block": "^35.1.0",
|
18
|
+
"@ckeditor/ckeditor5-core": "^35.1.0",
|
19
|
+
"@ckeditor/ckeditor5-editor-balloon": "^35.1.0",
|
20
|
+
"@ckeditor/ckeditor5-editor-classic": "^35.1.0",
|
21
|
+
"@ckeditor/ckeditor5-find-and-replace": "^35.1.0",
|
22
|
+
"@ckeditor/ckeditor5-font": "^35.1.0",
|
23
|
+
"@ckeditor/ckeditor5-heading": "^35.1.0",
|
24
|
+
"@ckeditor/ckeditor5-highlight": "^35.1.0",
|
25
|
+
"@ckeditor/ckeditor5-html-embed": "^35.1.0",
|
26
|
+
"@ckeditor/ckeditor5-indent": "^35.1.0",
|
27
|
+
"@ckeditor/ckeditor5-link": "^35.1.0",
|
28
|
+
"@ckeditor/ckeditor5-list": "^35.1.0",
|
29
|
+
"@ckeditor/ckeditor5-media-embed": "^35.1.0",
|
30
|
+
"@ckeditor/ckeditor5-page-break": "^35.1.0",
|
31
|
+
"@ckeditor/ckeditor5-paragraph": "^35.1.0",
|
32
|
+
"@ckeditor/ckeditor5-remove-format": "^35.1.0",
|
33
|
+
"@ckeditor/ckeditor5-restricted-editing": "^35.1.0",
|
34
|
+
"@ckeditor/ckeditor5-select-all": "^35.1.0",
|
35
|
+
"@ckeditor/ckeditor5-source-editing": "^35.1.0",
|
36
|
+
"@ckeditor/ckeditor5-special-characters": "^35.1.0",
|
37
|
+
"@ckeditor/ckeditor5-undo": "^35.1.0",
|
38
|
+
"@ckeditor/ckeditor5-utils": "^35.1.0",
|
39
|
+
"@ckeditor/ckeditor5-table": "^35.1.0",
|
40
|
+
"ckeditor5": "^35.1.0"
|
41
41
|
},
|
42
42
|
"engines": {
|
43
43
|
"node": ">=14.0.0",
|
@@ -3,7 +3,6 @@
|
|
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/components/tooltip/mixins/_tooltip.css";
|
7
6
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";
|
8
7
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
9
8
|
@import "../mixins/_focus.css";
|
@@ -22,13 +22,15 @@
|
|
22
22
|
}
|
23
23
|
}
|
24
24
|
|
25
|
-
& .ck-button {
|
25
|
+
& > .ck-button {
|
26
26
|
padding: var(--ck-spacing-standard);
|
27
27
|
margin: 0;
|
28
|
-
border-radius: 0;
|
29
|
-
border: 0;
|
30
|
-
border-top: 1px solid var(--ck-color-base-border);
|
31
28
|
width: 50%;
|
29
|
+
border-radius: 0;
|
30
|
+
|
31
|
+
&:not(:focus) {
|
32
|
+
border-top: 1px solid var(--ck-color-base-border);
|
33
|
+
}
|
32
34
|
|
33
35
|
@mixin ck-dir ltr {
|
34
36
|
margin-left: 0;
|
@@ -48,7 +50,6 @@
|
|
48
50
|
margin: var(--ck-spacing-standard) var(--ck-spacing-large);
|
49
51
|
|
50
52
|
& .ck-button.ck-switchbutton {
|
51
|
-
border: 0;
|
52
53
|
padding: 0;
|
53
54
|
width: 100%;
|
54
55
|
|
@@ -3,6 +3,7 @@
|
|
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/_rwd.css";
|
6
7
|
@import "../mixins/_rounded.css";
|
7
8
|
|
8
9
|
:root {
|
@@ -15,10 +16,18 @@
|
|
15
16
|
width: 350px;
|
16
17
|
max-height: 200px;
|
17
18
|
|
19
|
+
@mixin ck-media-phone {
|
20
|
+
width: 190px;
|
21
|
+
}
|
22
|
+
|
18
23
|
& .ck-character-grid__tiles {
|
19
|
-
grid-template-columns: repeat(
|
24
|
+
grid-template-columns: repeat(10, 1fr);
|
20
25
|
margin: var(--ck-spacing-standard) var(--ck-spacing-large);
|
21
26
|
grid-gap: var(--ck-spacing-standard);
|
27
|
+
|
28
|
+
@mixin ck-media-phone {
|
29
|
+
grid-template-columns: repeat(5, 1fr);
|
30
|
+
}
|
22
31
|
}
|
23
32
|
|
24
33
|
& .ck-character-grid__tile {
|
@@ -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/_rwd.css";
|
7
|
+
|
6
8
|
.ck.ck-character-info {
|
7
9
|
padding: var(--ck-spacing-small) var(--ck-spacing-large);
|
8
10
|
border-top: 1px solid var(--ck-color-base-border);
|
@@ -21,4 +23,8 @@
|
|
21
23
|
& .ck-character-info__code {
|
22
24
|
opacity: .6;
|
23
25
|
}
|
26
|
+
|
27
|
+
@mixin ck-media-phone {
|
28
|
+
max-width: 190px;
|
29
|
+
}
|
24
30
|
}
|
@@ -4,6 +4,7 @@
|
|
4
4
|
*/
|
5
5
|
|
6
6
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
7
|
+
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
7
8
|
|
8
9
|
.ck.ck-special-characters-navigation {
|
9
10
|
|
@@ -19,4 +20,13 @@
|
|
19
20
|
overflow-y: auto;
|
20
21
|
overflow-x: hidden;
|
21
22
|
}
|
23
|
+
|
24
|
+
@mixin ck-media-phone {
|
25
|
+
max-width: 190px;
|
26
|
+
|
27
|
+
& > .ck-form__header__label {
|
28
|
+
text-overflow: ellipsis;
|
29
|
+
overflow: hidden;
|
30
|
+
}
|
31
|
+
}
|
22
32
|
}
|
@@ -6,10 +6,8 @@
|
|
6
6
|
:root {
|
7
7
|
--ck-style-panel-button-width: 120px;
|
8
8
|
--ck-style-panel-button-height: 80px;
|
9
|
-
--ck-style-panel-button-
|
10
|
-
--ck-style-panel-button-
|
11
|
-
--ck-style-panel-button-label-background: hsl(0, 0%, 90%);
|
12
|
-
--ck-style-panel-button-hover-label-background: hsl(0, 0%, 80%);
|
9
|
+
--ck-style-panel-button-label-background: hsl(0, 0%, 94.1%);
|
10
|
+
--ck-style-panel-button-hover-label-background: hsl(0, 0%, 92.1%);
|
13
11
|
--ck-style-panel-button-hover-border-color: hsl(0, 0%, 70%);
|
14
12
|
}
|
15
13
|
|
@@ -28,7 +26,6 @@
|
|
28
26
|
/* Let default .ck-button :focus styles apply */
|
29
27
|
&:not(:focus) {
|
30
28
|
border: 1px solid var(--ck-color-base-border);
|
31
|
-
box-shadow: var(--ck-style-panel-button-shadow);
|
32
29
|
}
|
33
30
|
|
34
31
|
& .ck-button__label {
|
@@ -39,7 +36,6 @@
|
|
39
36
|
overflow: hidden;
|
40
37
|
text-overflow: ellipsis;
|
41
38
|
flex-shrink: 0;
|
42
|
-
background: var(--ck-style-panel-button-label-background);
|
43
39
|
}
|
44
40
|
|
45
41
|
& .ck-style-grid__button__preview {
|
@@ -48,6 +44,7 @@
|
|
48
44
|
opacity: .9;
|
49
45
|
|
50
46
|
padding: var(--ck-spacing-medium);
|
47
|
+
background: var(--ck-color-base-background);
|
51
48
|
border: 2px solid var(--ck-color-base-background);
|
52
49
|
}
|
53
50
|
|
@@ -56,14 +53,9 @@
|
|
56
53
|
|
57
54
|
/* Let default .ck-button :focus styles apply */
|
58
55
|
&:not(:focus) {
|
59
|
-
box-shadow: none;
|
60
56
|
border-color: var(--ck-style-panel-button-label-background);
|
61
57
|
}
|
62
58
|
|
63
|
-
& .ck-button__label {
|
64
|
-
background: var(--ck-style-panel-button-label-background);
|
65
|
-
}
|
66
|
-
|
67
59
|
& .ck-style-grid__button__preview {
|
68
60
|
opacity: .4;
|
69
61
|
|
@@ -73,24 +65,25 @@
|
|
73
65
|
}
|
74
66
|
|
75
67
|
&.ck-on {
|
76
|
-
--ck-color-button-on-background: var(--ck-color-base-background);
|
77
|
-
--ck-color-button-on-hover-background: var(--ck-color-base-background);
|
78
|
-
--ck-color-button-on-active-background: var(--ck-color-base-background);
|
79
|
-
--ck-style-panel-button-shadow-color: hsla(208, 88%, 52%, 0.1);
|
80
|
-
|
81
68
|
border-color: var(--ck-color-base-active);
|
82
69
|
|
83
70
|
& .ck-button__label {
|
84
|
-
|
85
|
-
|
71
|
+
box-shadow: 0 -1px 0 var(--ck-color-base-active);
|
72
|
+
z-index: 1; /* Stay on top of the preview with the shadow. */
|
86
73
|
}
|
87
74
|
|
88
75
|
&:hover {
|
89
76
|
border-color: var(--ck-color-base-active-focus);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
&:not(.ck-on) {
|
81
|
+
& .ck-button__label {
|
82
|
+
background: var(--ck-style-panel-button-label-background);
|
83
|
+
}
|
90
84
|
|
91
|
-
|
92
|
-
|
93
|
-
}
|
85
|
+
&:hover .ck-button__label {
|
86
|
+
background: var(--ck-style-panel-button-hover-label-background);
|
94
87
|
}
|
95
88
|
}
|
96
89
|
|
@@ -100,10 +93,6 @@
|
|
100
93
|
& .ck-style-grid__button__preview {
|
101
94
|
opacity: 1;
|
102
95
|
}
|
103
|
-
|
104
|
-
& .ck-button__label {
|
105
|
-
background: var(--ck-style-panel-button-hover-label-background);
|
106
|
-
}
|
107
96
|
}
|
108
97
|
}
|
109
98
|
}
|
@@ -14,13 +14,13 @@ of the component, floating–point numbers have been used which, for the default
|
|
14
14
|
/* 34px at 13px font-size */
|
15
15
|
--ck-switch-button-toggle-width: 2.6153846154em;
|
16
16
|
/* 14px at 13px font-size */
|
17
|
-
--ck-switch-button-toggle-inner-size: 1.0769230769em;
|
18
|
-
--ck-switch-button-toggle-spacing: 1px;
|
17
|
+
--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);
|
19
18
|
--ck-switch-button-translation: calc(
|
20
19
|
var(--ck-switch-button-toggle-width) -
|
21
20
|
var(--ck-switch-button-toggle-inner-size) -
|
22
|
-
|
21
|
+
2px /* Border */
|
23
22
|
);
|
23
|
+
--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);
|
24
24
|
}
|
25
25
|
|
26
26
|
.ck.ck-button.ck-switchbutton {
|
@@ -49,9 +49,10 @@ of the component, floating–point numbers have been used which, for the default
|
|
49
49
|
margin-right: auto;
|
50
50
|
}
|
51
51
|
|
52
|
+
/* Apply some smooth transition to the box-shadow and border. */
|
52
53
|
/* Gently animate the background color of the toggle switch */
|
53
|
-
transition: background 400ms ease;
|
54
|
-
|
54
|
+
transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;
|
55
|
+
border: 1px solid transparent;
|
55
56
|
width: var(--ck-switch-button-toggle-width);
|
56
57
|
background: var(--ck-color-switch-button-off-background);
|
57
58
|
|
@@ -60,8 +61,6 @@ of the component, floating–point numbers have been used which, for the default
|
|
60
61
|
border-radius: calc(.5 * var(--ck-border-radius));
|
61
62
|
}
|
62
63
|
|
63
|
-
/* Leave some tiny bit of space around the inner part of the switch */
|
64
|
-
margin: var(--ck-switch-button-toggle-spacing);
|
65
64
|
width: var(--ck-switch-button-toggle-inner-size);
|
66
65
|
height: var(--ck-switch-button-toggle-inner-size);
|
67
66
|
background: var(--ck-color-switch-button-inner-background);
|
@@ -74,7 +73,7 @@ of the component, floating–point numbers have been used which, for the default
|
|
74
73
|
background: var(--ck-color-switch-button-off-hover-background);
|
75
74
|
|
76
75
|
& .ck-button__toggle__inner {
|
77
|
-
box-shadow:
|
76
|
+
box-shadow: var(--ck-switch-button-inner-hover-shadow);
|
78
77
|
}
|
79
78
|
}
|
80
79
|
}
|
@@ -83,24 +82,45 @@ of the component, floating–point numbers have been used which, for the default
|
|
83
82
|
@mixin ck-disabled;
|
84
83
|
}
|
85
84
|
|
86
|
-
|
87
|
-
|
85
|
+
/* Overriding default .ck-button:focus styles + an outline around the toogle */
|
86
|
+
&:focus {
|
87
|
+
border-color: transparent;
|
88
|
+
outline: none;
|
89
|
+
box-shadow: none;
|
88
90
|
|
89
|
-
|
90
|
-
|
91
|
+
& .ck-button__toggle {
|
92
|
+
box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);
|
93
|
+
outline-offset: 1px;
|
94
|
+
outline: var(--ck-focus-ring);
|
91
95
|
}
|
96
|
+
}
|
92
97
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
98
|
+
&.ck-on {
|
99
|
+
& .ck-button__toggle {
|
100
|
+
background: var(--ck-color-switch-button-on-background);
|
101
|
+
|
102
|
+
&:hover {
|
103
|
+
background: var(--ck-color-switch-button-on-hover-background);
|
99
104
|
}
|
100
105
|
|
101
|
-
|
102
|
-
|
106
|
+
& .ck-button__toggle__inner {
|
107
|
+
/*
|
108
|
+
* Move the toggle switch to the right. It will be animated.
|
109
|
+
*/
|
110
|
+
@mixin ck-dir ltr {
|
111
|
+
transform: translateX( var( --ck-switch-button-translation ) );
|
112
|
+
}
|
113
|
+
|
114
|
+
@mixin ck-dir rtl {
|
115
|
+
transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );
|
116
|
+
}
|
103
117
|
}
|
104
118
|
}
|
105
119
|
}
|
120
|
+
|
121
|
+
/* Regular buttons get a backgound when active. Switch buttons announce that through the switch toggle instead */
|
122
|
+
&:active, &.ck-on:active {
|
123
|
+
background: transparent;
|
124
|
+
}
|
125
|
+
|
106
126
|
}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
/* Not using global colors here because these may change but some colors in a pallette
|
12
12
|
* require special treatment. For instance, this ensures no matter what the UI text color is,
|
13
13
|
* the check icon will look good on the black color tile. */
|
14
|
-
--ck-color-color-grid-check-icon: hsl(
|
14
|
+
--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);
|
15
15
|
}
|
16
16
|
|
17
17
|
.ck.ck-color-grid {
|
@@ -7,6 +7,7 @@
|
|
7
7
|
@import "../../../mixins/_shadow.css";
|
8
8
|
|
9
9
|
:root {
|
10
|
+
--ck-balloon-border-width: 1px;
|
10
11
|
--ck-balloon-arrow-offset: 2px;
|
11
12
|
--ck-balloon-arrow-height: 10px;
|
12
13
|
--ck-balloon-arrow-half-width: 8px;
|
@@ -20,7 +21,7 @@
|
|
20
21
|
min-height: 15px;
|
21
22
|
|
22
23
|
background: var(--ck-color-panel-background);
|
23
|
-
border:
|
24
|
+
border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);
|
24
25
|
|
25
26
|
&.ck-balloon-panel_with-arrow {
|
26
27
|
&::before,
|
@@ -39,11 +40,12 @@
|
|
39
40
|
|
40
41
|
&::before {
|
41
42
|
border-color: transparent transparent var(--ck-color-panel-border) transparent;
|
43
|
+
margin-top: calc( -1 * var(--ck-balloon-border-width) );
|
42
44
|
}
|
43
45
|
|
44
46
|
&::after {
|
45
47
|
border-color: transparent transparent var(--ck-color-panel-background) transparent;
|
46
|
-
margin-top: var(--ck-balloon-arrow-offset);
|
48
|
+
margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
47
49
|
}
|
48
50
|
}
|
49
51
|
|
@@ -56,11 +58,46 @@
|
|
56
58
|
&::before {
|
57
59
|
border-color: var(--ck-color-panel-border) transparent transparent;
|
58
60
|
filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));
|
61
|
+
margin-bottom: calc( -1 * var(--ck-balloon-border-width) );
|
59
62
|
}
|
60
63
|
|
61
64
|
&::after {
|
62
65
|
border-color: var(--ck-color-panel-background) transparent transparent transparent;
|
63
|
-
margin-bottom: var(--ck-balloon-arrow-offset);
|
66
|
+
margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
&[class*="arrow_e"] {
|
71
|
+
&::before,
|
72
|
+
&::after {
|
73
|
+
border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);
|
74
|
+
}
|
75
|
+
|
76
|
+
&::before {
|
77
|
+
border-color: transparent transparent transparent var(--ck-color-panel-border);
|
78
|
+
margin-right: calc( -1 * var(--ck-balloon-border-width) );
|
79
|
+
}
|
80
|
+
|
81
|
+
&::after {
|
82
|
+
border-color: transparent transparent transparent var(--ck-color-panel-background);
|
83
|
+
margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&[class*="arrow_w"] {
|
88
|
+
&::before,
|
89
|
+
&::after {
|
90
|
+
border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;
|
91
|
+
}
|
92
|
+
|
93
|
+
&::before {
|
94
|
+
border-color: transparent var(--ck-color-panel-border) transparent transparent;
|
95
|
+
margin-left: calc( -1 * var(--ck-balloon-border-width) );
|
96
|
+
}
|
97
|
+
|
98
|
+
&::after {
|
99
|
+
border-color: transparent var(--ck-color-panel-background) transparent transparent;
|
100
|
+
margin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
64
101
|
}
|
65
102
|
}
|
66
103
|
|
@@ -149,4 +186,22 @@
|
|
149
186
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
150
187
|
}
|
151
188
|
}
|
189
|
+
|
190
|
+
&.ck-balloon-panel_arrow_e {
|
191
|
+
&::before,
|
192
|
+
&::after {
|
193
|
+
right: calc(-1 * var(--ck-balloon-arrow-height));
|
194
|
+
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
195
|
+
top: 50%;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
&.ck-balloon-panel_arrow_w {
|
200
|
+
&::before,
|
201
|
+
&::after {
|
202
|
+
left: calc(-1 * var(--ck-balloon-arrow-height));
|
203
|
+
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
204
|
+
top: 50%;
|
205
|
+
}
|
206
|
+
}
|
152
207
|
}
|
@@ -49,14 +49,21 @@
|
|
49
49
|
}
|
50
50
|
|
51
51
|
/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */
|
52
|
+
& > .ck-button:nth-last-child(2) {
|
53
|
+
&::after {
|
54
|
+
border-right: 1px solid var(--ck-color-base-border);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
52
58
|
& > .ck-button:nth-last-child(1),
|
53
59
|
& > .ck-button:nth-last-child(2) {
|
54
60
|
padding: var(--ck-spacing-standard);
|
55
61
|
margin-top: var(--ck-spacing-large);
|
56
|
-
|
57
62
|
border-radius: 0;
|
58
|
-
|
59
|
-
|
63
|
+
|
64
|
+
&:not(:focus) {
|
65
|
+
border-top: 1px solid var(--ck-color-base-border);
|
66
|
+
}
|
60
67
|
|
61
68
|
@mixin ck-dir ltr {
|
62
69
|
margin-left: 0;
|
@@ -70,11 +77,5 @@
|
|
70
77
|
}
|
71
78
|
}
|
72
79
|
}
|
73
|
-
|
74
|
-
& > .ck-button:nth-last-child(2) {
|
75
|
-
&::after {
|
76
|
-
border-right: 1px solid var(--ck-color-base-border);
|
77
|
-
}
|
78
|
-
}
|
79
80
|
}
|
80
81
|
}
|
@@ -5,190 +5,26 @@
|
|
5
5
|
|
6
6
|
@import "../../../mixins/_rounded.css";
|
7
7
|
|
8
|
-
|
9
|
-
--ck-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
.ck.ck-balloon-panel.ck-tooltip {
|
9
|
+
--ck-balloon-border-width: 0px;
|
10
|
+
--ck-balloon-arrow-offset: 0px;
|
11
|
+
--ck-balloon-arrow-half-width: 4px;
|
12
|
+
--ck-balloon-arrow-height: 4px;
|
13
|
+
--ck-color-panel-background: var(--ck-color-tooltip-background);
|
14
14
|
|
15
|
-
|
16
|
-
* Prevent blurry tooltips in LoDPI environments.
|
17
|
-
* See https://github.com/ckeditor/ckeditor5/issues/1802.
|
18
|
-
*/
|
19
|
-
top: 0;
|
20
|
-
|
21
|
-
/*
|
22
|
-
* For the transition to work, the tooltip must be controlled
|
23
|
-
* using visibility+opacity. A delay prevents a "tooltip avalanche"
|
24
|
-
* i.e. when scanning the toolbar with mouse cursor.
|
25
|
-
*/
|
26
|
-
transition: opacity .2s ease-in-out .2s;
|
15
|
+
padding: 0 var(--ck-spacing-medium);
|
27
16
|
|
28
17
|
& .ck-tooltip__text {
|
29
|
-
@mixin ck-rounded-corners;
|
30
|
-
|
31
18
|
font-size: .9em;
|
32
19
|
line-height: 1.5;
|
33
20
|
color: var(--ck-color-tooltip-text);
|
34
|
-
padding: var(--ck-spacing-small) var(--ck-spacing-medium);
|
35
|
-
background: var(--ck-color-tooltip-background);
|
36
|
-
position: relative;
|
37
|
-
left: -50%;
|
38
|
-
|
39
|
-
&::after {
|
40
|
-
/*
|
41
|
-
* For the transition to work, the tooltip must be controlled
|
42
|
-
* using visibility+opacity. A delay prevents a "tooltip avalanche"
|
43
|
-
* i.e. when scanning the toolbar with mouse cursor.
|
44
|
-
*/
|
45
|
-
transition: opacity .2s ease-in-out .2s;
|
46
|
-
border-style: solid;
|
47
|
-
left: 50%;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
/**
|
52
|
-
* A class that displays the tooltip south of the element.
|
53
|
-
*
|
54
|
-
* [element]
|
55
|
-
* ^
|
56
|
-
* +-----------+
|
57
|
-
* | Tooltip |
|
58
|
-
* +-----------+
|
59
|
-
*/
|
60
|
-
&.ck-tooltip_s,
|
61
|
-
&.ck-tooltip_sw,
|
62
|
-
&.ck-tooltip_se {
|
63
|
-
bottom: calc(-1 * var(--ck-tooltip-arrow-size));
|
64
|
-
transform: translateY( 100% );
|
65
|
-
|
66
|
-
& .ck-tooltip__text::after {
|
67
|
-
/* 1px addresses gliches in rendering causing gap between the triangle and the text */
|
68
|
-
top: calc(-1 * var(--ck-tooltip-arrow-size) + 1px);
|
69
|
-
transform: translateX( -50% );
|
70
|
-
border-color: transparent transparent var(--ck-color-tooltip-background) transparent;
|
71
|
-
border-width: 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
/**
|
76
|
-
* A class that displays the tooltip south-west of the element.
|
77
|
-
*
|
78
|
-
* [element]
|
79
|
-
* ^
|
80
|
-
* +-----------+
|
81
|
-
* | Tooltip |
|
82
|
-
* +-----------+
|
83
|
-
*/
|
84
|
-
|
85
|
-
&.ck-tooltip_sw {
|
86
|
-
right: 50%;
|
87
|
-
left: auto;
|
88
|
-
|
89
|
-
& .ck-tooltip__text {
|
90
|
-
left: auto;
|
91
|
-
right: calc( -2 * var(--ck-tooltip-arrow-size));
|
92
|
-
}
|
93
|
-
|
94
|
-
& .ck-tooltip__text::after {
|
95
|
-
left: auto;
|
96
|
-
right: 0;
|
97
|
-
}
|
98
21
|
}
|
99
22
|
|
100
|
-
|
101
|
-
|
102
|
-
*
|
103
|
-
* [element]
|
104
|
-
* ^
|
105
|
-
* +-----------+
|
106
|
-
* | Tooltip |
|
107
|
-
* +-----------+
|
108
|
-
*/
|
109
|
-
&.ck-tooltip_se {
|
110
|
-
left: 50%;
|
111
|
-
right: auto;
|
112
|
-
|
113
|
-
& .ck-tooltip__text {
|
114
|
-
right: auto;
|
115
|
-
left: calc( -2 * var(--ck-tooltip-arrow-size));
|
116
|
-
}
|
117
|
-
|
118
|
-
& .ck-tooltip__text::after {
|
119
|
-
right: auto;
|
120
|
-
left: 0;
|
121
|
-
transform: translateX( 50% );
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
/**
|
126
|
-
* A class that displays the tooltip north of the element.
|
127
|
-
*
|
128
|
-
* +-----------+
|
129
|
-
* | Tooltip |
|
130
|
-
* +-----------+
|
131
|
-
* V
|
132
|
-
* [element]
|
133
|
-
*/
|
134
|
-
&.ck-tooltip_n {
|
135
|
-
top: calc(-1 * var(--ck-tooltip-arrow-size));
|
136
|
-
transform: translateY( -100% );
|
137
|
-
|
138
|
-
& .ck-tooltip__text::after {
|
139
|
-
bottom: calc(-1 * var(--ck-tooltip-arrow-size));
|
140
|
-
transform: translateX( -50% );
|
141
|
-
border-color: var(--ck-color-tooltip-background) transparent transparent transparent;
|
142
|
-
border-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);
|
143
|
-
}
|
144
|
-
}
|
145
|
-
|
146
|
-
/**
|
147
|
-
* A class that displays the tooltip east of the element.
|
148
|
-
*
|
149
|
-
* +----------+
|
150
|
-
* [element] < | east |
|
151
|
-
* +----------+
|
152
|
-
*/
|
153
|
-
&.ck-tooltip_e {
|
154
|
-
left: calc(100% + var(--ck-tooltip-arrow-size));
|
155
|
-
top: 50%;
|
156
|
-
|
157
|
-
& .ck-tooltip__text {
|
158
|
-
left: 0;
|
159
|
-
transform: translateY( -50% );
|
160
|
-
|
161
|
-
&::after {
|
162
|
-
left: calc(-1 * var(--ck-tooltip-arrow-size));
|
163
|
-
top: calc(50% - 1 * var(--ck-tooltip-arrow-size));
|
164
|
-
border-color: transparent var(--ck-color-tooltip-background) transparent transparent;
|
165
|
-
border-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0;
|
166
|
-
}
|
167
|
-
}
|
168
|
-
}
|
169
|
-
|
170
|
-
/**
|
171
|
-
* A class that displays the tooltip west of the element.
|
172
|
-
*
|
173
|
-
* +----------+
|
174
|
-
* | west | > [element]
|
175
|
-
* +----------+
|
176
|
-
*/
|
177
|
-
&.ck-tooltip_w {
|
178
|
-
right: calc(100% + var(--ck-tooltip-arrow-size));
|
179
|
-
left: auto;
|
180
|
-
top: 50%;
|
181
|
-
|
182
|
-
& .ck-tooltip__text {
|
183
|
-
left: 0;
|
184
|
-
transform: translateY( -50% );
|
23
|
+
/* Reset balloon panel styles */
|
24
|
+
box-shadow: none;
|
185
25
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
border-color: transparent transparent transparent var(--ck-color-tooltip-background);
|
190
|
-
border-width: var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);
|
191
|
-
}
|
192
|
-
}
|
26
|
+
/* Hide the default shadow of the .ck-balloon-panel tip */
|
27
|
+
&::before {
|
28
|
+
display: none;
|
193
29
|
}
|
194
30
|
}
|
@@ -6,19 +6,19 @@
|
|
6
6
|
:root {
|
7
7
|
--ck-color-base-foreground: hsl(0, 0%, 98%);
|
8
8
|
--ck-color-base-background: hsl(0, 0%, 100%);
|
9
|
-
--ck-color-base-border: hsl(
|
10
|
-
--ck-color-base-action: hsl(104,
|
9
|
+
--ck-color-base-border: hsl(220, 6%, 81%);
|
10
|
+
--ck-color-base-action: hsl(104, 50.2%, 42.5%);
|
11
11
|
--ck-color-base-focus: hsl(209, 92%, 70%);
|
12
12
|
--ck-color-base-text: hsl(0, 0%, 20%);
|
13
|
-
--ck-color-base-active: hsl(
|
14
|
-
--ck-color-base-active-focus: hsl(
|
13
|
+
--ck-color-base-active: hsl(218.1, 100%, 58%);
|
14
|
+
--ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);
|
15
15
|
--ck-color-base-error: hsl(15, 100%, 43%);
|
16
16
|
|
17
17
|
/* -- Generic colors ------------------------------------------------------------------------ */
|
18
18
|
|
19
|
-
--ck-color-focus-border-coordinates:
|
19
|
+
--ck-color-focus-border-coordinates: 218, 81.8%, 56.9%;
|
20
20
|
--ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates));
|
21
|
-
--ck-color-focus-outer-shadow: hsl(
|
21
|
+
--ck-color-focus-outer-shadow: hsl(212.4, 89.3%, 89%);
|
22
22
|
--ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3);
|
23
23
|
--ck-color-focus-error-shadow: hsla(9,100%,56%,.3);
|
24
24
|
--ck-color-text: var(--ck-color-base-text);
|
@@ -29,31 +29,30 @@
|
|
29
29
|
/* -- Buttons ------------------------------------------------------------------------------- */
|
30
30
|
|
31
31
|
--ck-color-button-default-background: transparent;
|
32
|
-
--ck-color-button-default-hover-background: hsl(0, 0%,
|
33
|
-
--ck-color-button-default-active-background: hsl(0, 0%,
|
34
|
-
--ck-color-button-default-active-shadow: hsl(0, 0%, 75%);
|
32
|
+
--ck-color-button-default-hover-background: hsl(0, 0%, 94.1%);
|
33
|
+
--ck-color-button-default-active-background: hsl(0, 0%, 94.1%);
|
35
34
|
--ck-color-button-default-disabled-background: transparent;
|
36
35
|
|
37
|
-
--ck-color-button-on-background: hsl(
|
38
|
-
--ck-color-button-on-hover-background: hsl(
|
39
|
-
--ck-color-button-on-active-background: hsl(
|
40
|
-
--ck-color-button-on-
|
41
|
-
--ck-color-button-on-
|
36
|
+
--ck-color-button-on-background: hsl(212, 100%, 97.1%);
|
37
|
+
--ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%);
|
38
|
+
--ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%);
|
39
|
+
--ck-color-button-on-disabled-background: hsl(211, 15%, 95%);
|
40
|
+
--ck-color-button-on-color: hsl(218.1, 100%, 58%);
|
41
|
+
|
42
42
|
|
43
43
|
--ck-color-button-action-background: var(--ck-color-base-action);
|
44
|
-
--ck-color-button-action-hover-background: hsl(104,
|
45
|
-
--ck-color-button-action-active-background: hsl(104,
|
46
|
-
--ck-color-button-action-active-shadow: hsl(104, 44%, 36%);
|
44
|
+
--ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%);
|
45
|
+
--ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%);
|
47
46
|
--ck-color-button-action-disabled-background: hsl(104, 44%, 58%);
|
48
47
|
--ck-color-button-action-text: var(--ck-color-base-background);
|
49
48
|
|
50
49
|
--ck-color-button-save: hsl(120, 100%, 27%);
|
51
50
|
--ck-color-button-cancel: hsl(15, 100%, 43%);
|
52
51
|
|
53
|
-
--ck-color-switch-button-off-background: hsl(0, 0%,
|
54
|
-
--ck-color-switch-button-off-hover-background: hsl(0, 0%,
|
52
|
+
--ck-color-switch-button-off-background: hsl(0, 0%, 57.6%);
|
53
|
+
--ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%);
|
55
54
|
--ck-color-switch-button-on-background: var(--ck-color-button-action-background);
|
56
|
-
--ck-color-switch-button-on-hover-background: hsl(104,
|
55
|
+
--ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%);
|
57
56
|
--ck-color-switch-button-inner-background: var(--ck-color-base-background);
|
58
57
|
--ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1);
|
59
58
|
|
@@ -65,19 +64,19 @@
|
|
65
64
|
/* -- Input --------------------------------------------------------------------------------- */
|
66
65
|
|
67
66
|
--ck-color-input-background: var(--ck-color-base-background);
|
68
|
-
--ck-color-input-border:
|
67
|
+
--ck-color-input-border: var(--ck-color-base-border);
|
69
68
|
--ck-color-input-error-border: var(--ck-color-base-error);
|
70
69
|
--ck-color-input-text: var(--ck-color-base-text);
|
71
70
|
--ck-color-input-disabled-background: hsl(0, 0%, 95%);
|
72
|
-
--ck-color-input-disabled-border:
|
71
|
+
--ck-color-input-disabled-border: var(--ck-color-base-border);
|
73
72
|
--ck-color-input-disabled-text: hsl(0, 0%, 46%);
|
74
73
|
|
75
74
|
/* -- List ---------------------------------------------------------------------------------- */
|
76
75
|
|
77
76
|
--ck-color-list-background: var(--ck-color-base-background);
|
78
77
|
--ck-color-list-button-hover-background: var(--ck-color-button-default-hover-background);
|
79
|
-
--ck-color-list-button-on-background: var(--ck-color-
|
80
|
-
--ck-color-list-button-on-background-focus: var(--ck-color-
|
78
|
+
--ck-color-list-button-on-background: var(--ck-color-button-on-color);
|
79
|
+
--ck-color-list-button-on-background-focus: var(--ck-color-button-on-color);
|
81
80
|
--ck-color-list-button-on-text: var(--ck-color-base-background);
|
82
81
|
|
83
82
|
/* -- Panel --------------------------------------------------------------------------------- */
|
@@ -87,7 +86,7 @@
|
|
87
86
|
|
88
87
|
/* -- Toolbar ------------------------------------------------------------------------------- */
|
89
88
|
|
90
|
-
--ck-color-toolbar-background: var(--ck-color-base-
|
89
|
+
--ck-color-toolbar-background: var(--ck-color-base-background);
|
91
90
|
--ck-color-toolbar-border: var(--ck-color-base-border);
|
92
91
|
|
93
92
|
/* -- Tooltip ------------------------------------------------------------------------------- */
|