@ckeditor/ckeditor5-theme-lark 0.0.0-nightly-20240627.0 → 0.0.0-nightly-20240629.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.
@@ -454,6 +454,16 @@ transform: translateX( var( --ck-switch-button-translation ) );
454
454
  [dir="rtl"] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner {
455
455
  transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );
456
456
  }
457
+ .ck.ck-list-item-button {
458
+ background: var(--ck-color-list-background);
459
+ color: var(--ck-color-text);
460
+ }
461
+ .ck.ck-list-item-button:hover:not(.ck-disabled) {
462
+ background: var(--ck-color-list-button-hover-background);
463
+ }
464
+ .ck.ck-list-item-button:hover:not(.ck-disabled):not(.ck-disabled) {
465
+ color: var(--ck-color-text);
466
+ }
457
467
  .ck.ck-collapsible > .ck.ck-button {
458
468
  width: 100%;
459
469
  font-weight: bold;
@@ -995,47 +1005,47 @@ background: var(--ck-color-list-background);
995
1005
  cursor: default;
996
1006
  min-width: 12em;
997
1007
  }
998
- .ck.ck-list__item > .ck-button {
1008
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
999
1009
  min-height: unset;
1000
1010
  width: 100%;
1001
1011
  border-radius: 0;
1002
1012
  }
1003
- [dir="ltr"] .ck.ck-list__item > .ck-button {
1013
+ [dir="ltr"] .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
1004
1014
  text-align: left;
1005
1015
  }
1006
- [dir="rtl"] .ck.ck-list__item > .ck-button {
1016
+ [dir="rtl"] .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
1007
1017
  text-align: right;
1008
1018
  }
1009
- .ck.ck-list__item > .ck-button {
1019
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
1010
1020
  padding: var(--ck-list-button-padding);
1011
1021
  }
1012
- .ck.ck-list__item > .ck-button .ck-button__label {
1022
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button) .ck-button__label {
1013
1023
  line-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));
1014
1024
  }
1015
- .ck.ck-list__item > .ck-button:active {
1025
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button):active {
1016
1026
  box-shadow: none;
1017
1027
  }
1018
- .ck.ck-list__item > .ck-button.ck-on {
1028
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button) {
1019
1029
  background: var(--ck-color-list-button-on-background);
1020
1030
  color: var(--ck-color-list-button-on-text);
1021
1031
  }
1022
- .ck.ck-list__item > .ck-button.ck-on:active {
1032
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button):active {
1023
1033
  box-shadow: none;
1024
1034
  }
1025
- .ck.ck-list__item > .ck-button.ck-on:hover:not(.ck-disabled) {
1035
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button):hover:not(.ck-disabled) {
1026
1036
  background: var(--ck-color-list-button-on-background-focus);
1027
1037
  }
1028
- .ck.ck-list__item > .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled) {
1038
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button):focus:not(.ck-disabled) {
1029
1039
  border-color: var(--ck-color-base-background);
1030
1040
  }
1031
- .ck.ck-list__item > .ck-button:hover:not(.ck-disabled) {
1041
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button):hover:not(.ck-disabled) {
1032
1042
  background: var(--ck-color-list-button-hover-background);
1033
1043
  }
1034
- .ck.ck-list__item > .ck-switchbutton.ck-on {
1044
+ .ck.ck-list__item > .ck-button.ck-switchbutton.ck-on {
1035
1045
  background: var(--ck-color-list-background);
1036
1046
  color: inherit;
1037
1047
  }
1038
- .ck.ck-list__item > .ck-switchbutton.ck-on:hover:not(.ck-disabled) {
1048
+ .ck.ck-list__item > .ck-button.ck-switchbutton.ck-on:hover:not(.ck-disabled) {
1039
1049
  background: var(--ck-color-list-button-hover-background);
1040
1050
  color: inherit;
1041
1051
  }
@@ -1107,16 +1117,6 @@ display: none;
1107
1117
  .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {
1108
1118
  border-radius: 0;
1109
1119
  }
1110
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus {
1111
- border-color: transparent;
1112
- box-shadow: none;
1113
- }
1114
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus:not(.ck-on) {
1115
- background: var(--ck-color-button-default-hover-background);
1116
- }
1117
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:not(:has(.ck-button__icon)) > .ck-button__label {
1118
- margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
1119
- }
1120
1120
  .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow {
1121
1121
  width: var(--ck-dropdown-arrow-size);
1122
1122
  }
@@ -1150,16 +1150,6 @@ border-radius: 0;
1150
1150
  margin-left: calc(-1 * var(--ck-spacing-small));
1151
1151
  margin-right: var(--ck-spacing-small);
1152
1152
  }
1153
- .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus {
1154
- border-color: transparent;
1155
- box-shadow: none;
1156
- }
1157
- .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus:not(.ck-on) {
1158
- background: var(--ck-color-button-default-hover-background);
1159
- }
1160
- .ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__panel > ul > .ck-menu-bar__menu__item > .ck-menu-bar__menu__item__button:not(:has(.ck-button__icon)) > .ck-button__label {
1161
- margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
1162
- }
1163
1153
  .ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {
1164
1154
  border-radius: 0;
1165
1155
  }
@@ -1189,6 +1179,17 @@ border-bottom-right-radius: 0;
1189
1179
  .ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel:focus {
1190
1180
  outline: none;
1191
1181
  }
1182
+ .ck.ck-menu-bar .ck-list-item-button:focus {
1183
+ border-color: transparent;
1184
+ box-shadow: none;
1185
+ }
1186
+ .ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus {
1187
+ position: relative;
1188
+ z-index: 2;
1189
+ outline: none;
1190
+ border: var(--ck-focus-ring);
1191
+ box-shadow: var(--ck-focus-outer-shadow), 0 0;
1192
+ }
1192
1193
  .ck.ck-balloon-panel {
1193
1194
  border-radius: 0;
1194
1195
  }
package/dist/index.css CHANGED
@@ -737,6 +737,33 @@ of the component, floating–point numbers have been used which, for the default
737
737
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
738
738
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
739
739
  */
740
+ /*
741
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
742
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
743
+ */
744
+ .ck.ck-list-item-button,
745
+ .ck.ck-list-item-button.ck-on {
746
+ background: var(--ck-color-list-background);
747
+ color: var(--ck-color-text);
748
+ }
749
+ /*
750
+ * `.ck-on` class and background styling is overridden for `ck-button` in many places.
751
+ * This is a workaround to make sure that the background is not overridden and uses similar
752
+ * selector specificity as the other overrides.
753
+ */
754
+ .ck.ck-list-item-button:hover:not(.ck-disabled),
755
+ .ck.ck-list-item-button.ck-button.ck-on:hover,
756
+ .ck.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),
757
+ .ck.ck-list-item-button.ck-on:hover {
758
+ background: var(--ck-color-list-button-hover-background);
759
+ }
760
+ .ck.ck-list-item-button:hover:not(.ck-disabled):not(.ck-disabled), .ck.ck-list-item-button.ck-button.ck-on:hover:not(.ck-disabled), .ck.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable):not(.ck-disabled), .ck.ck-list-item-button.ck-on:hover:not(.ck-disabled) {
761
+ color: var(--ck-color-text);
762
+ }
763
+ /*
764
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
765
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
766
+ */
740
767
  :root {
741
768
  --ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));
742
769
  }
@@ -1830,54 +1857,54 @@ of the component, floating–point numbers have been used which, for the default
1830
1857
  cursor: default;
1831
1858
  min-width: 12em;
1832
1859
  }
1833
- .ck.ck-list__item > .ck-button {
1860
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
1834
1861
  min-height: unset;
1835
1862
  width: 100%;
1836
1863
  border-radius: 0;
1837
1864
  }
1838
- [dir="ltr"] .ck.ck-list__item > .ck-button {
1865
+ [dir="ltr"] .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
1839
1866
  text-align: left;
1840
1867
  }
1841
- [dir="rtl"] .ck.ck-list__item > .ck-button {
1868
+ [dir="rtl"] .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
1842
1869
  text-align: right;
1843
1870
  }
1844
- .ck.ck-list__item > .ck-button {
1871
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button) {
1845
1872
 
1846
1873
  /* List items should have the same height. Use absolute units to make sure it is so
1847
1874
  because e.g. different heading styles may have different height
1848
1875
  https://github.com/ckeditor/ckeditor5-heading/issues/63 */
1849
1876
  padding: var(--ck-list-button-padding);
1850
1877
  }
1851
- .ck.ck-list__item > .ck-button .ck-button__label {
1878
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button) .ck-button__label {
1852
1879
  /* https://github.com/ckeditor/ckeditor5-heading/issues/63 */
1853
1880
  line-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));
1854
1881
  }
1855
- .ck.ck-list__item > .ck-button:active {
1882
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button):active {
1856
1883
  box-shadow: none;
1857
1884
  }
1858
- .ck.ck-list__item > .ck-button.ck-on {
1885
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button) {
1859
1886
  background: var(--ck-color-list-button-on-background);
1860
1887
  color: var(--ck-color-list-button-on-text);
1861
1888
  }
1862
- .ck.ck-list__item > .ck-button.ck-on:active {
1889
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button):active {
1863
1890
  box-shadow: none;
1864
1891
  }
1865
- .ck.ck-list__item > .ck-button.ck-on:hover:not(.ck-disabled) {
1892
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button):hover:not(.ck-disabled) {
1866
1893
  background: var(--ck-color-list-button-on-background-focus);
1867
1894
  }
1868
- .ck.ck-list__item > .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled) {
1895
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button):focus:not(.ck-disabled) {
1869
1896
  border-color: var(--ck-color-base-background);
1870
1897
  }
1871
- .ck.ck-list__item > .ck-button:hover:not(.ck-disabled) {
1898
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button):hover:not(.ck-disabled) {
1872
1899
  background: var(--ck-color-list-button-hover-background);
1873
1900
  }
1874
1901
  /* It's unnecessary to change the background/text of a switch toggle; it has different ways
1875
1902
  of conveying its state (like the switcher) */
1876
- .ck.ck-list__item > .ck-switchbutton.ck-on {
1903
+ .ck.ck-list__item > .ck-button.ck-switchbutton.ck-on {
1877
1904
  background: var(--ck-color-list-background);
1878
1905
  color: inherit;
1879
1906
  }
1880
- .ck.ck-list__item > .ck-switchbutton.ck-on:hover:not(.ck-disabled) {
1907
+ .ck.ck-list__item > .ck-button.ck-switchbutton.ck-on:hover:not(.ck-disabled) {
1881
1908
  background: var(--ck-color-list-button-hover-background);
1882
1909
  color: inherit;
1883
1910
  }
@@ -1994,17 +2021,6 @@ of the component, floating–point numbers have been used which, for the default
1994
2021
  .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {
1995
2022
  border-radius: 0;
1996
2023
  }
1997
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus {
1998
- border-color: transparent;
1999
- box-shadow: none;
2000
- }
2001
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus:not(.ck-on) {
2002
- background: var(--ck-color-button-default-hover-background);
2003
- }
2004
- /* Spacing in buttons that miss the icon. */
2005
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:not(:has(.ck-button__icon)) > .ck-button__label {
2006
- margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
2007
- }
2008
2024
  .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow {
2009
2025
  width: var(--ck-dropdown-arrow-size);
2010
2026
  }
@@ -2059,24 +2075,6 @@ of the component, floating–point numbers have been used which, for the default
2059
2075
  margin-left: calc(-1 * var(--ck-spacing-small));
2060
2076
  margin-right: var(--ck-spacing-small);
2061
2077
  }
2062
- /*
2063
- * Hovered items automatically get focused. Default focus styles look odd
2064
- * while moving across a huge list of items so let's get rid of them
2065
- */
2066
- .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus {
2067
- border-color: transparent;
2068
- box-shadow: none;
2069
- }
2070
- .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus:not(.ck-on) {
2071
- background: var(--ck-color-button-default-hover-background);
2072
- }
2073
- /*
2074
- * First-level sub-menu item buttons.
2075
- */
2076
- /* Spacing in buttons that miss the icon. */
2077
- .ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__panel > ul > .ck-menu-bar__menu__item > .ck-menu-bar__menu__item__button:not(:has(.ck-button__icon)) > .ck-button__label {
2078
- margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
2079
- }
2080
2078
  /*
2081
2079
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2082
2080
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -2100,6 +2098,13 @@ of the component, floating–point numbers have been used which, for the default
2100
2098
  /**
2101
2099
  * Gives an element a drop shadow so it looks like a floating panel.
2102
2100
  */
2101
+ /*
2102
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2103
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
2104
+ */
2105
+ /**
2106
+ * A visual style of focused element's border.
2107
+ */
2103
2108
  :root {
2104
2109
  --ck-menu-bar-menu-panel-max-width: 75vw;
2105
2110
  }
@@ -2139,6 +2144,24 @@ of the component, floating–point numbers have been used which, for the default
2139
2144
  .ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel:focus {
2140
2145
  outline: none;
2141
2146
  }
2147
+ .ck.ck-menu-bar .ck-list-item-button:focus,
2148
+ .ck.ck-menu-bar .ck-list-item-button:active {
2149
+ border-color: transparent;
2150
+ box-shadow: none;
2151
+ }
2152
+ .ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus,
2153
+ .ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:active {
2154
+ /* Fix truncated shadows due to rendering order. */
2155
+ position: relative;
2156
+ z-index: 2;
2157
+
2158
+ /* Disable native outline. */
2159
+
2160
+ outline: none;
2161
+
2162
+ border: var(--ck-focus-ring);
2163
+ box-shadow: var(--ck-focus-outer-shadow), 0 0;
2164
+ }
2142
2165
  /*
2143
2166
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2144
2167
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license