@ckeditor/ckeditor5-theme-lark 0.0.0-nightly-20240507.0 → 0.0.0-nightly-20240508.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.
@@ -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
@@ -778,6 +778,10 @@ of the component, floating–point numbers have been used which, for the default
778
778
  *
779
779
  * @see $ck-border-radius
780
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
+ */
781
785
  :root {
782
786
  --ck-color-grid-tile-size: 24px;
783
787
 
@@ -791,14 +795,55 @@ of the component, floating–point numbers have been used which, for the default
791
795
  padding: 8px;
792
796
  }
793
797
  .ck.ck-color-grid__tile {
794
- width: var(--ck-color-grid-tile-size);
795
- height: var(--ck-color-grid-tile-size);
796
- min-width: var(--ck-color-grid-tile-size);
797
- min-height: var(--ck-color-grid-tile-size);
798
- padding: 0;
799
798
  transition: .2s ease box-shadow;
800
- border: 0;
801
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
+ }
802
847
  @media (prefers-reduced-motion: reduce) {
803
848
  .ck.ck-color-grid__tile {
804
849
  transition: none;
@@ -808,29 +853,13 @@ of the component, floating–point numbers have been used which, for the default
808
853
  cursor: unset;
809
854
  transition: unset;
810
855
  }
811
- .ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered {
812
- box-shadow: 0 0 0 1px var(--ck-color-base-border);
813
- }
814
856
  .ck.ck-color-grid__tile .ck.ck-icon {
815
857
  display: none;
816
858
  color: var(--ck-color-color-grid-check-icon);
817
859
  }
818
- .ck.ck-color-grid__tile.ck-on {
819
- box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);
820
- }
821
860
  .ck.ck-color-grid__tile.ck-on .ck.ck-icon {
822
861
  display: block;
823
862
  }
824
- .ck.ck-color-grid__tile.ck-on,
825
- .ck.ck-color-grid__tile:focus:not( .ck-disabled ),
826
- .ck.ck-color-grid__tile:hover:not( .ck-disabled ) {
827
- /* Disable the default .ck-button's border ring. */
828
- border: 0;
829
- }
830
- .ck.ck-color-grid__tile:focus:not( .ck-disabled ),
831
- .ck.ck-color-grid__tile:hover:not( .ck-disabled ) {
832
- box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
833
- }
834
863
  .ck.ck-color-grid__label {
835
864
  padding: 0 var(--ck-spacing-standard);
836
865
  }
@@ -2950,14 +2979,46 @@ of the component, floating–point numbers have been used which, for the default
2950
2979
  overflow-y: auto;
2951
2980
  overflow-x: hidden;
2952
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
+ */
2953
2986
  /*
2954
2987
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2955
2988
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
2956
2989
  */
2957
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
+ }
2958
3000
  .ck.ck-placeholder::before, .ck .ck-placeholder::before {
2959
3001
  cursor: text;
2960
- color: var(--ck-color-engine-placeholder-text);
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
+ }
2961
3022
  }
2962
3023
  /*
2963
3024
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
@@ -4604,6 +4665,10 @@ of the component, floating–point numbers have been used which, for the default
4604
4665
  /**
4605
4666
  * Gives an element a drop shadow so it looks like a floating panel.
4606
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
+ */
4607
4672
  :root {
4608
4673
  --ck-widget-outline-thickness: 3px;
4609
4674
  --ck-widget-handler-icon-size: 16px;
@@ -4645,8 +4710,11 @@ of the component, floating–point numbers have been used which, for the default
4645
4710
  outline: none;
4646
4711
  border: var(--ck-focus-ring);
4647
4712
  box-shadow: var(--ck-inner-shadow), 0 0;
4648
-
4649
- background-color: var(--ck-color-widget-editable-focus-background);
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
+ }
4650
4718
  }
4651
4719
  .ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
4652
4720
  padding: 4px;