@ckeditor/ckeditor5-theme-lark 42.0.2 → 43.0.0-alpha.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.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,50 +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:active {
1878
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button) .ck-button__label {
1879
+ /* https://github.com/ckeditor/ckeditor5-heading/issues/63 */
1880
+ line-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));
1881
+ }
1882
+ .ck.ck-list__item > .ck-button:not(.ck-list-item-button):active {
1852
1883
  box-shadow: none;
1853
1884
  }
1854
- .ck.ck-list__item > .ck-button.ck-on {
1885
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button) {
1855
1886
  background: var(--ck-color-list-button-on-background);
1856
1887
  color: var(--ck-color-list-button-on-text);
1857
1888
  }
1858
- .ck.ck-list__item > .ck-button.ck-on:active {
1889
+ .ck.ck-list__item > .ck-button.ck-on:not(.ck-list-item-button):active {
1859
1890
  box-shadow: none;
1860
1891
  }
1861
- .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) {
1862
1893
  background: var(--ck-color-list-button-on-background-focus);
1863
1894
  }
1864
- .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) {
1865
1896
  border-color: var(--ck-color-base-background);
1866
1897
  }
1867
- .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) {
1868
1899
  background: var(--ck-color-list-button-hover-background);
1869
1900
  }
1870
1901
  /* It's unnecessary to change the background/text of a switch toggle; it has different ways
1871
1902
  of conveying its state (like the switcher) */
1872
- .ck.ck-list__item > .ck-switchbutton.ck-on {
1903
+ .ck.ck-list__item > .ck-button.ck-switchbutton.ck-on {
1873
1904
  background: var(--ck-color-list-background);
1874
1905
  color: inherit;
1875
1906
  }
1876
- .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) {
1877
1908
  background: var(--ck-color-list-button-hover-background);
1878
1909
  color: inherit;
1879
1910
  }
@@ -1990,17 +2021,6 @@ of the component, floating–point numbers have been used which, for the default
1990
2021
  .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {
1991
2022
  border-radius: 0;
1992
2023
  }
1993
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus {
1994
- border-color: transparent;
1995
- box-shadow: none;
1996
- }
1997
- .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus:not(.ck-on) {
1998
- background: var(--ck-color-button-default-hover-background);
1999
- }
2000
- /* Spacing in buttons that miss the icon. */
2001
- .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 {
2002
- margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
2003
- }
2004
2024
  .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow {
2005
2025
  width: var(--ck-dropdown-arrow-size);
2006
2026
  }
@@ -2055,24 +2075,6 @@ of the component, floating–point numbers have been used which, for the default
2055
2075
  margin-left: calc(-1 * var(--ck-spacing-small));
2056
2076
  margin-right: var(--ck-spacing-small);
2057
2077
  }
2058
- /*
2059
- * Hovered items automatically get focused. Default focus styles look odd
2060
- * while moving across a huge list of items so let's get rid of them
2061
- */
2062
- .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus {
2063
- border-color: transparent;
2064
- box-shadow: none;
2065
- }
2066
- .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus:not(.ck-on) {
2067
- background: var(--ck-color-button-default-hover-background);
2068
- }
2069
- /*
2070
- * First-level sub-menu item buttons.
2071
- */
2072
- /* Spacing in buttons that miss the icon. */
2073
- .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 {
2074
- margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
2075
- }
2076
2078
  /*
2077
2079
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2078
2080
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -2096,6 +2098,13 @@ of the component, floating–point numbers have been used which, for the default
2096
2098
  /**
2097
2099
  * Gives an element a drop shadow so it looks like a floating panel.
2098
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
+ */
2099
2108
  :root {
2100
2109
  --ck-menu-bar-menu-panel-max-width: 75vw;
2101
2110
  }
@@ -2135,6 +2144,24 @@ of the component, floating–point numbers have been used which, for the default
2135
2144
  .ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel:focus {
2136
2145
  outline: none;
2137
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
+ }
2138
2165
  /*
2139
2166
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2140
2167
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -4055,30 +4082,18 @@ of the component, floating–point numbers have been used which, for the default
4055
4082
  .ck.ck-character-grid {
4056
4083
  overflow-y: auto;
4057
4084
  overflow-x: hidden;
4058
- width: 350px;
4059
- max-height: 200px;
4060
4085
  }
4061
- @media screen and (max-width: 600px) {
4062
- .ck.ck-character-grid {
4063
- width: 190px;
4064
- }
4065
- }
4066
4086
  .ck.ck-character-grid .ck-character-grid__tiles {
4067
- grid-template-columns: repeat(10, 1fr);
4087
+ grid-template-columns: repeat(auto-fill, minmax(var(--ck-character-grid-tile-size), 1fr));
4068
4088
  margin: var(--ck-spacing-standard) var(--ck-spacing-large);
4069
4089
  grid-gap: var(--ck-spacing-standard);
4070
4090
  }
4071
- @media screen and (max-width: 600px) {
4072
- .ck.ck-character-grid .ck-character-grid__tiles {
4073
- grid-template-columns: repeat(5, 1fr);
4074
- }
4075
- }
4076
4091
  .ck.ck-character-grid .ck-character-grid__tile {
4077
4092
  width: var(--ck-character-grid-tile-size);
4078
4093
  height: var(--ck-character-grid-tile-size);
4079
4094
  min-width: var(--ck-character-grid-tile-size);
4080
4095
  min-height: var(--ck-character-grid-tile-size);
4081
- font-size: 1.2em;
4096
+ font-size: 1.5em;
4082
4097
  padding: 0;
4083
4098
  transition: .2s ease box-shadow;
4084
4099
  border: 0;
@@ -4124,11 +4139,6 @@ of the component, floating–point numbers have been used which, for the default
4124
4139
  .ck.ck-character-info .ck-character-info__code {
4125
4140
  opacity: .6;
4126
4141
  }
4127
- @media screen and (max-width: 600px) {
4128
- .ck.ck-character-info {
4129
- max-width: 190px;
4130
- }
4131
- }
4132
4142
  /*
4133
4143
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4134
4144
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license