feat: the index reads like the one a word processor generates
Its leader is real dots now, not a border, so it scales with the font and reaches the PDF as text. Title and entries follow the document's Heading 1 and default style, which is what the index styles of Word and LO are based on.
This commit is contained in:
1 parent
34c529e3c4
commit
5549d625f7
3 files changed
+14
-6
No files matched your search
@@ -214,13 +214,13 @@
|
||||
text-overflow: ellipsis;
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
/* Dotted leader filling the gap; nudged up to sit on the text baseline. */
|
||||
/* Leader dots filling the gap: the row grants the span the space that is left and
|
||||
clips the dots that do not fit, so the page number stays put. */
|
||||
.paper .tiptap .toc-leader {
|
||||
flex: 1 1 auto;
|
||||
flex: 1 1 0; /* basis 0: the dots are decoration, they must not size the row */
|
||||
min-width: 1em;
|
||||
margin: 0 4px;
|
||||
border-bottom: 1px dotted currentColor;
|
||||
transform: translateY(-0.25em);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.paper .tiptap .toc-page {
|
||||
flex: 0 0 auto;
|
||||
|
||||
Reference in new issue
Block a user