/* ========== EBOOK ARTISANS STYLESHEET ========== */ @page { margin-top: 30px; margin-bottom: 20px; } body { margin-left: 30px; margin-right: 30px; padding:0; } div { margin-top:20px; padding-top: 20px; } p { font-family: serif; } /* ========== FONTS ========== */ @font-face { font-family: Timeless; font-style: normal; font-weight: normal; src:url("fonts/Timeless.ttf"); } @font-face { font-family: Timeless-Bold; font-style: normal; font-weight: normal; src:url("fonts/Timeless-Bold.ttf"); } /* ========== HEADING STYLES ========== */ /* 1. If using default font instead of embedding a special font, change font-weight to bold and remove the font-family property */ h1, h2, h3, h4, h5, h6 { font-weight:normal; -webkit-hyphens: none !important; adobe-hyphenate: none; -moz-hyphens: none; hyphens: none; page-break-after: avoid; margin-top:0; margin-bottom:0; text-indent:0; text-align:center; font-family: Timeless-Bold; } h1 { margin-top:60px; font-size: 2.5em; } h1.part { margin-top: 90px; } h2 { margin-top:60px; } h3 { margin-top:120px; font-family: Timeless; font-size: 1.8em; letter-spacing: 2px; } h4 { margin-top:30px; } h5 { margin-top:30px; font-size: 1.3em; } .none { margin-top:0px; } /* ========== PARAGRAPH STYLES ========== */ p { font-size: 1em; text-indent: 1.4em; margin-top: 0; margin-bottom:0; line-height:1.4em; widows:2; orphans:2; text-align:justify; -webkit-hyphenate-before:3; hyphenate-before:3; -webkit-hyphenate-after:3; hyphenate-after:3; -webkit-hyphenate-lines:2; hyphenate-lines:2; } /* ---------- First Paragraph Styles ---------- */ /* 1. Remember to RegEx in the dropcap for ePub A between A so that the dropcap will show up on iPad. Also in .firstbit, if you're styling that with a special font. 2. Remember to check and see if chapters beginning with an A as a dropcap need on the letters following the dropcap. For example:

Antagonists are annoying.

*/ p.first { text-indent:0; margin-top: 120px;} p.date { text-indent:0; margin-top:100px;} p.first2 { text-indent:0; margin-top: 20px;} /* ========== BODY PARAGRAPH STYLES ========== */ p.norm1 { text-indent:1.4em; margin-top:30px; } p.section { text-indent:0; margin-top:30px; } p.undersection { text-indent:0; margin-top:30px; } p.divider { text-indent:0; margin-top:30px; text-align: center; } /* ---------- Front Matter ---------- */ p.review { text-indent:0; margin-top:20px; } p.ded { text-align: center; text-indent:0; margin-top:120px; font-style:italic; } p.epigraph { text-align: center; text-indent:0; margin-top:45px; font-style:italic; } p.epiauthor { text-align: right; text-indent:0; margin-top:10px; } p.copy1 { font-size:x-small; text-align:center; text-indent:0; margin-top:90px; } p.copy2 { font-size:x-small; text-align:left; text-indent:0; margin-top:20px; } p.copy3 { font-size:x-small; text-align:center; text-indent:0; margin-top:20px; } .epubisbn { display:inline; } .kindleisbn { display:none; } p.extracthead { text-indent: 0; margin-top: 30px; font-weight:bold; font-family: sans-serif; margin-left: 1.4em; margin-right: 1.4em; } p.extracthead2 { text-indent: 0; font-weight:bold; font-family: sans-serif; margin-left: 1.4em; margin-right: 1.4em; } /* ---------- Table of Contents ---------- */ h2 + p.tc1 { text-indent:0; margin-top:30px; text-align:left; } p.tc1 { text-indent:0; text-align:left; } p.tc2top { text-indent:0; margin-top: 30px; margin-left: 1.4em; text-align:left; } p.tc2 { text-indent:0; margin-left: 1.4em; text-align:left; } /* ---------- Special Bits ---------- */ p.centeredbit { text-indent:0; margin-top:30px; text-align:center; } p.centered { text-indent:0; margin-top:0; text-align:center; } /* ---------- Letters & Articles ---------- */ p.letterhead1 { font-family: sans-serif; font-size: 1.3em; font-weight: bold; text-indent:0; margin-top:30px; margin-right:1.4em; margin-left:1.4em; text-align: center; } p.letterhead2 { font-family: sans-serif; font-size: 1.3em; font-weight: bold; text-indent:0; margin-top:0; margin-right:1.4em; margin-left:1.4em; text-align: center; } p.extract { text-indent:0; margin-top:30px; margin-right:1.4em; margin-left:1.4em;} p.journal { font-family: sans-serif; text-indent:0; margin-top:30px; margin-right:1.4em; margin-left:1.4em;} p.signoff { font-family: sans-serif; text-indent:0; margin-top:10px; margin-right:1.4em; margin-left:1.4em; text-align: right; } /* ---------- Character Styles ---------- */ span.allcaps { font-size: 0.9em; } span.smallcaps { font-size: 0.8em; } span.under { text-decoration:underline; } span.strike {text-decoration: line-through;} sup { font-size: 0.65em; line-height:0.65em; } sup.frac { font-size: 0.6em; vertical-align:.5em; } sub.frac { font-size: 0.6em; vertical-align:-0.1em; } a:link { color:#3399CC; } a:visited { color:#3399CC; } /* ========== COVER ========== */ img { max-width: 100%; } #cover img { width:auto; height:100%; } div.cover { margin-top: 0; padding-top:0; } svg { width:100%; height: 100%;} /* ---------- Poetry ---------- */ p.hanging { margin:0 0 0 1.4em; text-indent: -1.4em; } p.poem1 { margin:0 0 0 2.8em; text-align: left; text-indent: -1.4em; padding-top:30px; } p.poem { margin:0 0 0 2.8em; text-align: left; text-indent: -1.4em; } p.poem2 { margin:0 0 0 4.2em; text-align: left; text-indent: -1.4em; } p.outline1 { font-family:sans-serif; margin:0 0 0 1.4em; text-indent: -1.4em; } p.outline2 { font-family:sans-serif; margin:0 0 0 2.8em; text-align: left; text-indent: -1.4em; } p.outline3 { font-family:sans-serif; margin:0 0 0 4.2em; text-align: left; text-indent: -1.4em; } p.outline4 { font-family:sans-serif; margin:0 0 0 5.4em; text-align: left; text-indent: -1.4em; } .hide { display:none; visibility:hidden; } /* ========== KF8-ONLY MEDIA QUERY ========== */ @media amzn-kf8 { span.afterA { margin-left: -0.5em; } .epubisbn { display:none; } .kindleisbn { display:inline; } /* This .hide is so the nbsp you enter for the old mobi hack will be hidden from the KF8 format. */ .hide { display:none; visibility:hidden; } } /* ===== END MEDIA QUERY ===== */ /* ========== MOBI-7-ONLY MEDIA QUERY ========== */ @media amzn-mobi { h1, h2, h3, h4, h5, h6 { font-weight:bold; text-align:center !important; } h1 { font-size: xx-large; } h3 { font-size: medium; } .dropcap { font-size:300%; font-weight:bold; } .firstbit { font-weight:bold; } p.extract { text-indent:0; margin-top:30px !important; } p.journal { font-family: sans-serif; text-indent:0; margin-top:30px !important; } p.signoff { font-family: sans-serif; text-indent:0; margin-top:10px; text-align: right !important; } .hanging { margin-left:0; text-align:left; text-indent: -30px; } .poem1 { margin-left:0; text-align: left; text-indent: -60px; } .poem { margin-left:0; text-align: left; text-indent: -60px; } .poem2 { margin-left:0; text-align: left; text-indent: -90px; } .hide { display:inline; visibility:visible; } .outline1 { margin-left:0; text-align:left; text-indent: -30px; } .outline2 { margin-left:0; text-align: left; text-indent: -60px; } .outline3 { margin-left:0; text-align: left; text-indent: -90px; } .outline4 { margin-left:0; text-align: left; text-indent: -120px; } }