Center images and image captions

This commit is contained in:
Henrik Holm 2025-04-27 16:45:18 +02:00
parent be1002cc20
commit 0a7993c09a
No known key found for this signature in database

View File

@ -27,13 +27,17 @@ class Fokus(BasicNewsRecipe):
compress_news_images = True compress_news_images = True
needs_subscription = 'optional' needs_subscription = 'optional'
oldest_article = 7 # days oldest_article = 7 # days
remove_empty_feeds = True
extra_css = 'img { display: block; width: 75%; height: auto }'
use_embedded_content = False use_embedded_content = False
remove_empty_feeds = True
scale_news_images_to_device = True scale_news_images_to_device = True
scale_news_images = (800, 600) 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 = [ remove_tags = [
dict(name='div', attrs={'class': 'External-ad'}), dict(name='div', attrs={'class': 'External-ad'}),
dict(name='header', attrs={'class': 'Header'}), dict(name='header', attrs={'class': 'Header'}),