@ckeditor/ckeditor5-theme-lark 41.4.0-alpha.0 → 41.4.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/dist/index-editor.css +0 -23
- package/dist/index.css +204 -25
- package/dist/index.css.map +1 -1
- package/package.json +2 -2
- package/theme/ckeditor5-engine/placeholder.css +28 -1
- package/theme/ckeditor5-image/imageuploadicon.css +11 -0
- package/theme/ckeditor5-image/imageuploadprogress.css +5 -0
- package/theme/ckeditor5-restricted-editing/restrictedediting.css +4 -0
- package/theme/ckeditor5-special-characters/charactergrid.css +4 -0
- package/theme/ckeditor5-table/inserttable.css +4 -0
- package/theme/ckeditor5-table/tableform.css +4 -0
- package/theme/ckeditor5-ui/components/button/button.css +4 -0
- package/theme/ckeditor5-ui/components/button/switchbutton.css +4 -0
- package/theme/ckeditor5-ui/components/colorgrid/colorgrid.css +50 -24
- package/theme/ckeditor5-ui/components/input/input.css +8 -0
- package/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css +4 -0
- package/theme/ckeditor5-ui/components/spinner/spinner.css +4 -1
- package/theme/ckeditor5-widget/widget.css +16 -2
- package/theme/ckeditor5-widget/widgettypearound.css +22 -0
package/dist/index-editor.css
CHANGED
@@ -55,7 +55,6 @@
|
|
55
55
|
--ck-color-toolbar-border: var(--ck-color-base-border);
|
56
56
|
--ck-color-tooltip-background: var(--ck-color-base-text);
|
57
57
|
--ck-color-tooltip-text: var(--ck-color-base-background);
|
58
|
-
--ck-color-engine-placeholder-text: hsl(0, 0%, 44%);
|
59
58
|
--ck-color-upload-bar-background: hsl(209, 92%, 70%);
|
60
59
|
--ck-color-link-default: hsl(240, 100%, 47%);
|
61
60
|
--ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1);
|
@@ -89,7 +88,6 @@
|
|
89
88
|
);
|
90
89
|
--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);
|
91
90
|
--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));
|
92
|
-
--ck-color-grid-tile-size: 24px;
|
93
91
|
--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);
|
94
92
|
--ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 );
|
95
93
|
--ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%);
|
@@ -179,7 +177,6 @@
|
|
179
177
|
--ck-widget-handler-animation-curve: ease;
|
180
178
|
--ck-color-widget-blurred-border: hsl(0, 0%, 87%);
|
181
179
|
--ck-color-widget-hover-border: hsl(43, 100%, 62%);
|
182
|
-
--ck-color-widget-editable-focus-background: var(--ck-color-base-background);
|
183
180
|
--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);
|
184
181
|
--ck-resizer-size: 10px;
|
185
182
|
--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);
|
@@ -487,37 +484,19 @@ grid-gap: 5px;
|
|
487
484
|
padding: 8px;
|
488
485
|
}
|
489
486
|
.ck.ck-color-grid__tile {
|
490
|
-
width: var(--ck-color-grid-tile-size);
|
491
|
-
height: var(--ck-color-grid-tile-size);
|
492
|
-
min-width: var(--ck-color-grid-tile-size);
|
493
|
-
min-height: var(--ck-color-grid-tile-size);
|
494
|
-
padding: 0;
|
495
487
|
transition: .2s ease box-shadow;
|
496
|
-
border: 0;
|
497
488
|
}
|
498
489
|
.ck.ck-color-grid__tile.ck-disabled {
|
499
490
|
cursor: unset;
|
500
491
|
transition: unset;
|
501
492
|
}
|
502
|
-
.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered {
|
503
|
-
box-shadow: 0 0 0 1px var(--ck-color-base-border);
|
504
|
-
}
|
505
493
|
.ck.ck-color-grid__tile .ck.ck-icon {
|
506
494
|
display: none;
|
507
495
|
color: var(--ck-color-color-grid-check-icon);
|
508
496
|
}
|
509
|
-
.ck.ck-color-grid__tile.ck-on {
|
510
|
-
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);
|
511
|
-
}
|
512
497
|
.ck.ck-color-grid__tile.ck-on .ck.ck-icon {
|
513
498
|
display: block;
|
514
499
|
}
|
515
|
-
.ck.ck-color-grid__tile.ck-on {
|
516
|
-
border: 0;
|
517
|
-
}
|
518
|
-
.ck.ck-color-grid__tile:focus:not( .ck-disabled ) {
|
519
|
-
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
|
520
|
-
}
|
521
500
|
.ck.ck-color-grid__label {
|
522
501
|
padding: 0 var(--ck-spacing-standard);
|
523
502
|
}
|
@@ -1700,7 +1679,6 @@ overflow-x: hidden;
|
|
1700
1679
|
}
|
1701
1680
|
.ck.ck-placeholder::before {
|
1702
1681
|
cursor: text;
|
1703
|
-
color: var(--ck-color-engine-placeholder-text);
|
1704
1682
|
}
|
1705
1683
|
.ck.ck-find-and-replace-form {
|
1706
1684
|
width: 400px;
|
@@ -2653,7 +2631,6 @@ border: 1px solid transparent;
|
|
2653
2631
|
outline: none;
|
2654
2632
|
border: var(--ck-focus-ring);
|
2655
2633
|
box-shadow: var(--ck-inner-shadow), 0 0;
|
2656
|
-
background-color: var(--ck-color-widget-editable-focus-background);
|
2657
2634
|
}
|
2658
2635
|
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
|
2659
2636
|
padding: 4px;
|
package/dist/index.css
CHANGED
@@ -468,6 +468,12 @@ a.ck.ck-button {
|
|
468
468
|
a.ck.ck-button.ck-rounded-corners {
|
469
469
|
border-radius: var(--ck-border-radius);
|
470
470
|
}
|
471
|
+
@media (prefers-reduced-motion: reduce) {
|
472
|
+
.ck.ck-button,
|
473
|
+
a.ck.ck-button {
|
474
|
+
transition: none;
|
475
|
+
}
|
476
|
+
}
|
471
477
|
.ck.ck-button:active,
|
472
478
|
a.ck.ck-button:active,
|
473
479
|
.ck.ck-button:focus,
|
@@ -686,6 +692,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
686
692
|
/* Gently animate the inner part of the toggle switch */
|
687
693
|
transition: all 300ms ease;
|
688
694
|
}
|
695
|
+
@media (prefers-reduced-motion: reduce) {
|
696
|
+
.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner {
|
697
|
+
transition: none;
|
698
|
+
}
|
699
|
+
}
|
689
700
|
.ck.ck-button.ck-switchbutton .ck-button__toggle:hover {
|
690
701
|
background: var(--ck-color-switch-button-off-hover-background);
|
691
702
|
}
|
@@ -767,6 +778,10 @@ of the component, floating–point numbers have been used which, for the default
|
|
767
778
|
*
|
768
779
|
* @see $ck-border-radius
|
769
780
|
*/
|
781
|
+
/*
|
782
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
783
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
784
|
+
*/
|
770
785
|
:root {
|
771
786
|
--ck-color-grid-tile-size: 24px;
|
772
787
|
|
@@ -780,41 +795,71 @@ of the component, floating–point numbers have been used which, for the default
|
|
780
795
|
padding: 8px;
|
781
796
|
}
|
782
797
|
.ck.ck-color-grid__tile {
|
783
|
-
width: var(--ck-color-grid-tile-size);
|
784
|
-
height: var(--ck-color-grid-tile-size);
|
785
|
-
min-width: var(--ck-color-grid-tile-size);
|
786
|
-
min-height: var(--ck-color-grid-tile-size);
|
787
|
-
padding: 0;
|
788
798
|
transition: .2s ease box-shadow;
|
789
|
-
border: 0;
|
790
799
|
}
|
800
|
+
@media (forced-colors: none) {
|
801
|
+
.ck.ck-color-grid__tile {
|
802
|
+
width: var(--ck-color-grid-tile-size);
|
803
|
+
height: var(--ck-color-grid-tile-size);
|
804
|
+
min-width: var(--ck-color-grid-tile-size);
|
805
|
+
min-height: var(--ck-color-grid-tile-size);
|
806
|
+
padding: 0;
|
807
|
+
border: 0;
|
808
|
+
}
|
809
|
+
|
810
|
+
.ck.ck-color-grid__tile.ck-on,
|
811
|
+
.ck.ck-color-grid__tile:focus:not( .ck-disabled ),
|
812
|
+
.ck.ck-color-grid__tile:hover:not( .ck-disabled ) {
|
813
|
+
/* Disable the default .ck-button's border ring. */
|
814
|
+
border: 0;
|
815
|
+
}
|
816
|
+
|
817
|
+
.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered {
|
818
|
+
box-shadow: 0 0 0 1px var(--ck-color-base-border);
|
819
|
+
}
|
820
|
+
|
821
|
+
.ck.ck-color-grid__tile.ck-on {
|
822
|
+
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);
|
823
|
+
}
|
824
|
+
|
825
|
+
.ck.ck-color-grid__tile:focus:not( .ck-disabled ),
|
826
|
+
.ck.ck-color-grid__tile:hover:not( .ck-disabled ) {
|
827
|
+
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
|
828
|
+
}
|
829
|
+
}
|
830
|
+
/*
|
831
|
+
* In high contrast mode, the colors are replaced with text labels.
|
832
|
+
* See https://github.com/ckeditor/ckeditor5/issues/14907.
|
833
|
+
*/
|
834
|
+
@media (forced-colors: active) {
|
835
|
+
.ck.ck-color-grid__tile {
|
836
|
+
width: unset;
|
837
|
+
height: unset;
|
838
|
+
min-width: unset;
|
839
|
+
min-height: unset;
|
840
|
+
padding: 0 var(--ck-spacing-small);
|
841
|
+
}
|
842
|
+
|
843
|
+
.ck.ck-color-grid__tile .ck-button__label {
|
844
|
+
display: inline-block;
|
845
|
+
}
|
846
|
+
}
|
847
|
+
@media (prefers-reduced-motion: reduce) {
|
848
|
+
.ck.ck-color-grid__tile {
|
849
|
+
transition: none;
|
850
|
+
}
|
851
|
+
}
|
791
852
|
.ck.ck-color-grid__tile.ck-disabled {
|
792
853
|
cursor: unset;
|
793
854
|
transition: unset;
|
794
855
|
}
|
795
|
-
.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered {
|
796
|
-
box-shadow: 0 0 0 1px var(--ck-color-base-border);
|
797
|
-
}
|
798
856
|
.ck.ck-color-grid__tile .ck.ck-icon {
|
799
857
|
display: none;
|
800
858
|
color: var(--ck-color-color-grid-check-icon);
|
801
859
|
}
|
802
|
-
.ck.ck-color-grid__tile.ck-on {
|
803
|
-
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);
|
804
|
-
}
|
805
860
|
.ck.ck-color-grid__tile.ck-on .ck.ck-icon {
|
806
861
|
display: block;
|
807
862
|
}
|
808
|
-
.ck.ck-color-grid__tile.ck-on,
|
809
|
-
.ck.ck-color-grid__tile:focus:not( .ck-disabled ),
|
810
|
-
.ck.ck-color-grid__tile:hover:not( .ck-disabled ) {
|
811
|
-
/* Disable the default .ck-button's border ring. */
|
812
|
-
border: 0;
|
813
|
-
}
|
814
|
-
.ck.ck-color-grid__tile:focus:not( .ck-disabled ),
|
815
|
-
.ck.ck-color-grid__tile:hover:not( .ck-disabled ) {
|
816
|
-
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
|
817
|
-
}
|
818
863
|
.ck.ck-color-grid__label {
|
819
864
|
padding: 0 var(--ck-spacing-standard);
|
820
865
|
}
|
@@ -1534,6 +1579,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
1534
1579
|
/* Apply some smooth transition to the box-shadow and border. */
|
1535
1580
|
transition: box-shadow .1s ease-in-out, border .1s ease-in-out;
|
1536
1581
|
}
|
1582
|
+
@media (prefers-reduced-motion: reduce) {
|
1583
|
+
.ck.ck-input {
|
1584
|
+
transition: none;
|
1585
|
+
}
|
1586
|
+
}
|
1537
1587
|
.ck.ck-input:focus {
|
1538
1588
|
/* Disable native outline. */
|
1539
1589
|
outline: none;
|
@@ -1553,6 +1603,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
1553
1603
|
border-color: var(--ck-color-input-error-border);
|
1554
1604
|
animation: ck-input-shake .3s ease both;
|
1555
1605
|
}
|
1606
|
+
@media (prefers-reduced-motion: reduce) {
|
1607
|
+
.ck.ck-input.ck-error {
|
1608
|
+
animation: none;
|
1609
|
+
}
|
1610
|
+
}
|
1556
1611
|
.ck.ck-input.ck-error:focus {
|
1557
1612
|
box-shadow: var(--ck-focus-error-outer-shadow), 0 0;
|
1558
1613
|
}
|
@@ -1647,6 +1702,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
1647
1702
|
padding var(--ck-labeled-field-view-transition),
|
1648
1703
|
background var(--ck-labeled-field-view-transition);
|
1649
1704
|
}
|
1705
|
+
@media (prefers-reduced-motion: reduce) {
|
1706
|
+
.ck.ck-labeled-field-view > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
1707
|
+
transition: none;
|
1708
|
+
}
|
1709
|
+
}
|
1650
1710
|
.ck.ck-labeled-field-view.ck-error > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
1651
1711
|
color: var(--ck-color-base-error);
|
1652
1712
|
}
|
@@ -2508,6 +2568,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
2508
2568
|
height: var(--ck-toolbar-spinner-size);
|
2509
2569
|
animation: 1.5s infinite rotate linear;
|
2510
2570
|
}
|
2571
|
+
@media (prefers-reduced-motion: reduce) {
|
2572
|
+
.ck.ck-spinner-container {
|
2573
|
+
animation-duration: 3s;
|
2574
|
+
}
|
2575
|
+
}
|
2511
2576
|
.ck.ck-spinner {
|
2512
2577
|
width: var(--ck-toolbar-spinner-size);
|
2513
2578
|
height: var(--ck-toolbar-spinner-size);
|
@@ -2914,14 +2979,46 @@ of the component, floating–point numbers have been used which, for the default
|
|
2914
2979
|
overflow-y: auto;
|
2915
2980
|
overflow-x: hidden;
|
2916
2981
|
}
|
2982
|
+
/*
|
2983
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
2984
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
2985
|
+
*/
|
2917
2986
|
/*
|
2918
2987
|
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
2919
2988
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
2920
2989
|
*/
|
2921
2990
|
/* See ckeditor/ckeditor5#936. */
|
2991
|
+
@media (forced-colors: active) {
|
2992
|
+
.ck.ck-placeholder, .ck .ck-placeholder {
|
2993
|
+
/*
|
2994
|
+
* This is needed for Edge on Windows to use the right color for the placeholder content (::before).
|
2995
|
+
* See https://github.com/ckeditor/ckeditor5/issues/14907.
|
2996
|
+
*/
|
2997
|
+
forced-color-adjust: preserve-parent-color;
|
2998
|
+
}
|
2999
|
+
}
|
2922
3000
|
.ck.ck-placeholder::before, .ck .ck-placeholder::before {
|
2923
3001
|
cursor: text;
|
2924
|
-
|
3002
|
+
}
|
3003
|
+
@media (forced-colors: none) {
|
3004
|
+
.ck.ck-placeholder::before, .ck .ck-placeholder::before {
|
3005
|
+
color: var(--ck-color-engine-placeholder-text);
|
3006
|
+
}
|
3007
|
+
}
|
3008
|
+
@media (forced-colors: active) {
|
3009
|
+
.ck.ck-placeholder::before, .ck .ck-placeholder::before {
|
3010
|
+
/*
|
3011
|
+
* In the high contrast mode there is no telling between regular and placeholder text. Using
|
3012
|
+
* italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.
|
3013
|
+
*/
|
3014
|
+
font-style: italic;
|
3015
|
+
|
3016
|
+
/*
|
3017
|
+
* Without this margin, the caret will not show up and blink when the user puts the selection
|
3018
|
+
* in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.
|
3019
|
+
*/
|
3020
|
+
margin-left: 1px;
|
3021
|
+
}
|
2925
3022
|
}
|
2926
3023
|
/*
|
2927
3024
|
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
@@ -3368,6 +3465,18 @@ of the component, floating–point numbers have been used which, for the default
|
|
3368
3465
|
/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */
|
3369
3466
|
box-sizing: border-box;
|
3370
3467
|
}
|
3468
|
+
@media (prefers-reduced-motion: reduce) {
|
3469
|
+
.ck-image-upload-complete-icon {
|
3470
|
+
animation-duration: 0ms;
|
3471
|
+
}
|
3472
|
+
|
3473
|
+
.ck-image-upload-complete-icon::after {
|
3474
|
+
animation: none;
|
3475
|
+
opacity: 1;
|
3476
|
+
width: 0.3em;
|
3477
|
+
height: 0.45em;
|
3478
|
+
}
|
3479
|
+
}
|
3371
3480
|
@keyframes ck-upload-complete-icon-show {
|
3372
3481
|
from {
|
3373
3482
|
opacity: 0;
|
@@ -3453,6 +3562,12 @@ of the component, floating–point numbers have been used which, for the default
|
|
3453
3562
|
.ck.ck-editor__editable .image.ck-appear, .ck.ck-editor__editable .image-inline.ck-appear {
|
3454
3563
|
animation: fadeIn 700ms;
|
3455
3564
|
}
|
3565
|
+
@media (prefers-reduced-motion: reduce) {
|
3566
|
+
.ck.ck-editor__editable .image.ck-appear, .ck.ck-editor__editable .image-inline.ck-appear {
|
3567
|
+
opacity: 1;
|
3568
|
+
animation: none;
|
3569
|
+
}
|
3570
|
+
}
|
3456
3571
|
/* Upload progress bar. */
|
3457
3572
|
.ck.ck-editor__editable .image .ck-progress-bar,
|
3458
3573
|
.ck.ck-editor__editable .image-inline .ck-progress-bar {
|
@@ -3877,6 +3992,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
3877
3992
|
var(--ck-color-restricted-editing-exception-brackets) 100%
|
3878
3993
|
) 1;
|
3879
3994
|
}
|
3995
|
+
@media (prefers-reduced-motion: reduce) {
|
3996
|
+
.ck-editor__editable .restricted-editing-exception {
|
3997
|
+
transition: none;
|
3998
|
+
}
|
3999
|
+
}
|
3880
4000
|
.ck-editor__editable .restricted-editing-exception.restricted-editing-exception_selected {
|
3881
4001
|
background-color: var(--ck-color-restricted-editing-selected-exception-background);
|
3882
4002
|
border-image: linear-gradient(
|
@@ -3960,6 +4080,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
3960
4080
|
transition: .2s ease box-shadow;
|
3961
4081
|
border: 0;
|
3962
4082
|
}
|
4083
|
+
@media (prefers-reduced-motion: reduce) {
|
4084
|
+
.ck.ck-character-grid .ck-character-grid__tile {
|
4085
|
+
transition: none;
|
4086
|
+
}
|
4087
|
+
}
|
3963
4088
|
.ck.ck-character-grid .ck-character-grid__tile:focus:not( .ck-disabled ),
|
3964
4089
|
.ck.ck-character-grid .ck-character-grid__tile:hover:not( .ck-disabled ) {
|
3965
4090
|
/* Disable the default .ck-button's border ring. */
|
@@ -4321,6 +4446,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4321
4446
|
outline: none;
|
4322
4447
|
transition: none;
|
4323
4448
|
}
|
4449
|
+
@media (prefers-reduced-motion: reduce) {
|
4450
|
+
.ck .ck-insert-table-dropdown-grid-box {
|
4451
|
+
transition: none;
|
4452
|
+
}
|
4453
|
+
}
|
4324
4454
|
.ck .ck-insert-table-dropdown-grid-box:focus {
|
4325
4455
|
box-shadow: none;
|
4326
4456
|
}
|
@@ -4434,6 +4564,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4434
4564
|
border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
|
4435
4565
|
border-style: solid;
|
4436
4566
|
}
|
4567
|
+
@media (prefers-reduced-motion: reduce) {
|
4568
|
+
.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {
|
4569
|
+
animation: none;
|
4570
|
+
}
|
4571
|
+
}
|
4437
4572
|
/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
|
4438
4573
|
.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
|
4439
4574
|
display: none;
|
@@ -4530,6 +4665,10 @@ of the component, floating–point numbers have been used which, for the default
|
|
4530
4665
|
/**
|
4531
4666
|
* Gives an element a drop shadow so it looks like a floating panel.
|
4532
4667
|
*/
|
4668
|
+
/*
|
4669
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
4670
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4671
|
+
*/
|
4533
4672
|
:root {
|
4534
4673
|
--ck-widget-outline-thickness: 3px;
|
4535
4674
|
--ck-widget-handler-icon-size: 16px;
|
@@ -4547,6 +4686,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4547
4686
|
outline-color: transparent;
|
4548
4687
|
transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
4549
4688
|
}
|
4689
|
+
@media (prefers-reduced-motion: reduce) {
|
4690
|
+
.ck .ck-widget {
|
4691
|
+
transition: none;
|
4692
|
+
}
|
4693
|
+
}
|
4550
4694
|
.ck .ck-widget.ck-widget_selected,
|
4551
4695
|
.ck .ck-widget.ck-widget_selected:hover {
|
4552
4696
|
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);
|
@@ -4566,8 +4710,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4566
4710
|
outline: none;
|
4567
4711
|
border: var(--ck-focus-ring);
|
4568
4712
|
box-shadow: var(--ck-inner-shadow), 0 0;
|
4569
|
-
|
4570
|
-
|
4713
|
+
}
|
4714
|
+
@media (forced-colors: none) {
|
4715
|
+
.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused, .ck .ck-editor__nested-editable:focus {
|
4716
|
+
background-color: var(--ck-color-widget-editable-focus-background);
|
4717
|
+
}
|
4571
4718
|
}
|
4572
4719
|
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
|
4573
4720
|
padding: 4px;
|
@@ -4594,6 +4741,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4594
4741
|
left: calc(0px - var(--ck-widget-outline-thickness));
|
4595
4742
|
top: 0;
|
4596
4743
|
}
|
4744
|
+
@media (prefers-reduced-motion: reduce) {
|
4745
|
+
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
|
4746
|
+
transition: none;
|
4747
|
+
}
|
4748
|
+
}
|
4597
4749
|
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon {
|
4598
4750
|
/* Make sure the dimensions of the icon are independent of the fon-size of the content. */
|
4599
4751
|
width: var(--ck-widget-handler-icon-size);
|
@@ -4608,6 +4760,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4608
4760
|
/* Note: The animation is longer on purpose. Simply feels better. */
|
4609
4761
|
transition: opacity 300ms var(--ck-widget-handler-animation-curve);
|
4610
4762
|
}
|
4763
|
+
@media (prefers-reduced-motion: reduce) {
|
4764
|
+
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator {
|
4765
|
+
transition: none;
|
4766
|
+
}
|
4767
|
+
}
|
4611
4768
|
/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */
|
4612
4769
|
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator {
|
4613
4770
|
opacity: 1;
|
@@ -4736,6 +4893,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4736
4893
|
|
4737
4894
|
pointer-events: none;
|
4738
4895
|
}
|
4896
|
+
@media (prefers-reduced-motion: reduce) {
|
4897
|
+
.ck .ck-widget .ck-widget__type-around__button {
|
4898
|
+
transition: none;
|
4899
|
+
}
|
4900
|
+
}
|
4739
4901
|
.ck .ck-widget .ck-widget__type-around__button svg {
|
4740
4902
|
width: 10px;
|
4741
4903
|
height: 8px;
|
@@ -4743,6 +4905,11 @@ of the component, floating–point numbers have been used which, for the default
|
|
4743
4905
|
transition: transform .5s ease;
|
4744
4906
|
margin-top: 1px;
|
4745
4907
|
}
|
4908
|
+
@media (prefers-reduced-motion: reduce) {
|
4909
|
+
.ck .ck-widget .ck-widget__type-around__button svg {
|
4910
|
+
transition: none;
|
4911
|
+
}
|
4912
|
+
}
|
4746
4913
|
.ck .ck-widget .ck-widget__type-around__button svg * {
|
4747
4914
|
stroke-dasharray: 10;
|
4748
4915
|
stroke-dashoffset: 0;
|
@@ -4772,6 +4939,18 @@ of the component, floating–point numbers have been used which, for the default
|
|
4772
4939
|
.ck .ck-widget .ck-widget__type-around__button:hover svg line {
|
4773
4940
|
animation: ck-widget-type-around-arrow-tip-dash 2s linear;
|
4774
4941
|
}
|
4942
|
+
@media (prefers-reduced-motion: reduce) {
|
4943
|
+
.ck .ck-widget .ck-widget__type-around__button:hover {
|
4944
|
+
animation: none;
|
4945
|
+
}
|
4946
|
+
.ck .ck-widget .ck-widget__type-around__button:hover svg polyline {
|
4947
|
+
animation: none;
|
4948
|
+
}
|
4949
|
+
|
4950
|
+
.ck .ck-widget .ck-widget__type-around__button:hover svg line {
|
4951
|
+
animation: none;
|
4952
|
+
}
|
4953
|
+
}
|
4775
4954
|
/*
|
4776
4955
|
* Show type around buttons when the widget gets selected or being hovered.
|
4777
4956
|
*/
|