mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Revised periodical Section layout, CSS (touchscreens only) resolving iBooks problem with tables spanning multiple pages
This commit is contained in:
parent
afa4ef4d13
commit
0e4c26ab27
@ -379,6 +379,7 @@ class iPadOutput(OutputProfile):
|
||||
/* Feed summary formatting */
|
||||
.article_summary {
|
||||
display:inline-block;
|
||||
padding-bottom:0.5em;
|
||||
}
|
||||
.feed {
|
||||
font-family:sans-serif;
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user