add extra_css

it is added to make the color of the h1 and h2 tags
convenient to sn's color

Changes to be committed:
	modified:   salzburger_nachrichten.recipe
This commit is contained in:
ilker m. sitki 2024-09-04 13:46:57 +02:00
parent 1dd220e709
commit 4e9f97d72c

View File

@ -15,6 +15,9 @@ class SalzburgerNachrichten(BasicNewsRecipe):
ignore_duplicate_articles = {'url'} ignore_duplicate_articles = {'url'}
cover_url = 'https://front.e-pages.dk/data/teasers/salzburgernachrichten/308/vector/ts1.jpg' cover_url = 'https://front.e-pages.dk/data/teasers/salzburgernachrichten/308/vector/ts1.jpg'
extra_css = '''.article-title {font-size: 1.5em; color: #0358a9;}
h2 {font-size: 1.2em; color: #0358a9;}'''
keep_only_tags = [ keep_only_tags = [
dict(name='h1', attrs={'class': 'article-title'}), dict(name='h1', attrs={'class': 'article-title'}),
dict(name='div', attrs={'class': 'article-author'}), dict(name='div', attrs={'class': 'article-author'}),