From 128c701074293ef742cd601e27ed183b049a6be0 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Fri, 14 Aug 2020 10:21:41 -0500 Subject: [PATCH] Fix off-center ebook author and hero images on small screens --- www/css/core.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/css/core.css b/www/css/core.css index 869bfdf3..e1847b3f 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -695,6 +695,8 @@ article.ebook > header img{ z-index: 0; height: 100%; width: auto; + object-fit: cover; + max-width: 100%; } article.ebook section#details ul{ @@ -885,6 +887,10 @@ article.ebook h1{ text-align: center; } +article.ebook h2{ + text-align: center; +} + aside#reading-ease, section#description{ margin-top: 2rem;