@ckeditor/ckeditor5-theme-lark 0.0.0-nightly-20240506.0 → 0.0.0-nightly-20240507.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": "0.0.0-nightly-20240506.0",
3
+ "version": "0.0.0-nightly-20240507.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": "0.0.0-nightly-20240506.0"
12
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240507.0"
13
13
  },
14
14
  "author": "CKSource (http://cksource.com/)",
15
15
  "license": "GPL-2.0-or-later",
@@ -57,6 +57,17 @@
57
57
  /* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */
58
58
  box-sizing: border-box;
59
59
  }
60
+
61
+ @media (prefers-reduced-motion: reduce) {
62
+ animation-duration: 0ms;
63
+
64
+ &::after {
65
+ animation: none;
66
+ opacity: 1;
67
+ width: 0.3em;
68
+ height: 0.45em;
69
+ }
70
+ }
60
71
  }
61
72
 
62
73
  @keyframes ck-upload-complete-icon-show {
@@ -9,6 +9,11 @@
9
9
  /* Showing animation. */
10
10
  &.ck-appear {
11
11
  animation: fadeIn 700ms;
12
+
13
+ @media (prefers-reduced-motion: reduce) {
14
+ opacity: 1;
15
+ animation: none;
16
+ }
12
17
  }
13
18
  }
14
19
 
@@ -25,6 +25,10 @@
25
25
  var(--ck-color-restricted-editing-exception-brackets) 100%
26
26
  ) 1;
27
27
 
28
+ @media (prefers-reduced-motion: reduce) {
29
+ transition: none;
30
+ }
31
+
28
32
  &.restricted-editing-exception_selected {
29
33
  background-color: var(--ck-color-restricted-editing-selected-exception-background);
30
34
  border-image: linear-gradient(
@@ -40,6 +40,10 @@
40
40
  transition: .2s ease box-shadow;
41
41
  border: 0;
42
42
 
43
+ @media (prefers-reduced-motion: reduce) {
44
+ transition: none;
45
+ }
46
+
43
47
  &:focus:not( .ck-disabled ),
44
48
  &:hover:not( .ck-disabled ) {
45
49
  /* Disable the default .ck-button's border ring. */
@@ -30,6 +30,10 @@
30
30
  outline: none;
31
31
  transition: none;
32
32
 
33
+ @media (prefers-reduced-motion: reduce) {
34
+ transition: none;
35
+ }
36
+
33
37
  &:focus {
34
38
  box-shadow: none;
35
39
  }
@@ -66,6 +66,10 @@
66
66
  }
67
67
 
68
68
  animation: ck-table-form-labeled-view-status-appear .15s ease both;
69
+
70
+ @media (prefers-reduced-motion: reduce) {
71
+ animation: none;
72
+ }
69
73
  }
70
74
 
71
75
  /* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
@@ -41,6 +41,10 @@ a.ck.ck-button {
41
41
  /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */
42
42
  -webkit-appearance: none;
43
43
 
44
+ @media (prefers-reduced-motion: reduce) {
45
+ transition: none;
46
+ }
47
+
44
48
  &:active,
45
49
  &:focus {
46
50
  @mixin ck-focus-ring;
@@ -76,6 +76,10 @@ of the component, floating–point numbers have been used which, for the default
76
76
 
77
77
  /* Gently animate the inner part of the toggle switch */
78
78
  transition: all 300ms ease;
79
+
80
+ @media (prefers-reduced-motion: reduce) {
81
+ transition: none;
82
+ }
79
83
  }
80
84
 
81
85
  &:hover {
@@ -28,6 +28,10 @@
28
28
  transition: .2s ease box-shadow;
29
29
  border: 0;
30
30
 
31
+ @media (prefers-reduced-motion: reduce) {
32
+ transition: none;
33
+ }
34
+
31
35
  &.ck-disabled {
32
36
  cursor: unset;
33
37
  transition: unset;
@@ -28,6 +28,10 @@
28
28
  /* Apply some smooth transition to the box-shadow and border. */
29
29
  transition: box-shadow .1s ease-in-out, border .1s ease-in-out;
30
30
 
31
+ @media (prefers-reduced-motion: reduce) {
32
+ transition: none;
33
+ }
34
+
31
35
  &:focus {
32
36
  @mixin ck-focus-ring;
33
37
  @mixin ck-box-shadow var(--ck-focus-outer-shadow);
@@ -48,6 +52,10 @@
48
52
  border-color: var(--ck-color-input-error-border);
49
53
  animation: ck-input-shake .3s ease both;
50
54
 
55
+ @media (prefers-reduced-motion: reduce) {
56
+ animation: none;
57
+ }
58
+
51
59
  &:focus {
52
60
  @mixin ck-box-shadow var(--ck-focus-error-outer-shadow);
53
61
  }
@@ -53,6 +53,10 @@
53
53
  transform var(--ck-labeled-field-view-transition),
54
54
  padding var(--ck-labeled-field-view-transition),
55
55
  background var(--ck-labeled-field-view-transition);
56
+
57
+ @media (prefers-reduced-motion: reduce) {
58
+ transition: none;
59
+ }
56
60
  }
57
61
  }
58
62
 
@@ -11,6 +11,10 @@
11
11
  width: var(--ck-toolbar-spinner-size);
12
12
  height: var(--ck-toolbar-spinner-size);
13
13
  animation: 1.5s infinite rotate linear;
14
+
15
+ @media (prefers-reduced-motion: reduce) {
16
+ animation-duration: 3s;
17
+ }
14
18
  }
15
19
 
16
20
  .ck.ck-spinner {
@@ -26,4 +30,3 @@
26
30
  transform: rotate(360deg)
27
31
  }
28
32
  }
29
-
@@ -24,6 +24,10 @@
24
24
  outline-color: transparent;
25
25
  transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
26
26
 
27
+ @media (prefers-reduced-motion: reduce) {
28
+ transition: none;
29
+ }
30
+
27
31
  &.ck-widget_selected,
28
32
  &.ck-widget_selected:hover {
29
33
  outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);
@@ -74,6 +78,10 @@
74
78
  left: calc(0px - var(--ck-widget-outline-thickness));
75
79
  top: 0;
76
80
 
81
+ @media (prefers-reduced-motion: reduce) {
82
+ transition: none;
83
+ }
84
+
77
85
  & .ck-icon {
78
86
  /* Make sure the dimensions of the icon are independent of the fon-size of the content. */
79
87
  width: var(--ck-widget-handler-icon-size);
@@ -86,6 +94,10 @@
86
94
 
87
95
  /* Note: The animation is longer on purpose. Simply feels better. */
88
96
  transition: opacity 300ms var(--ck-widget-handler-animation-curve);
97
+
98
+ @media (prefers-reduced-motion: reduce) {
99
+ transition: none;
100
+ }
89
101
  }
90
102
  }
91
103
 
@@ -36,6 +36,10 @@
36
36
 
37
37
  @mixin ck-widget-type-around-button-hidden;
38
38
 
39
+ @media (prefers-reduced-motion: reduce) {
40
+ transition: none;
41
+ }
42
+
39
43
  & svg {
40
44
  width: 10px;
41
45
  height: 8px;
@@ -43,6 +47,10 @@
43
47
  transition: transform .5s ease;
44
48
  margin-top: 1px;
45
49
 
50
+ @media (prefers-reduced-motion: reduce) {
51
+ transition: none;
52
+ }
53
+
46
54
  & * {
47
55
  stroke-dasharray: 10;
48
56
  stroke-dashoffset: 0;
@@ -77,6 +85,20 @@
77
85
  animation: ck-widget-type-around-arrow-tip-dash 2s linear;
78
86
  }
79
87
  }
88
+
89
+ @media (prefers-reduced-motion: reduce) {
90
+ animation: none;
91
+
92
+ & svg {
93
+ & polyline {
94
+ animation: none;
95
+ }
96
+
97
+ & line {
98
+ animation: none;
99
+ }
100
+ }
101
+ }
80
102
  }
81
103
  }
82
104