mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 04:11:11 +10:00
fix: nested ordered-list style (#1351)
* feat: dynamic ordered-list style * fix nested task list import
This commit is contained in:
@ -11,3 +11,4 @@
|
|||||||
@import "./print.css";
|
@import "./print.css";
|
||||||
@import "./find.css";
|
@import "./find.css";
|
||||||
@import "./mention.css";
|
@import "./mention.css";
|
||||||
|
@import "./ordered-list.css";
|
||||||
|
|||||||
34
apps/client/src/features/editor/styles/ordered-list.css
Normal file
34
apps/client/src/features/editor/styles/ordered-list.css
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/* Ordered list type cycling based on nesting depth */
|
||||||
|
ol,
|
||||||
|
ol ol ol ol,
|
||||||
|
ol ol ol ol ol ol ol,
|
||||||
|
ol ol ol ol ol ol ol ol ol ol {
|
||||||
|
list-style-type: decimal;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol ol,
|
||||||
|
ol ol ol ol ol,
|
||||||
|
ol ol ol ol ol ol ol ol,
|
||||||
|
ol ol ol ol ol ol ol ol ol ol ol {
|
||||||
|
list-style-type: lower-alpha;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol ol ol,
|
||||||
|
ol ol ol ol ol ol,
|
||||||
|
ol ol ol ol ol ol ol ol ol,
|
||||||
|
ol ol ol ol ol ol ol ol ol ol ol ol {
|
||||||
|
list-style-type: lower-roman;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol {
|
||||||
|
list-style-position: outside;
|
||||||
|
margin-left: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Nested list spacing */
|
||||||
|
ol ol,
|
||||||
|
ol ul,
|
||||||
|
ul ol {
|
||||||
|
margin-top: 0.1rem;
|
||||||
|
margin-bottom: 0.1rem;
|
||||||
|
}
|
||||||
@ -48,7 +48,9 @@ export const tiptapExtensions = [
|
|||||||
Comment,
|
Comment,
|
||||||
TextAlign.configure({ types: ["heading", "paragraph"] }),
|
TextAlign.configure({ types: ["heading", "paragraph"] }),
|
||||||
TaskList,
|
TaskList,
|
||||||
TaskItem,
|
TaskItem.configure({
|
||||||
|
nested: true,
|
||||||
|
}),
|
||||||
Underline,
|
Underline,
|
||||||
LinkExtension,
|
LinkExtension,
|
||||||
Superscript,
|
Superscript,
|
||||||
|
|||||||
Reference in New Issue
Block a user