mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-28 23:31:16 +12:00
Tweak style, fix for iBooks
This commit is contained in:
parent
e82549f39d
commit
29b72017b7
2 changed files with 9 additions and 8 deletions
|
@ -14,7 +14,8 @@ h3 {
|
|||
#toc {
|
||||
|
||||
.item {
|
||||
margin: 0.2em 0;
|
||||
line-height: 1.1;
|
||||
margin: 0.5em 0;
|
||||
text-indent: -0.5em;
|
||||
margin-left: 0.5em;
|
||||
text-align: left !important;
|
||||
|
|
|
@ -238,14 +238,14 @@ export function createNav (ffc) {
|
|||
m('li', m('a', {href: 'Text/title.xhtml'}, 'Title Page')),
|
||||
ffc.storyInfo.chapters.length > 1 || (ffc.options.includeAuthorNotes && ffc.options.useAuthorNotesIndex && ffc.hasAuthorNotes) ? m('li', m('a', {href: 'nav.xhtml'}, 'Contents')) : null
|
||||
].concat(ffc.storyInfo.chapters.map((ch, num) =>
|
||||
m('li', [
|
||||
m('a.leftalign', {href: 'Text/chapter_' + zeroFill(3, num + 1) + '.xhtml'}, ch.title)
|
||||
m('li.leftalign', [
|
||||
m('a', {href: 'Text/chapter_' + zeroFill(3, num + 1) + '.xhtml'}, ch.title)
|
||||
])
|
||||
))
|
||||
let prettyList = ffc.storyInfo.chapters.map((ch, num) =>
|
||||
m('.item', [
|
||||
m('li.item', [
|
||||
m('.floatbox', m('span.wordcount', ch.realWordCount.toLocaleString('en-GB'))),
|
||||
m('a.leftalign', {href: 'Text/chapter_' + zeroFill(3, num + 1) + '.xhtml'}, ch.title),
|
||||
m('a', {href: 'Text/chapter_' + zeroFill(3, num + 1) + '.xhtml'}, ch.title),
|
||||
m('span.date', [m('b', ' · '), prettyDate(new Date(ch.date_modified * 1000))])
|
||||
])
|
||||
)
|
||||
|
@ -264,7 +264,7 @@ export function createNav (ffc) {
|
|||
]),
|
||||
m('body', {'epub:type': 'frontmatter toc'}, m('section', [
|
||||
m('h3', 'Contents'),
|
||||
m('#toc.hidden', prettyList),
|
||||
m('ul#toc.hidden', prettyList),
|
||||
m('nav.invisible', {'epub:type': 'toc'}, m('ol', list))
|
||||
]))
|
||||
])
|
||||
|
@ -363,8 +363,8 @@ export function createTitlePage (ffc) {
|
|||
m('body#titlepage', {'epub:type': 'frontmatter titlepage'}, m('section', [
|
||||
m('header.title', [
|
||||
m('div', {className: 'content-rating content-rating-' + ffc.storyInfo.content_rating_text.toLowerCase()}, ffc.storyInfo.content_rating_text.charAt(0).toUpperCase()),
|
||||
m('.story_name', ffc.storyInfo.title + ' '),
|
||||
m('.author', ['by ', m('b', ffc.storyInfo.author.name)])
|
||||
m('section.story_name', ffc.storyInfo.title + ' '),
|
||||
m('section.author', ['by ', m('b', ffc.storyInfo.author.name)])
|
||||
]),
|
||||
// m('hr'),
|
||||
m('section.tags', [
|
||||
|
|
Loading…
Reference in a new issue