@ckeditor/ckeditor5-theme-lark 33.0.0 → 34.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/README.md CHANGED
@@ -3,7 +3,8 @@ CKEditor 5 lark theme
3
3
 
4
4
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-theme-lark.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
6
- [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://travis-ci.com/ckeditor/ckeditor5)
6
+ [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
7
+ ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-theme-lark)
7
8
 
8
9
  This package implements lark theme — the default CKEditor 5 theme.
9
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-theme-lark",
3
- "version": "33.0.0",
3
+ "version": "34.0.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": "^33.0.0"
12
+ "@ckeditor/ckeditor5-ui": "^34.0.0"
13
13
  },
14
14
  "devDependencies": {
15
- "@ckeditor/ckeditor5-basic-styles": "^33.0.0",
16
- "@ckeditor/ckeditor5-ckfinder": "^33.0.0",
17
- "@ckeditor/ckeditor5-code-block": "^33.0.0",
18
- "@ckeditor/ckeditor5-core": "^33.0.0",
19
- "@ckeditor/ckeditor5-editor-balloon": "^33.0.0",
20
- "@ckeditor/ckeditor5-editor-classic": "^33.0.0",
21
- "@ckeditor/ckeditor5-find-and-replace": "^33.0.0",
22
- "@ckeditor/ckeditor5-font": "^33.0.0",
23
- "@ckeditor/ckeditor5-heading": "^33.0.0",
24
- "@ckeditor/ckeditor5-highlight": "^33.0.0",
25
- "@ckeditor/ckeditor5-html-embed": "^33.0.0",
26
- "@ckeditor/ckeditor5-indent": "^33.0.0",
27
- "@ckeditor/ckeditor5-link": "^33.0.0",
28
- "@ckeditor/ckeditor5-list": "^33.0.0",
29
- "@ckeditor/ckeditor5-media-embed": "^33.0.0",
30
- "@ckeditor/ckeditor5-page-break": "^33.0.0",
31
- "@ckeditor/ckeditor5-paragraph": "^33.0.0",
32
- "@ckeditor/ckeditor5-remove-format": "^33.0.0",
33
- "@ckeditor/ckeditor5-restricted-editing": "^33.0.0",
34
- "@ckeditor/ckeditor5-select-all": "^33.0.0",
35
- "@ckeditor/ckeditor5-source-editing": "^33.0.0",
36
- "@ckeditor/ckeditor5-special-characters": "^33.0.0",
37
- "@ckeditor/ckeditor5-undo": "^33.0.0",
38
- "@ckeditor/ckeditor5-utils": "^33.0.0",
39
- "@ckeditor/ckeditor5-table": "^33.0.0",
40
- "ckeditor5": "^33.0.0"
15
+ "@ckeditor/ckeditor5-basic-styles": "^34.0.0",
16
+ "@ckeditor/ckeditor5-ckfinder": "^34.0.0",
17
+ "@ckeditor/ckeditor5-code-block": "^34.0.0",
18
+ "@ckeditor/ckeditor5-core": "^34.0.0",
19
+ "@ckeditor/ckeditor5-editor-balloon": "^34.0.0",
20
+ "@ckeditor/ckeditor5-editor-classic": "^34.0.0",
21
+ "@ckeditor/ckeditor5-find-and-replace": "^34.0.0",
22
+ "@ckeditor/ckeditor5-font": "^34.0.0",
23
+ "@ckeditor/ckeditor5-heading": "^34.0.0",
24
+ "@ckeditor/ckeditor5-highlight": "^34.0.0",
25
+ "@ckeditor/ckeditor5-html-embed": "^34.0.0",
26
+ "@ckeditor/ckeditor5-indent": "^34.0.0",
27
+ "@ckeditor/ckeditor5-link": "^34.0.0",
28
+ "@ckeditor/ckeditor5-list": "^34.0.0",
29
+ "@ckeditor/ckeditor5-media-embed": "^34.0.0",
30
+ "@ckeditor/ckeditor5-page-break": "^34.0.0",
31
+ "@ckeditor/ckeditor5-paragraph": "^34.0.0",
32
+ "@ckeditor/ckeditor5-remove-format": "^34.0.0",
33
+ "@ckeditor/ckeditor5-restricted-editing": "^34.0.0",
34
+ "@ckeditor/ckeditor5-select-all": "^34.0.0",
35
+ "@ckeditor/ckeditor5-source-editing": "^34.0.0",
36
+ "@ckeditor/ckeditor5-special-characters": "^34.0.0",
37
+ "@ckeditor/ckeditor5-undo": "^34.0.0",
38
+ "@ckeditor/ckeditor5-utils": "^34.0.0",
39
+ "@ckeditor/ckeditor5-table": "^34.0.0",
40
+ "ckeditor5": "^34.0.0"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=14.0.0",
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) 2003-2022, 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-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active > .ck-button > .ck-button__label {
7
+ font-style: italic;
8
+ }
@@ -0,0 +1,109 @@
1
+ /*
2
+ * Copyright (c) 2003-2022, 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-style-panel-button-width: 120px;
8
+ --ck-style-panel-button-height: 80px;
9
+ --ck-style-panel-button-shadow-color: hsl(0deg 0% 0% / 10%);
10
+ --ck-style-panel-button-shadow: 0px 0px 6px var(--ck-style-panel-button-shadow-color);
11
+ --ck-style-panel-button-label-background: hsl(0, 0%, 90%);
12
+ --ck-style-panel-button-hover-label-background: hsl(0, 0%, 80%);
13
+ --ck-style-panel-button-hover-border-color: hsl(0, 0%, 70%);
14
+ }
15
+
16
+ .ck.ck-style-panel .ck-style-grid {
17
+ row-gap: var(--ck-spacing-large);
18
+ column-gap: var(--ck-spacing-large);
19
+
20
+ & .ck-style-grid__button {
21
+ --ck-color-button-default-hover-background: var(--ck-color-base-background);
22
+ --ck-color-button-default-active-background: var(--ck-color-base-background);
23
+
24
+ padding: 0;
25
+ width: var(--ck-style-panel-button-width);
26
+ height: var(--ck-style-panel-button-height);
27
+
28
+ /* Let default .ck-button :focus styles apply */
29
+ &:not(:focus) {
30
+ border: 1px solid var(--ck-color-base-border);
31
+ box-shadow: var(--ck-style-panel-button-shadow);
32
+ }
33
+
34
+ & .ck-button__label {
35
+ height: 22px;
36
+ line-height: 22px;
37
+ width: 100%;
38
+ padding: 0 var(--ck-spacing-medium);
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ flex-shrink: 0;
42
+ background: var(--ck-style-panel-button-label-background);
43
+ }
44
+
45
+ & .ck-style-grid__button__preview {
46
+ width: 100%;
47
+ overflow: hidden;
48
+ opacity: .9;
49
+
50
+ padding: var(--ck-spacing-medium);
51
+ border: 2px solid var(--ck-color-base-background);
52
+ }
53
+
54
+ &.ck-disabled {
55
+ --ck-color-button-default-disabled-background: var(--ck-color-base-foreground);
56
+
57
+ /* Let default .ck-button :focus styles apply */
58
+ &:not(:focus) {
59
+ box-shadow: none;
60
+ border-color: var(--ck-style-panel-button-label-background);
61
+ }
62
+
63
+ & .ck-button__label {
64
+ background: var(--ck-style-panel-button-label-background);
65
+ }
66
+
67
+ & .ck-style-grid__button__preview {
68
+ opacity: .4;
69
+
70
+ border-color: var(--ck-color-base-foreground);
71
+ filter: saturate(.3);
72
+ }
73
+ }
74
+
75
+ &.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
+ border-color: var(--ck-color-base-active);
82
+
83
+ & .ck-button__label {
84
+ background: var(--ck-color-base-active);
85
+ color: var(--ck-color-base-background);
86
+ }
87
+
88
+ &:hover {
89
+ border-color: var(--ck-color-base-active-focus);
90
+
91
+ & .ck-button__label {
92
+ background: var(--ck-color-base-active-focus);
93
+ }
94
+ }
95
+ }
96
+
97
+ &:hover:not(.ck-disabled):not(.ck-on) {
98
+ border-color: var(--ck-style-panel-button-hover-border-color);
99
+
100
+ & .ck-style-grid__button__preview {
101
+ opacity: 1;
102
+ }
103
+
104
+ & .ck-button__label {
105
+ background: var(--ck-style-panel-button-hover-label-background);
106
+ }
107
+ }
108
+ }
109
+ }
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright (c) 2003-2022, 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-style-panel .ck-style-panel__style-group {
7
+ & > .ck-label {
8
+ margin: var(--ck-spacing-large) 0;
9
+ }
10
+
11
+ &:first-child {
12
+ & > .ck-label {
13
+ margin-top: 0;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright (c) 2003-2022, 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-style-panel-max-height: 470px;
8
+ }
9
+
10
+ .ck.ck-style-panel {
11
+ padding: var(--ck-spacing-large);
12
+ overflow-y: auto;
13
+ max-height: var(--ck-style-panel-max-height);
14
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  .ck.ck-reset,
18
18
  .ck.ck-reset_all,
19
- .ck.ck-reset_all * {
19
+ .ck-reset_all *:not(.ck-reset_all-excluded *) {
20
20
  /* Do not include inheritable rules here. */
21
21
  margin: 0;
22
22
  padding: 0;
@@ -34,7 +34,7 @@
34
34
  * Resets an element AND its children.
35
35
  */
36
36
  .ck.ck-reset_all,
37
- .ck.ck-reset_all * {
37
+ .ck-reset_all *:not(.ck-reset_all-excluded *) {
38
38
  /* These are rule inherited by all children elements. */
39
39
  border-collapse: collapse;
40
40
  font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);
@@ -45,38 +45,38 @@
45
45
  float: none;
46
46
  }
47
47
 
48
- .ck.ck-reset_all {
49
- & .ck-rtl * {
48
+ .ck-reset_all {
49
+ & .ck-rtl *:not(.ck-reset_all-excluded *) {
50
50
  text-align: right;
51
51
  }
52
52
 
53
- & iframe {
53
+ & iframe:not(.ck-reset_all-excluded *) {
54
54
  /* For IE */
55
55
  vertical-align: inherit;
56
56
  }
57
57
 
58
- & textarea {
58
+ & textarea:not(.ck-reset_all-excluded *) {
59
59
  white-space: pre-wrap;
60
60
  }
61
61
 
62
- & textarea,
63
- & input[type="text"],
64
- & input[type="password"] {
62
+ & textarea:not(.ck-reset_all-excluded *),
63
+ & input[type="text"]:not(.ck-reset_all-excluded *),
64
+ & input[type="password"]:not(.ck-reset_all-excluded *) {
65
65
  cursor: text;
66
66
  }
67
67
 
68
- & textarea[disabled],
69
- & input[type="text"][disabled],
70
- & input[type="password"][disabled] {
68
+ & textarea[disabled]:not(.ck-reset_all-excluded *),
69
+ & input[type="text"][disabled]:not(.ck-reset_all-excluded *),
70
+ & input[type="password"][disabled]:not(.ck-reset_all-excluded *) {
71
71
  cursor: default;
72
72
  }
73
73
 
74
- & fieldset {
74
+ & fieldset:not(.ck-reset_all-excluded *) {
75
75
  padding: 10px;
76
76
  border: 2px groove hsl(255, 7%, 88%);
77
77
  }
78
78
 
79
- & button::-moz-focus-inner {
79
+ & button:not(.ck-reset_all-excluded *)::-moz-focus-inner {
80
80
  /* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */
81
81
  padding: 0;
82
82
  border: 0