mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-06-28 19:10:17 +12:00
Tweak style, fix for iBooks
This commit is contained in:
parent
e82549f39d
commit
29b72017b7
|
@ -14,7 +14,8 @@ h3 {
|
||||||
#toc {
|
#toc {
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
margin: 0.2em 0;
|
line-height: 1.1;
|
||||||
|
margin: 0.5em 0;
|
||||||
text-indent: -0.5em;
|
text-indent: -0.5em;
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
|
|
|
@ -238,14 +238,14 @@ export function createNav (ffc) {
|
||||||
m('li', m('a', {href: 'Text/title.xhtml'}, 'Title Page')),
|
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
|
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) =>
|
].concat(ffc.storyInfo.chapters.map((ch, num) =>
|
||||||
m('li', [
|
m('li.leftalign', [
|
||||||
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)
|
||||||
])
|
])
|
||||||
))
|
))
|
||||||
let prettyList = ffc.storyInfo.chapters.map((ch, num) =>
|
let prettyList = ffc.storyInfo.chapters.map((ch, num) =>
|
||||||
m('.item', [
|
m('li.item', [
|
||||||
m('.floatbox', m('span.wordcount', ch.realWordCount.toLocaleString('en-GB'))),
|
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))])
|
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('body', {'epub:type': 'frontmatter toc'}, m('section', [
|
||||||
m('h3', 'Contents'),
|
m('h3', 'Contents'),
|
||||||
m('#toc.hidden', prettyList),
|
m('ul#toc.hidden', prettyList),
|
||||||
m('nav.invisible', {'epub:type': 'toc'}, m('ol', list))
|
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('body#titlepage', {'epub:type': 'frontmatter titlepage'}, m('section', [
|
||||||
m('header.title', [
|
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('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('section.story_name', ffc.storyInfo.title + ' '),
|
||||||
m('.author', ['by ', m('b', ffc.storyInfo.author.name)])
|
m('section.author', ['by ', m('b', ffc.storyInfo.author.name)])
|
||||||
]),
|
]),
|
||||||
// m('hr'),
|
// m('hr'),
|
||||||
m('section.tags', [
|
m('section.tags', [
|
||||||
|
|
Loading…
Reference in a new issue