fixes for book page toc
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 16 Jun 2026 11:23:12 +0000 (13:23 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 16 Jun 2026 11:23:12 +0000 (13:23 +0200)
src/wolnelektury/static/2022/styles/layout/_article.scss
src/wolnelektury/static/js/book_text/references.js

index cb913a3..c4b1024 100644 (file)
     list-style: none;
     margin-top: 0.25rem;
     margin-bottom: 0;
-    li {
+    margin-left: 1em;
       font-size: 18px;
-      line-height: 150%;
       font-weight: normal;
+    li {
+      line-height: 150%;
 
     }
 
index ee7e2bd..394ec3f 100644 (file)
     $('a.anchor').on('click', function(e) {
         // Workaround for bad TOC markers.
         if ($(this).closest('#toc').length) return;
+        if ($(this).closest('.toc').length) return;
         if ($(this).closest('#wltoc').length) return;
         e.preventDefault();