From 49037e6d877c6b783aeff8bef5e6496f9d0b6ead Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 20 Apr 2021 21:50:05 -0500 Subject: [PATCH] Add mobile improvements for web ebook CSS --- www/css/web.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/css/web.css b/www/css/web.css index 7d5768fc..67082f51 100644 --- a/www/css/web.css +++ b/www/css/web.css @@ -24,7 +24,8 @@ section + article, article + section, article + article{ box-sizing: border-box; - padding-top: 6em; + margin-top: 12em !important; + padding: 0; } nav[epub|type~="toc"] ol{ @@ -64,3 +65,10 @@ nav[epub|type~="toc"] ol{ filter: invert(1); } } + +@media(pointer: coarse) or (pointer: none){ + nav[epub|type~="toc"] ol li{ + margin-top: 2em; + margin-bottom: 2em; + } +}