From 0a7993c09abd5737796c490960ff513752ed661f Mon Sep 17 00:00:00 2001 From: Henrik Holm Date: Sun, 27 Apr 2025 16:45:18 +0200 Subject: [PATCH] Center images and image captions --- recipes/fokus.recipe | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/recipes/fokus.recipe b/recipes/fokus.recipe index a4809c8a39..b97dc5b07b 100644 --- a/recipes/fokus.recipe +++ b/recipes/fokus.recipe @@ -27,13 +27,17 @@ class Fokus(BasicNewsRecipe): compress_news_images = True needs_subscription = 'optional' oldest_article = 7 # days - remove_empty_feeds = True - extra_css = 'img { display: block; width: 75%; height: auto }' - use_embedded_content = False + remove_empty_feeds = True scale_news_images_to_device = True scale_news_images = (800, 600) + # Center and reduce the size of images and image captions. + extra_css = ''' + img { display: block; margin: auto; width: 50%; height: auto } + div.calibre-nuked-tag-figure { font-size: small; text-align: center; } + ''' + remove_tags = [ dict(name='div', attrs={'class': 'External-ad'}), dict(name='header', attrs={'class': 'Header'}),