@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,69 @@
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 "../../../mixins/_focus.css";
10
+ @import "../../mixins/_button.css";
11
+
12
+ :root {
13
+ --ck-color-editable-blur-selection: hsl(0, 0%, 85%);
14
+ }
15
+
16
+ .ck.ck-editor__editable:not(.ck-editor__nested-editable) {
17
+ @mixin ck-rounded-corners;
18
+
19
+ &.ck-focused {
20
+ @mixin ck-focus-ring;
21
+ @mixin ck-box-shadow var(--ck-inner-shadow);
22
+ }
23
+ }
24
+
25
+ .ck.ck-editor__editable_inline {
26
+ overflow: auto;
27
+ padding: 0 var(--ck-spacing-standard);
28
+ border: 1px solid transparent;
29
+
30
+ &[dir="ltr"] {
31
+ text-align: left;
32
+ }
33
+
34
+ &[dir="rtl"] {
35
+ text-align: right;
36
+ }
37
+
38
+ /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */
39
+ & > *:first-child {
40
+ margin-top: var(--ck-spacing-large);
41
+ }
42
+
43
+ /* https://github.com/ckeditor/ckeditor5/issues/847 */
44
+ & > *:last-child {
45
+ /*
46
+ * This value should match with the default margins of the block elements (like .media or .image)
47
+ * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).
48
+ */
49
+ margin-bottom: var(--ck-spacing-large);
50
+ }
51
+
52
+ /* https://github.com/ckeditor/ckeditor5/issues/6517 */
53
+ &.ck-blurred ::selection {
54
+ background: var(--ck-color-editable-blur-selection);
55
+ }
56
+ }
57
+
58
+ /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */
59
+ .ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {
60
+ &::after {
61
+ border-bottom-color: var(--ck-color-panel-background);
62
+ }
63
+ }
64
+
65
+ .ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {
66
+ &::after {
67
+ border-top-color: var(--ck-color-panel-background);
68
+ }
69
+ }
@@ -0,0 +1,32 @@
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 "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
7
+
8
+ :root {
9
+ --ck-form-header-height: 44px;
10
+ }
11
+
12
+ .ck.ck-form__header {
13
+ padding: var(--ck-spacing-small) var(--ck-spacing-large);
14
+ height: var(--ck-form-header-height);
15
+ line-height: var(--ck-form-header-height);
16
+ border-bottom: 1px solid var(--ck-color-base-border);
17
+
18
+ & > .ck-icon {
19
+ @mixin ck-dir ltr {
20
+ margin-right: var(--ck-spacing-medium);
21
+ }
22
+
23
+ @mixin ck-dir rtl {
24
+ margin-left: var(--ck-spacing-medium);
25
+ }
26
+ }
27
+
28
+ & .ck-form__header__label {
29
+ --ck-font-size-base: 15px;
30
+ font-weight: bold;
31
+ }
32
+ }
@@ -0,0 +1,42 @@
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-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));
8
+ --ck-icon-font-size: .8333350694em;
9
+ }
10
+
11
+ .ck.ck-icon {
12
+ width: var(--ck-icon-size);
13
+ height: var(--ck-icon-size);
14
+
15
+ /* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */
16
+ font-size: var(--ck-icon-font-size);
17
+
18
+ /* Inherit cursor style (#5). */
19
+ cursor: inherit;
20
+
21
+ /* This will prevent blurry icons on Firefox. See #340. */
22
+ will-change: transform;
23
+
24
+ & * {
25
+ /* Inherit cursor style (#5). */
26
+ cursor: inherit;
27
+ }
28
+
29
+ /* Allows dynamic coloring of an icon by inheriting its color from the parent. */
30
+ &.ck-icon_inherit-color {
31
+ color: inherit;
32
+
33
+ & * {
34
+ color: inherit;
35
+
36
+ &:not([fill]) {
37
+ /* Needed by FF. */
38
+ fill: currentColor;
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,81 @@
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/_focus.css";
8
+ @import "../../../mixins/_shadow.css";
9
+
10
+ :root {
11
+ --ck-input-width: 18em;
12
+
13
+ /* Backward compatibility. */
14
+ --ck-input-text-width: var(--ck-input-width);
15
+ }
16
+
17
+ .ck.ck-input {
18
+ @mixin ck-rounded-corners;
19
+
20
+ background: var(--ck-color-input-background);
21
+ border: 1px solid var(--ck-color-input-border);
22
+ padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);
23
+ min-width: var(--ck-input-width);
24
+
25
+ /* This is important to stay of the same height as surrounding buttons */
26
+ min-height: var(--ck-ui-component-min-height);
27
+
28
+ /* Apply some smooth transition to the box-shadow and border. */
29
+ transition: box-shadow .1s ease-in-out, border .1s ease-in-out;
30
+
31
+ @media (prefers-reduced-motion: reduce) {
32
+ transition: none;
33
+ }
34
+
35
+ &:focus {
36
+ @mixin ck-focus-ring;
37
+ @mixin ck-box-shadow var(--ck-focus-outer-shadow);
38
+ }
39
+
40
+ &[readonly] {
41
+ border: 1px solid var(--ck-color-input-disabled-border);
42
+ background: var(--ck-color-input-disabled-background);
43
+ color: var(--ck-color-input-disabled-text);
44
+
45
+ &:focus {
46
+ /* The read-only input should have a slightly less visible shadow when focused. */
47
+ @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
48
+ }
49
+ }
50
+
51
+ &.ck-error {
52
+ border-color: var(--ck-color-input-error-border);
53
+ animation: ck-input-shake .3s ease both;
54
+
55
+ @media (prefers-reduced-motion: reduce) {
56
+ animation: none;
57
+ }
58
+
59
+ &:focus {
60
+ @mixin ck-box-shadow var(--ck-focus-error-outer-shadow);
61
+ }
62
+ }
63
+ }
64
+
65
+ @keyframes ck-input-shake {
66
+ 20% {
67
+ transform: translateX(-2px);
68
+ }
69
+
70
+ 40% {
71
+ transform: translateX(2px);
72
+ }
73
+
74
+ 60% {
75
+ transform: translateX(-1px);
76
+ }
77
+
78
+ 80% {
79
+ transform: translateX(1px);
80
+ }
81
+ }
@@ -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-label {
7
+ font-weight: bold;
8
+ }
@@ -0,0 +1,127 @@
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 "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
7
+ @import "../../../mixins/_rounded.css";
8
+
9
+ :root {
10
+ --ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);
11
+ --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);
12
+ --ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);
13
+ --ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));
14
+ --ck-color-labeled-field-label-background: var(--ck-color-base-background);
15
+ }
16
+
17
+ .ck.ck-labeled-field-view {
18
+ @mixin ck-rounded-corners;
19
+
20
+ & > .ck.ck-labeled-field-view__input-wrapper {
21
+ width: 100%;
22
+
23
+ & > .ck.ck-label {
24
+ top: 0px;
25
+
26
+ @mixin ck-dir ltr {
27
+ left: 0px;
28
+ transform-origin: 0 0;
29
+ /* By default, display the label scaled down above the field. */
30
+ transform: translate(var(--ck-spacing-medium), -6px) scale(.75);
31
+ }
32
+
33
+ @mixin ck-dir rtl {
34
+ right: 0px;
35
+ transform-origin: 100% 0;
36
+ transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);
37
+ }
38
+
39
+ pointer-events: none;
40
+
41
+ background: var(--ck-color-labeled-field-label-background);
42
+ padding: 0 calc(.5 * var(--ck-font-size-tiny));
43
+ line-height: initial;
44
+ font-weight: normal;
45
+
46
+ /* Prevent overflow when the label is longer than the input */
47
+ text-overflow: ellipsis;
48
+ overflow: hidden;
49
+
50
+ max-width: 100%;
51
+
52
+ transition:
53
+ transform var(--ck-labeled-field-view-transition),
54
+ padding var(--ck-labeled-field-view-transition),
55
+ background var(--ck-labeled-field-view-transition);
56
+
57
+ @media (prefers-reduced-motion: reduce) {
58
+ transition: none;
59
+ }
60
+ }
61
+ }
62
+
63
+ &.ck-error {
64
+ & > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
65
+ color: var(--ck-color-base-error);
66
+ }
67
+
68
+ & .ck-input:not([readonly]) + .ck.ck-label {
69
+ color: var(--ck-color-base-error);
70
+ }
71
+ }
72
+
73
+ & .ck-labeled-field-view__status {
74
+ font-size: var(--ck-font-size-small);
75
+ margin-top: var(--ck-spacing-small);
76
+
77
+ /* Let the info wrap to the next line to avoid stretching the layout horizontally.
78
+ The status could be very long. */
79
+ white-space: normal;
80
+
81
+ &.ck-labeled-field-view__status_error {
82
+ color: var(--ck-color-base-error);
83
+ }
84
+ }
85
+
86
+ /* Disabled fields and fields that have no focus should fade out. */
87
+ &.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
88
+ &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
89
+ color: var(--ck-color-input-disabled-text);
90
+ }
91
+
92
+ /* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */
93
+ /* stylelint-disable-next-line no-descending-specificity */
94
+ &.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
95
+ &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
96
+ @mixin ck-dir ltr {
97
+ transform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);
98
+ }
99
+
100
+ @mixin ck-dir rtl {
101
+ transform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);
102
+ }
103
+
104
+ /* Compensate for the default translate position. */
105
+ max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));
106
+
107
+ background: transparent;
108
+ padding: 0;
109
+ }
110
+
111
+ /*------ DropdownView integration ----------------------------------------------------------------------------------- */
112
+
113
+ /* Make sure dropdown' background color in any of dropdown's state does not collide with labeled field. */
114
+ & > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {
115
+ background: transparent;
116
+ }
117
+
118
+ /* When the dropdown is "empty", the labeled field label replaces its label. */
119
+ &.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {
120
+ opacity: 0;
121
+ }
122
+
123
+ /* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */
124
+ &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {
125
+ max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));
126
+ }
127
+ }
@@ -0,0 +1,17 @@
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-labeled-input .ck-labeled-input__status {
7
+ font-size: var(--ck-font-size-small);
8
+ margin-top: var(--ck-spacing-small);
9
+
10
+ /* Let the info wrap to the next line to avoid stretching the layout horizontally.
11
+ The status could be very long. */
12
+ white-space: normal;
13
+ }
14
+
15
+ .ck.ck-labeled-input .ck-labeled-input__status_error {
16
+ color: var(--ck-color-base-error);
17
+ }
@@ -0,0 +1,114 @@
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/_rounded.css";
8
+ @import "../../../mixins/_shadow.css";
9
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
10
+
11
+ .ck.ck-list {
12
+ @mixin ck-rounded-corners;
13
+
14
+ list-style-type: none;
15
+ background: var(--ck-color-list-background);
16
+
17
+ /* A spacing at the beginning and end of the list */
18
+ padding: var(--ck-spacing-small) 0;
19
+ }
20
+
21
+ .ck.ck-list__item {
22
+ cursor: default;
23
+
24
+ /* Almost as wide as menu bar items. */
25
+ min-width: 15em;
26
+
27
+ & > .ck-button:not(.ck-list-item-button) {
28
+ padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));
29
+ min-height: unset;
30
+ width: 100%;
31
+ border-radius: 0;
32
+
33
+ @mixin ck-dir ltr {
34
+ text-align: left;
35
+ }
36
+
37
+ @mixin ck-dir rtl {
38
+ text-align: right;
39
+ }
40
+
41
+ & .ck-button__label {
42
+ /* https://github.com/ckeditor/ckeditor5-heading/issues/63 */
43
+ line-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));
44
+ }
45
+
46
+ &:active {
47
+ box-shadow: none;
48
+ }
49
+
50
+ &.ck-on {
51
+ background: var(--ck-color-list-button-on-background);
52
+ color: var(--ck-color-list-button-on-text);
53
+
54
+ &:active {
55
+ box-shadow: none;
56
+ }
57
+
58
+ &:hover:not(.ck-disabled) {
59
+ background: var(--ck-color-list-button-on-background-focus);
60
+ }
61
+
62
+ &:focus:not(.ck-disabled) {
63
+ border-color: var(--ck-color-base-background);
64
+ }
65
+ }
66
+
67
+ &:hover:not(.ck-disabled) {
68
+ background: var(--ck-color-list-button-hover-background);
69
+ }
70
+ }
71
+
72
+ /* It's unnecessary to change the background/text of a switch toggle; it has different ways
73
+ of conveying its state (like the switcher) */
74
+ & > .ck-button.ck-switchbutton {
75
+ &.ck-on {
76
+ background: var(--ck-color-list-background);
77
+ color: inherit;
78
+
79
+ &:hover:not(.ck-disabled) {
80
+ background: var(--ck-color-list-button-hover-background);
81
+ color: inherit;
82
+ }
83
+ }
84
+ }
85
+ }
86
+
87
+ .ck-list .ck-list__group {
88
+ padding-top: var(--ck-spacing-medium);
89
+
90
+ /* Lists come with an inner vertical padding. Don't duplicate it. */
91
+ &:first-child {
92
+ padding-top: 0;
93
+ }
94
+
95
+ /* The group should have a border when it's not the first item. */
96
+ *:not(.ck-hidden) ~ & {
97
+ border-top: 1px solid var(--ck-color-base-border);
98
+ }
99
+
100
+ & > .ck-label {
101
+ font-size: 11px;
102
+ font-weight: bold;
103
+ padding: var(--ck-spacing-medium) var(--ck-spacing-large) 0;
104
+ }
105
+ }
106
+
107
+ .ck.ck-list__separator {
108
+ height: 1px;
109
+ width: 100%;
110
+ background: var(--ck-color-base-border);
111
+
112
+ /* Give the separator some air */
113
+ margin: var(--ck-spacing-small) 0;
114
+ }
@@ -0,0 +1,15 @@
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-menu-bar {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ justify-content: flex-start;
10
+ background: var(--ck-color-base-background);
11
+ padding: var(--ck-spacing-small);
12
+ gap: var(--ck-spacing-small);
13
+ border: 1px solid var(--ck-color-toolbar-border);
14
+ width: 100%;
15
+ }
@@ -0,0 +1,13 @@
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-menu-bar__menu {
7
+ /* Enable font size inheritance, which allows fluid UI scaling. */
8
+ font-size: inherit;
9
+
10
+ &.ck-menu-bar__menu_top-level {
11
+ max-width: 100%;
12
+ }
13
+ }
@@ -0,0 +1,98 @@
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
+ .ck.ck-menu-bar__menu {
11
+ /*
12
+ * All menu buttons.
13
+ */
14
+ & > .ck-menu-bar__menu__button {
15
+ width: 100%;
16
+
17
+ & > .ck-button__label {
18
+ flex-grow: 1;
19
+ overflow: hidden;
20
+ text-overflow: ellipsis;
21
+ }
22
+
23
+ &.ck-disabled > .ck-button__label {
24
+ @mixin ck-disabled;
25
+ }
26
+
27
+ @mixin ck-dir ltr {
28
+ &:not(.ck-button_with-text) {
29
+ padding-left: var(--ck-spacing-small);
30
+ }
31
+ }
32
+
33
+ @mixin ck-dir rtl {
34
+ &:not(.ck-button_with-text) {
35
+ padding-right: var(--ck-spacing-small);
36
+ }
37
+ }
38
+ }
39
+
40
+ /*
41
+ * Top-level menu buttons only.
42
+ */
43
+ &.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button {
44
+ padding: var(--ck-spacing-small) var(--ck-spacing-medium);
45
+ min-height: unset;
46
+
47
+ & .ck-button__label {
48
+ width: unset;
49
+ line-height: unset;
50
+ }
51
+
52
+ &.ck-on {
53
+ border-bottom-left-radius: 0;
54
+ border-bottom-right-radius: 0;
55
+ }
56
+
57
+ & .ck-icon {
58
+ display: none;
59
+ }
60
+ }
61
+
62
+ /*
63
+ * Sub-menu buttons.
64
+ */
65
+ &:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {
66
+ border-radius: 0;
67
+
68
+ & > .ck-menu-bar__menu__button__arrow {
69
+ width: var(--ck-dropdown-arrow-size);
70
+
71
+ @mixin ck-dir ltr {
72
+ transform: rotate(-90deg);
73
+
74
+ /* A space to accommodate the triangle. */
75
+ margin-left: var(--ck-spacing-standard);
76
+
77
+ /* Nudge the arrow gently to the right because its center of gravity is to the left */
78
+ margin-right: calc(-1 * var(--ck-spacing-small));
79
+ }
80
+
81
+ @mixin ck-dir rtl {
82
+ transform: rotate(90deg);
83
+
84
+ left: var(--ck-spacing-standard);
85
+
86
+ /* A space to accommodate the triangle. */
87
+ margin-right: var(--ck-spacing-small);
88
+
89
+ /* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */
90
+ margin-left: calc(-1 * var(--ck-spacing-small));
91
+ }
92
+ }
93
+
94
+ &.ck-disabled > .ck-menu-bar__menu__button__arrow {
95
+ @mixin ck-disabled;
96
+ }
97
+ }
98
+ }
@@ -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-menu-bar-menu-item-min-width: 18em;
8
+ }
9
+
10
+ .ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item {
11
+ min-width: var(--ck-menu-bar-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
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
7
+
8
+ .ck.ck-menu-bar__menu {
9
+ /*
10
+ * List item buttons.
11
+ */
12
+ & .ck-button.ck-menu-bar__menu__item__button {
13
+ border-radius: 0;
14
+
15
+ & > .ck-spinner-container,
16
+ & > .ck-spinner-container .ck-spinner {
17
+ /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */
18
+ --ck-toolbar-spinner-size: 20px;
19
+ }
20
+
21
+ & > .ck-spinner-container {
22
+ /* This ensures margins corresponding to the .ck-icon. */
23
+ font-size: var(--ck-icon-font-size);
24
+
25
+ @mixin ck-dir ltr {
26
+ margin-right: var(--ck-spacing-medium);
27
+ }
28
+
29
+ @mixin ck-dir rtl {
30
+ margin-left: var(--ck-spacing-medium);
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+