@ckeditor/ckeditor5-list 48.8.1-alpha.3 → 49.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.
Files changed (214) hide show
  1. package/LICENSE.md +1 -1
  2. package/ckeditor5-metadata.json +6 -0
  3. package/dist/augmentation.d.ts +54 -54
  4. package/dist/index-content.css +140 -149
  5. package/dist/index-content.css.map +1 -0
  6. package/dist/index-editor.css +138 -133
  7. package/dist/index-editor.css.map +1 -0
  8. package/dist/index.css +257 -179
  9. package/dist/index.css.map +1 -1
  10. package/dist/index.d.ts +69 -67
  11. package/dist/index.js +7193 -8615
  12. package/dist/index.js.map +1 -1
  13. package/dist/legacyerrors.d.ts +0 -4
  14. package/dist/legacylist/legacyconverters.d.ts +184 -184
  15. package/dist/legacylist/legacyindentcommand.d.ts +33 -33
  16. package/dist/legacylist/legacylistcommand.d.ts +52 -52
  17. package/dist/legacylist/legacylistediting.d.ts +31 -32
  18. package/dist/legacylist/legacylistutils.d.ts +40 -40
  19. package/dist/legacylist/legacyutils.d.ts +91 -91
  20. package/dist/legacylist.d.ts +25 -25
  21. package/dist/legacylistproperties/legacylistpropertiesediting.d.ts +71 -71
  22. package/dist/legacylistproperties/legacylistreversedcommand.d.ts +33 -33
  23. package/dist/legacylistproperties/legacyliststartcommand.d.ts +33 -33
  24. package/dist/legacylistproperties/legacyliststylecommand.d.ts +63 -63
  25. package/dist/legacylistproperties.d.ts +26 -26
  26. package/dist/legacytodolist/legacychecktodolistcommand.d.ts +47 -47
  27. package/dist/legacytodolist/legacytodolistconverters.d.ts +76 -76
  28. package/dist/legacytodolist/legacytodolistediting.d.ts +46 -46
  29. package/dist/legacytodolist.d.ts +25 -26
  30. package/dist/list/adjacentlistssupport.d.ts +16 -16
  31. package/dist/list/converters.d.ts +71 -53
  32. package/dist/list/listcommand.d.ts +84 -84
  33. package/dist/list/listediting.d.ts +211 -219
  34. package/dist/list/listindentcommand.d.ts +54 -54
  35. package/dist/list/listmergecommand.d.ts +68 -68
  36. package/dist/list/listsplitcommand.d.ts +59 -59
  37. package/dist/list/listui.d.ts +19 -19
  38. package/dist/list/listutils.d.ts +55 -55
  39. package/dist/list/utils/listwalker.d.ts +139 -139
  40. package/dist/list/utils/model.d.ts +204 -174
  41. package/dist/list/utils/postfixers.d.ts +30 -30
  42. package/dist/list/utils/view.d.ts +65 -65
  43. package/dist/list/utils.d.ts +15 -15
  44. package/dist/list.d.ts +25 -25
  45. package/dist/listconfig.d.ts +234 -216
  46. package/dist/listformatting/listitemboldintegration.d.ts +29 -29
  47. package/dist/listformatting/listitemfontcolorintegration.d.ts +29 -29
  48. package/dist/listformatting/listitemfontfamilyintegration.d.ts +29 -29
  49. package/dist/listformatting/listitemfontsizeintegration.d.ts +29 -29
  50. package/dist/listformatting/listitemitalicintegration.d.ts +29 -29
  51. package/dist/listformatting.d.ts +65 -66
  52. package/dist/listproperties/converters.d.ts +15 -15
  53. package/dist/listproperties/listpropertiesediting.d.ts +91 -91
  54. package/dist/listproperties/listpropertiesui.d.ts +21 -22
  55. package/dist/listproperties/listpropertiesutils.d.ts +32 -32
  56. package/dist/listproperties/listreversedcommand.d.ts +31 -31
  57. package/dist/listproperties/liststartcommand.d.ts +34 -34
  58. package/dist/listproperties/liststylecommand.d.ts +67 -67
  59. package/dist/listproperties/ui/listpropertiesview.d.ts +146 -147
  60. package/dist/listproperties/utils/config.d.ts +32 -32
  61. package/dist/listproperties/utils/style.d.ts +31 -31
  62. package/dist/listproperties.d.ts +26 -26
  63. package/dist/todolist/checktodolistcommand.d.ts +44 -44
  64. package/dist/todolist/todocheckboxchangeobserver.d.ts +36 -36
  65. package/dist/todolist/todolistediting.d.ts +45 -45
  66. package/dist/todolist/todolistui.d.ts +19 -19
  67. package/dist/todolist.d.ts +25 -26
  68. package/dist/translations/af.js +1 -1
  69. package/dist/translations/af.umd.js +5 -3
  70. package/dist/translations/ar.js +1 -1
  71. package/dist/translations/ar.umd.js +5 -3
  72. package/dist/translations/ast.js +1 -1
  73. package/dist/translations/ast.umd.js +5 -3
  74. package/dist/translations/az.js +1 -1
  75. package/dist/translations/az.umd.js +5 -3
  76. package/dist/translations/be.js +1 -1
  77. package/dist/translations/be.umd.js +5 -3
  78. package/dist/translations/bg.js +1 -1
  79. package/dist/translations/bg.umd.js +5 -3
  80. package/dist/translations/bn.js +1 -1
  81. package/dist/translations/bn.umd.js +5 -3
  82. package/dist/translations/bs.js +1 -1
  83. package/dist/translations/bs.umd.js +5 -3
  84. package/dist/translations/ca.js +1 -1
  85. package/dist/translations/ca.umd.js +5 -3
  86. package/dist/translations/cs.js +1 -1
  87. package/dist/translations/cs.umd.js +5 -3
  88. package/dist/translations/da.js +1 -1
  89. package/dist/translations/da.umd.js +5 -3
  90. package/dist/translations/de-ch.js +1 -1
  91. package/dist/translations/de-ch.umd.js +5 -3
  92. package/dist/translations/de.js +1 -1
  93. package/dist/translations/de.umd.js +5 -3
  94. package/dist/translations/el.js +1 -1
  95. package/dist/translations/el.umd.js +5 -3
  96. package/dist/translations/en-au.js +1 -1
  97. package/dist/translations/en-au.umd.js +5 -3
  98. package/dist/translations/en-gb.js +1 -1
  99. package/dist/translations/en-gb.umd.js +5 -3
  100. package/dist/translations/en.js +1 -1
  101. package/dist/translations/en.umd.js +5 -3
  102. package/dist/translations/eo.js +1 -1
  103. package/dist/translations/eo.umd.js +5 -3
  104. package/dist/translations/es-co.js +1 -1
  105. package/dist/translations/es-co.umd.js +5 -3
  106. package/dist/translations/es.js +1 -1
  107. package/dist/translations/es.umd.js +5 -3
  108. package/dist/translations/et.js +1 -1
  109. package/dist/translations/et.umd.js +5 -3
  110. package/dist/translations/eu.js +1 -1
  111. package/dist/translations/eu.umd.js +5 -3
  112. package/dist/translations/fa.js +1 -1
  113. package/dist/translations/fa.umd.js +5 -3
  114. package/dist/translations/fi.js +1 -1
  115. package/dist/translations/fi.umd.js +5 -3
  116. package/dist/translations/fr.js +1 -1
  117. package/dist/translations/fr.umd.js +5 -3
  118. package/dist/translations/gl.js +1 -1
  119. package/dist/translations/gl.umd.js +5 -3
  120. package/dist/translations/gu.js +1 -1
  121. package/dist/translations/gu.umd.js +5 -3
  122. package/dist/translations/he.js +1 -1
  123. package/dist/translations/he.umd.js +5 -3
  124. package/dist/translations/hi.js +1 -1
  125. package/dist/translations/hi.umd.js +5 -3
  126. package/dist/translations/hr.js +1 -1
  127. package/dist/translations/hr.umd.js +5 -3
  128. package/dist/translations/hu.js +1 -1
  129. package/dist/translations/hu.umd.js +5 -3
  130. package/dist/translations/hy.js +1 -1
  131. package/dist/translations/hy.umd.js +5 -3
  132. package/dist/translations/id.js +1 -1
  133. package/dist/translations/id.umd.js +5 -3
  134. package/dist/translations/it.js +1 -1
  135. package/dist/translations/it.umd.js +5 -3
  136. package/dist/translations/ja.js +1 -1
  137. package/dist/translations/ja.umd.js +5 -3
  138. package/dist/translations/jv.js +1 -1
  139. package/dist/translations/jv.umd.js +5 -3
  140. package/dist/translations/kk.js +1 -1
  141. package/dist/translations/kk.umd.js +5 -3
  142. package/dist/translations/km.js +1 -1
  143. package/dist/translations/km.umd.js +5 -3
  144. package/dist/translations/kn.js +1 -1
  145. package/dist/translations/kn.umd.js +5 -3
  146. package/dist/translations/ko.js +1 -1
  147. package/dist/translations/ko.umd.js +5 -3
  148. package/dist/translations/ku.js +1 -1
  149. package/dist/translations/ku.umd.js +5 -3
  150. package/dist/translations/lt.js +1 -1
  151. package/dist/translations/lt.umd.js +5 -3
  152. package/dist/translations/lv.js +1 -1
  153. package/dist/translations/lv.umd.js +5 -3
  154. package/dist/translations/ms.js +1 -1
  155. package/dist/translations/ms.umd.js +5 -3
  156. package/dist/translations/nb.js +1 -1
  157. package/dist/translations/nb.umd.js +5 -3
  158. package/dist/translations/ne.js +1 -1
  159. package/dist/translations/ne.umd.js +5 -3
  160. package/dist/translations/nl.js +1 -1
  161. package/dist/translations/nl.umd.js +5 -3
  162. package/dist/translations/no.js +1 -1
  163. package/dist/translations/no.umd.js +5 -3
  164. package/dist/translations/oc.js +1 -1
  165. package/dist/translations/oc.umd.js +5 -3
  166. package/dist/translations/pl.js +1 -1
  167. package/dist/translations/pl.umd.js +5 -3
  168. package/dist/translations/pt-br.js +1 -1
  169. package/dist/translations/pt-br.umd.js +5 -3
  170. package/dist/translations/pt.js +1 -1
  171. package/dist/translations/pt.umd.js +5 -3
  172. package/dist/translations/ro.js +1 -1
  173. package/dist/translations/ro.umd.js +5 -3
  174. package/dist/translations/ru.js +1 -1
  175. package/dist/translations/ru.umd.js +5 -3
  176. package/dist/translations/si.js +1 -1
  177. package/dist/translations/si.umd.js +5 -3
  178. package/dist/translations/sk.js +1 -1
  179. package/dist/translations/sk.umd.js +5 -3
  180. package/dist/translations/sl.js +1 -1
  181. package/dist/translations/sl.umd.js +5 -3
  182. package/dist/translations/sq.js +1 -1
  183. package/dist/translations/sq.umd.js +5 -3
  184. package/dist/translations/sr-latn.js +1 -1
  185. package/dist/translations/sr-latn.umd.js +5 -3
  186. package/dist/translations/sr.js +1 -1
  187. package/dist/translations/sr.umd.js +5 -3
  188. package/dist/translations/sv.js +1 -1
  189. package/dist/translations/sv.umd.js +5 -3
  190. package/dist/translations/th.js +1 -1
  191. package/dist/translations/th.umd.js +5 -3
  192. package/dist/translations/ti.js +1 -1
  193. package/dist/translations/ti.umd.js +5 -3
  194. package/dist/translations/tk.js +1 -1
  195. package/dist/translations/tk.umd.js +5 -3
  196. package/dist/translations/tr.js +1 -1
  197. package/dist/translations/tr.umd.js +5 -3
  198. package/dist/translations/tt.js +1 -1
  199. package/dist/translations/tt.umd.js +5 -3
  200. package/dist/translations/ug.js +1 -1
  201. package/dist/translations/ug.umd.js +5 -3
  202. package/dist/translations/uk.js +1 -1
  203. package/dist/translations/uk.umd.js +5 -3
  204. package/dist/translations/ur.js +1 -1
  205. package/dist/translations/ur.umd.js +5 -3
  206. package/dist/translations/uz.js +1 -1
  207. package/dist/translations/uz.umd.js +5 -3
  208. package/dist/translations/vi.js +1 -1
  209. package/dist/translations/vi.umd.js +5 -3
  210. package/dist/translations/zh-cn.js +1 -1
  211. package/dist/translations/zh-cn.umd.js +5 -3
  212. package/dist/translations/zh.js +1 -1
  213. package/dist/translations/zh.umd.js +5 -3
  214. package/package.json +11 -11
package/dist/index.css CHANGED
@@ -6,172 +6,260 @@
6
6
  display: block;
7
7
  }
8
8
 
9
- :root {
9
+ :root, :host {
10
10
  --ck-list-style-button-size: 44px;
11
+ --ck-list-styles-list-padding: var(--ck-spacing-padding);
11
12
  }
12
13
 
13
14
  .ck.ck-list-styles-list {
14
- row-gap: var(--ck-spacing-medium);
15
- column-gap: var(--ck-spacing-medium);
16
- padding: var(--ck-spacing-large);
15
+ row-gap: var(--ck-spacing-medium, var(--ck-spacing-base));
16
+ column-gap: var(--ck-spacing-medium, var(--ck-spacing-base));
17
+ padding: var(--ck-list-styles-list-padding);
17
18
  grid-template-columns: repeat(3, auto);
18
- }
19
-
20
- .ck.ck-list-styles-list .ck-button {
21
- width: var(--ck-list-style-button-size);
22
- height: var(--ck-list-style-button-size);
23
- box-sizing: content-box;
24
- margin: 0;
25
- padding: 0;
26
- }
27
19
 
28
- .ck.ck-list-styles-list .ck-button .ck-icon {
29
- width: var(--ck-list-style-button-size);
30
- height: var(--ck-list-style-button-size);
31
- }
20
+ & .ck-button {
21
+ width: var(--ck-list-style-button-size);
22
+ height: var(--ck-list-style-button-size);
23
+ box-sizing: content-box;
24
+ margin: 0;
25
+ padding: 0;
26
+
27
+ & .ck-icon {
28
+ width: var(--ck-list-style-button-size);
29
+ height: var(--ck-list-style-button-size);
30
+ }
31
+ }
32
32
 
33
- .ck.ck-list-styles-list {
34
33
  display: grid;
35
34
  }
36
35
 
37
- .ck.ck-list-properties.ck-list-properties_without-styles {
38
- padding: var(--ck-spacing-large);
39
- }
36
+ .ck.ck-list-properties {
37
+ &.ck-list-properties_without-styles {
38
+ padding: var(--ck-spacing-large, var(--ck-spacing-lg));
40
39
 
41
- .ck.ck-list-properties.ck-list-properties_without-styles > * {
42
- min-width: 14em;
43
- }
40
+ & > * {
41
+ min-width: 14em;
44
42
 
45
- .ck.ck-list-properties.ck-list-properties_without-styles > * + * {
46
- margin-top: var(--ck-spacing-standard);
47
- }
43
+ & + * {
44
+ margin-top: var(--ck-spacing-standard, var(--ck-spacing-base));
45
+ }
46
+ }
47
+ }
48
48
 
49
- .ck.ck-list-properties.ck-list-properties_with-numbered-properties > .ck-list-styles-list {
50
- grid-template-columns: repeat(4, auto);
51
- }
49
+ &.ck-list-properties_with-numbered-properties {
50
+ & > .ck-list-styles-list {
51
+ grid-template-columns: repeat(4, auto);
52
+ }
52
53
 
53
- .ck.ck-list-properties.ck-list-properties_with-numbered-properties > .ck-collapsible {
54
- border-top: 1px solid var(--ck-color-base-border);
55
- }
54
+ & > .ck-collapsible {
55
+ border-top: var(--ck-border-divider);
56
56
 
57
- .ck.ck-list-properties.ck-list-properties_with-numbered-properties > .ck-collapsible > .ck-collapsible__children > * {
58
- width: 100%;
59
- }
57
+ & > .ck-collapsible__children {
58
+ & > * {
59
+ width: 100%;
60
60
 
61
- .ck.ck-list-properties.ck-list-properties_with-numbered-properties > .ck-collapsible > .ck-collapsible__children > * + * {
62
- margin-top: var(--ck-spacing-standard);
61
+ & + * {
62
+ margin-top: var(--ck-spacing-standard, var(--ck-spacing-base));
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ & .ck.ck-numbered-list-properties__start-index .ck-input {
70
+ width: 100%;
71
+ min-width: auto;
72
+ }
73
+
74
+ & .ck.ck-numbered-list-properties__reversed-order {
75
+ margin-bottom: calc(-1 * var(--ck-spacing-tiny, var(--ck-spacing-xs)));
76
+ background: none;
77
+ padding-left: 0;
78
+ padding-right: 0;
79
+
80
+ &:active, &:hover {
81
+ box-shadow: none;
82
+ background: none;
83
+ border-color: #0000;
84
+ }
85
+ }
63
86
  }
64
87
 
65
- .ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input {
66
- width: 100%;
67
- min-width: auto;
88
+ :root, :host {
89
+ --ck-content-todo-list-checkmark-size: 16px;
68
90
  }
69
91
 
70
- .ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order {
71
- margin-bottom: calc(-1 * var(--ck-spacing-tiny));
72
- background: none;
73
- padding-left: 0;
74
- padding-right: 0;
92
+ .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input {
93
+ -webkit-appearance: none;
94
+ width: var(--ck-content-todo-list-checkmark-size);
95
+ height: var(--ck-content-todo-list-checkmark-size);
96
+ vertical-align: middle;
97
+ border: 0;
98
+ margin-left: 0;
99
+ margin-right: -15px;
100
+ display: inline-block;
101
+ position: relative;
102
+ left: -25px;
103
+ right: 0;
104
+
105
+ [dir="rtl"]& {
106
+ margin-left: -15px;
107
+ margin-right: 0;
108
+ left: 0;
109
+ right: -25px;
110
+ }
111
+
112
+ &:before {
113
+ box-sizing: border-box;
114
+ content: "";
115
+ border: 1px solid #333;
116
+ border-radius: 2px;
117
+ width: 100%;
118
+ height: 100%;
119
+ transition: box-shadow .25s ease-in-out;
120
+ display: block;
121
+ position: absolute;
122
+
123
+ @media (prefers-reduced-motion: reduce) {
124
+ transition: none;
125
+ }
126
+ }
127
+
128
+ &:after {
129
+ box-sizing: content-box;
130
+ pointer-events: none;
131
+ content: "";
132
+ left: calc(var(--ck-content-todo-list-checkmark-size) / 3);
133
+ top: calc(var(--ck-content-todo-list-checkmark-size) / 5.3);
134
+ width: calc(var(--ck-content-todo-list-checkmark-size) / 5.3);
135
+ height: calc(var(--ck-content-todo-list-checkmark-size) / 2.6);
136
+ border-style: solid;
137
+ border-color: #0000;
138
+ border-width: 0 calc(var(--ck-content-todo-list-checkmark-size) / 8) calc(var(--ck-content-todo-list-checkmark-size) / 8) 0;
139
+ display: block;
140
+ position: absolute;
141
+ transform: rotate(45deg);
142
+ }
143
+
144
+ &[checked] {
145
+ &:before {
146
+ background: #26ab33;
147
+ border-color: #26ab33;
148
+ }
149
+
150
+ &:after {
151
+ border-color: #fff;
152
+ }
153
+ }
75
154
  }
76
155
 
77
- .ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active, .ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover {
78
- box-shadow: none;
79
- background: none;
80
- border-color: #0000;
156
+ .ck-editor__editable.ck-content .todo-list .todo-list__label {
157
+ & > input, & > span[contenteditable="false"] > input {
158
+ cursor: pointer;
159
+
160
+ &:hover:before {
161
+ box-shadow: 0 0 0 5px #0000001a;
162
+ }
163
+ }
164
+
165
+ &.todo-list__label_without-description {
166
+ & input[type="checkbox"] {
167
+ position: absolute;
168
+ }
169
+ }
81
170
  }
82
171
 
83
- :root {
172
+ :root, :host {
84
173
  --ck-content-list-marker-color: var(--ck-content-font-color);
85
174
  --ck-content-list-marker-font-family: var(--ck-content-font-family);
86
175
  --ck-content-list-marker-font-size: var(--ck-content-font-size);
176
+ --ck-content-todo-list-checkmark-size: 16px;
87
177
  }
88
178
 
89
- .ck-content li > p:first-of-type {
90
- margin-top: 0;
91
- }
179
+ .ck-content li {
180
+ & > p:first-of-type {
181
+ margin-top: 0;
182
+ }
92
183
 
93
- .ck-content li > p:only-of-type {
94
- margin-top: 0;
95
- margin-bottom: 0;
96
- }
184
+ & > p:only-of-type {
185
+ margin-top: 0;
186
+ margin-bottom: 0;
187
+ }
97
188
 
98
- .ck-content li.ck-list-marker-bold::marker {
99
- font-weight: bold;
100
- }
189
+ &.ck-list-marker-bold::marker {
190
+ font-weight: bold;
191
+ }
101
192
 
102
- .ck-content li.ck-list-marker-italic::marker {
103
- font-style: italic;
104
- }
193
+ &.ck-list-marker-italic::marker {
194
+ font-style: italic;
195
+ }
105
196
 
106
- .ck-content li.ck-list-marker-color::marker {
107
- color: var(--ck-content-list-marker-color);
108
- }
197
+ &.ck-list-marker-color::marker {
198
+ color: var(--ck-content-list-marker-color);
199
+ }
109
200
 
110
- .ck-content li.ck-list-marker-font-family::marker {
111
- font-family: var(--ck-content-list-marker-font-family);
112
- }
201
+ &.ck-list-marker-font-family::marker {
202
+ font-family: var(--ck-content-list-marker-font-family);
203
+ }
113
204
 
114
- .ck-content li.ck-list-marker-font-size::marker {
115
- font-size: var(--ck-content-list-marker-font-size);
116
- }
205
+ &.ck-list-marker-font-size::marker {
206
+ font-size: var(--ck-content-list-marker-font-size);
207
+ }
117
208
 
118
- .ck-content li.ck-list-marker-font-size-tiny::marker {
119
- font-size: var(--ck-content-font-size-tiny);
120
- }
209
+ &.ck-list-marker-font-size-tiny::marker {
210
+ font-size: var(--ck-content-font-size-tiny);
211
+ }
121
212
 
122
- .ck-content li.ck-list-marker-font-size-small::marker {
123
- font-size: var(--ck-content-font-size-small);
124
- }
213
+ &.ck-list-marker-font-size-small::marker {
214
+ font-size: var(--ck-content-font-size-small);
215
+ }
125
216
 
126
- .ck-content li.ck-list-marker-font-size-big::marker {
127
- font-size: var(--ck-content-font-size-big);
128
- }
217
+ &.ck-list-marker-font-size-big::marker {
218
+ font-size: var(--ck-content-font-size-big);
219
+ }
129
220
 
130
- .ck-content li.ck-list-marker-font-size-huge::marker {
131
- font-size: var(--ck-content-font-size-huge);
221
+ &.ck-list-marker-font-size-huge::marker {
222
+ font-size: var(--ck-content-font-size-huge);
223
+ }
132
224
  }
133
225
 
134
226
  .ck-content ol {
135
227
  list-style-type: decimal;
136
- }
137
228
 
138
- .ck-content ol ol {
139
- list-style-type: lower-latin;
140
- }
229
+ & ol {
230
+ list-style-type: lower-latin;
141
231
 
142
- .ck-content ol ol ol {
143
- list-style-type: lower-roman;
144
- }
232
+ & ol {
233
+ list-style-type: lower-roman;
145
234
 
146
- .ck-content ol ol ol ol {
147
- list-style-type: upper-latin;
148
- }
235
+ & ol {
236
+ list-style-type: upper-latin;
149
237
 
150
- .ck-content ol ol ol ol ol {
151
- list-style-type: upper-roman;
238
+ & ol {
239
+ list-style-type: upper-roman;
240
+ }
241
+ }
242
+ }
243
+ }
152
244
  }
153
245
 
154
246
  .ck-content ul {
155
247
  list-style-type: disc;
156
- }
157
248
 
158
- .ck-content ul ul {
159
- list-style-type: circle;
160
- }
249
+ & ul {
250
+ list-style-type: circle;
161
251
 
162
- .ck-content ul ul ul {
163
- list-style-type: square;
164
- }
165
-
166
- .ck-content ul ul ul ul {
167
- list-style-type: square;
168
- }
252
+ & ul {
253
+ list-style-type: square;
169
254
 
170
- :root {
171
- --ck-content-todo-list-checkmark-size: 16px;
255
+ & ul {
256
+ list-style-type: square;
257
+ }
258
+ }
259
+ }
172
260
  }
173
261
 
174
- .ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input {
262
+ .ck-content .todo-list .todo-list__label > input {
175
263
  -webkit-appearance: none;
176
264
  width: var(--ck-content-todo-list-checkmark-size);
177
265
  height: var(--ck-content-todo-list-checkmark-size);
@@ -183,89 +271,79 @@
183
271
  position: relative;
184
272
  left: -25px;
185
273
  right: 0;
186
- }
187
274
 
188
- [dir="rtl"]:is(.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input) {
189
- margin-left: -15px;
190
- margin-right: 0;
191
- left: 0;
192
- right: -25px;
193
- }
194
-
195
- :is(.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input):before {
196
- box-sizing: border-box;
197
- content: "";
198
- border: 1px solid #333;
199
- border-radius: 2px;
200
- width: 100%;
201
- height: 100%;
202
- transition: box-shadow .25s ease-in-out;
203
- display: block;
204
- position: absolute;
205
- }
275
+ [dir="rtl"]& {
276
+ margin-left: -15px;
277
+ margin-right: 0;
278
+ left: 0;
279
+ right: -25px;
280
+ }
206
281
 
207
- @media (prefers-reduced-motion: reduce) {
208
- :is(.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input):before {
209
- transition: none;
282
+ &:before {
283
+ box-sizing: border-box;
284
+ content: "";
285
+ border: 1px solid #333;
286
+ border-radius: 2px;
287
+ width: 100%;
288
+ height: 100%;
289
+ transition: box-shadow .25s ease-in-out;
290
+ display: block;
291
+ position: absolute;
292
+
293
+ @media (prefers-reduced-motion: reduce) {
294
+ transition: none;
295
+ }
210
296
  }
211
- }
212
297
 
213
- :is(.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input):after {
214
- box-sizing: content-box;
215
- pointer-events: none;
216
- content: "";
217
- left: calc(var(--ck-content-todo-list-checkmark-size) / 3);
218
- top: calc(var(--ck-content-todo-list-checkmark-size) / 5.3);
219
- width: calc(var(--ck-content-todo-list-checkmark-size) / 5.3);
220
- height: calc(var(--ck-content-todo-list-checkmark-size) / 2.6);
221
- border-style: solid;
222
- border-color: #0000;
223
- border-width: 0 calc(var(--ck-content-todo-list-checkmark-size) / 8) calc(var(--ck-content-todo-list-checkmark-size) / 8) 0;
224
- display: block;
225
- position: absolute;
226
- transform: rotate(45deg);
227
- }
298
+ &:after {
299
+ box-sizing: content-box;
300
+ pointer-events: none;
301
+ content: "";
302
+ left: calc(var(--ck-content-todo-list-checkmark-size) / 3);
303
+ top: calc(var(--ck-content-todo-list-checkmark-size) / 5.3);
304
+ width: calc(var(--ck-content-todo-list-checkmark-size) / 5.3);
305
+ height: calc(var(--ck-content-todo-list-checkmark-size) / 2.6);
306
+ border-style: solid;
307
+ border-color: #0000;
308
+ border-width: 0 calc(var(--ck-content-todo-list-checkmark-size) / 8) calc(var(--ck-content-todo-list-checkmark-size) / 8) 0;
309
+ display: block;
310
+ position: absolute;
311
+ transform: rotate(45deg);
312
+ }
228
313
 
229
- :is(.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input)[checked]:before {
230
- background: #26ab33;
231
- border-color: #26ab33;
232
- }
314
+ &[checked] {
315
+ &:before {
316
+ background: #26ab33;
317
+ border-color: #26ab33;
318
+ }
233
319
 
234
- :is(.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input)[checked]:after {
235
- border-color: #fff;
320
+ &:after {
321
+ border-color: #fff;
322
+ }
323
+ }
236
324
  }
237
325
 
238
326
  .ck-content .todo-list {
239
327
  list-style: none;
240
- }
241
328
 
242
- .ck-content .todo-list li {
243
- margin-bottom: 5px;
244
- position: relative;
245
- }
246
-
247
- .ck-content .todo-list li .todo-list {
248
- margin-top: 5px;
249
- }
250
-
251
- .ck-content .todo-list .todo-list__label .todo-list__label__description {
252
- vertical-align: middle;
253
- }
329
+ & li {
330
+ margin-bottom: 5px;
331
+ position: relative;
254
332
 
255
- .ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type="checkbox"] {
256
- position: absolute;
257
- }
258
-
259
- .ck-editor__editable.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input {
260
- cursor: pointer;
261
- }
333
+ & .todo-list {
334
+ margin-top: 5px;
335
+ }
336
+ }
262
337
 
263
- :is(.ck-editor__editable.ck-content .todo-list .todo-list__label > input, .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input):hover:before {
264
- box-shadow: 0 0 0 5px #0000001a;
265
- }
338
+ & .todo-list__label {
339
+ & .todo-list__label__description {
340
+ vertical-align: middle;
341
+ }
266
342
 
267
- .ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type="checkbox"] {
268
- position: absolute;
343
+ &.todo-list__label_without-description input[type="checkbox"] {
344
+ position: absolute;
345
+ }
346
+ }
269
347
  }
270
348
 
271
349
  /*# sourceMappingURL=index.css.map */