View Single Post
Old 11-13-2009, 03:45 PM   #1
JayCeeEll
Connoisseur
JayCeeEll doesn't litterJayCeeEll doesn't litterJayCeeEll doesn't litter
 
JayCeeEll's Avatar
 
Posts: 87
Karma: 204
Join Date: Dec 2007
Location: Exeter, Devon, UK
Device: PRS-300
Custom news source

I am working on a custom news source and I wish to change the output style of the <blockquote> tag.
I have tried extra_css = '.blockquote { padding-left: 15px; border-left: 3px solid #ccc;}' but this does not work.

Am I using the wrong keyword or tag?

This is the complete recipe
Code:
__license__   = 'GPL v3'
__copyright__ = '2009, JayCeeEll'

from calibre.web.feeds.news import BasicNewsRecipe

class RespectfulInsolence(BasicNewsRecipe):
    title                 = u'Respectful Insolence'
    language              = 'en'
    __author__            = 'JayCeeEll'
    description           = 'The miscellaneous ramblings of a surgeon/scientist on medicine, quackery, science, pseudoscience, history, and pseudohistory (and anything else'
    author                = 'Orac'
    publisher             = 'ScienceBlogs'
    category              = 'blog, science, skepticism'
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    encoding              = 'utf8'
    remove_javascript     = True
    use_embedded_content  = False

    feeds = [(u'Respectful Insolence'        , u'http://feeds.feedburner.com/scienceblogs/insolence')]

    keep_only_tags = [dict(name='div', attrs={'class':'entry'})]
    
    extra_css = '.blockquote { padding-left: 15px; border-left: 3px solid #ccc;}'
JayCeeEll is offline   Reply With Quote