diff --git a/packages/ckeditor5-list/src/documentlist/documentlistediting.ts b/packages/ckeditor5-list/src/documentlist/documentlistediting.ts index 569a3868e75..fa8ee0823af 100644 --- a/packages/ckeditor5-list/src/documentlist/documentlistediting.ts +++ b/packages/ckeditor5-list/src/documentlist/documentlistediting.ts @@ -67,7 +67,9 @@ import ListWalker, { iterateSiblingListBlocks, ListBlocksIterable } from './utils/listwalker'; + import '../../theme/documentlist.css'; +import '../../theme/list.css'; /** * A list of base list model attributes. diff --git a/packages/ckeditor5-list/src/list/listediting.ts b/packages/ckeditor5-list/src/list/listediting.ts index 343142804b8..bcf127259aa 100644 --- a/packages/ckeditor5-list/src/list/listediting.ts +++ b/packages/ckeditor5-list/src/list/listediting.ts @@ -46,6 +46,8 @@ import { viewToModelPosition } from './converters'; +import '../../theme/list.css'; + /** * The engine of the list feature. It handles creating, editing and removing lists and list items. * diff --git a/packages/ckeditor5-list/theme/list.css b/packages/ckeditor5-list/theme/list.css new file mode 100644 index 00000000000..e075d349ba8 --- /dev/null +++ b/packages/ckeditor5-list/theme/list.css @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck-content ol { + list-style-type: decimal; + + & ol { + list-style-type: lower-latin; + + & ol { + list-style-type: lower-roman; + + & ol { + list-style-type: upper-latin; + + & ol { + list-style-type: upper-roman; + } + } + } + } +} + +.ck-content ul { + list-style-type: disc; + + & ul { + list-style-type: circle; + + & ul { + list-style-type: square; + + & ul { + list-style-type: square; + } + } + } +} diff --git a/packages/ckeditor5-list/theme/liststyles.css b/packages/ckeditor5-list/theme/liststyles.css index 5854dda4f65..49924197bb7 100644 --- a/packages/ckeditor5-list/theme/liststyles.css +++ b/packages/ckeditor5-list/theme/liststyles.css @@ -6,39 +6,3 @@ .ck.ck-list-styles-list { display: grid; } - -.ck-content ol { - list-style-type: decimal; - - & ol { - list-style-type: lower-latin; - - & ol { - list-style-type: lower-roman; - - & ol { - list-style-type: upper-latin; - - & ol { - list-style-type: upper-roman; - } - } - } - } -} - -.ck-content ul { - list-style-type: circle; - - & ul { - list-style-type: disc; - - & ul { - list-style-type: square; - - & ul { - list-style-type: square; - } - } - } -}