Skip to content

Commit af7ec0f

Browse files
committed
Add support for bookmarks in the style file
This commit introduces support for bookmarks in the style file. It includes changes in the `style.css` file to add `-prince-bookmark-level` and `-prince-bookmark-label` properties to the `book` and `chapter` elements, allowing for better organization and navigation within the document.
1 parent f3b7f9a commit af7ec0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
body { font-size: var(--size); text-align: justify; font-family: greek, mono, f1, f2; line-height: 1.2; }
1515
h1 { font-family: mono; font-weight: 600; font-size: 6vh; margin: 46vh 0; padding: 0; text-align: center; }
1616
info { display: flex; width: 100%; justify-content: space-between; }
17-
book { string-set: book attr(data-book); display: block; break-before: left; page: book; }
18-
chapter { string-set: chapter attr(data-chapter); display: flex; }
17+
book { string-set: book attr(data-book); display: block; break-before: left; page: book; -prince-bookmark-level: 1; -prince-bookmark-label: attr(data-book); }
18+
chapter { string-set: chapter attr(data-chapter); display: flex; -prince-bookmark-level: 2; -prince-bookmark-label: attr(data-chapter); }
1919
chapter:before { content: attr(data-chapter); font-family: mono; font-weight: 600; }
2020
column { display: block; padding: 0 .5em; }
2121
verse { margin: 0; padding: 0; display: inline; }

0 commit comments

Comments
 (0)