From 97987728a2c8ca9d3527d9ef34b5d84d8f28ead7 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 21 Dec 2021 12:20:39 +0100 Subject: [PATCH] Minor EPUB/MOBI fixes. --- src/librarian/builders/epub.py | 1 + src/librarian/epub/style.css | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/librarian/builders/epub.py b/src/librarian/builders/epub.py index 6fc0e74..902b460 100644 --- a/src/librarian/builders/epub.py +++ b/src/librarian/builders/epub.py @@ -303,6 +303,7 @@ class EpubBuilder(Builder): def add_toc(self): item = epub.EpubNav() + item.add_link(href='style.css', rel='stylesheet', type='text/css') self.output.add_item(item) self.output.spine.append(item) self.output.add_item(epub.EpubNcx()) diff --git a/src/librarian/epub/style.css b/src/librarian/epub/style.css index a740f85..dfd9fe7 100644 --- a/src/librarian/epub/style.css +++ b/src/librarian/epub/style.css @@ -51,6 +51,11 @@ a img { margin: 0; } + +nav#id li { + list-style: none; +} + /* =================================================== */ /* = Common elements: headings, paragraphs and lines = */ /* =================================================== */ -- 2.20.1