/* 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: Open Textbook EPUB Version: 1.1 Author: bpayne */ /* 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 */ /* PRESSBOOKS EPUB FALL-BACK STYLESHEET FOR VARIOUS SPECIAL THINGS in development copyright 2013-2014 Book Oven Inc. */ /* HEADERS */ h1, h2, h3, h4, h5, h6, h1.front-matter-title, h1.part-title, h2.chapter-title, h1.back-matter-title { hyphens: none; -webkit-hyphens: none; page-break-after: avoid; } /* DISPLAY NONE IN VARIOUS CIRCUMSTANCES ========================= */ .display-none { display: none; } /* this ONLY works/is declared in EPUB, ignored in MOBI & PDF */ .epub-display-none, .not-epub { display:none; } .web-only { display: none; } .pdf-only { display: none; } /* This is used in the PDF to generate a short book title & chapter title for running headers in the case that the chapter title is too long. It's spurious in the EPUB, should always be display: none; */ .short-book-title { display: none; } .short-title, h6.short-title { display: none; } /* Invisible Parts are invisible */ .part.invisible { display: none; } /* Numberless chapters have no chapter numbers */ div.chapter.numberless h3.chapter-number { display: none; } /* Blank page ... this is to add a blank page in PDF ... */ div.blank-page { display: none; } /* PART NUMBER: DISPLAY NONE, NOT SURE IF WE SHOULD LEAVE THIS IN? */ h3.part-number { display: none; } /* SECTION BREAKS */ div.ugc > h3.section-break { text-align: center; text-indent: 0; margin-top: 1em; margin-bottom: 1em; } div.ugc > h3.section-break-space { visibility: hidden; text-align: center; text-indent: 0; margin-top: 0; margin-bottom: 0; } div.ugc > h3.section-break-page { text-align: center; text-indent: 0; margin-top: 1em; margin-bottom: 1em; page-break-after: always; } /* PAGE-BREAKS */ .page-break-after { page-break-after: always; } .page-break-before { page-break-before: always; } /* PARAGRAPH STYLING */ .no-indent, p.no-indent, div.ugc p.no-indent, div.ugc.chapter-ugc p.no-indent, div.ugc > p.no-indent, div.chapter-ugc > p.no-indent, div.front-matter p.no-indent, div.back-matter p.no-indent, div.ugc p.indent.no-indent, div.ugc.chapter-ugc p.indent.no-indent { text-indent: 0 !important; margin-top: 1em !important; } body, p { widows: 2; } /* FOOTNOTES, ENDNOTES & SUPS */ sup, sup.footnote { font-size: 0.8em; line-height: 1; } /* Footnote - internal "para" styling */ span.fn_p { display: block; text-indent: 1.5em; } span.fn_blockquote { display: block; font-size: 0.95em; margin-left: 1.5em; margin-top: 0.5em; margin-bottom: 0.5em; } /* NO WRAP, NO HYPHENS */ .nowrap, span.nowrap { white-space: nowrap; } .no-hyphens, span.no-hyphens, p.no-hyphens { hyphens: none; -webkit-hyphens: none; } /* TOC SECTIONS */ #toc ul.sections { padding-top: 0.5em !important; padding-bottom: 0.5em !important; margin-left: 2em !important; } #toc li.section { font-style: italic; } /* TABLES */ table, table tr, table th { page-break-inside: avoid !important; } .no-border, table.no-border, table.no-border tbody, table.no-border th, table.no-border tr, table.no-border td, table.no-border tfoot, table.no-border thead { border-top: none; border-right: none; border-bottom: none; border-left: none; } /* INDEX */ .index .ugc { text-align: left; font-size: 0.9em; } div.index .ugc p, div.index .ugc p.indent, div.index .ugc p.nonindent, .index div + p { padding-left: 1.5em !important; text-indent: -1.5em !important; text-align: left; } .index .ugc h3.section-break-space { visibility: hidden; text-align: center; text-indent: 0; margin-top: 1em; margin-bottom: 1em; } .index .ugc p.sub-entry { padding-left: 2.5em; } /* DROPCAPS */ span.firstcharacter { font-weight: bold; font-size: 2em; line-height: 1 !important; display: inline-block; margin-bottom: 0; padding-bottom: 0; } /* SIDEBAR */ div.sidebar { width: 35%; float: right; margin-left: 0.75em; margin-right: 0; padding: 0.75em; background-color: #E6E6E6; font-size: 0.8em; font-style: italic; text-align: left !important; } .clear { clear: both; } /* FONTS =========== */ body { font: 100%/1.4 "Times New Roman", Times, Georgia, serif; padding: 1em; } a { border: .5px solid #09edfd; color: black; text-decoration: none; } /* HEADERS =============== */ h1, h2, h3, h4, h5, h6 { font-family: "Arial Narrow", Arial, "Helvetica Neue", Helvetica, sans-serif; line-height: 1.4em; font-weight: normal; } /* DEFAULT STYLES =================== */ p { margin: 0; } p + p, .indent { text-indent: 1em; 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; 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 5% 0; text-indent: 0; } p.bl_indent { margin: 0 5%; text-indent: 1em; } .hanging-indent { padding-left: 1em; text-indent: -1em; } /* TITLE PAGE ================ */ #title-page .title { border-bottom: 1px solid #000; font-size: 1.2em; font-weight: normal; margin-top: 2em; margin-bottom: 0; padding-bottom: 5px; /* position: relative; */ } #title-page .subtitle { font-size: .875em; font-style: italic; margin-top: 0; padding-top: 5px; } #title-page .author, #title-page .contributing-authors, #title-page .publisher, #title-page .publisher-city { font-family: "Times New Roman", Times, Georgia, serif; font-weight: normal; } #title-page .author { font-size: .875em; font-weight: normal; margin-top: 2em; } #title-page .contributing-authors { font-size: .875em; font-weight: normal; margin-top: 1em; } #title-page .publisher { float: bottom; font-size: .875em; font-style: italic; margin-bottom: 0; margin-top: 2em; padding-bottom: 80px; } #title-page .publisher-city { float: bottom; font-size: .75em; font-style: italic; margin-top: 0; position: relative; top: -80px; } /* 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; } div.license-attribution{ text-align: center; margin-bottom: 1em; } /* TABLE OF CONTENTS ======================= */ #toc ul { font-size: 0.875em; line-height: 1.2em; } #toc ul, #toc li { list-style: none; margin: 0; padding: 0; } #toc li { margin-bottom: 5px; } #toc ul .front-matter, #toc ul .back-matter { margin-bottom: 3px; } #toc .front-matter + .chapter, #toc .chapter + .back-matter { margin-top: 1.3em; } #toc a { border: none; color: inherit; } #toc a:after { font-style: normal; text-decoration: none; } #toc .part { font-weight: bold; margin: 1.3em 0 0.5em; } #toc span.chapter-author, #toc span.chapter-license, #toc span.chapter-subtitle { display: block; font-style: italic; margin-left: 1em; } #toc span.chapter-author, #toc span.chapter-license, #toc span.chapter-subtitle { margin-bottom: 5px; } #toc span.chapter-subtitle + span.chapter-author { margin-top: -5px; margin-bottom: 5px; } span.chapter-author + span.chapter-license { margin-top: -5px; margin-bottom: 5px; } /* TITLES for FRONT-MATTER, BACK_MATTER, CHAPTER & PART ========================================================= */ .display-none, .front-matter-number, .back-matter-number { display: none; } .front-matter-title-wrap h1.front-matter-title, #toc h1, .chapter-title-wrap h2.chapter-title, .back-matter-title-wrap h1.back-matter-title { font-size: 1.3em; font-weight: normal; margin-top: 1em; margin-bottom: 2em; } .part-title-wrap { font-family: "Times New Roman", Times, Georgia, serif; } .part-title-wrap h3.part-number { border-bottom: 1px solid #000; display: inline-block; font-weight: normal; font-family: "Times New Roman", Times, Georgia, serif; padding: 0 2em 0 1em; } .part-title-wrap h1.part-title { font: italic bold 1.1em "Times New Roman", Times, Georgia, serif; } h3.chapter-number { border-bottom: 1px solid #000; font-weight: lighter; display: inline-block; padding: 0 2em 0 1em; } div.chapter.numberless h3.chapter-number { display: none; } /* BODY TITLES =================== */ .ugc h1, .ugc h2, .ugc h3, .ugc h4, .ugc h5, .ugc h6 { margin-bottom: 15px; page-break-after: avoid; } .ugc h1 { font-size: 1.3em; } .ugc h2 { font-size: 1.2em; } .ugc h3 { font-size: 1.1em; } .ugc h4 { font-size: 1em; } .ugc h5 { font-size: 0.875em; } .ugc h6 { font-size: 0.75em; } .ugc h1 + p, .ugc h2 + p, .ugc h3 + p, .ugc h4 + p, .ugc h5 + p { margin-top: 0; } /* 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; } /* SUBTITLES, CHAPTER AUTHOR & APHORIMS ======================================== */ h2.chapter-subtitle { font-size: 1em; font-style: italic; font-weight: normal; } h2.chapter-author { font: italic 0.75em "Times New Roman", Times, Georgia, serif; } div.ugc h2.chapter-subtitle, div.ugc h2.chapter-author { margin: -1.3em 0 3em; padding-top: 0.2em; } div.ugc h2.chapter-subtitle { font-weight: lighter; } h2.chapter-subtitle + h2.chapter-author { margin-top: -0.65em; } div.blockquote.aphorism { font-size: 1em; font-style: italic; margin: -0.65em auto 4em; width: 55%; } .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; } .wp-caption { text-align: center; } .wp-nocaption { text-align: center; } p.wp-caption-text { font-size: 0.8em !important; font-style: italic !important; margin-bottom: 1em !important; text-align: center !important; } } /* 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: 1em; text-align: left; } li.front-matter { font-style: normal; font-weight: normal; font-size: 0.9em; } li.part { font-weight: bold; font-size: 1.25em; text-align: left; margin-top: 1em; } li.chapter { font-style: normal; font-weight: normal; font-size: 1em; } li.back-matter { font-weight: bold; font-size: 0.9em; 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: 1em; } #toc .front-matter { font-style: normal; font-weight: normal; font-size: 1em; } #toc .back-matter { font-style: normal; font-weight: normal; font-size: 1em; } #toc .part { font-weight: bold; margin-top: 1em; } #toc li { font-style: normal; font-weight: normal; font-size: 1em; } } /* 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; font-size: 1em; text-align: justify; } .nonindent, .no-indent, p.nonindent, p.no-indent, div.ugc p.no-indent, div.ugc p.nonindent { font-size: 1em; text-indent: 0; margin-top: 0.5em; font-family: serif; font-style: normal; font-weight: normal; text-align: justify; } .indent, p.indent, div.ugc p.indent { font-size: 1em; text-indent: 1.5em; margin-top: 0em; font-family: serif; font-style: normal; font-weight: normal; text-align: justify; } .front-matter-ugc p.indent, .front-matter-ugc p.nonindent, .front-matter-ugc p.no-indent { font-size: 1em; font-family: serif; font-style: normal; font-weight: normal; text-align: justify; } .back-matter-ugc p.indent, .back-matter-ugc p.nonindent, .back-matter-ugc p.no-indent { font-size: 1em; font-family: serif; font-style: normal; font-weight: normal; text-align: justify; } } /* headers */ @media amzn-mobi { h1 { font-weight: bold; font-style: normal; font-size: 1.4em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h2 { font-weight: bold; font-style: normal; font-size: 1.3em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } h3 { font-weight: bold; font-style: normal; font-size: 1.2em; 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: 0.9em; margin-top: 0.5em; margin-bottom: 0.5em; text-align: center; } } /* blockquotes & textboxes */ @media amzn-mobi { div.textbox { margin: 5%; border-top: 1px solid; border-bottom: 1px solid; } 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; font-style: italic; } .ugc.chapter-ugc.textbox p.nonindent, .ugc.chapter-ugc.textbox p.indent { margin-left: 10%; margin-right: 5%; font-size: 0.9em; font-style: italic; } 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 { font-size: 1.5em; margin-top: 0em; margin-bottom: 0em; } h1.front-matter-title { font-weight: normal; font-style: normal; font-size: 1.4em; 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.5em; 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; } } /* Other styling */ @media amzn-mobi { ul { text-align: left !important; } ol { text-align: left !important; } li { text-align: left !important; } } /************************* Textbook styles **************************/ .bcc-box{ /* max-width: 100%;*/ padding: 1% 3%; margin-bottom: 15px; } .bcc-box h3:first-child{ text-align: center; margin: -1% -3% 15px; color: #ffffff; padding: 15px 0 15px; } .bcc-highlight{ background-color: #f7f7f9; } .bcc-box.bcc-highlight h3{ background-color: #111111; } .bcc-success{ background-color: #eaf5ea; } .bcc-box.bcc-success h3{ background-color: #3a7a33; } .bcc-info{ background-color: #e3eff6; } .bcc-box.bcc-info h3{ background-color: #0b6396; } .bcc-warning { background-color: #fcf8e3; } .bcc-box.bcc-warning h3{ background-color: #c09853; } /** support divs to export content for web-only vs not-web; pdf-only vs not-pdf **/ .web-only, .pdf-only { display: none; } div.part-title-wrap > .part-number, div.chapter-title-wrap > .chapter-number { display: none !important; }