mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Center images and image captions
This commit is contained in:
parent
be1002cc20
commit
0a7993c09a
@ -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'}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user