From: Radek Czajka Date: Tue, 3 Dec 2024 14:49:29 +0000 (+0100) Subject: for bible X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/55e6abd52da631d0a36ed13e12f5e1dfb2af0d92 for bible --- diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 8c508540a..f6fd0852a 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -39,7 +39,7 @@ mutagen==1.45.1 sorl-thumbnail==12.8.0 # home-brewed & dependencies -librarian==24.5 +librarian==24.5.1 # celery tasks celery[redis]==5.2.7 diff --git a/src/wolnelektury/static/2022/styles/layout/_text.scss b/src/wolnelektury/static/2022/styles/layout/_text.scss index d74496800..a41d94332 100644 --- a/src/wolnelektury/static/2022/styles/layout/_text.scss +++ b/src/wolnelektury/static/2022/styles/layout/_text.scss @@ -293,7 +293,7 @@ h2 { h3, .subtitle2 { font-size: 1.5em; - margin: 1.5em 0 0; + margin: 1.5em 0 1em 0; font-weight: normal; line-height: 1.5em; } @@ -471,6 +471,10 @@ p.paragraph { margin: 0; text-indent: 1.5em; } +p.paragraph.werset { + text-indent: 0; + margin-bottom: 1em; +} .motto { text-align: justify; @@ -530,6 +534,9 @@ p.place-and-time { em.math, em.foreign-word, em.book-title, em.didaskalia { font-style: italic; } +em.foreign-word.foreign-word-protected { + font-style: normal; +} em.author-emphasis { letter-spacing: 0.1em; @@ -719,7 +726,11 @@ a.reference.interesting:after { font-size: 18px; font-style: normal; font-weight: 400; - line-height: 28px; /* 155.556% */ + line-height: 28px; /* 155.556% */ + + em.foreign-word.foreign-word-protected { + font-style: normal; + } } #footnote-link { diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index ef6c51c94..fa4a35a69 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -615,7 +615,7 @@ let range = document.createRange(); let $p = $(this).nextAll('.paragraph').first() - range.selectNode($p[0]); + range.selectNodeContents($p[0]); sel.addRange(range); qbox.showForSelection(sel);