/* BB eBooks BoilerPlate EPUB */ /* Modify as Needed */ /* NOT SUITABLE for Kindle */ /* visit us @ http://bbebooksthailand.com/developers.html */ /* This adds margins around every page to stop ADE's line numbers from being superimposed over content */ @page {margin: 10px;} /* Reset code to prevent cross-reader strangeness */ 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, 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-size: 100%; vertical-align: baseline; } ol, ul, li, dl, dt, dd { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; } /*===GENERAL PRESENTATION===*/ /*===Body Presentation and Margins===*/ /* Text alignment is still a matter of debate. Feel free to change to text-align: left; */ body { text-align: justify; line-height: 120%; } /*===Headings===*/ /* After page breaks, eReaders sometimes do not render margins above the content. Adjusting padding-top can help On iPad: page-break-before: always; creates a blank page before headers and messes up the TOC navigation. */ h1, h2, h3, h4, h5, h6 { text-align: center; font-weight: bold; } h1 { text-indent: 0; text-align: center; margin: 100px 1em 0em 0em; font-size: 2.5em; line-height: 150%; /*gets squished otherwise on ADE */ } h2 { text-indent: 0; margin: 50px 0 0 0; font-size: 1.5em; line-height: 135%; /*get squished otherwise on ADE */ } h3 { text-indent: 0; font-size: 1.4em; } h4 { text-indent: 0; font-size: 1.2em; } h5 { text-indent: 0; font-size: 1.1em; } h6 { text-indent: 0; font-size: 1.0em; } /* Hyphen and pagination Fixer */ /* Note: Do not try on the Kindle, it does not recognize the hyphens property */ h1, h2, h3, h4, h5, h6 { -webkit-hyphens: none !important; hyphens: none; page-break-after: avoid; page-break-inside: avoid; } /*===Paragraph Elements===*/ /* Margins are usually added on the top, left, and right, but not on the bottom to prevent certain eReaders not collapsing white space properly */ /* for centered text and wrappers on images */ p.centered { text-indent: 0; margin: 1.0em 0 0 0; text-align: center; } /* section Breaks (can use centered-style for non-fiction) */ p.centeredbreak { text-indent: 0; margin: 1.0em 0 1.0em 0; text-align: center; } /* First sentence in chapters following heading */ p.texttop { margin: 1.5em 0 0 0; text-indent: 0; } /* Use for second sentence to clear drop cap's float */ p.clearit { clear: both; } /* 1st level TOC */ p.toctext { margin: 0 0 0 1.5em; text-indent: 0; } /* 2nd level TOC */ p.toctext2 { margin: 0 0 0 2.5em; text-indent: 0; } /*==LISTS==*/ ul { margin: 1em 0 0 2em; text-align: left; } ol { margin: 1em 0 0 2em; text-align: left; } /*===IN-LINE STYLES===*/ /* Recommend avoiding use of , , and . Use span tags instead */ span.i { font-style: italic; } span.b { font-weight: bold; } span.u { text-decoration: underline; } span.st { text-decoration: line-through; } /*==in-line combinations==*/ /* Using something like ... may seem okay, but it causes problems on some eReaders */ span.ib { font-style: italic; font-weight: bold; } span.iu { font-style: italic; text-decoration: underline; } span.bu { font-weight: bold; text-decoration: underline; } span.ibu { font-style: italic; font-weight: bold; text-decoration: underline; } /* This fixes the bug where the text-align property of block-level elements is not recognized on iBooks example: html markup would look like

Centered Content

*/ span.ipadcenterfix { text-align: center; } /*==IMAGES==*/ img { max-width: 100%; } /*==TABLES==*/ table { margin: 1.0em auto; } tr, th, td { margin: 0; padding: 2px; border: 1px solid black; font-size: 100%; vertical-align: baseline; } /* Superscripted Footnote Text */ .footnote { vertical-align: super; font-size: 0.75em; text-decoration: none; } /*==DROP CAPS==*/ span.dropcap { float:left; font-weight: bold; height: 1em; font-size:400%; margin-top:0.1em; margin-left:0em; margin-bottom:-0.4em; margin-right:0em; text-indent: 0; color:#8C8273; } span.dropcapnext5 { margin-left:-1em; color:#666666; } span.dropcapnext6 { margin-left:-1.1em; color:#666666; } span.dropcapnext7 { margin-left:0.7em; color:#666666; } span.dropcapnext8 { margin-left:0.8em; color:#666666; } span.dropcapnext9 { margin-left:0.9em; color:#666666; } p.clearit { clear: both; } /*==BLOCK QUOTE==*/ div.blockquote { margin: 1em 1.5em 0 1.5em; text-align: left; font-size: 0.9em; } /*==eBook Specific Formatting Below Here==*/ h1.title { font-size:150%; margin-top:5em; margin-bottom:5em; text-align: center; } h1.center { font-size:150%; margin-top:5em; margin-bottom:5em; text-align: center; } .smallerspacing { text-align: center; margin-top:0.5em; margin-bottom: 0.5em; } p { font-size: 100%; text-indent: 1.5em; text-align: left; margin: 0em 0em 0em 0em; widows: 2; orphans: 2; } p.slug { font-size: 100%; margin: 1.5em 0em 3em 0em; text-indent: 0; font-style: italic; text-align: left; } p.first { margin-top: 2.5em; } p.special { font-size: 95%; font-style: italic; font-weight: bold; margin: 0em 0em 0em 0em; text-indent: 0em; text-align: left; } p.special2 { font-size: 95%; font-style: italic; margin: 3em 3em 3em 3em; text-indent: 0em; text-align: left; } p.firstpara { text-indent: 0; margin: 1.5em 0 0 0; } p.firstpara:first-line { font-variant: small-caps; } p.firstpara:first-letter { font-weight: bold; font-size: 200%; } p.glossary { text-indent: 0; margin: 0em 1em 1.5em 1em; } p.booklist { text-align: center; text-indent: 0em; margin-bottom: 1em; }