feat: different types of ordered list
This commit is contained in:
1 parent
979800032c
commit
69cb74c824
6 files changed
+320
-17
No files matched your search
@@ -176,6 +176,28 @@
|
||||
margin-bottom: 0.212cm;
|
||||
}
|
||||
|
||||
/* Ordered-list numbering styles (Toolbar split-button dropdown → orderedList
|
||||
`listStyleType` attr, rendered as data-list-style). The dot variants reuse the
|
||||
built-in counter styles (which already render with a trailing "."); the bracket
|
||||
variants override the suffix via @counter-style … system: extends. `decimal`
|
||||
needs no rule (the <ol> default already renders "1."). Keep in sync with
|
||||
src/lib/editor/orderedListTypes.ts and export/odt.ts. */
|
||||
@counter-style oledit-decimal-paren { system: extends decimal; suffix: ") "; }
|
||||
@counter-style oledit-lower-alpha-paren { system: extends lower-alpha; suffix: ") "; }
|
||||
@counter-style oledit-upper-alpha-paren { system: extends upper-alpha; suffix: ") "; }
|
||||
@counter-style oledit-lower-roman-paren { system: extends lower-roman; suffix: ") "; }
|
||||
@counter-style oledit-upper-roman-paren { system: extends upper-roman; suffix: ") "; }
|
||||
|
||||
.paper .tiptap ol[data-list-style="decimal-paren"] { list-style-type: oledit-decimal-paren; }
|
||||
.paper .tiptap ol[data-list-style="lower-alpha"] { list-style-type: lower-alpha; }
|
||||
.paper .tiptap ol[data-list-style="lower-alpha-paren"] { list-style-type: oledit-lower-alpha-paren; }
|
||||
.paper .tiptap ol[data-list-style="upper-alpha"] { list-style-type: upper-alpha; }
|
||||
.paper .tiptap ol[data-list-style="upper-alpha-paren"] { list-style-type: oledit-upper-alpha-paren; }
|
||||
.paper .tiptap ol[data-list-style="lower-roman"] { list-style-type: lower-roman; }
|
||||
.paper .tiptap ol[data-list-style="lower-roman-paren"] { list-style-type: oledit-lower-roman-paren; }
|
||||
.paper .tiptap ol[data-list-style="upper-roman"] { list-style-type: upper-roman; }
|
||||
.paper .tiptap ol[data-list-style="upper-roman-paren"] { list-style-type: oledit-upper-roman-paren; }
|
||||
|
||||
.paper .tiptap li {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
|
||||
Reference in new issue
Block a user