mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-30 00:56:13 +13:00
css and kepubify fix
This commit is contained in:
parent
c66c73494c
commit
e49c082fec
2 changed files with 5 additions and 5 deletions
|
@ -84,7 +84,7 @@ em em {
|
||||||
text-align: right !important;
|
text-align: right !important;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
span {
|
span.label {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
|
|
@ -93,8 +93,8 @@ export function createChapter (ffc, ch, isNotesChapter) {
|
||||||
m('body', {'epub:type': 'bodymatter chapter'}, m('section', [
|
m('body', {'epub:type': 'bodymatter chapter'}, m('section', [
|
||||||
title ? m('.chapter-title', [
|
title ? m('.chapter-title', [
|
||||||
!isNotesChapter ? m('aside.info',
|
!isNotesChapter ? m('aside.info',
|
||||||
m('span', ffc.options.wordsPerMinute ? calcReadingTime(ffc, ffc.storyInfo.chapters[index].realWordCount) : ''),
|
m('span.label', ffc.options.wordsPerMinute ? calcReadingTime(ffc, ffc.storyInfo.chapters[index].realWordCount) : ''),
|
||||||
m('span', ffc.storyInfo.chapters[index].realWordCount.toLocaleString('en-GB') + ' words')
|
m('span.label', ffc.storyInfo.chapters[index].realWordCount.toLocaleString('en-GB') + ' words')
|
||||||
) : null,
|
) : null,
|
||||||
m('header', m('h1', title)),
|
m('header', m('h1', title)),
|
||||||
m('hr.old')
|
m('hr.old')
|
||||||
|
@ -305,7 +305,7 @@ export function createNav (ffc) {
|
||||||
)
|
)
|
||||||
if (ffc.options.includeAuthorNotes && ffc.options.useAuthorNotesIndex && ffc.hasAuthorNotes) {
|
if (ffc.options.includeAuthorNotes && ffc.options.useAuthorNotesIndex && ffc.hasAuthorNotes) {
|
||||||
list.push(m('li', m('a', {href: 'notesnav.xhtml'}, 'Author\'s Notes')))
|
list.push(m('li', m('a', {href: 'notesnav.xhtml'}, 'Author\'s Notes')))
|
||||||
prettyList.push(m('.item.double', m('a.leftalign', {href: 'notesnav.xhtml'}, 'Author\'s Notes')))
|
prettyList.push(m('li.item.double', m('a', {href: 'notesnav.xhtml'}, 'Author\'s Notes')))
|
||||||
}
|
}
|
||||||
|
|
||||||
return render(
|
return render(
|
||||||
|
@ -454,7 +454,7 @@ export function createTitlePage (ffc) {
|
||||||
m('#description', tokenContent),
|
m('#description', tokenContent),
|
||||||
m('.bottom', [
|
m('.bottom', [
|
||||||
m('section', {className: 'completed-status completed-status-' + ffc.storyInfo.status.toLowerCase()}, [
|
m('section', {className: 'completed-status completed-status-' + ffc.storyInfo.status.toLowerCase()}, [
|
||||||
m('i.fa.fa-fw.fa-' + completedIcon[ffc.storyInfo.status.toLowerCase()]),
|
m('i.fa.fa-fw.fa-' + completedIcon[ffc.storyInfo.status.toLowerCase()], ' '),
|
||||||
ffc.storyInfo.status
|
ffc.storyInfo.status
|
||||||
]),
|
]),
|
||||||
ffc.storyInfo.publishDate && infoBox('First Published', prettyDate(new Date(ffc.storyInfo.publishDate * 1000))),
|
ffc.storyInfo.publishDate && infoBox('First Published', prettyDate(new Date(ffc.storyInfo.publishDate * 1000))),
|
||||||
|
|
Loading…
Reference in a new issue