|
Latest Uploads |
Browse Latest Uploads |
Latest Uploads (Feed) |
Kindle Download Guide |
Formats |
Kindle (MOBI) |
Sony BBeB (LRF) |
ePub (EPUB) |
eBookwise (IMP) |
Miscellaneous |
Search Forums |
Advanced Search |
Attachment Search |
Find New Posts |
All New Posts |
- w/o E-Book Uploads |
Last 24 Hours |
Last 2 Days |
Last 5 Days |
Your Posts |
Go to Page... |
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
I'm not a number!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 11496
Join Date: Jul 2011
Location: Quebec City
Device: Kobo Elipsa
|
![]()
Hello,
I'm currently reading a side loaded epub file (with Calibre) and changing the line height in the settings does nothing. I guess it's a fixed value in the epub CSS but when I open it, there's several classes with line-height values, sometimes it's fixed (like 1.2em), sometimes, it's a literal value, like "normal". Do you know which value should it be so that the Kobo "OS" can change the line height setting within the device? Thanks! |
![]() |
![]() |
![]() |
#2 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
My suggestion would be to try and delete the line-height lines that say 1.2em as well as the ones that say normal. Do they really say 1.2em? It should be 1.2, not 1.2em. Make a backup copy first since this is a somewhat heavy-handed solution.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
I'm not a number!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 11496
Join Date: Jul 2011
Location: Quebec City
Device: Kobo Elipsa
|
Yeah, it's "em", I was pretty surprised to see that actually. I just removed the line height attribute, I'll see if it works.
|
![]() |
![]() |
![]() |
#4 |
I'm not a number!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 11496
Join Date: Jul 2011
Location: Quebec City
Device: Kobo Elipsa
|
Doesn't work... So I guess I should add a fixed value?
|
![]() |
![]() |
![]() |
#5 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Analyze the html; see if there is a css class used for the body paragraphs. And a css class for a div that wraps the entire chapter (or occasionally a section tag instead of a div). And a css class for the body tag. If there is then delete its line-height. Those are the first things I fix in a bought book. What I really do is delete those classes from the html with a search and replace on all of the html files; e.g. <body class="calibre"> becomes <body>. After that I append at the end of their stylesheet(s):
Code:
body { font-size: 100%; border: 0; line-height: 1.2; margin: 0; padding: 0; width: auto; } body * { line-height: inherit; } p { font-size: 100%; margin: 0; padding: 0; border: 0; text-indent: 2em; } The above css won't be used if there are any classes on the corresponding html tags since ones with classes are higher in precedence than ones without classes. Last edited by hobnail; 07-17-2020 at 03:46 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,670
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } |
|
![]() |
![]() |
![]() |
#7 |
I'm not a number!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 11496
Join Date: Jul 2011
Location: Quebec City
Device: Kobo Elipsa
|
There's so many <div> in the html pages. My html skills are way back twenty years ago, if a css class isn't found, how it will process it? Because I could simply remove everything in the CSS file and put the basic code of JSWolf, I don't need more than that.
|
![]() |
![]() |
![]() |
#8 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
Better would be to rename the stylesheet rather than delete its contents. And put in an empty placeholder stylesheet file with the original name and add to it the minimal css, then you can add classes back to it that help. |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,670
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
And remove any line height so the slider works.. |
|
![]() |
![]() |
![]() |
#10 |
I'm not a number!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 11496
Join Date: Jul 2011
Location: Quebec City
Device: Kobo Elipsa
|
Thanks both of you. I don't know there so much style editing in tjis epub, it feels like the editor was trying everything that was available....
|
![]() |
![]() |
![]() |
#11 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,947
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
body { font-family: Palatino, Malabar, Merriweather, "Droid Serif", serif; } Last edited by DNSB; 07-20-2020 at 03:42 PM. |
|
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,670
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Of corse there is Phoenix Pick who make really awful eBooks. The code under the hood looks like Mobi threw up. And then we also get the worst of Word where there is not a style in sight and all kinds of crap in the code that doesn't belong in eBooks. These "house" CSS can be ridiculous with the amount of unused CSS. But there doesn't need to be any unused classes in the HTML. |
|
![]() |
![]() |
![]() |
#13 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,947
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Spoiler:
Code:
@charset "UTF-8"; /* blitz — CSS framework for reflowable eBooks Version 1.0.1 by Jiminy Panoz Codename: Rock the Casbah License: MIT (https://opensource.org/licenses/MIT) */ /* NAMESPACES */ @namespace h "http://www.w3.org/1999/xhtml/"; @namespace epub "http://www.idpf.org/2007/ops"; /* if you need to style epub:type */ @namespace m "http://www.w3.org/1998/Math/MathML/"; /* if you need to style MathML */ @namespace svg "http://www.w3.org/2000/svg"; /* if you need to style SVG */ html { /* Don't use it for styling, used as selector which can take a punch if anything goes wrong above */ } /* Begin CSS */ /* RESET */ /* So here's the trick, we must reset to manage a number of problems once and for all: - HTML5 backwards compatibility (EPUB 3 file in EPUB 2 app); - user settings (e.g. line-height on Kobo and Kindle); - CSS bloat (DRY); - KFX for which a reset using `border: 0` seems to disable support; - etc. It all started as a normalize and became a reset given the magnitude of the task. */ article, address, aside, blockquote, canvas, dd, details, div, dl, dt, figure, figcaption, footer, h1, h2, h3, h4, h5, h6, header, hr, li, main, nav, ol, p, pre, section, summary, ul { margin: 0; padding: 0; /* RS may apply vertical padding to el such as p */ font-size: 1em; /* Font size in pixel disable the user setting in legacy RMSDK */ line-height: inherit; /* Kindle ignores it, Kobo needs it. If you don’t use inherit, the user setting may be disabled on some Kobo devices */ text-indent: 0; font-style: normal; font-weight: normal; } /* This is absolutely necessary for backwards compatibility */ article, aside, figure, figcaption, footer, header, main, nav, section { display: block; } /* [Opinionated] Default to prevent RS from justifying all of these! */ h1, h2, h3, h4, h5, h6, dt, pre { text-align: left; } /* Following EPUB 3 spec by the letter (applies to RS but let’s make sure it is respected because we never know) */ nav[epub|type~="toc"] ol { list-style: none !important; } /* [Opinionated] Default to prevent bloat in case linear="no" is rendered as linear="yes" */ nav[epub|type~="landmarks"], nav[epub|type~="page-list"] { display: none; } a, abbr, b, bdi, bdo, cite, code, data, del, dfn, em, i, ins, kbd, mark, q, rp, rt, rtc, ruby, s, samp, small, span, strong, sub, sup, time, var { font-size: inherit; vertical-align: baseline; font-style: inherit; /* Taking nesting of inline elements into account (e.g. sup nested in em) */ font-weight: inherit; /* Taking nestiog of inline elements into account (e.g. em nested in strong) */ color: inherit; text-decoration: none; } q { quotes: none; } /* Trying to prevent blank page if element with margin-bottom at the end of xhtml */ body > :last-child, body > section > :last-child { margin-bottom: 0; } /* PAGE LAYOUT */ @page { margin: 30px 30px 20px 30px; /* Recommended by Barnes & Noble in this old spec: https://simg1.imagesbn.com/pimages/pubit/support/pubit_epub_formatting_guide.pdf */ padding: 0; } body { /* Designed as a class for body — We don't enforce as user setting > author */ text-align: justify; adobe-hyphenate: auto; /* proprietary for Legacy RMSDK */ -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; -epub-hyphens: auto; hyphens: auto; /* before and after not in spec but iBooks support all three (-webkit-) */ -ms-hyphenate-limit-lines: 3; -moz-hyphenate-limit-lines: 3; -webkit-hyphenate-limit-lines: 3; -webkit-hyphenate-limit-before: 2; -webkit-hyphenate-limit-after: 2; hyphenate-limit-lines: 3; /* No support except Trident (Windows) */ -ms-hyphenate-limit-chars: 6 3 2; -moz-hyphenate-limit-chars: 6 3 2; -webkit-hyphenate-limit-chars: 6 3 2; hyphenate-limit-chars: 6 3 2; /* No support except Trident (Windows) */ -ms-hyphenate-limit-zone: 10%; -moz-hyphenate-limit-zone: 10%; -webkit-hyphenate-limit-zone: 10%; hyphenate-limit-zone: 10%; /* No support */ -ms-hyphenate-limit-last: always; -moz-hyphenate-limit-last: always; -webkit-hyphenate-limit-last: always; hyphenate-limit-last: always; font-size: 100%; line-height: 1.5; margin: 0; /* RS will override margins anyways */ padding: 0; widows: 2; /* iBooks and Kobo support widows and orphans */ orphans: 2; } /* TYPOGRAPHY */ h1, h2, h3, h4, h5, h6, blockquote p cite, dt, pre, address, table, caption, th, td, .align-left, .align-center, .align-right, .caption, .no-hyphens { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; } h1, h2, h3, h4, h5, h6, dt, hr { page-break-inside: avoid; break-inside: avoid; page-break-after: avoid; break-after: avoid; } h1 { font-size: 1.4375em; line-height: 1.04347826; margin-top: 0em; margin-bottom: 2.08695652em; } h2 { font-size: 1.3125em; line-height: 1.14285714; margin-top: 2.28571429em; margin-bottom: 1.14285714em; } h3 { font-size: 1.125em; line-height: 1.33333333; margin-top: 1.33333333em; margin-bottom: 1.33333333em; } h4 { font-size: 1em; line-height: 1.5; margin-top: 1.5em; margin-bottom: 0em; } h5 { /* Styles */ } h6 { /* Styles */ } p { text-indent: 1.5em; } .footnote { font-size: 0.9375em; line-height: 1.6; margin-top: 0.75em; text-indent: 0; } blockquote { margin: 1.5em 5%; } blockquote p { text-indent: 0; font-style: italic; } blockquote p.par-indent{ text-indent: 0; font-style: italic; } blockquote p i, blockquote p em, blockquote p cite { font-style: normal; } address { /* Styles */ } /* MICRO TYPOGRAPHY */ a { text-decoration: underline; /* Note: KF8 will force this value unless you use "el.class a" */ font-weight: bold; color: inherit; -webkit-text-fill-color: inherit; /* iBooks override (iOS 9 + El Capitan in night mode) */ /* inherit = text color */ } abbr { /* Note: Kindle doesn't support that */ } i, cite, dfn, em { font-style: italic; } /* Get back to normal when italic nested in italic */ i i, i cite, i dfn, i em, cite i, cite cite, cite dfn, cite em, dfn i, dfn cite, dfn dfn, dfn em, em i, em cite, em dfn, em em { font-style: normal; } b, strong { font-weight: bold; } del, s { text-decoration: line-through; } mark { background-color: yellow; color: inherit; } ins { /* Styles */ } small { font-size: 0.8125em; } /* Styling is improved to prevent sub from affecting line-height */ sub { font-size: 75%; line-height: 1.2; vertical-align: sub; /* Fallback */ vertical-align: -20%; } /* Styling is improved to prevent sup from affecting line-height */ sup { font-size: 75%; line-height: 1.2; vertical-align: super; /* Fallback */ vertical-align: 33%; } /* FIGURES + IMAGES */ figure { page-break-inside: avoid; break-inside: avoid; margin: 1.5em 0; } figcaption, .caption { font-size: 0.9375em; line-height: 1.6; margin-top: 0.75em; text-indent: 0; } img { width: auto; max-width: 100%; /* Note: KF8 doesn't support max-width hence "width: auto;" as fallback */ height: auto; object-fit: contain; } /* Note: portrait image styling + figcaption is a nightmare */ /* See https://github.com/jstallent/ImagesSingleFile for the css hack */ img.portrait { width: auto; max-width: 100%; /* Note: KF8 doesn't support max-width hence "width: auto;" as fallback */ height: 100%; /* We try to prevent blank page after */ max-height: 95%; /* Max value iBooks enforces */ } .float-left img, .float-right img { width: 100%; /* If it’s auto, image in floating container will overflow on Kobo iOS + Kindle */ } @supports (height: 99vh) { img.portrait { height: 99vh; } } /* LISTS */ ul, ol { margin: 1.5em 0; padding-left: 5%; } ul { list-style-type: disc; list-style-position: outside; } ul ul { list-style-type: square; } ol { list-style-type: decimal; list-style-position: outside; } ol ol { list-style-type: lower-roman; } /* HORIZONTAL RULES — CONTEXT BREAKS */ hr { width: 25%; margin-left: 37.5%; margin-top: 1.4375em; margin-bottom: 1.4375em; height: 0; border: none; border-top: 0.125em solid currentColor; /* currentColor = color of text (getting around night mode) */ opacity: 0.5; /* Opacity -> grayscale. If opacity is declared for too many elements in a XHTML file, performance of legacy RMSDK takes a hit */ } /* Blank-line context change */ hr.transition { width: 100%; margin: 0; height: 1.5em; border: none; background: none; /* Note: overridden in night mode excepted when using linear-gradient */ } /* Over-engineered asterism with an SVG background which is legacy RMSDK-compliant, reflows with text and is night-mode compatible (black asterisk + white border) */ hr.asterism { width: auto; border: none; margin: 1.5em 0; height: 1.5em; text-indent: 0; text-align: center; background: transparent url("../img/asterism.svg") no-repeat center; /* Change url if you put asterism in a folder */ background-size: 2.5em 1.25em; /* RMSDK doesn't support -> won't scale but SVG viewport is OK for a wide range of font-sizes */ overflow: hidden; /* Fixes legacy RMSDK bug when contents before hr are invisible */ opacity: 0.7; /* Better border color match in night mode (less disruptive) */ } /* IPUB ADDITIONS */ .par-indent { text-indent: 1.5em; } .no-indent { text-indent: 0; margin-top: 0.75em; } .introline { /* Don't use that with span if i, cite, dfn or em can be used */ font-style: italic; margin-bottom: 1.5em; } .author { font-size: 1.4375em; line-height: 1.04347826; margin-top: 1.04347826em; margin-bottom: 3.13043478em; line-height: 200%; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; } .series { font-size: 1.4375em; line-height: 1.04347826; margin-top: 1.04347826em; margin-bottom: 2.08695652em; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; } .title { font-size: 1.625em; line-height: 0.92307692; /* Don't use that with span if b or strong can be used */ font-weight: bold; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; } @supports (padding-top: 20vh) { .title { padding-top: 20vh; } } .subtitle { font-size: 1.4375em; line-height: 1.04347826; margin-top: 1.04347826em; margin-bottom: 2.08695652em; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; } .chapter-heading { margin-top: 3em; margin-bottom: 1.5em; margin-top: 0.75em; text-indent: 0; } .series-heading { margin-top: 1.5em; margin-bottom: 0.75em; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; page-break-after: avoid; break-after: avoid; } .series-slogan { margin-top: 0; margin-bottom: 0.75em; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; /* Don't use that with span if i, cite, dfn or em can be used */ font-style: italic; page-break-after: avoid; break-after: avoid; } .title-listing { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; margin-top: 0; } .quote-src { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: right; margin-top: 0; } .left { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-align: left; } .center { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; } .center-par { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; margin: 0; } .center-par-b-space { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; margin-top: 0; margin-left: 0; margin-right: 0; margin-bottom: 0.75em; } .center-par-t-space { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0.75em; } .center-par-tb-space { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; margin-top: 0.75em; margin-left: 0; margin-right: 0; margin-bottom: 0.75em; } .center-par-tb-extra-space { adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-indent: 0; /* Necessary as RS may define text-indent for p */ text-align: center; margin-top: 1.5em; margin-left: 0; margin-right: 0; margin-bottom: 1.5em; } .italic-par { /* Don't use that with span if i, cite, dfn or em can be used */ font-style: italic; } .fleuron { width: 12%; margin-left: 44%; margin-bottom: 1.5em; } .fleuron img { width: 100%; } h1 + p.par-indent, h2 + p.par-indent, h3 + p.par-indent, p.center-par-tb-space + p.par-indent, p.introline + p.par-indent, div.fleuron + p.par-indent, hr + p.par-indent, p.center-par-tb-extra-space + p.par-indent { margin-top: 0.75em; text-indent: 0; } h1 + p.par-indent:first-line, h2 + p.par-indent:first-line, h3 + p.par-indent:first-line, p.center-par-tb-space + p.par-indent:first-line, p.introline + p.par-indent:first-line, div.fleuron + p.par-indent:first-line, p.center-par-tb-extra-space + p.par-indent:first-line { /* text-transform: lowercase; */ /* Don't rely on this property, text should be typed in uppercase (legacy RMSDK) */ font-variant: small-caps; letter-spacing: 0.0625em; /* The two previous props are not supported in legacy RMSDK */ } .texttop { margin-top: 0.75em; text-indent: 0; margin-top: 1.5em; } .toc-item-1 { margin: 0; margin-top: 0.75em; text-indent: 0; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-align: left; } .toc-item-2 { margin-left: 5%; margin-top: 0.75em; text-indent: 0; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-align: left; } .toc-item-3 { margin-left: 7.5%; margin-top: 0.75em; text-indent: 0; adobe-hyphenate: none; /* proprietary for Legacy RMSDK */ -ms-hyphens: none; -moz-hyphens: none; -webkit-hyphens: none; -epub-hyphens: none; hyphens: none; text-align: left; } @supports (height: 100vh) { /* Can be used for containers and images but Should be used in combination with .portrait if used for img */ } /* Kindle */ /* Note: if there is nothing in those two Kindle queries, ADE (and possibly a ton of apps using legacy RMSDK) will crash. So you'd better get rid of those two queries once your EPUB file is converted to kindle mobi. */ /* Warning: Do NOT use `text-rendering: optimizeLegibility` in Kindle's styles, it is known to create issues with some devices/apps (entire text is replaced with boxes (a.k.a. "missing glyph" symbol) */ @media amzn-kf8 { body { font-weight: normal; /* numeric font weights are problematic for KindleGen, we make sure to "reset" that in case the framework's user use numeric values. */ } b, strong, .bold { font-weight: bold; } h1, h2 { line-height: 1.2; /* Minimum value Kindle supports */ } .w-80 { width: 78%; /* Because Kindle developers… */ margin: 1.5em 11%; } } @media amzn-mobi { body { font-weight: normal; } h1 { font-size: xx-large; /* Keywords offer more precision for mobi 7*/ margin: 0 0 3em 0; /* mobi7 doesn’t support decimal values */ } h2 { font-size: x-large; margin: 2em 0 1em 0; } h3 { font-size: large; margin: 1em 0; } h4 { font-size: medium; margin: 1em 0 0 0; } b { font-weight: bold; } strong { font-weight: bold; } .bold { font-weight: bold; } small { font-size: small; } .small-caps { font-size: small; } sub { font-size: x-small; } sup { font-size: x-small; } hr { margin: 1em 0; } .margin-top-s { margin-top: 1em; } .margin-top-m { margin-top: 2em; } .margin-top-l { margin-top: 3em; } .margin-top-xl { margin-top: 5em; } .margin-top-xxl { margin-top: 6em; } .hanging-indent { margin-left: 0; /* hack for negative text-indent */ } .footnote { font-size: medium; } ul { margin: 1em 0; } ol { margin: 1em 0; } blockquote { margin: 1em 5%; } dl { margin: 1em 5%; } dt { margin-top: 1em; } pre { margin: 1em 0; } table { margin: 1em 0; } .float-left { float: none; /* Mobi 7 doesn’t support float */ margin: 1em 0; text-align: center; } .float-right { float: none; margin: 1em 0; text-align: center; } } /* End CSS */ |
|
![]() |
![]() |
![]() |
#14 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,670
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Spoiler:
Code:
/* Since, at the time of this writing, Macmillan's Word > ePub conversion tool can't yet convert all styles to semantically appropriate elements, the CSS here targets almost every existing style by name. Styles with shared attributes are grouped together as much as possible (e.g. styles that are meant to resolve to specific heading levels, "space before" and "space after" styles, etc), and are otherwise grouped by the categories defined in the Word template. Please note that the Lists section probably has the greatest potential for confusion, and it may need to be updated as the conversion tool is updated. See the comments at the top of that section for more information. -------------------------------------------------- RESET -------------------------------------------------- http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ @font-face { font-family: "noto"; src: url('NotoSansSymbols-Regular.ttf'); } html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1em; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } /* -------------------------------------------------- BASE STYLES -------------------------------------------------- */ body { font-size: medium; line-height: 1.2em; margin-top: 1em; margin-left: 1em; margin-right: 2em; font-family: Georgia,"Times New Roman",Times,serif,"noto",arial,Verdana,sans-serif; color: #000; background-color: #fff; } p+p, p.Text-Standardtx { text-indent: 1.5em; } blockquote { margin: 1em 1.5em; font-style: italic; } aside, .box { padding: 1.5em; border: 2px solid #ccc; margin: 1em 0; } .box { background: #eee; } img { max-width: 100%; max-height: 100%; } pre { margin: 1em 0; white-space: pre-wrap; } em { font-size: inherit; font-style: italic; } strong { font-size: inherit; font-weight: bold; } span, a { font-size: inherit; } /* -------------------------- NO INDENT -------------------------- */ h1+p, *[class^="Head-Level-1"]+p, h2+p, *[class^="Head-Level-2"]+p, h3+p, *[class^="Head-Level-3"]+p, h4+p, *[class^="Head-Level-4"]+p, h5+p, *[class^="Head-Level-5"]+p, h6+p, *[class^="Head-Level-6"]+p, *[class="NoIndent"], *[class*="No-Indent"] { text-indent: 0; } .Text-StdNo-Indenttx1, .ChapOpeningTextNo-Indentcotx1 { text-indent: 0; } /* -------------------------- SPACE BEFORE -------------------------- */ *[class*="SpaceBefore"] { margin-top: 1em; } /* -------------------------- SPACE AROUND -------------------------- */ *[class*="SpaceAround"] { margin-top: 1em; margin-bottom: 1em; } /* -------------------------- SPACE AFTER -------------------------- */ *[class*="SpaceAfter"] { margin-bottom: 1em; } /* -------------------------------------------------- INLINE ELEMENTS -------------------------------------------------- */ a { text-decoration: none; } *[class^="spanitaliccharacters"], *[class^="spansmcapital"], *[class^="spansmcapboldital"], *[class^="spanaltfont1span1"], *[class^="spanaltfont2span2"] { font-style: italic; } .spanitaliccharactersital, .spansmcapitalscital, .spansmcapbolditalscbi, .spanaltfont1span1, .spanaltfont2span2 { font-style: italic; } *[class^="spanboldfacecharacters"], *[class^="spanboldital"], *[class^="spansmcapbold"], *[class^="spansmcapboldital"] { font-weight: bold; } .spanboldfacecharacters, .spanbolditalbem, .spansmcapboldscbold, .spansmcapbolditalscbi { font-weight: bold; } *[class^="spansmallcapscharacters"], *[class^="spansmcapbold"], *[class^="spansmcapital"], *[class^="spansmcapboldital"] { font-size: .75em; text-transform: uppercase; letter-spacing: .08em; } .spansmallcapscharacterssc, .spansmcapboldscbold, .spansmcapitalscital, .spansmcapbolditalscbi { font-size: .75em; text-transform: uppercase; letter-spacing: .08em; } *[class^="spanunderscorecharacters"] { text-decoration: underline; } .spanunderscorecharactersus { text-decoration: underline; } sup, *[class^="spansuperscriptcharacters"] { vertical-align: super; font-size: smaller; } sup, .spansuperscriptcharacterssup { vertical-align: super; font-size: smaller; } sub, *[class^="spansubscriptcharacters"] { vertical-align: sub; font-size: smaller; } sub, .spansuperscriptcharacterssub { vertical-align: sub; font-size: smaller; } *[class^="spankeyphrase"] { } *[class^="spansymbols"] { } *[class^="spanaccentcharacters"] { } *[class^="spanpreservecharacters"] { white-space: pre-wrap; } *[class^="spancross-reference"] { } *[class^="spanmaterialtocome"] { } *[class^="spancarryquery"] { } *[class^="DesignNote"] { } .spanstrikethroughcharactersstr { text-decoration: line-through; } .chapopener { text-transform: uppercase; } *[class*="spanrun-incomputertypecomp"] { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; } .spanrun-incomputertypecomp { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; } /* -------------------------------------------------- HEADINGS -------------------------------------------------- COMBINATIONS -------------------------- */ h1+h2, h1+h3, h1+h4, h1+h5, h1+h6, h2+h3, h2+h4, h2+h5, h2+h6, h3+h4, h3+h5, h3+h6, h4+h5, h4+h6, h5+h6, *[class*="Head-Level-"]+*[class*="Head-Level-"], *[class*="FMLevel-"]+*[class*="FMLevel-"], *[class*="PoemLevel-"]+*[class*="PoemLevel-"], *[class^="RecipeHead"]+*[class^="RecipeSubhead"], *[class*="RecipeLevel-"]+*[class*="RecipeLevel-"], *[class^="Sub-RecipeHead"]+*[class^="Sub-RecipeSubhead"], *[class*="Sub-RecipeLevel-"]+*[class*="Sub-RecipeLevel-"], *[class^="BoxHead"]:first-child, *[class^="BoxHead-Level-1"]:first-child, *[class^="BoxHead-Level-2"]:first-child, *[class^="BoxHead-Level-3"]:first-child, *[class^="BoxHead-Level-4"]:first-child, *[class^="BoxHead-Level-5"]:first-child, *[class^="SidebarHead"]:first-child, *[class^="SidebarHead-Level-1"]:first-child, *[class^="SidebarHead-Level-2"]:first-child, *[class^="SidebarHead-Level-3"]:first-child, *[class^="SidebarHead-Level-4"]:first-child, *[class^="SidebarHead-Level-5"]:first-child, *[class^="BoxHead"]+*[class^="BoxSubhead"], *[class^="BoxHead"]+*[class*="BoxHead-Level-"], *[class*="BoxHead-Level-"]+*[class*="BoxHead-Level-"], *[class^="SidebarHead"]+*[class^="SidebarSubhead"], *[class^="SidebarHead"]+*[class*="SidebarHead-Level-"], *[class*="SidebarHead-Level-"]+*[class*="SidebarHead-Level-"], *[class^="TableNumber"]+*[class^="TableHead"], *[class^="ChartNumber"]+*[class^="ChartHead"], *[class^="ChartHead"]:first-child, *[class^="ChartHead"]+*[class^="ChartSubhead"], *[class^="ChartHead"]+*[class*="ChartLevel-"], *[class*="ChartLevel-"]+*[class*="ChartLevel-"], *[class^="TableHead"]+*[class^="TableSubhead"], *[class^="FigureNumber"]+*[class^="FigureHead"], *[class^="FigureHead"]+*[class^="FigureSubhead"], *[class^="FigureHead"]+*[class*="FigureLevel-"], *[class*="FigureLevel-"]+*[class*="FigureLevel-"], *[class*="AppendixLevel-"]+*[class*="AppendixLevel-"], *[class*="NoteLevel-"]+*[class*="NoteLevel-"], *[class*="BiblioLevel-"]+*[class*="BiblioLevel-"], *[class*="BOBAdLevel-"]+*[class*="BOBAdLevel-"] { margin-top: 0; } /* -------------------------- H1 -------------------------- */ h1, .Head-Level-1h1 { text-indent: 0; font-size: 1.5em; line-height: 1.25em; margin: .66666666666667em 0; } *[class*="Level-1Subhead"], *[class^="FrontSalesTitle"], *[class^="AdCardMainHead"], *[class^="HalftitleBookTitle"], *[class^="TitlepageBookTitle"], *[class^="TOCFrontmatterHead"], *[class^="TOCPartTitle"], *[class^="TOCChapterTitle"], *[class^="TOCLevel-1ChapterHead"], *[class^="FMHead"], *[class^="FMTitle"], *[class^="FMHeadALT"], *[class^="PartNumber"], *[class^="PartTitle"], *[class^="ChapNumber"], *[class^="ChapTitle"], *[class^="VolumeNumber"], *[class^="VolumeTitle"], *[class^="CollectionBookNumber"], *[class^="CollectionBookTitle"], *[class^="Head-Level-1"], *[class^="BoxHead-Level-1"], *[class^="SidebarHead-Level-1"], *[class^="TableNumber"], *[class^="ChartNumber"], *[class^="FigureNumber"], *[class^="BMHead"], *[class^="BMTitle"], *[class^="BMHeadALT"], *[class^="AppendixHead"], *[class^="BOBAdTitle"] { text-indent: 0; font-size: 1.5em; line-height: 1.25em; margin: .66666666666667em 0; } *[class^="TOCFrontmatterHead"], *[class^="TOCBackmatterHead"], *[class^="TOCPartNumber"], *[class^="TOCChapterNumber"], *[class^="PartNumber"], *[class^="ChapNumber"], *[class^="VolumeNumber"], *[class^="CollectionBookNumber"], *[class^="TableNumber"], *[class^="ChartNumber"], *[class^="FigureNumber"] { font-size: 1em; text-align: center; text-transform: uppercase; letter-spacing: .2em; padding: .5em; margin-top: 0; } .TOCFrontmatterHeadcfmh, .TOCBackmatterHeadcbmh, .TOCPartNumbercpn, .TOCChapterNumberccn, .PartNumberpn, .ChapNumbercn, .VolumeNumbervoln, .CollectionBookNumberbkn, .TableNumbertn, .ChartNumbercrn, .FigureNumberfgn { font-size: 1em; text-align: center; text-transform: uppercase; letter-spacing: .2em; padding: .5em; margin-top: 0; } *[class^="TOCPartNumber"], *[class^="TOCFrontmatterHead"], *[class^="TOCBackmatterHead"], *[class^="PartNumber"], *[class^="VolumeNumber"], *[class^="CollectionBookNumber"] { /*background: #999;*/ } *[class^="TOCChapterNumber"], *[class^="ChapNumber"], *[class^="TableNumber"], *[class^="ChartNumber"], *[class^="FigureNumber"] { /*background: #eee;*/ /* margin-top: 3em; */ } *[class^="TableNumber"], *[class^="ChartNumber"], *[class^="FigureNumber"] { color: #999; margin-top: 1em; margin-bottom: 0; } *[class^="FrontSalesTitle"], *[class^="AdCardMainHead"], *[class^="HalftitleBookTitle"], *[class^="TitlepageBookTitle"], *[class^="PartTitle"], *[class^="ChapTitle"], *[class^="VolumeTitle"], *[class^="CollectionBookTitle"] { text-align: center; } .FrontSalesTitlefst, .AdCardMainHeadacmh, .HalftitleBookTitlehtit, .TitlepageBookTitletit, .PartTitlept, .ChapTitlect, .VolumeTitlevolt, .CollectionBookTitlebkt { text-align: center; } *[class^="PartTitle"], *[class^="ChapTitle"], *[class^="VolumeTitle"], *[class^="CollectionBookTitle"] { margin-bottom: 3.00em; } .PartTitlept, .ChapTitlect, .VolumeTitlevolt, .CollectionBookTitlebkt { margin-bottom: 3.00em; } /* -------------------------- H2 -------------------------- */ h2 { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; font-weight: bold; margin: 1em 0 0 0; } .PartSubtitlepst, .ChapSubtitlecst { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; font-weight: bold; margin: 1em 0 0 0; } *[class*="Level-2Subhead"], *[class^="FrontSalesSubtitle"], *[class^="AdCardSubhead"], *[class^="TitlepageBookSubtitle"], *[class^="FMSubhead"], *[class^="TOCChapterSubtitle"], *[class^="PartSubtitle"], *[class^="ChapSubtitle"], *[class^="Head-Level-2"], *[class^="BoxHead-Level-2"], *[class^="SidebarHead-Level-2"], *[class^="BMSubhead"], *[class^="AppendixSubhead"], *[class^="IndexInternalSubhead"], *[class^="BOBAdSubtitle"] { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; font-weight: bold; margin: 1em 0 0 0; } .FrontSalesSubtitlefsst, .AdCardSubheadacsh, .TitlepageBookSubtitlestit, .PartSubtitlepst, .ChapSubtitlecst, .BOBAdSubtitlebobst { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; font-weight: bold; margin: 1em 0 0 0; } *[class^="FrontSalesSubtitle"], *[class^="AdCardSubhead"], *[class^="TitlepageBookSubtitle"], *[class^="PartSubtitle"], *[class^="ChapSubtitle"] { text-align: center; margin-bottom: 1em; } .FrontSalesSubtitlefsst, .AdCardSubheadacsh, .TitlepageBookSubtitlestit, .PartSubtitlepst, .ChapSubtitlecst { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; font-weight: bold; margin: 1em 0 1em 0; text-align: center; } .PartSubtitlepst, .ChapSubtitlecst { text-align: center; margin-bottom: 1em; } *[class^="PartSubtitle"], *[class^="ChapSubtitle"] { text-align: center; margin-bottom: 1.00em; } .PartSubtitlepst:after, .ChapSubtitlecst:after { text-align: center; margin-bottom: 1.00em; } /* -------------------------- H3 -------------------------- */ h3 { text-indent: 0; font-weight: bold; margin: 1em 0 0 0; } *[class*="Level-3Subhead"], *[class^="FrontSalesQuoteHead"], *[class^="PartContentsMainHead"], *[class^="Head-Level-3"], *[class^="IngredientsHead"], *[class^="Sub-RecipeIngredientsHead"], *[class^="Menu"], *[class^="RecipeVarHead"], *[class^="RecipeNoteHead"], *[class^="Extract-NoteHead"], *[class^="BoxHead-Level-3"], *[class^="SidebarHead-Level-3"], *[class^="GlossaryTerm"], *[class^="BOBAdQuoteHead"] { text-indent: 0; font-weight: bold; margin: 1em 0 0 0; } .BOBAdQuoteHeadbobqh { text-indent: 0; font-weight: bold; margin: 1em 0 0 0; } /* -------------------------- H4 -------------------------- */ h4 { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; margin: 1em 0 0 0; } *[class*="Level-4Subhead"], *[class^="PartContentsHead"], *[class^="Head-Level-4"], *[class^="BoxHead-Level-4"], *[class^="SidebarHead-Level-4"] { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; margin: 1em 0 0 0; } /* -------------------------- H5 -------------------------- */ h5 { text-indent: 0; font-style: italic; margin: 1em 0 0 0; } *[class*="Level-5Subhead"], *[class^="Head-Level-5"], *[class^="ExtractHead"], *[class^="PoemTitle"], *[class^="RecipeHead"], *[class^="Sub-RecipeHead"], *[class^="BoxHead"], *[class^="BoxHead-Level-5"], *[class^="SidebarHead"], *[class^="SidebarHead-Level-5"], *[class^="ChartHead"], *[class^="FigureHead"], *[class^="TableHead"] { text-indent: 0; font-style: italic; margin: 1em 0 0 0; } *[class^="ExtractHead"], *[class^="PoemTitle"], *[class^="RecipeHead"], *[class^="Sub-RecipeHead"], *[class^="BoxHead"], *[class^="SidebarHead"], *[class^="ChartHead"], *[class^="TableHead"], *[class^="FigureHead"] { font-size: 1em; background: #ccc; } /* -------------------------- H6 -------------------------- */ h6 { text-indent: 0; font-size: .75em; text-transform: uppercase; letter-spacing: .1em; margin: 1em 0 0 0; } *[class^="Head-Level-6"], *[class^="PoemSubtitle"], *[class^="PoemNumericSubhead"], *[class^="RecipeSubhead"], *[class^="Sub-RecipeSubhead"], *[class^="BoxSubhead"], *[class^="SidebarSubhead"], *[class^="TableSubhead"], *[class^="ChartSubhead"], *[class^="FigureSubhead"] { text-indent: 0; font-size: .75em; text-transform: uppercase; letter-spacing: .1em; margin: 1em 0 0 0; } *[class^="PoemSubtitle"], *[class^="RecipeSubhead"], *[class^="Sub-RecipeSubhead"], *[class^="BoxSubhead"], *[class^="SidebarSubhead"], *[class^="TableSubhead"], *[class^="ChartSubhead"], *[class^="FigureSubhead"] { border-bottom: 2px solid #ccc; margin-bottom: 1em; } /* -------------------------------------------------- FRONT SALES -------------------------------------------------- */ *[class^="FrontSalesText"], *[class^="FrontSalesTextNoIndent"] { } *[class^="FrontSalesQuote"], *[class^="FrontSalesQuoteNoIndent"] { font-style: italic; } /* -------------------------------------------------- AD CARD -------------------------------------------------- */ *[class^="AdCardListofTitle"] { text-indent: 0; text-align: center; } .AdCardListofTitlesacl { text-indent: 0; text-align: center; } /* -------------------------------------------------- TITLE PAGE -------------------------------------------------- */ *[class^="TitlepageAuthorName"], *[class^="TitlepageContributorName"], *[class^="TitlepageTranslatorName"], *[class^="TitlepageSeriesTitle"], *[class^="TitlepageReadingLine"], *[class^="TitlepageImprintLine"], *[class^="TitlepagePublisherName"], *[class^="TitlepageCities"], *[class^="TitlepageLogo"] { text-indent: 0; text-align: center; margin: 1em 0; } /* for kindle eink */ .TitlepageAuthorNameau, .TitlepageContributorNamecon, .TitlepageTranslatorNametran, .TitlepageSeriesTitleser, .TitlepageReadingLinerl, .TitlepageImprintLineimp, .TitlepagePublisherNamepub, .TitlepageCitiescit, .TitlepageLogologo { text-indent: 0; text-align: center; margin: 1em 0; } section[data-type="titlepage"] { text-align: center; } section[data-type="titlepage"] img { text-align: center; width: auto; } /* -------------------------------------------------- COPYRIGHT PAGE -------------------------------------------------- */ *[class^="CopyrightTextsinglespace"], *[class^="CopyrightTextdoublespace"] { font-size: .75em; text-indent: 0; } *[class^="CopyrightTextdoublespace"] { margin: 1em 0; } .CopyrightTextsinglespacecrtx, .CopyrightTextdoublespacecrtxd { font-size: .75em; text-indent: 0; } .CopyrightTextdoublespacecrtxd { margin: 1em 0; } /* -------------------------------------------------- DEDICATION PAGE -------------------------------------------------- */ .Dedicationded, .DedicationAuthordedau { text-indent: 0; text-align: center; margin-left: 1.5em; margin-right: 1.5em; font-style: italic; } *[class^="Dedication"], *[class^="DedicationAuthor"] { text-indent: 0; text-align: center; margin-left: 1.5em; margin-right: 1.5em; } .Dedicationded { font-style: italic; } *[class^="Dedicationd"] { font-style: italic; } .DedicationAuthordedau { margin-top: 1em; } *[class^="DedicationAuthor"] { margin-top: 1em; } section[data-type="dedication"] blockquote[data-type="epigraph"] { page-break-before: always; margin-top: 2em; } .Dedicationded + p[class*="Epigraph"], .DedicationAuthordedau + p[class*="Epigraph"] { page-break-before: always; margin-top: 2em; } *[class^="Dedication"] + p[class*="Epigraph"] { page-break-before: always; margin-top: 2em; } /* -------------------------------------------------- EPIGRAPH PAGE (AND OTHER EPIGRAPHS) -------------------------------------------------- */ blockquote[data-type="epigraph"] { margin: 2em 1.5em; } *[class^="Epigraph-non-verse"], *[class^="Epigraph-verse"], *[class^="FMEpigraphnon-verse"], *[class^="FMEpigraph-verse"], *[class^="PartEpigraph-non-verse"], *[class^="PartEpigraph-verse"], *[class^="ChapEpigraph-non-verse"], *[class^="ChapEpigraph-verse"], *[class^="EpigraphinText-non-verse"], *[class^="EpigraphinText-verse"], *[class^="PoemEpigraph-non-verse"], *[class^="PoemEpigraph-verse"], *[class^="BoxEpigraph-non-verse"], *[class^="BoxEpigraph-verse"], *[class^="SidebarEpigraph-non-verse"], *[class^="SidebarEpigraph-verse"] { font-style: italic; } .Epigraph-non-verseepi, .Epigraph-verseepiv, .FMEpigraph-non-versefmepi, .FMEpigraph-versefmepiv, .PartEpigraph-non-versepepi, .PartEpigraph-versepepiv, .ChapEpigraph-non-versecepi, .ChapEpigraph-versecepiv, .EpigraphinText-non-versetepi, .EpigraphinText-versetepiv, .PoemEpigraph-non-versevepi, .PoemEpigraph-versevepiv, .BoxEpigraph-non-versebepi, .BoxEpigraph-versebepiv, .SidebarEpigraph-non-versesbepi, .SidebarEpigraph-versesbepiv { font-style: italic; } *[class^="EpigraphSource"], *[class^="ExtractSource"], *[class^="FMEpigraphSource"], *[class^="PartEpigraphSource"], *[class^="ChapEpigraphSource"], *[class^="EpigraphinText-Source"], *[class^="PoemEpigraphSource"], *[class^="BoxEpigraphSource"], *[class^="SidebarEpigraphSource"], *[class^="FrontSalesQuoteSource"], *[class^="BOBAdQuoteSource"] { text-align: right; text-indent: 0; font-style: normal; font-size: .75em; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; } .EpigraphSourceeps, .ExtractSourceexts, .FMEpigraphSourcefmeps, .PartEpigraphSourcepeps, .ChapEpigraphSourceceps, .EpigraphinText-Sourceteps, .PoemEpigraphSourceveps, .BoxEpigraphSourcebeps, .SidebarEpigraphSourcesbeps, .FrontSalesQuoteSourcefsqs, .BOBAdQuoteSourcebobqs { text-align: right; text-indent: 0; font-style: normal; font-size: .75em; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; } .ChapEpigraphSourceceps { text-align: right; } /* -------------------------------------------------- CONTENTS PAGE -------------------------------------------------- */ *[class^="TOCAuthor"], *[class^="TOCPartNumber"], *[class^="TOCPartTitle"], *[class^="TOCChapterNumber"], *[class^="TOCChapterTitle"], *[class^="TOCChapterSubtitle"], *[class^="TOCLevel-1ChapterHead"], *[class^="TOCBackmatterHead"], *[class^="TOCPageNumber"] { list-style: none; text-indent: 0; text-align: center; } *[class^="TOCAuthor"] { font-style: italic; margin: 1em 0; } *[class^="TOCPartNumber"], *[class^="TOCChapterNumber"] { margin-left: 15%; margin-right: 15%; } *[class^="TOCFrontmatterHead"], *[class^="TOCPartTitle"], *[class^="TOCChapterTitle"], *[class^="TOCLevel-1ChapterHead"], *[class^="TOCBackmatterHead"], *[class^="TOCPartNumber"], *[class^="TOCChapterNumber"], *[class^="TOCChapterSubtitle"], *[class^="TOCAuthor"], *[class^="TOCPageNumber"] { display: none; } /* -------------------------------------------------- OTHER FRONTMATTER -------------------------------------------------- */ *[class^="FMTitle"], *[class^="FMAuthorName"], *[class^="FMAuthorSignature"], *[class^="FMDramatisPersonae"] { text-indent: 0; margin: 1em 0; } *[class^="FMHead"], *[class^="FMTitle"], *[class^="FMSubhead"], *[class^="FMAuthorName"], *[class^="FMHeadALT"] { text-align: center; } *[class^="FMHeadALT"], *[class^="FMTextALT"], *[class^="FMTextNo-IndentALT"] { font-family: Helvetica,Arial,sans-serif; } *[class^="FMAuthorSignature"] { font-style: italic; } *[class^="FMDramatisPersonae"] { text-transform: uppercase; letter-spacing: .075em; } /* -------------------------------------------------- PART OPENERS -------------------------------------------------- */ *[class^="PartOrnament"], *[class^="PartOrnamentALT"], *[class^="PartContentsMainHead"], *[class^="PartContentsHead"] { text-indent: 0; text-align: center; margin: 1em 0; } *[class^="PartOrnament"]:before, *[class^="PartOrnamentALT"]:before { display: block; font-size: 1.125em; } *[class^="PartOrnament"]:before { content: "\2766"; /* U+2766 "floral heart" */ } *[class^="PartOrnamentALT"]:before { content: "\2756"; /* U+2756 "black diamond minus white" */ } /* -------------------------------------------------- CHAPTER OPENERS -------------------------------------------------- */ .ChapAuthorca, .Dateline-Chapterdl, .ChapOrnamentcorn, .ChapOrnamentALTcorn2 { text-align: center; text-indent: 0; margin: 1em 0; } *[class^="ChapAuthor"], *[class^="Dateline-Chapter"], *[class^="ChapOrnament"], *[class^="ChapOrnamentALT"] { text-align: center; text-indent: 0; margin: 1em 0; } *[class^="ChapOrnament"]:before, *[class^="ChapOrnamentALT"]:before { display: block; font-size: 1.125em; } .ChapOrnamentcorn:before, .ChapOrnamentALTcorn2:before { display: block; font-size: 1.125em; } .ChapOrnamentcorn:before { content: "\2766"; /* U+2766 "floral heart" */ } *[class^="ChapOrnament"]:before { content: "\2766"; /* U+2766 "floral heart" */ } *[class^="ChapOrnamentALT"]:before { content: "\2756"; /* U+2756 "black diamond minus white" */ } .ChapOrnamentALTcorn2:before { content: "\2756"; /* U+2756 "black diamond minus white" */ } .TeaserOpeningTexttotx, .TeaserOpeningTextNo-Indenttotx1 { text-align: center; text-indent: 0; font-size: 1.2em; margin-bottom: 0.75em; } /* -------------------------------------------------- TEXT -------------------------------------------------- */ *[class^="Text-ComputerType"], *[class^="Text-ComputerTypeNo-Indent"] { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; } *[class^="Text-StandardALT"], *[class^="Text-StdNo-IndentALT"] { font-family: Helvetica,Arial,sans-serif; } .Text-ComputerTypecom, .Text-ComputerTypeNo-Indentcom1 { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; } .Text-StandardALTatx, .Text-StdNo-IndentALTatx1 { font-family: Helvetica,Arial,sans-serif; font-size: 0.9em; } .Text-StandardALTatx, .Text-StdNo-IndentALTatx1 { margin-top: 1em; } .Text-StandardALTatx + .Text-StandardALTatx, .Text-StandardALTatx + .Text-StdNo-IndentALTatx1, .Text-StdNo-IndentALTatx1 + .Text-StandardALTatx, .Text-StdNo-IndentALTatx1 + .Text-StdNo-IndentALTatx1 { margin-top: 0; } /* -------------------------------------------------- DISPLAY TEXT -------------------------------------------------- */ *[class^="InitialCap"] { } *[class^="DisplayPhrase"] { clear: both; color: #999; font-size: 1.125em; font-style: italic; text-indent: 0; text-align: center; padding: .5em; background: #eee; margin: 1em 0; } *[class^="Storydateline"], *[class^="Storylocationline"] { text-indent: 0; font-variant: small-caps; /* ALTERNATE: font-size: .75em; text-transform: uppercase; */ letter-spacing: .1em; margin: 1em 0; } /* -------------------------------------------------- SPACE BREAKS -------------------------------------------------- */ .SpaceBreak, .SectionBreaksbr, .SpaceBreakwithOrnamentorn, .SpaceBreakwithALTOrnamentorn2, .PartStartpts, .PartEndpte, .PageBreakpb, .SpaceBreak-1-Linels1, .SpaceBreak-2-Linels2, .SpaceBreak-3-Linels3 { text-indent: 0; text-align: center; } *[class^="SpaceBreak"], *[class^="SectionBreak"], *[class^="SpaceBreakwithOrnament"], *[class^="SpaceBreakwithALTOrnament"], *[class^="PartStart"], *[class^="PartEnd"], *[class^="PageBreak"], *[class^="SpaceBreak-1-Line"], *[class^="SpaceBreak-2-Line"], *[class^="SpaceBreak-3-Line"] { text-indent: 0; text-align: center; } *[class^="SpaceBreak"], *[class^="SectionBreak"], *[class^="SpaceBreakwithOrnament"], *[class^="SpaceBreakwithALTOrnament"], *[class^="SpaceBreak-1-Line"] { margin: 1em 0; } .SpaceBreak, .SectionBreaksbr, .SpaceBreakwithOrnamentorn, .SpaceBreakwithALTOrnamentorn2, .SpaceBreak-1-Linels1 { margin: 1em 0 2em 0; } *[class^="SpaceBreak-2-Line"] { margin: 1em 0 2em 0; } .SpaceBreak-2-Linels2 { margin: 1em 0 2em 0; } *[class^="SpaceBreak-3-Line"] { margin: 1em 0 3em 0; } .SpaceBreak-3-Linels3 { margin: 1em 0 3em 0; } *[class^="Dateline-Text"] { text-indent: 0; font-variant: small-caps; /* ALTERNATE: font-size: .75em; text-transform: uppercase; */ letter-spacing: .1em; margin: 1em 0; } *[class^="SpaceBreakwithOrnament"], *[class^="SpaceBreakwithALTOrnament"] { display: block; font-size: 1.125em; } .SpaceBreakwithOrnamentorn, .SpaceBreakwithALTOrnamentorn2 { display: block; font-size: 1.125em; } /**[class^="SpaceBreakwithOrnament"] { content: "\2766"; /* U+2766 "floral heart" } .SpaceBreakwithOrnamentorn { content: "\2766"; /* U+2766 "floral heart" } *[class^="SpaceBreakwithALTOrnament"] { content: "\2756"; /* U+2756 "black diamond minus white" } .SpaceBreakwithALTOrnamentorn2 { content: "\2756"; /* U+2756 "black diamond minus white" }*/ *[class^="BookmakerPageBreak"] { page-break-after: always; } .BookmakerPageBreakbr { page-break-after: always; } p.SpaceBreak-PrintOnlypo { display: none; } /* -------------------------------------------------- EXTRACTS -------------------------------------------------- */ .Extractext, .Extract-Newspapernews, .Extract-Diaryextd, .Extract-Transcripttrans, .Extract-NoIndentext1, .Extract-BulletListextbl, .Extract-NumListextnl, .ExtractHeadexth, .Extract-VerseorPoetryextv, .Extract-Noteextn, .Extract-NoteHeadextnh, .Extract-Headlineexthl, .Extract-Emailextem, .Extract-EmailHeadingemh, .Extract-Websiteextws, .Extract-SongLyricextsl, .Extract-BusinessCardextbc, .Extract-Telegramtel, .Extract-Inscriptionins, .Extract-ScheduleofEventssch { font-style: italic; } .Extract-NoIndentext1, .Extract-BulletListextbl, .Extract-NumListextnl, .ExtractHeadexth, .Extract-VerseorPoetryextv, .Extract-NoteHeadextnh, .Extract-Headlineexthl, .Extract-EmailHeadingemh, .Extract-SongLyricextsl, .Extract-BusinessCardextbc, .Extract-ScheduleofEventssch { text-indent: 0; } .Extractext em, .Extract-Newspapernews em, .Extract-Diaryextd em, .Extract-Transcripttrans em, .Extract-NoIndentext1 em, .Extract-BulletListextbl em, .Extract-NumListextnl em, .ExtractHeadexth em, .Extract-VerseorPoetryextv em, .Extract-Noteextn em, .Extract-NoteHeadextnh em, .Extract-Headlineexthl em, .Extract-Emailextem em, .Extract-EmailHeadingemh em, .Extract-Websiteextws em, .Extract-SongLyricextsl em, .Extract-BusinessCardextbc em, .Extract-Telegramtel em, .Extract-Inscriptionins em, .Extract-ScheduleofEventssch em { font-style: normal; } *[class^="Extract"], *[class*="Extract"] { font-style: italic; } .Extract-Headlineexthl, .Extract-EmailHeadingemh { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; } *[class^="Extract-Headline"], *[class^="Extract-EmailHeading"] { text-indent: 0; text-transform: uppercase; letter-spacing: .075em; } .Extract-Telegramtel { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; text-transform: uppercase; } *[class^="Extract-Telegram"] { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; text-transform: uppercase; } /* for kindle */ blockquote p:first-child { margin-left: 0; } /* -------------------------------------------------- LETTERS -------------------------------------------------- */ .LetterExtHeadnotehn { text-transform: uppercase; letter-spacing: .075em; } *[class^="LetterExtHeadnote"] { text-transform: uppercase; letter-spacing: .075em; } .LetterExtHeadnotehn+p, .LetterExtAddressladd, .LetterExtSalutationlsa, .LetterExtClosinglcl, .LetterExtSignaturelsig, .LetterExtPostscriptlps { text-indent: 0; } *[class^="LetterExtHeadnote"]+p, *[class^="LetterExtAddress"], *[class^="LetterExtSalutation"], *[class^="LetterExtClosing"], *[class^="LetterExtSignature"], *[class^="LetterExtPostscript"] { text-indent: 0; } .LetterExtDatelineldl { margin: 1em 0; } *[class^="LetterExtDateline"] { margin: 1em 0; } p+.LetterExtSalutationlsa, .LetterExtClosinglcl, .LetterExtSignaturelsig, .LetterExtPostscriptlps { margin-top: 1em; } p+*[class^="LetterExtSalutation"], *[class^="LetterExtClosing"], *[class^="LetterExtSignature"], *[class^="LetterExtPostscript"] { margin-top: 1em; } .LetterExtClosinglcl+.LetterExtSignaturelsig { margin-top: 0; } *[class^="LetterExtClosing"]+*[class^="LetterExtSignature"] { margin-top: 0; } /* -------------------------------------------------- SCREENPLAY -------------------------------------------------- */ .ScreenplayDramatisPersonaedp, .ScreenplayHeadsph, .ScreenplaySubheadspsh, .ScreenplaySpeakers, .ScreenplayTextsptx, .ScreenplayTextNo-Indentsptx1, .ScreenplayStageDirectionsd, .ScreenplayExtractsp { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; font-style: normal; text-indent: 0; } *[class*="Screenplay"] { font-family: "Courier New",monospace,Georgia,"Times New Roman",sans-serif; font-style: normal; text-indent: 0; } .ScreenplayDramatisPersonaedp, .ScreenplayHeadsph, .ScreenplaySubheadspsh, .ScreenplaySpeakers { text-transform: uppercase; } *[class^="ScreenplayDramatisPersonae"], *[class^="ScreenplayHead"], *[class^="ScreenplaySubhead"], *[class^="ScreenplaySpeaker"] { text-transform: uppercase; } .ScreenplayHeadsph, .ScreenplaySubheadspsh { margin-top: 1em; margin-bottom: 1em; } *[class^="ScreenplayHead"], *[class^="ScreenplaySubhead"] { margin-top: 1em; margin-bottom: 1em; } .ScreenplaySpeakers { text-align: center; margin-top: 1em; } *[class^="ScreenplaySpeaker"] { text-align: center; margin-top: 1em; } .ScreenplaySpeakers, .ScreenplayTextsptx, .ScreenplayTextNo-Indentsptx1 { margin-left: 3em; margin-right: 3em; } *[class^="ScreenplaySpeaker"], *[class^="ScreenplayText"], *[class^="ScreenplayTextNo-Indent"] { margin-left: 3em; margin-right: 3em; } .ScreenplayStageDirectionsd { font-style: italic; margin: 1em 0; } *[class^="ScreenplayStageDirection"] { font-style: italic; margin: 1em 0; } .ScreenplayTextsptx { text-indent: 1.5em; } *[class^="ScreenplayText"] { text-indent: 1.5em; } /* -------------------------------------------------- POETRY -------------------------------------------------- */ .PoemTitlevt+.PoemSubtitlevst { margin-top: 0; } *[class^="PoemTitle"]+*[class^="PoemSubtitle"] { margin-top: 0; } .PoemDedicationvded { font-style: italic; font-variant: normal; text-transform: none; letter-spacing: 0; } *[class^="PoemDedication"] { font-style: italic; font-variant: normal; text-transform: none; letter-spacing: 0; } .VerseTextvtx, .Epigraph-verseepiv, .FMEpigraph-versefmepiv, .PartEpigraph-versepepiv, .ChapEpigraph-versecepiv, .Extract-VerseorPoetryextv, .Extract-SongLyricextsl, .EpigraphinText-versetepiv, .PoemEpigraph-versevepiv, .BoxEpigraph-versebepiv, .BoxExtract-Versebextv, .SidebarEpigraph-versesbepiv, .SidebarExtract-Versesbextv, .Example-Versevexa { margin-left: 1.5em; text-indent: -1.5em; } *[class^="VerseText"], *[class^="Epigraph-verse"], *[class^="FMEpigraph-verse"], *[class^="PartEpigraph-verse"], *[class^="ChapEpigraph-verse"], *[class^="Extract-VerseorPoetry"], *[class^="Extract-SongLyric"], *[class^="EpigraphinText-verse"], *[class^="PoemEpigraph-verse"], *[class^="BoxEpigraph-verse"], *[class^="BoxExtract-Verse"], *[class^="SidebarEpigraph-verse"], *[class^="SidebarExtract-Verse"], *[class^="Example-Verse"] { margin-left: 1.5em; text-indent: -1.5em; } blockquote .VerseTextvtx:first-child, blockquote .Epigraph-verseepiv:first-child, blockquote .FMEpigraph-versefmepiv:first-child, blockquote .PartEpigraph-versepepiv:first-child, blockquote .ChapEpigraph-versecepiv:first-child, blockquote .Extract-VerseorPoetryextv:first-child, blockquote .Extract-SongLyricextsl:first-child, blockquote .EpigraphinText-versetepiv:first-child, blockquote .PoemEpigraph-versevepiv:first-child, blockquote .BoxEpigraph-versebepiv:first-child, blockquote .BoxExtract-Versebextv:first-child, blockquote .SidebarEpigraph-versesbepiv:first-child, blockquote .SidebarExtract-Versesbextv:first-child, blockquote .Example-Versevexa:first-child { margin-left: 1.5em; } blockquote *[class*="-verse"]:first-child, blockquote *[class*="Verse"]:first-child, blockquote *[class^="Extract-SongLyric"]:first-child { margin-left: 1.5em; } .VerseRun-inTextvrtx, .VerseRun-inTextNo-Indentvrtx1 { text-indent: 0; margin-left: 1.5em; } *[class^="VerseRun-inText"] { text-indent: 0; margin-left: 1.5em; } .PoemDatelinevdl, .PoemDedicationvded { text-indent: 0; margin: 1em 0; } *[class^="PoemDateline"], *[class^="PoemDedication"] { text-indent: 0; margin: 1em 0; } /* -------------------------------------------------- LISTS -------------------------------------------------- All list styles are included here. Since some classes convert as p elements rather than li, they need to be explicitly told to behave like list items. Here is an example of the markup and the basic CSS that would apply to it: <p class="BulletListItem">foo</p> [class^="BulletListItem"] { display: list-item; list-style: disc outside; } Other styles are already converting semantically, but they still include a p element, like so: <ul> <li class="BulletListItem"> <p class="BulletListItem">foo</p> </li> </ul> So, in this case, all the rules of ".BulletListItem" will be applied to both the li and the p, which means there will be multiple bullets for each list item. This is why styles that are converting this way are commented out – so that the list style will be applied to the li but not the p. As the conversion tool is updated to accommodate more of the list styles below, their class names will each need to be commented out (or deleted) to avoid the problem of redundant list markers. Note also that ordered lists include the numbers in the text, which is why they have a list-style-type of "none". */ *[class^="ListHead"] { font-weight: bold; text-indent: 0; margin: 1em 0; } ul, ol { margin: 1em 0; } li, /* [class^="ListNum"], [class^="ListNumSubentry"], */ *[class^="ListAlpha"], /* *[class^="ListAlphaSubentry"], *[class^="ListBullet"], *[class^="ListBulletSubentry"], *[class^="ListUnnum"], *[class^="ListUnnumSubentry"], */ *[class^="NumberedParagraph"], *[class^="BulletedParagraph"], /* *[class^="Extract-NumList"], *[class^="Extract-BulletList"], */ *[class^="IngredientsList"], *[class^="Sub-RecipeIngredientsList"] /* *[class^="BoxListNumb"], *[class^="BoxListBullet"], *[class^="BoxListUnnum"], *[class^="SidebarListNum"], *[class^="SidebarListBullet"], *[class^="SidebarListUnnum"], *[class^="AppendixListNum"], *[class^="AppendixListUnnum"], *[class^="AppendixListBullet"] */ { display: list-item; list-style-position: outside; margin-left: 1.5em; text-indent: 0; } li ul, li ol { margin: 0; } ul li, /* *[class^="ListBullet"], *[class^="ListUnnum"], */ *[class^="BulletedParagraph"], /* *[class^="Extract-BulletList"], */ *[class^="IngredientsList"], *[class^="Sub-RecipeIngredientsList"] /* *[class^="BoxListBullet"], *[class^="BoxListUnnum"], *[class^="SidebarListBullet"], *[class^="SidebarListUnnum"], *[class^="AppendixListUnnum"], *[class^="AppendixListBullet"] */ { list-style-type: disc; } li ul li, *[class^="ListBulletSubentry"], *[class^="ListUnnumSubentry"] { list-style-type: square; } ol li, /* *[class^="ListNum"], *[class^="ListNumSubentry"], */ *[class^="ListAlpha"], /* *[class^="ListAlphaSubentry"], */ *[class^="NumberedParagraph"] /* *[class^="Extract-NumList"], *[class^="BoxListNum"], *[class^="SidebarListNum"], *[class^="AppendixListNum"] */ { /*list-style-type: decimal;*/ list-style-type: none; margin-top: 0.5em; } .NumberedParagraphsnp { list-style-type: none; margin-top: 0.5em; } li ol li /* *[class^="ListNumSubentry"], *[class^="ListAlphaSubentry"], */ { border-bottom: none; } /* *[class^="ListNumSubentry"] { list-style-type: lower-roman; } *[class^="ListAlpha"] { list-style-type: upper-alpha; } li[class^="ListAlphaSubentry"] { list-style-type: lower-alpha; } */ li[class^="Checklist"], li[class^="ChecklistSubentry"] { list-style-type: none; text-indent: 0; margin-left: 1.5em; } li[class^="Checklist"]:before, li[class^="ChecklistSubentry"]:before { display: block; width: 1.5em; float: left; margin-left: -1.5em; text-align: center; content: "\2713"; /* U+2713 "check mark" */ } *[class^="ColumnHead"] { font-weight: bold; text-indent: 0; } /* *[class^="RecipeProcedure"], *[class^="RecipeProceduresNoIndent"], *[class^="Sub-RecipeProcedures"], *[class^="Sub-RecipeProceduresNoIndent"], *[class^="Definition-Numbered"] */ /* -------------------------------------------------- ILLUSTRATIONS -------------------------------------------------- */ *[class^="Illustrationholder"] { margin-top: 1em; text-align: center; } .Illustrationholderill { margin-top: 1em; text-align: center; } h1 + *[class^="Illustrationholder"] { background-color: transparent; } h1 + .Illustrationholderill { background-color: transparent; } *[class^="Caption"] { color: #666; text-indent: 0; text-align: center; font-size: .875em; font-style: italic; padding: 1em 0; } .Captioncap { color: #666; text-indent: 0; text-align: center; font-size: .875em; font-style: italic; padding: 1em 0; } *[class^="IllustrationSource"] { font-size: 0.8em; text-align: center; font-size: .75em; text-transform: uppercase; letter-spacing: .1em; margin: 0; } .IllustrationSourceis { font-size: 0.8em; text-align: center; font-size: .75em; text-transform: uppercase; letter-spacing: .1em; margin: 0; } *[class^="Illustrationholder"]+p, *[class^="IllustrationSource"]+p { margin-top: 1em; } .Illustrationholderill+p, .IllustrationSourceis+p { margin-top: 1em; } *[class^="Illustrationholder"]+*[class^="IllustrationSource"] { margin-top: 0; } .Illustrationholderill+.IllustrationSourceis { margin-top: 0; } section.abouttheauthor figure.Illustrationholderill img { max-height: 50%; } img.titlepage { width: 100%; } /* -------------------------------------------------- RECIPES -------------------------------------------------- */ *[class^="Menu"], *[class^="ChapterContent"] { } *[class^="RecipeHeadnote"], *[class^="Sub-RecipeHeadnote"] { font-style: italic; text-indent: 0; } *[class^="RecipeTime"], *[class^="RecipeYield"], *[class^="Sub-RecipeYield"], *[class^="RecipeNutritionInfo"], *[class^="RecipeGarnish"] { margin-top: 1em; margin-bottom: 1em; text-indent: 0; } *[class^="RecipeVarHead"], *[class^="RecipeVarText"], *[class^="RecipeVarTextNo-Indent"], *[class^="RecipeNoteHead"], *[class^="RecipeNoteText"], *[class^="RecipeNoteTextNo-Indent"] { font-style: italic; } *[class^="Sub-RecipeHead"], *[class^="Sub-RecipeSubhead"], *[class^="Sub-RecipeLevel-2Subhead"], *[class^="Sub-RecipeLevel-3Subhead"], *[class^="Sub-RecipeLevel-4Subhead"], *[class^="Sub-RecipeLevel-5Subhead"], *[class^="Sub-RecipeHeadnote"], *[class^="Sub-RecipeIngredientsHead"], *[class^="Sub-RecipeIngredientsList"], *[class^="Sub-RecipeProcedures"], *[class^="Sub-RecipeProceduresNoIndent"], *[class^="Sub-RecipeYields"] { margin-left: 1.5em; margin-right: 1.5em; } *[class^="Sub-RecipeLevel-1Subhead"] { margin-left: 1em; margin-right: 1em; } *[class^="Sub-RecipeIngredientsList"], *[class^="Sub-RecipeProcedures"], *[class^="Sub-RecipeProceduresNoIndent"] { margin-left: 3em; } /* -------------------------------------------------- BOXES AND SIDEBARS -------------------------------------------------- */ *[class^="TOCPartNumber"], *[class^="TOCChapterNumber"], *[class^="RecipeHead"], *[class^="Sub-RecipeHead"], *[class^="RecipeSubhead"], *[class^="Sub-RecipeSubhead"], *[class^="BoxHead"], *[class^="BoxSubhead"], *[class^="SidebarHead"], *[class^="ExtractHead"], *[class^="PoemTitle"], *[class^="SidebarSubhead"], *[class^="PoemSubtitle"], *[class^="TableHead"], *[class^="TableSubhead"], *[class^="ChartHead"], *[class^="ChartSubhead"], *[class^="FigureHead"], *[class^="FigureSubhead"] { text-align: center; padding: .5em 0; } *[class^="BoxHead"]+p, *[class^="SidebarHead"]+p, *[class^="ExtractHead"]+p, *[class^="PoemTitle"]+p { margin-top: 1em; } *[class^="BoxSourceNote"], *[class^="BoxFootnote"], *[class^="SidebarSourceNote"], *[class^="SidebarFootnote"] { font-size: .75em; text-indent: 0; margin: 1em 0; } *[class^="BoxExtract"], *[class^="BoxExtract-Verse"], *[class^="SidebarExtract"], *[class^="SidebarExtract-Verse"] { } /* -------------------------------------------------- TABLES, CHARTS, and FIGURES -------------------------------------------------- */ table { width: 100%; margin: 1em 0; border-collapse: collapse; } th, td { padding: .5em; border: 1px solid #ccc; } *[class^="TableColumnHead"], *[class^="TableSourceNote"], *[class^="TableFootnote"], *[class^="ChartColumnHead"], *[class^="ChartLabel"], *[class^="ChartSourceNote"], *[class^="ChartFootnote"], *[class^="FigureColumnHead"], *[class^="FigureLabel"], *[class^="FigureSourceNote"], *[class^="FigureFootnote"] { text-indent: 0; } *[class^="TableColumnHead"], *[class^="ChartColumnHead"], *[class^="FigureColumnHead"] { font-weight: bold; } *[class^="TableSourceNote"], *[class^="TableFootnote"], *[class^="ChartSourceNote"], *[class^="ChartFootnote"], *[class^="FigureSourceNote"], *[class^="FigureFootnote"] { font-size: .75em; margin: 1em 0; } /* -------------------------------------------------- GENERAL BACKMATTER HEADS -------------------------------------------------- */ .BMHeadbmh, .BMTitlebmt, .BMSubheadbmsh, .BMHeadALTabmh { text-align: center; } *[class^="BMHead"], *[class^="BMTitle"], *[class^="BMSubhead"], *[class^="BMHeadALT"] { text-align: center; } .BMHeadALTabmh, .BMTextALTabmtx, .BMTextALTNo-Indentabmtx1 { font-family: Helvetica,Arial,sans-serif; } *[class^="BMHeadALT"], *[class^="BMTextALT"], *[class^="BMTextALTNo-Indent"] { font-family: Helvetica,Arial,sans-serif; } /* -------------------------------------------------- APPENDICES -------------------------------------------------- */ .AppendixHeadaph, .AppendixSubheadapsh { text-align: center; } *[class^="AppendixHead"], *[class^="AppendixSubhead"] { text-align: center; } .AppendixSourceNoteapsn, .AppendixFootnoteapfn { font-size: .75em; text-indent: 0; margin: 1em 0; } *[class^="AppendixSourceNote"], *[class^="AppendixFootnote"] { font-size: .75em; text-indent: 0; margin: 1em 0; } /* -------------------------------------------------- BOB ADS -------------------------------------------------- */ .BOBAdTitlebobt, .BOBAdSubtitlebobst, .BOBAdLevel-1Subheadbobh1, .BOBAdLevel-2Subheadbobh2, .BOBAdLevel-3Subheadbobh3, .BOBAdLevel-4Subheadbobh4, .BOBAdLevel-5Subheadbobh5 { text-align: center; text-indent: 0; } .BOBAdLevel-1Subheadbobh1 { font-size: 1.5em; font-weight: bold; margin-top: 1em; } /* -------------------------------------------------- GLOSSARY and DICTIONARY-STYLE ENTRIES -------------------------------------------------- */ .Exampleexa, .Example-Versevexa, .Exampleegeg, .Exampleindialogformexad { font-style: italic; } *[class^="Example"], *[class^="Example-Verse"], *[class^="Exampleeg"], *[class^="Exampleindialogform"] { font-style: italic; } .GlossaryTextgltx, .Entryen, .Definitiondef, .DefinitionSourcedefs, .Exampleexa, .Referencesee, .Exampleegeg, .Exampleindialogformexad { text-indent: 0; } *[class^="GlossaryText"], *[class^="Entry"], *[class^="Definition"], *[class^="DefinitionSource"], *[class^="Example"], *[class^="References"], *[class^="Exampleeg"], *[class^="Exampleindialogform"] { text-indent: 0; } .DefinitionSourcedefs { margin: 1em 0; } *[class^="DefinitionSource"] { margin: 1em 0; } /* -------------------------------------------------- ADDRESSES -------------------------------------------------- */ *[class^="Address"] { text-indent: 0; } /* -------------------------------------------------- NOTES SECTION -------------------------------------------------- */ div[data-type="footnotes"] { margin-top: 1em; } p[data-type="footnote"] { font-size: .75em; text-indent: 0; margin: 1em 0; } *[class^="FootnoteText"], *[class^="endnotetext"] { font-size: .75em; text-indent: 0; margin: 1em 0; } /* -------------------------------------------------- BIBLIOGRAPHY -------------------------------------------------- */ *[class^="BibliographyText"] { text-indent: 0; margin: 1em 0; } /* -------------------------------------------------- INDEX -------------------------------------------------- */ *[class^="IndexEntry"], *[class^="IndexSubentry"], *[class^="IndexSub-subentry"] { text-indent: 0; } *[class^="IndexSubentry"] { margin-left: 1.5em; } *[class^="IndexSub-subentry"] { margin-left: 3em; } /* -------------------------------------------------- Misc -------------------------------------------------- */ .EBKLinkSourceLa { text-indent: 0; text-align: center; } .left { text-align: left; text-indent: 0; } .center { text-align: center; text-indent: 0; } .right { text-align: right; text-indent: 0; } /* -------------------------------------------------- Nonprinting elements -------------------------------------------------- */ h1.ChapTitleNonprintingctnp { display: none; } *[class*="Nonprinting"] { display: none; } .Nonprinting { display: none; } .texttoc { display: none; } |
|
![]() |
![]() |
![]() |
#15 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,947
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS line height vs Kobo line spacing slider? | bongoman | Kobo Reader | 2 | 07-12-2020 01:25 PM |
line height | Rellwood | Conversion | 3 | 04-07-2018 04:34 AM |
Kindle for iOS (AZK format) - line height issue | heulwen.jones | Kindle Formats | 7 | 05-12-2016 12:24 AM |
optimal line height ? | cybmole | Sigil | 6 | 09-05-2013 09:30 AM |
Advice about line-height | Julien Pham | Sigil | 2 | 12-22-2011 09:05 AM |