@ckeditor/ckeditor5-theme-lark 0.0.0-internal-20241017.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.
Files changed (110) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +17 -0
  3. package/README.md +22 -0
  4. package/dist/index-content.css +12 -0
  5. package/dist/index-editor.css +3653 -0
  6. package/dist/index.css +5335 -0
  7. package/dist/index.css.map +1 -0
  8. package/dist/index.js +6 -0
  9. package/dist/index.js.map +1 -0
  10. package/package.json +32 -0
  11. package/theme/ckeditor5-clipboard/clipboard.css +89 -0
  12. package/theme/ckeditor5-code-block/codeblock.css +28 -0
  13. package/theme/ckeditor5-editor-classic/classiceditor.css +48 -0
  14. package/theme/ckeditor5-engine/placeholder.css +39 -0
  15. package/theme/ckeditor5-find-and-replace/findandreplaceform.css +194 -0
  16. package/theme/ckeditor5-heading/heading.css +15 -0
  17. package/theme/ckeditor5-horizontal-line/horizontalline.css +10 -0
  18. package/theme/ckeditor5-html-embed/htmlembed.css +156 -0
  19. package/theme/ckeditor5-image/imageinsert.css +66 -0
  20. package/theme/ckeditor5-image/imageupload.css +4 -0
  21. package/theme/ckeditor5-image/imageuploadicon.css +108 -0
  22. package/theme/ckeditor5-image/imageuploadloader.css +50 -0
  23. package/theme/ckeditor5-image/imageuploadprogress.css +33 -0
  24. package/theme/ckeditor5-link/link.css +30 -0
  25. package/theme/ckeditor5-link/linkactions.css +84 -0
  26. package/theme/ckeditor5-link/linkform.css +61 -0
  27. package/theme/ckeditor5-link/linkimage.css +43 -0
  28. package/theme/ckeditor5-list/listproperties.css +62 -0
  29. package/theme/ckeditor5-list/liststyles.css +40 -0
  30. package/theme/ckeditor5-media-embed/mediaembedediting.css +109 -0
  31. package/theme/ckeditor5-mention/mention.css +14 -0
  32. package/theme/ckeditor5-restricted-editing/restrictedediting.css +69 -0
  33. package/theme/ckeditor5-special-characters/charactergrid.css +51 -0
  34. package/theme/ckeditor5-special-characters/characterinfo.css +26 -0
  35. package/theme/ckeditor5-special-characters/specialcharacters.css +32 -0
  36. package/theme/ckeditor5-style/style.css +8 -0
  37. package/theme/ckeditor5-style/stylegrid.css +98 -0
  38. package/theme/ckeditor5-style/stylegroup.css +16 -0
  39. package/theme/ckeditor5-style/stylepanel.css +14 -0
  40. package/theme/ckeditor5-table/colorinput.css +103 -0
  41. package/theme/ckeditor5-table/form.css +32 -0
  42. package/theme/ckeditor5-table/formrow.css +36 -0
  43. package/theme/ckeditor5-table/inserttable.css +46 -0
  44. package/theme/ckeditor5-table/tablecellproperties.css +25 -0
  45. package/theme/ckeditor5-table/tableediting.css +27 -0
  46. package/theme/ckeditor5-table/tableform.css +90 -0
  47. package/theme/ckeditor5-table/tableproperties.css +26 -0
  48. package/theme/ckeditor5-table/tableselection.css +47 -0
  49. package/theme/ckeditor5-ui/components/autocomplete/autocomplete.css +36 -0
  50. package/theme/ckeditor5-ui/components/button/button.css +167 -0
  51. package/theme/ckeditor5-ui/components/button/listitembutton.css +42 -0
  52. package/theme/ckeditor5-ui/components/button/switchbutton.css +134 -0
  53. package/theme/ckeditor5-ui/components/collapsible/collapsible.css +42 -0
  54. package/theme/ckeditor5-ui/components/colorgrid/colorgrid.css +94 -0
  55. package/theme/ckeditor5-ui/components/colorselector/colorselector.css +70 -0
  56. package/theme/ckeditor5-ui/components/dialog/dialog.css +49 -0
  57. package/theme/ckeditor5-ui/components/dialog/dialogactions.css +14 -0
  58. package/theme/ckeditor5-ui/components/dropdown/dropdown.css +126 -0
  59. package/theme/ckeditor5-ui/components/dropdown/listdropdown.css +33 -0
  60. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenubutton.css +89 -0
  61. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitem.css +12 -0
  62. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitembutton.css +36 -0
  63. package/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenupanel.css +52 -0
  64. package/theme/ckeditor5-ui/components/dropdown/splitbutton.css +112 -0
  65. package/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css +8 -0
  66. package/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css +103 -0
  67. package/theme/ckeditor5-ui/components/editorui/editorui.css +69 -0
  68. package/theme/ckeditor5-ui/components/formheader/formheader.css +32 -0
  69. package/theme/ckeditor5-ui/components/icon/icon.css +42 -0
  70. package/theme/ckeditor5-ui/components/input/input.css +81 -0
  71. package/theme/ckeditor5-ui/components/label/label.css +8 -0
  72. package/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css +127 -0
  73. package/theme/ckeditor5-ui/components/labeledinput/labeledinput.css +17 -0
  74. package/theme/ckeditor5-ui/components/list/list.css +114 -0
  75. package/theme/ckeditor5-ui/components/menubar/menubar.css +15 -0
  76. package/theme/ckeditor5-ui/components/menubar/menubarmenu.css +13 -0
  77. package/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css +98 -0
  78. package/theme/ckeditor5-ui/components/menubar/menubarmenulistitem.css +12 -0
  79. package/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css +36 -0
  80. package/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css +70 -0
  81. package/theme/ckeditor5-ui/components/panel/balloonpanel.css +207 -0
  82. package/theme/ckeditor5-ui/components/panel/balloonrotator.css +33 -0
  83. package/theme/ckeditor5-ui/components/panel/fakepanel.css +46 -0
  84. package/theme/ckeditor5-ui/components/panel/stickypanel.css +16 -0
  85. package/theme/ckeditor5-ui/components/responsive-form/responsiveform.css +82 -0
  86. package/theme/ckeditor5-ui/components/search/search.css +106 -0
  87. package/theme/ckeditor5-ui/components/spinner/spinner.css +32 -0
  88. package/theme/ckeditor5-ui/components/textarea/textarea.css +12 -0
  89. package/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css +14 -0
  90. package/theme/ckeditor5-ui/components/toolbar/toolbar.css +203 -0
  91. package/theme/ckeditor5-ui/components/tooltip/tooltip.css +38 -0
  92. package/theme/ckeditor5-ui/globals/_colors.css +123 -0
  93. package/theme/ckeditor5-ui/globals/_disabled.css +11 -0
  94. package/theme/ckeditor5-ui/globals/_focus.css +31 -0
  95. package/theme/ckeditor5-ui/globals/_fonts.css +16 -0
  96. package/theme/ckeditor5-ui/globals/_reset.css +97 -0
  97. package/theme/ckeditor5-ui/globals/_rounded.css +11 -0
  98. package/theme/ckeditor5-ui/globals/_shadow.css +21 -0
  99. package/theme/ckeditor5-ui/globals/_spacing.css +14 -0
  100. package/theme/ckeditor5-ui/globals/globals.css +13 -0
  101. package/theme/ckeditor5-ui/mixins/_button.css +29 -0
  102. package/theme/ckeditor5-widget/widget.css +195 -0
  103. package/theme/ckeditor5-widget/widgetresize.css +44 -0
  104. package/theme/ckeditor5-widget/widgettypearound.css +302 -0
  105. package/theme/index.css +97 -0
  106. package/theme/mixins/_disabled.css +11 -0
  107. package/theme/mixins/_focus.css +13 -0
  108. package/theme/mixins/_rounded.css +19 -0
  109. package/theme/mixins/_shadow.css +18 -0
  110. package/theme/theme.css +4 -0
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_rounded.css";
7
+ @import "../../../mixins/_shadow.css";
8
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
9
+
10
+ :root {
11
+ --ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 );
12
+ --ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%);
13
+ --ck-dialog-max-width: 100vw;
14
+ --ck-dialog-max-height: 90vh;
15
+ --ck-color-dialog-background: var(--ck-color-base-background);
16
+ --ck-color-dialog-form-header-border: var(--ck-color-base-border);
17
+ }
18
+
19
+ .ck.ck-dialog-overlay {
20
+ animation: ck-dialog-fade-in .3s;
21
+ background: var(--ck-dialog-overlay-background-color);
22
+ z-index: var(--ck-z-dialog);
23
+ }
24
+
25
+ .ck.ck-dialog {
26
+ @mixin ck-rounded-corners;
27
+ @mixin ck-drop-shadow;
28
+
29
+ --ck-drop-shadow: var(--ck-dialog-drop-shadow);
30
+
31
+ background: var(--ck-color-dialog-background);
32
+ max-height: var(--ck-dialog-max-height);
33
+ max-width: var(--ck-dialog-max-width);
34
+ border: 1px solid var(--ck-color-base-border);
35
+
36
+ & .ck.ck-form__header {
37
+ border-bottom: 1px solid var(--ck-color-dialog-form-header-border);
38
+ }
39
+ }
40
+
41
+ @keyframes ck-dialog-fade-in {
42
+ 0% {
43
+ background: hsla( 0, 0%, 0%, 0 );
44
+ }
45
+
46
+ 100% {
47
+ background: var(--ck-dialog-overlay-background-color);
48
+ }
49
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck.ck-dialog {
7
+ & .ck.ck-dialog__actions {
8
+ padding: var(--ck-spacing-large);
9
+
10
+ & > * + * {
11
+ margin-left: var(--ck-spacing-large);
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,126 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_rounded.css";
7
+ @import "../../../mixins/_disabled.css";
8
+ @import "../../../mixins/_shadow.css";
9
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
10
+
11
+ :root {
12
+ --ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));
13
+ }
14
+
15
+ .ck.ck-dropdown {
16
+ /* Enable font size inheritance, which allows fluid UI scaling. */
17
+ font-size: inherit;
18
+
19
+ & .ck-dropdown__arrow {
20
+ width: var(--ck-dropdown-arrow-size);
21
+ }
22
+
23
+ @mixin ck-dir ltr {
24
+ & .ck-dropdown__arrow {
25
+ right: var(--ck-spacing-standard);
26
+
27
+ /* A space to accommodate the triangle. */
28
+ margin-left: var(--ck-spacing-standard);
29
+ }
30
+ }
31
+
32
+ @mixin ck-dir rtl {
33
+ & .ck-dropdown__arrow {
34
+ left: var(--ck-spacing-standard);
35
+
36
+ /* A space to accommodate the triangle. */
37
+ margin-right: var(--ck-spacing-small);
38
+ }
39
+ }
40
+
41
+ &.ck-disabled .ck-dropdown__arrow {
42
+ @mixin ck-disabled;
43
+ }
44
+
45
+ & .ck-button.ck-dropdown__button {
46
+ @mixin ck-dir ltr {
47
+ &:not(.ck-button_with-text) {
48
+ /* Make sure dropdowns with just an icon have the right inner spacing */
49
+ padding-left: var(--ck-spacing-small);
50
+ }
51
+ }
52
+
53
+ @mixin ck-dir rtl {
54
+ &:not(.ck-button_with-text) {
55
+ /* Make sure dropdowns with just an icon have the right inner spacing */
56
+ padding-right: var(--ck-spacing-small);
57
+ }
58
+ }
59
+
60
+ /* #23 */
61
+ & .ck-button__label {
62
+ width: 7em;
63
+ overflow: hidden;
64
+ text-overflow: ellipsis;
65
+ }
66
+
67
+ /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
68
+ &.ck-disabled .ck-button__label {
69
+ @mixin ck-disabled;
70
+ }
71
+
72
+ /* https://github.com/ckeditor/ckeditor5/issues/816 */
73
+ &.ck-on {
74
+ border-bottom-left-radius: 0;
75
+ border-bottom-right-radius: 0;
76
+ }
77
+
78
+ &.ck-dropdown__button_label-width_auto .ck-button__label {
79
+ width: auto;
80
+ }
81
+
82
+ /* https://github.com/ckeditor/ckeditor5/issues/8699 */
83
+ &.ck-off:active,
84
+ &.ck-on:active {
85
+ box-shadow: none;
86
+
87
+ &:focus {
88
+ @mixin ck-box-shadow var(--ck-focus-outer-shadow);
89
+ }
90
+ }
91
+ }
92
+ }
93
+
94
+ .ck.ck-dropdown__panel {
95
+ @mixin ck-rounded-corners;
96
+ @mixin ck-drop-shadow;
97
+
98
+ background: var(--ck-color-dropdown-panel-background);
99
+ border: 1px solid var(--ck-color-dropdown-panel-border);
100
+ bottom: 0;
101
+
102
+ /* Make sure the panel is at least as wide as the drop-down's button. */
103
+ min-width: 100%;
104
+
105
+ /* Disabled corner border radius to be consistent with the .dropdown__button
106
+ https://github.com/ckeditor/ckeditor5/issues/816 */
107
+ &.ck-dropdown__panel_se {
108
+ border-top-left-radius: 0;
109
+ }
110
+
111
+ &.ck-dropdown__panel_sw {
112
+ border-top-right-radius: 0;
113
+ }
114
+
115
+ &.ck-dropdown__panel_ne {
116
+ border-bottom-left-radius: 0;
117
+ }
118
+
119
+ &.ck-dropdown__panel_nw {
120
+ border-bottom-right-radius: 0;
121
+ }
122
+
123
+ &:focus {
124
+ outline: none;
125
+ }
126
+ }
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_rounded.css";
7
+
8
+ .ck.ck-dropdown > .ck-dropdown__panel > .ck-list {
9
+ /* Disabled radius of top-left border to be consistent with .dropdown__button
10
+ https://github.com/ckeditor/ckeditor5/issues/816 */
11
+ @mixin ck-rounded-corners {
12
+ border-top-left-radius: 0;
13
+ }
14
+
15
+ /* Make sure the button belonging to the first/last child of the list goes well with the
16
+ border radius of the entire panel. */
17
+ & .ck-list__item {
18
+ &:first-child > .ck-button {
19
+ @mixin ck-rounded-corners {
20
+ border-top-left-radius: 0;
21
+ border-bottom-left-radius: 0;
22
+ border-bottom-right-radius: 0;
23
+ }
24
+ }
25
+
26
+ &:last-child > .ck-button {
27
+ @mixin ck-rounded-corners {
28
+ border-top-left-radius: 0;
29
+ border-top-right-radius: 0;
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../../mixins/_disabled.css";
7
+ @import "../../../mixins/_button.css";
8
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
9
+
10
+ /*
11
+ * All menu buttons.
12
+ */
13
+ .ck.ck-button.ck-dropdown-menu-list__nested-menu__button {
14
+ width: 100%;
15
+ padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));
16
+ border-radius: 0;
17
+
18
+ &:focus {
19
+ border-color: transparent;
20
+ box-shadow: none;
21
+
22
+ &:not(.ck-on) {
23
+ background: var(--ck-color-button-default-hover-background);
24
+ }
25
+ }
26
+
27
+ & > .ck-button__label {
28
+ flex-grow: 1;
29
+ overflow: hidden;
30
+ text-overflow: ellipsis;
31
+ }
32
+
33
+ &.ck-disabled > .ck-button__label {
34
+ @mixin ck-disabled;
35
+ }
36
+
37
+ /* Spacing in buttons that miss the icon. */
38
+ &.ck-icon-spacing:not(:has(.ck-button__icon)) > .ck-button__label {
39
+ margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
40
+ }
41
+
42
+ & > .ck-dropdown-menu-list__nested-menu__button__arrow {
43
+ width: var(--ck-dropdown-arrow-size);
44
+
45
+ @mixin ck-dir ltr {
46
+ transform: rotate(-90deg);
47
+
48
+ /* Nudge the arrow gently to the right because its center of gravity is to the left */
49
+ margin-right: calc(-1 * var(--ck-spacing-small));
50
+ }
51
+
52
+ @mixin ck-dir rtl {
53
+ transform: rotate(90deg);
54
+
55
+ /* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */
56
+ margin-left: calc(-1 * var(--ck-spacing-small));
57
+ }
58
+ }
59
+
60
+ &.ck-disabled > .ck-dropdown-menu-list__nested-menu__button__arrow {
61
+ @mixin ck-disabled;
62
+ }
63
+
64
+ @mixin ck-dir ltr {
65
+ &:not(.ck-button_with-text) {
66
+ padding-left: var(--ck-spacing-small);
67
+ }
68
+
69
+ & > .ck-dropdown-menu-list__nested-menu__button__arrow {
70
+ right: var(--ck-spacing-standard);
71
+
72
+ /* A space to accommodate the triangle. */
73
+ margin-left: var(--ck-spacing-standard);
74
+ }
75
+ }
76
+
77
+ @mixin ck-dir rtl {
78
+ &:not(.ck-button_with-text) {
79
+ padding-right: var(--ck-spacing-small);
80
+ }
81
+
82
+ & > .ck-dropdown-menu-list__nested-menu__button__arrow {
83
+ left: var(--ck-spacing-standard);
84
+
85
+ /* A space to accommodate the triangle. */
86
+ margin-right: var(--ck-spacing-small);
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ :root {
7
+ --ck-dropdown-menu-menu-item-min-width: 18em;
8
+ }
9
+
10
+ .ck.ck-dropdown-menu-list__nested-menu__item {
11
+ min-width: var(--ck-dropdown-menu-menu-item-min-width);
12
+ }
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ /*
7
+ * List item buttons.
8
+ */
9
+ .ck-button.ck-dropdown-menu-list__nested-menu__item__button {
10
+ border-radius: 0;
11
+
12
+ & > .ck-spinner-container,
13
+ & > .ck-spinner-container .ck-spinner {
14
+ /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */
15
+ --ck-toolbar-spinner-size: 20px;
16
+ }
17
+
18
+ & > .ck-spinner-container {
19
+ /* These margins are the same as for .ck-icon. */
20
+ margin-left: calc(-1 * var(--ck-spacing-small));
21
+ margin-right: var(--ck-spacing-small);
22
+ }
23
+
24
+ /*
25
+ * Hovered items automatically get focused. Default focus styles look odd
26
+ * while moving across a huge list of items so let's get rid of them
27
+ */
28
+ &:focus {
29
+ border-color: transparent;
30
+ box-shadow: none;
31
+
32
+ &:not(.ck-on) {
33
+ background: var(--ck-color-button-default-hover-background);
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../../mixins/_rounded.css";
7
+ @import "../../../../mixins/_shadow.css";
8
+
9
+ :root {
10
+ --ck-dropdown-menu-menu-panel-max-width: 75vw;
11
+ }
12
+
13
+ .ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {
14
+ @mixin ck-drop-shadow;
15
+
16
+ background: var(--ck-color-dropdown-panel-background);
17
+ border: 1px solid var(--ck-color-dropdown-panel-border);
18
+ bottom: 0;
19
+ height: fit-content;
20
+ max-width: var(--ck-dropdown-menu-menu-panel-max-width);
21
+
22
+ /* Reset balloon styling */
23
+ &::after,
24
+ &::before {
25
+ display: none;
26
+ }
27
+
28
+ /* Corner border radius consistent with the button. */
29
+ &.ck-balloon-panel_es,
30
+ &.ck-balloon-panel_se {
31
+ border-top-left-radius: 0;
32
+ }
33
+
34
+ &.ck-balloon-panel_ws,
35
+ &.ck-balloon-panel_sw {
36
+ border-top-right-radius: 0;
37
+ }
38
+
39
+ &.ck-balloon-panel_en,
40
+ &.ck-balloon-panel_ne {
41
+ border-bottom-left-radius: 0;
42
+ }
43
+
44
+ &.ck-balloon-panel_wn,
45
+ &.ck-balloon-panel_nw {
46
+ border-bottom-right-radius: 0;
47
+ }
48
+
49
+ &:focus {
50
+ outline: none;
51
+ }
52
+ }
@@ -0,0 +1,112 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_rounded.css";
7
+
8
+ :root {
9
+ --ck-color-split-button-hover-background: hsl(0, 0%, 92%);
10
+ --ck-color-split-button-hover-border: hsl(0, 0%, 70%);
11
+ }
12
+
13
+ .ck.ck-splitbutton {
14
+ /*
15
+ * Note: ck-rounded and ck-dir mixins don't go together (because they both use @nest).
16
+ */
17
+ &:hover > .ck-splitbutton__action,
18
+ &.ck-splitbutton_open > .ck-splitbutton__action {
19
+ [dir="ltr"] & {
20
+ /* Don't round the action button on the right side */
21
+ border-top-right-radius: unset;
22
+ border-bottom-right-radius: unset;
23
+ }
24
+
25
+ [dir="rtl"] & {
26
+ /* Don't round the action button on the left side */
27
+ border-top-left-radius: unset;
28
+ border-bottom-left-radius: unset;
29
+ }
30
+ }
31
+
32
+ & > .ck-splitbutton__arrow {
33
+ /* It's a text-less button and since the icon is positioned absolutely in such situation,
34
+ it must get some arbitrary min-width. */
35
+ min-width: unset;
36
+
37
+ [dir="ltr"] & {
38
+ /* Don't round the arrow button on the left side */
39
+ border-top-left-radius: unset;
40
+ border-bottom-left-radius: unset;
41
+ }
42
+
43
+ [dir="rtl"] & {
44
+ /* Don't round the arrow button on the right side */
45
+ border-top-right-radius: unset;
46
+ border-bottom-right-radius: unset;
47
+ }
48
+
49
+ & svg {
50
+ width: var(--ck-dropdown-arrow-size);
51
+ }
52
+ }
53
+
54
+ /* Make sure the divider stretches 100% height of the button
55
+ https://github.com/ckeditor/ckeditor5/issues/10936 */
56
+ & > .ck-splitbutton__arrow:not(:focus) {
57
+ border-top-width: 0px;
58
+ border-bottom-width: 0px;
59
+ }
60
+
61
+ /* Don't round the bottom left and right corners of the buttons when "open"
62
+ https://github.com/ckeditor/ckeditor5/issues/816 */
63
+ &.ck-splitbutton_open {
64
+ @mixin ck-rounded-corners {
65
+ & > .ck-splitbutton__action {
66
+ border-bottom-left-radius: 0;
67
+ }
68
+
69
+ & > .ck-splitbutton__arrow {
70
+ border-bottom-right-radius: 0;
71
+ }
72
+ }
73
+ }
74
+
75
+ /* When the split button is "open" (the arrow is on) or being hovered, it should get some styling
76
+ as a whole. The background of both buttons should stand out and there should be a visual
77
+ separation between both buttons. */
78
+ &.ck-splitbutton_open,
79
+ &:hover {
80
+ /* When the split button hovered as a whole, not as individual buttons. */
81
+ & > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {
82
+ background: var(--ck-color-split-button-hover-background);
83
+ }
84
+
85
+ /* Splitbutton separator needs to be set with the ::after pseudoselector
86
+ to display properly the borders on focus */
87
+ & > .ck-splitbutton__arrow:not(.ck-disabled)::after {
88
+ content: '';
89
+ position: absolute;
90
+ width: 1px;
91
+ height: 100%;
92
+ background-color: var(--ck-color-split-button-hover-border);
93
+ }
94
+
95
+ /* Make sure the divider between the buttons looks fine when the button is focused */
96
+ & > .ck-splitbutton__arrow:focus::after {
97
+ --ck-color-split-button-hover-border: var(--ck-color-focus-border);
98
+ }
99
+
100
+ [dir="ltr"] & {
101
+ & > .ck-splitbutton__arrow:not(.ck-disabled)::after {
102
+ left: -1px;
103
+ }
104
+ }
105
+
106
+ [dir="rtl"] & {
107
+ & > .ck-splitbutton__arrow:not(.ck-disabled)::after {
108
+ right: -1px;
109
+ }
110
+ }
111
+ }
112
+ }
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck.ck-toolbar-dropdown .ck-toolbar {
7
+ border: 0;
8
+ }
@@ -0,0 +1,103 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "../../../mixins/_focus.css";
7
+ @import "../../../mixins/_shadow.css";
8
+
9
+ :root {
10
+ --ck-accessibility-help-dialog-max-width: 600px;
11
+ --ck-accessibility-help-dialog-max-height: 400px;
12
+ --ck-accessibility-help-dialog-border-color: hsl(220, 6%, 81%);
13
+ --ck-accessibility-help-dialog-code-background-color: hsl(0deg 0% 92.94%);
14
+ --ck-accessibility-help-dialog-kbd-shadow-color: hsl(0deg 0% 61%);
15
+ }
16
+
17
+ .ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content {
18
+ padding: var(--ck-spacing-large);
19
+ max-width: var(--ck-accessibility-help-dialog-max-width);
20
+ max-height: var(--ck-accessibility-help-dialog-max-height);
21
+ overflow: auto;
22
+ user-select: text;
23
+
24
+ border: 1px solid transparent;
25
+
26
+ &:focus {
27
+ @mixin ck-focus-ring;
28
+ @mixin ck-box-shadow var(--ck-focus-outer-shadow);
29
+ }
30
+
31
+ * {
32
+ white-space: normal;
33
+ }
34
+
35
+ /* Hide the main label of the content container. */
36
+ & .ck-label {
37
+ display: none;
38
+ }
39
+
40
+ & h3 {
41
+ font-weight: bold;
42
+ font-size: 1.2em;
43
+ }
44
+
45
+ & h4 {
46
+ font-weight: bold;
47
+ font-size: 1em;
48
+ }
49
+
50
+ & p,
51
+ & h3,
52
+ & h4,
53
+ & table {
54
+ margin: 1em 0;
55
+ }
56
+
57
+ & dl {
58
+ display: grid;
59
+ grid-template-columns: 2fr 1fr;
60
+ border-top: 1px solid var(--ck-accessibility-help-dialog-border-color);
61
+ border-bottom: none;
62
+
63
+ & dt, & dd {
64
+ border-bottom: 1px solid var(--ck-accessibility-help-dialog-border-color);
65
+ padding: .4em 0;
66
+ }
67
+
68
+ & dt {
69
+ grid-column-start: 1;
70
+ }
71
+
72
+ & dd {
73
+ grid-column-start: 2;
74
+ text-align: right;
75
+ }
76
+ }
77
+
78
+ & kbd, & code {
79
+ display: inline-block;
80
+ background: var(--ck-accessibility-help-dialog-code-background-color);
81
+ padding: .4em;
82
+ vertical-align: middle;
83
+ line-height: 1;
84
+ border-radius: 2px;
85
+ text-align: center;
86
+ font-size: .9em;
87
+ }
88
+
89
+ & code {
90
+ font-family: monospace;
91
+ }
92
+
93
+ & kbd {
94
+ min-width: 1.8em;
95
+ box-shadow: 0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);
96
+ margin: 0 1px;
97
+
98
+ & + kbd {
99
+ margin-left: 2px;
100
+ }
101
+ }
102
+ }
103
+