/* Version: 2.7 Date: 09th September 2015 What's New: 1. Added "page-break-after: avoid" to div.image blocks. 2. Added new class="hang" for hanging paragraph. 3. Change paragraph indent, text-indent: 2em; */ /* Version: 2.6 Date: 16th April 2015 What's New: 1. Floating classes "left and right" is changed to handle left and right aligned text. For floating object, create a new class as per source. 2. Chapter paragraph space is increased for better view. 3. New blockquote styles is introduced for handling blockquotes text. 4. Overriding styles for auto-hyphenation in iPad->iBooks. */ /* Last Version: 2.5 Date: 05th March 2015 What's New: 1. Added 2 new styles for removing text hyphenations and controlling Chinese word wrapping. */ /* Last Version: 2.4 Date: 10/31/2014 What's New: 1. styles to handle center alignment of image in ios8 and ibooks 4.0 2. smallcaps class is added to handle small-cap text */ @font-face { font-family: "BauerBodoniStd-Italic"; src:url(../fonts/BauerBodoniStd-Italic.otf) format(truetype); } @font-face { font-family: "BauerBodoniStd-Roman"; src:url(../fonts/BauerBodoniStd-Roman.otf) format(truetype); } @font-face { font-family: "CoreCircus"; src:url(../fonts/CoreCircus.otf) format(truetype); } @font-face { font-family: "GillSans-Light"; src:url(../fonts/GillSans-Light.ttf) format(truetype); } @font-face { font-family: "GillSans"; src:url(../fonts/GillSans.ttf) format(truetype); } @font-face { font-family: "GillSansStd-Light"; src:url(../fonts/GillSansStd-Light.otf) format(truetype); } @font-face { font-family: "HoeflerText-Italic"; src:url(../fonts/HoeflerText-Italic.ttf) format(truetype); } @font-face { font-family: "HoeflerText-Regular"; src:url(../fonts/HoeflerText-Regular.ttf) format(truetype); } @font-face { font-family: "HoeflerText-Black"; src:url(../fonts/HoeflerText-Black.ttf) format(truetype); } .covser { text-align: center; padding: 0em; margin: 0em; } a { text-decoration: none; } .right { text-align:right; } p.center { text-align: center !important; text-indent: 0 !important; margin: auto; } .box { background-color: #e8e8e8; border: thin solid black; width: 80%; padding: .5em 1em .5em 1em; margin: 1em !important; } .underline { text-decoration: underline; } /* coverpage */ .coverpage { vertical-align: middle; text-align: center; background-color: white; margin: 0em; } .coverpage img { /* height: 100%;*/ margin: 0em; } /* title page */ .titlepage { text-align: center; margin: 5% auto auto auto; padding: 1.7em 0 1.3em 0; text-align: center; } .subtitle { font-size: 1.4em; text-align: center; margin: 1em 0 0 0; } .author { margin: 2em 0 0 0; font-size: 1.3em; text-align: center; font-weight:normal; } .illustrator { font-size: 1.4em; text-align: center; margin: 7em 0 0 0; font-weight:bold; } /* toc */ /* general */ .copyright{ text-align: center; margin: 5em 0 0 0; } .dedication, .forward, .chapter, .endnotes, .glossary, .publisher, .bibliography{ text-align: left; } .chapter h1.chapter{ font-family: "GillSansStd-Light"; font-size: 1.0em; margin: 8% 0 0% 0; padding: 0em 0 0 0; text-align: center; } .chapter h1.chapter1{ font-family: "CoreCircus"; font-size: 2.0em; margin: 0% 0 15% 0; padding: 0em 0 0 0; text-align: center; } .chapter h1.title{ font-size: 1em; margin: 0% 0 0% 0; text-align: center; } .title{ font-family: "GillSansStd-Light"; font-size: 1em; margin: 0% 0 0% 0; text-align: center; } .chapter h1.title1{ font-family: "GillSansStd-Light"; font-size: 2.0em; margin: 0% 0 1% 0; padding: 0em 0 0 0; text-align: center; } .chapter h1.title1a{ font-family: "GillSansStd-Light"; font-size: 2.0em; margin: 0% 0 1% 0; padding: 0em 0 0 0; text-align: center; } .chapter h2{ font-family: "GillSans"; font-size: 1.0em; margin: 1em 0 .4em 0; } .chapter h2 span{ border-bottom: 1pt dashed; } .chapter .h2 span{ border-bottom: 1pt solid; } .chapter p.h2{ font-family: "GillSans"; font-size: 1.0em; margin: 1em 0 .4em 0; font-weight: bold; } .chapter h3 { font-family: "BauerBodoniStd-Roman"; font-size: 1.0em; margin-top: 1em; margin-bottom: 0em; padding: 0em; } .chapter h4 span{ border-bottom: 2pt solid; } .chapter p.h4 span{ border-bottom: 2pt solid; } .chapter h4{ font-family: "GillSans-Light"; font-size: 1.0em; margin: 1em 0 .4em 0; font-weight: normal; } .chapter p.h4{ font-size: 1.0em; margin: 1em 0 .4em 0; font-weight: normal; } .copyright p { font-size: 1em; text-indent: 0; padding: 0 0 1.5em 0; text-align:left; } .forward p { font-size: 1em; text-indent: 2em; margin: 0.6em 0 0 0; } .cite { font-size: .9em; text-indent: 0em; margin: 1.5em 1em 1.5em 1em; } .cite p{ text-indent: 0em; margin: 0 0 .2em 0; text-align: left; } p.blockquote { font-size: .9em; text-align: left; text-indent: 0; margin: 1.5em 1em 1.5em 1em; } blockquote p { font-size: .9em !important; text-align: left !important; text-indent: 0 !important; margin: 1.5em 1em 1.5em 1em !important; } p.handwritten { font-style: italic; margin: .5em auto .5em auto; width: 85%; } .chapter p.hang { font-family: "HoeflerText-Regular"; padding-left: 1em !important; margin-bottom: 0% !important; margin-top: 0em !important; text-indent: -1em !important; font-size: 0.9em; } .chapter p.hang1{ font-family: "HoeflerText-Regular"; padding-left: 0em; margin-bottom: 0%; margin-top: .5em; text-indent: 0em; font-size: 1em; } .chapter p.hang1 b{ font-size: 1.5em; padding-right: .5em; } .code p { font-family: "Courier"; margin: 1em auto 1em auto; width: 85%; text-indent: 0; } .header { font-weight: bold; } /* lists */ ol { margin: .2em 0 1em 0; } ul { margin: .2em 0 1em 0; } /* section divider */ .section { text-align: center; margin: 8% auto auto auto; padding: 2em 0 3em 0; } .section h1 { font-size: 1.8em; text-align: center; } .section h2 { font-style: italic; text-align: center; } /* images */ div.image { text-align: center; margin: 1em 0 1em 0; page-break-before: avoid; } div.image1 { text-align: center; margin: 0em 0 3em 0; page-break-before: avoid; } div.image2 { text-align: center; margin: 0em 0 0em 0; page-break-before: avoid; } div.image p { font-style: italic; font-size: 1em; margin: 1.5em auto 1.5em auto; text-indent: 0; text-align: left; } /* table */ /* tables should only be used for displaying data. Please do not use tables to layout images */ table { width: 100%; border-top: medium solid black; border-bottom: medium solid black; border-left: none; border-right: none; margin: 1em auto; border-collapse:collapse; } /* bibliography */ .bibliography p { padding-left: 1em; margin-bottom: 0%; text-indent: -1em; } img { max-width: 100%; max-height: 100%; width: auto; } .smallcaps { font-variant: small-caps; } .chapter p.toc-ttl{ font-family: "CoreCircus"; display: block; font-size: 1.7em; text-align: center; text-indent: 0em; margin-left: 0em; margin-top: 1em; margin-bottom: 0em; font-weight: bold; } .chapter p.toc1 { font-family: "CoreCircus"; display: block; font-size: 1em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 1em; margin-bottom: 1em; font-weight: bold; text-decoration: underline; } .toc { display: block; font-size: 1em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 0em; margin-bottom: 0em; } .chapter span.line{ border-bottom: 3pt solid; } .chapter p.toc2{ font-family: "GillSans"; display: block; font-size: 1em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: .5em; margin-bottom: 0em; } .chapter p.txt { font-family: "GillSans"; display: block; font-size: 1em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 1em; margin-bottom: 1em; font-weight: bold; } .chapter p.tx1 { font-family: "BauerBodoniStd-Italic"; display: block; font-size: 1em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 0em; margin-bottom: 0em; } .chapter p.tx1a { font-family: "HoeflerText-Regular"; display: block; font-size: 1em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 0em; margin-bottom: 0em; } .chapter p.copy { font-family: "GillSans"; display: block; font-size: 1em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 10em; margin-bottom: 0em; } .chapter p.copy1 { font-family: "GillSans"; display: block; font-size: .9em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 1em; margin-bottom: 0em; } .chapter p.left { display: block; font-family: "HoeflerText-Regular"; font-size: .9em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 0em; margin-bottom: 0em; } .chapter p.txt span { border-bottom: 1pt solid; padding-bottom: .2em; } .chapter p.txt1 { font-family: "HoeflerText-Regular"; display: block; font-size: .8em; text-align: left; text-indent: 0em; margin-left: 0em; margin-top: 0em; margin-bottom: 0em; }