/* * Ebook CSS template. * * Version: 1.6 * */ /* Use almost all available screen area */ html { /* Can't specify body height 100%, that crashes ADE 2.0 when scrolling forward then back! */ height: 100%; } html, body { margin: 0.2em; padding: 0em; border-width: 0em; } /* Allow a little page margin to avoid shadows by the bezel etc */ @page { margin: 5pt 5pt 0pt 5pt; } /* Images */ img { max-width: 100%; oeb-column-number: 1; display: inline-block; } .video { max-width: 100%; } .noresize { width: auto; display: block; } div.figure { text-align: center; text-indent: 0em; margin-top: 1em; } div.caption { font-size: small; text-align: center; text-indent: 0em; margin: 1em 0em 0em 0em; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } span.captioncredit { font-size: x-small; text-align: center; text-indent: 0em; margin: 0em; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } .centered-art { font-style: normal; font-weight: normal; text-align: center; margin: 1em 0em 0em 0em; text-indent: 0em; } .center { text-align: center; } /* Spans */ span.emphasis { font-weight: normal; font-style: italic; } span.strong { font-weight: bold; font-style:normal; } span.strongemphasis { font-weight: bold; font-style: italic; } span.underline { text-decoration: underline; } span.applebug {} /* Cover page */ div.coverpage { text-align: center; } div.coverpage img.coverimage { max-width: 100%; max-height: 100%; } /* Title page */ .header .titlepage {} /* head group for title page */ div.titlepage { margin-bottom: 3em; text-align: center; } div.titlepage p { /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ text-indent: 0em; } div.titlepage p.title { font-size: x-large; font-weight: bold; margin-top: 2em; } div.titlepage p.subtitle { font-size: medium; font-weight: bold; font-style: italic; margin-top: 1em; } div.titlepage p.author { margin-top: 4em; } /* Colophon */ div.colophon p { font-size: x-small; margin: 0em; text-indent: 0em; text-align: center; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } /* Copyright page */ div.copyrightpage { margin-top: 1em; } div.copyrightpage p { font-size: x-small; margin: 0em; text-align: center; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } /* Headings - base */ h1, h2, h3, h4, h5, h6 { page-break-after: avoid; /* hyphens: none !important; -epub-hyphens: none !important; adobe-hyphenate: none !important; hyphenate-lines: 0;*/ } /* Headings - parts and chapters */ .header .chapter {} /* Head group for chapter titles */ h1.num { text-align: left; text-indent: 0em; margin-top: 4em; page-break-before: always; } h1.title { text-align: left; margin-bottom: 2em; text-indent: 0em; page-break-before: always; } h1.titlecenter { text-align: center; margin-bottom: 2em; text-indent: 0em; page-break-before: always; } h2.num { text-align: left; text-indent: 0em; margin-top: 4em; } h2.title { text-align: left; margin-bottom: 2em; text-indent: 0em; } h2.titlecenter { text-align: center; margin-bottom: 2em; text-indent: 0em; } /* Headings - text headings */ h4 { /* Level 1 text head */ text-align: left; margin: 1em 0em 0em 0em; text-indent: 2em; } h5 { /* Level 2 text head */ text-align: left; font-weight: bold; font-style: italic; margin: 1em 0em 0em 0em; text-indent: 2em; } h6 { /* Level 3 text head */ text-align: left; font-weight: bold; font-style: italic; margin: 1em 0em 0em 0em; text-indent: 2em; } /* Normal text */ p { widows: 2; orphans: 2; margin: 0em; text-indent: 1em; /* hyphenate-before: 3; hyphenate-after: 3; hyphenate-lines: 2;*/ } /* Drop cap support */ p.initial { text-indent: 0em; margin: 1.2em 0em 0em 0em; } h1.title+p.initial, h1.titlecenter+p.initial { /* Move dropcap initial paragraph back up if after a chapter-type heading */ margin-top: -3em; } h2.title+p.initial, h2.titlecenter+p.initial { /* Move dropcap initial paragraph back up if after a chapter-type heading */ margin-top: -2em; } h4+p.initial, h5+p.initial, h6+p.initial { /* Move dropcap initial paragraph back up if after a text-level heading */ margin-top: 0.3em; } span.drop { float: left; margin-top: -0.14em; margin-right: 0.05em; margin-bottom: -0.25em; font-size: 3.6em; font-weight: normal; font-style: normal; } span.first { white-space: pre; } span.predrop { font-size: 27%; vertical-align: 145%; } /* Paragraph indentation */ p.ind { text-indent: 2em; margin: 0em; } p.indspace { text-indent: 2em; margin-top: 1em; } p.noind { } /* Page break woes; wrap this around h3, h4, h5 + first paragraph of text to keep together on some ereaders */ div.keeptext { page-break-inside: avoid; margin: 0em !important; } /* Centered; you may need to use the applebug span around these items for them to work on iBooks */ p.center { text-align: center; text-indent: 0em; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ margin: 0em; } /* Extracts */ p.extractnormal { margin: 1em 0em 0em 1em; text-indent: 0em; text-align: left; } p.extractcourier { /* Extracts that represent text messages, computer text, etc */ font-family: "Courier New", "DejaVu Sans Mono", Courier, monospace; text-indent: 0em; margin: 1em 0em 0em 1em; text-align: left; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } p.handwriting { font-family: "BradleyHandITCTT-Bold", "Comic Sans MS", cursive; text-indent: 0em; margin: 1em 0em 0em 1em; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } /* Lists */ p.listhead { /* Generic list head for ol's or ul's */ margin: 1em 0em 0em 2em; font-weight: bold; font-style: normal; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ page-break-after: avoid; text-align: left; } ol { margin: 1em 0em 1em 0em; } ol.nospace { margin: 0em; } ul { margin: 1em 0em 1em 0em; } ul.nospace { margin: 0em; } li { orphans: 2; widows: 2; text-align: justify; } /* Sidebars */ .aside .sidebar { margin: 1em 0em 1em 0em !important; padding: 1em 0em 1em 0em !important; border: 1px solid #178E7D; page-break-inside: avoid; } .aside .casestudy { margin: 1em 0em !important; padding: 1em 0em !important; border: 1px solid black; page-break-inside: avoid; } p.sbh1 { font-size: small; text-align: left; font-weight: bold; font-style: normal; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ margin: 0em 1em 0em 1em; } p.sbh2 { font-size: medium; text-align: left; font-weight: bold; font-style: italic; margin: 0em 1em 1em 1em; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } p.sbh3 { font-size: small; text-align: left; font-weight: bold; margin: 1em 1em 0em 1em; text-indent: 2em; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } p.sbf { font-size: small; margin: 0em 1em 0em 1em; } p.sb { font-size: small; margin: 0em 1em 0em 1em; text-indent: 2em; } p.sbextract { font-size: small; margin: 1em; } li.sbol { font-size: small; margin: 0em 1em 0em 0em; } li.sbul { font-size: small; margin: 0em 1em 0em 0em; } /* Poetry */ div.poem { margin: 1em; } /* Horizontal rules */ hr.bar10 { width: 10%; margin-left: 45%; } /* Pre-wrap preformatted elements (screen space is at a premium) */ pre { white-space: pre-wrap; } /* HTML Table of Contents */ h1.num+ul.htmltoc, h1.title+ul.htmltoc, h1.titlecenter+ul.htmltoc { /* Move HTML TOC back up if after a chapter-type heading */ margin-top: -2em; } ul.htmltoc { /* The TOC will be an unordered list, with items linking to target IDs */ widows: 0; orphans: 0; list-style-type: none; padding-left: 0em; text-align: inherit; /* hyphens: none; -epub-hyphens: none; adobe-hyphenate: none;*/ } ul.htmltoc li.lvl1 { /* TOC level 1 */ margin-bottom: 0.2em; } ul.htmltoc li.lvl2 { /* TOC level 2 */ padding-left: 1em; } ul.htmltoc li.lvl3 { /* TOC level 3 */ padding-left: 2em; }