From 0e4c26ab27930fe6fd438a2bb978981430f0ce3e Mon Sep 17 00:00:00 2001 From: GRiker Date: Thu, 15 Mar 2012 09:59:22 -0700 Subject: [PATCH] Revised periodical Section layout, CSS (touchscreens only) resolving iBooks problem with tables spanning multiple pages --- src/calibre/customize/profiles.py | 1 + src/calibre/web/feeds/templates.py | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index f6ed6ce3ec..cf35fe93b3 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -379,6 +379,7 @@ class iPadOutput(OutputProfile): /* Feed summary formatting */ .article_summary { display:inline-block; + padding-bottom:0.5em; } .feed { font-family:sans-serif; diff --git a/src/calibre/web/feeds/templates.py b/src/calibre/web/feeds/templates.py index 6fd40848c3..a22a79ef20 100644 --- a/src/calibre/web/feeds/templates.py +++ b/src/calibre/web/feeds/templates.py @@ -352,11 +352,9 @@ class TouchscreenFeedTemplate(Template): d.append(BR()) div.append(d) - toc = TABLE(CLASS('toc'),width="100%",border="0",cellpadding="3px") for i, article in enumerate(feed.articles): if not getattr(article, 'downloaded', False): continue - tr = TR() div_td = DIV(CLASS('article_summary'), A(article.title, CLASS('summary_headline','calibre_rescale_120', @@ -367,11 +365,8 @@ class TouchscreenFeedTemplate(Template): if article.summary: div_td.append(DIV(cutoff(article.text_summary), CLASS('summary_text', 'calibre_rescale_100'))) - tr.append(TD(div_td)) - toc.append(tr) + div.append(div_td) - div.append(toc) - div.append(BR()) div.append(bottom_navbar) self.root = HTML(head, body) if self.html_lang: