/* This file must validate as CSS 2.01 with absolutely no errors + http://jigsaw.w3.org/css-validator/ + http://idpf.org/epub/20/spec/OPS_2.0.1_draft.htm#Section3.0 Name: Fortress Press Version: 1.3 Author: PressBooks (Book Oven Inc.) Author URI: http://fortresspress.pressbooks.com Copyright 2011-2012 Book Oven Inc. (PressBooks.com) support@pressbooks.com */ body { font-family: "Times New Roman", Times, Georgia, serif; line-height: 1.4em; padding: 1em; } a { text-decoration: none; } /* HEADERS =============== */ h1, h2, h3, h4, h5, h6 { text-align: center; } /* DEFAULT STYLES =================== */ p { margin: 0; } p + p, .indent { text-indent: 2em; margin-top: 0; } p + ul { margin-top: 10px; } hr { margin: 10px auto; text-align: center; width: 20%; } table { border: 1px solid #000; border-width: 1px 0; } dt { float: left; font-weight: bold; margin-right: 5px; margin-bottom: 0; } dd { margin-bottom: 0; } ul ul, ul ul ul { list-style-type: none; } ul li li { list-style-image: url(assets/em-dash.png); } ul li li li { list-style-image: url(assets/asterisk.png); } cite { font-weight: normal; } div.blockquote, blockquote { border-width: 0 4px; padding: 0 5%; margin-bottom: 2em; } /* USER GENERATED CSS ====================== */ .nonindent, .no-indent { text-indent: 0; } hr.break-symbols { border: none; font-size: 1.1em; margin-bottom: 20px; } hr.break-symbols:after { display: block; content: "\2725"; text-align: center; } p.bl_nonindent { margin: 2em 10% 0; text-indent: 0; } p.bl_indent { margin: 0 10%; text-indent: 1em; } .hanging-indent { padding-left: 1em; text-indent: -1em; } /* TITLE PAGE ================ */ #title-page .title { font-size: 2.2em; line-height: 1em; margin-top: 1em; text-transform: uppercase; } #title-page .subtitle { font-size: 1.7em; margin-top: 2.1em; text-transform: uppercase; } #title-page .logo { margin-top: 5em; height: 26px; background-image: url(assets/fortress-logo.svg); background-repeat: no-repeat; background-position: bottom center; } #title-page .title + .logo { margin-top: 8em; } #title-page .author { font-size: 1.4em; margin-top: 2.5em; text-transform: uppercase; } #title-page .publisher { font-size: 1.3em; margin-bottom: 0.3em; } #title-page .publisher-city { font-size: 0.875em; margin-top: 0; } /* DEDICATION ================ */ .dedication p { font-style: italic; text-align: center; } /* COPYRIGHT PAGE =================== */ #copyright-page p { font-size: 0.7em; text-indent: 0; margin-bottom: 0.5em; } /* TITLES for FRONT-MATTER, BACK_MATTER, CHAPTER & PART ========================================================= */ div.part { margin-top: 6em; padding-bottom: 0.25em; } .display-none, .front-matter-number, .back-matter-number { display: none; } .chapter-number { background-image: url(assets/fortress-divider.png); background-repeat: no-repeat; background-position: bottom center; padding-bottom: 1em; text-transform: uppercase; } .chapter-number { margin-bottom: 3em; } .front-matter-title { margin-bottom: 3em; } .preface h1.front-matter-title { font-size: 1.4em; } .chapter-title { margin: 2em 0; } h3.part-number { text-transform: uppercase; font-weight: bold; } h3.part-number::before { content: "Part "; } h1.part-title { margin-top: 1em; margin-bottom: 1em; line-height: 1.2em; } h1.part-title:before { content: ""; display: block; width: 25%; border-top: 1px solid; margin-left: auto; margin-right: auto; margin-bottom: 1em; margin-top: 0.5em; } h1.part-title:after { content: ""; display: block; width: 25%; border-bottom: 1px solid; margin-left: auto; margin-right: auto; margin-top: 1em; } /* BODY TITLES =================== */ .ugc h1, .ugc h2, .ugc h3, .ugc h4, .ugc h5, .ugc h6 { margin-bottom: 5px; page-break-after:avoid; } .ugc h1, .ugc h2, .ugc h3 { font-variant: small-caps; font-weight: normal; } .ugc h1 { font-size: 1.1em; } .ugc h2, .ugc h3 { font-size: 1em; } .ugc h3, .ugc h4, .ugc h5 { text-align: left; } .ugc h4 { font-size: 0.875em; font-weight: normal; } .ugc h5 { font-size: 0.75em; } .ugc h1 + p, .ugc h2 + p, .ugc h3 + p, .ugc h4 + p, .ugc h5 + p { margin-top: 0; } /* TABLE OF CONTENTS ======================= */ #toc { font-size: 0.875em; } #toc ul > .front-matter, #toc ul > .back-matter { font-style: italic; } #toc .front-matter + .chapter { margin-top: 1.3em; } #toc a { border: none; color: inherit; font-style: normal; text-decoration: none; } #toc ul, #toc li { list-style: none; margin: 0; padding: 0; } #toc a:after { color: inherit; font-style: normal; text-decoration: none; } #toc .part { background-image: none; margin: 1.3em 0 0.5em; font:bold 1.2em Impact, sans-serif; } #toc ul { line-height: 1.2em; } #toc .chapter + .back-matter { margin-top: 1.3em; } #toc span.chapter-author, #toc span.chapter-subtitle { display: block; font-style: italic; margin-left: 1em; } #toc span.chapter-author, #toc span.chapter-subtitle { margin-bottom: 5px; } #toc span.chapter-subtitle + span.chapter-author { margin-top: -5px; margin-bottom: 5px; } /* IMAGES ================== */ img { height: auto; max-width: 100%; } .alignleft { float: left; margin: 1em 1em 1em 0; } .alignright { float: right; margin: 1em 0 1em 1em; } .aligncenter { display: block; margin: 1em auto; text-align: center; } div.aligncenter { display: block; margin: 1em auto; text-align: center; } img.aligncenter { display: block; margin: 1em auto; text-align: center; } .wp-caption { height: auto; max-width: 100%; margin: 1em 0; } .wp-caption-text { font-size: 0.875em; font-style: italic; margin-top: 5px; text-align: left; } div.wp-caption.aligncenter, div.wp-caption.alignleft, div.wp-caption.alignright, div.wp-caption.alignnone { /* Hack for "centering" problems on Kindle, Calibre, ... */ width: auto !important; } /* SUBTITLES, CHAPTER AUTHOR & APHORIMS ======================================== */ h2.chapter-subtitle { font-weight: normal; font-style: italic; } h2.chapter-subtitle, h2.chapter-author { font-size: 1.4em; font-variant: normal; margin: -1.4em 0 3em; } h2.chapter-subtitle { margin-bottom: 2.8em; padding-top: 0.5em; } h2.chapter-author { font-size: 0.9em; font-style: normal; font-weight: 600; } blockquote.aphorism { font-size: 1em; font-style: italic; margin: 0 auto 4em; padding: 0 15%; width: 50%; } blockquote.aphorism p { text-align: right; } .aphorism cite { display: block; font-size: 0.875em; font-style: normal; font-variant: small-caps; text-align: right; } .aphorism cite:before { content: "–"; } /* ASIDES, PULLQUOTES & TEXTBOXES ================================== */ .aside { font-style: italic; border-top: 1px solid #000; border-bottom: 1px solid #000; margin: 2em 10%; padding: 10px 0; text-indent: 0; } .textbox { border: 1px solid #000; margin: 10px 0; padding: 10px; } .textbox.shaded { background-color: #eee; } .textbox p { margin-top: 0; } .textbox-caption { display: block; font-size: 0.9em; font-weight: bold; margin: 0; } .pullquote { border: 1px solid #000; border-width: 1px 0; margin: 20px auto; padding: 5px 0; text-align: center; width: 45%; } .pullquote-left { border: 1px solid #000; border-width: 1px 0; float: left; margin: 15px 15px 15px 0; padding: 5px 0; text-align: center; width: 45%; } .pullquote-right { border: 1px solid #000; border-width: 1px 0; float: right; margin: 15px 0 15px 15px; padding: 5px 0; text-align: center; width: 45%; } /* FOOTNOTES & ENDNOTES ======================== */ .footnotes { display: block; font-size: 0.875em; margin: 20px 10px 40px 40px; } .footnotes-wrap { list-style: none; display: block; margin: 10px 10px 10px 40px; } .footnotes p + p { text-indent: 0; } .footnotes .footnotes-wrap p { text-indent: -1em; } .footnotes p a { display: block; text-decoration: none; } sup.footnote, sup.endnote { line-height: 1em; vertical-align: top; } .endnotes hr { border: none; margin-top: 1em; } .endnotes h3 { margin-bottom: 0; } .endnotes h3 { font-size: 1.2em; font-style: normal; font-weight: bold; text-align: center; } .endnotes ol { font-size: 0.7em; margin-top: 5px; margin-left: 0; } .endnotes li { text-indent: 2em; } .endnotes p + p { text-indent: 0; } /* BIBLIOGRAPHY =============== */ .bibliography p { padding-left: 1em; text-indent: -1em; } /* INDEX ================== */ .index .ugc { text-align: left; } .index .ugc div { margin-bottom: 4em; } .index .ugc p { font-size: 0.75em; padding-left: 14pt; text-indent: -14pt; text-align: left; } .index .ugc p.sub-entry { padding-left:30px; } /* PRESSBOOKS MOBI FALL-BACK STYLESHEET ... OVERRIDES JUST ABOUT EVERYTHING copyright 2013-2014 Book Oven Inc. Version: 2.0 */ /* embedded fonts broken = ornament fonts broken, so replace them in KF8 */ @media amzn-kf8 { .chapter-title-wrap h2.chapter-title::before { content: ""; } .chapter-title-wrap h2.chapter-title::after { content: ""; } #title-page h1.title::before { content: ""; } #title-page h1.title::after { content: ""; } } /* MOBI, oh how we love you mobi ... */ /* publogo begone in mobi ... styling not working */ @media amzn-mobi { div.pb-publogo-wrap { display: none; } img.pb-publogo { display: none; } img.pb-publogo-wide { display: none; } } /* toc page styling */ @media amzn-mobi { #toc { font-style: normal; font-weight: normal; border: 0px; text-align: left; } #toc h1 { font-size: 1em; font-style: normal; font-weight: normal; } span.chapter-author { display: none; } span.chapter-subtitle { display: none; } span.toc-chapter-title { font-style: normal; font-weight: normal; font-size: 0.7em; text-align: left; } li.front-matter { font-style: normal; font-weight: normal; font-size: 0.7em; } li.part { font-weight: bold; font-size: 1.1em; text-align: left; margin-top: 1em; } li.chapter { font-style: normal; font-weight: normal; font-size: 0.7em; } li.back-matter { font-weight: bold; font-size: 1.1em; text-align: left; margin-top: 1em; } #toc a { font-style: normal; font-weight: normal; } #toc ul .front-matter, #toc ul .back-matter { font-style: normal; font-weight: normal; font-size: 0.7em; } #toc .front-matter { font-style: normal; font-weight: normal; font-size: 0.7em; } #toc .back-matter { font-style: normal; font-weight: normal; font-size: 0.7em; } #toc .part { font-weight: bold; margin-top: 1em; } #toc li { font-style: normal; font-weight: normal; font-size: 0.7em; } } /* this ONLY works/is declared in MOBI, ignored in EPUB & PDF */ @media amzn-mobi { .mobi-display-none { display:none; } } /* standard styling for mobi */ @media amzn-mobi { body { font-family: serif; font-style: normal; font-weight: normal; } p, .ugc p, .chapter-ugc p { font-family: serif; font-style: normal; font-weight: normal; } .nonindent, .no-indent, p.nonindent, p.no-indent { text-indent: 0; margin-top: 0.5em; font-family: serif; font-style: normal; font-weight: normal; } .indent, p.indent { text-indent: 1.5em; margin-top: 0em; font-family: serif; font-style: normal; font-weight: normal; } .front-matter-ugc p.indent, .front-matter-ugc p.nonindent, .front-matter-ugc p.no-indent { font-family: serif; font-style: normal; font-weight: normal; } } /* headers */ @media amzn-mobi { h1 { font-weight: bold; font-style: normal; font-size: 1.3em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h2 { font-weight: bold; font-style: normal; font-size: 1.2em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h3 { font-weight: bold; font-style: normal; font-size: 1.1em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h4 { font-weight: normal; font-style: normal; font-size: 1.1em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h5 { font-weight: bold; font-style: normal; font-size: 1em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h6 { font-weight: normal; font-style: normal; font-size: 1em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } } /* blockquotes & textboxes */ @media amzn-mobi { p.bl_nonindent { margin-left: 10%; text-indent: 0; font-size: 0.9em; font-weight: normal; font-style: normal; } p.bl_indent { margin-left: 10%; text-indent: 1.5em; font-size: 0.9em; font-weight: normal; font-style: normal; } blockquote, .blockquote { margin-left: 10%; margin-top: 1em; margin-bottom: 1em; } .ugc.chapter-ugc.textbox { border-top: 1px solid black; margin-left: 10%; padding-left: 10%; margin-right: 5%; margin-top: 1.5em; margin-bottom: 1.5em; font-size: 0.9em; } .ugc.chapter-ugc.textbox p.nonindent, .ugc.chapter-ugc.textbox p.indent { margin-left: 10%; margin-right: 5%; font-size: 0.9em; } ul, ol { margin-top: 1em; margin-bottom: 1em; } } /* title page */ @media amzn-mobi { h1.title { font-size: 2em; margin-top: 2em; font-weight: normal; font-style: normal; } h2.subtitle { font-size: 1em; font-weight: normal; font-style: normal; } h3.author { font-weight: normal; font-style: normal; } h4.publisher { font-weight: normal; font-style: normal; } h5.publisher-city { font-weight: normal; font-style: normal; } } /* FRONT-MATTER STYLING ======================= */ @media amzn-mobi { #copyright-page { margin: 10%; font-style: normal; font-family: normal; text-indent: 0; } #copyright-page p { font-size: 0.875em; font-style: normal; font-family: normal; text-indent: 0; margin-bottom: 0.5em; } } /* chapter titles */ @media amzn-mobi { div.chapter-title-wrap { margin-top: 0em; margin-bottom: 0em; } h1.front-matter-title { font-weight: normal; font-style: normal; font-size: 1.3em; margin-top: 1em; margin-bottom: 1em; text-align: center; } h3.part-number { font-weight: normal; font-style: normal; font-size: 1.3em; margin-top: 1em; margin-bottom: 1em; text-align: center; } h1.part-title { font-weight: normal; font-style: normal; font-size: 1.4em; margin-top: 1em; margin-bottom: 1em; text-align: center; } h3.chapter-number { font-weight: normal; font-style: normal; font-size: 1.2em; margin-top: 1em; margin-bottom: 1em; text-align: center; } h2.chapter-title { font-weight: normal; font-style: normal; font-size: 1.2em; margin-top: 1em; margin-bottom: 1em; text-align: center; } h2.chapter-subtitle { font-weight: normal; font-style: normal; font-size: 0.9em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h2.chapter-author { font-weight: normal; font-style: normal; font-size: 0.8em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h1.back-matter-title { font-weight: normal; font-style: normal; font-size: 1.3em; margin-top: 1em; margin-bottom: 1em; text-align: center; } }