/* Explicitly set all Defaults */ * { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; } /* --------- General Rules --------- */ /* Set Book dimensions and margins. If book is thicker make margin-inside: .875in;*/ @page { size: 5.5in 8.5in; margin-top: .875in; margin-bottom: .625in; margin-inside: .75in; margin-outside: .625in; marks: crop cross; prince-bleed: 0.125in; } /* set up Running head/feet for generic and named pages (blank and frontmatter are default) */ @page body :first { @top-center {content: normal;} @bottom-center { margin: 0; content: counter(page); vertical-align: bottom; text-align: center; text-indent: 0; font-size: 8.5pt; font-family: MyriadPro-Regular; padding-bottom: 24pt;} } @page body :left { @top-center { content: flow(verso); vertical-align: top;} @bottom-center {content: normal;} } @page body :right { @top-center { content: flow(recto); vertical-align: top;} @bottom-center {content: normal;} } @page body :blank { @top-center {content: normal;} @bottom-center {content: normal;} } @page frontmatter :blank { @top-center {content: normal;} @bottom-center {content: normal;} } @page blank { @top-center {content: normal;} @bottom-center {content: normal;} } @page frontmatter :first { @top-center {content: normal;} @bottom-center { content: counter(page, lower-roman); margin: 0; vertical-align: bottom; text-align: center; text-indent: 0; font-size: 8.5pt; font-family: MyriadPro-Regular; padding-bottom: 24pt;} } @page frontmatter :left { @top-center { content: flow(verso-FM); vertical-align: top;} @bottom-center {content: normal;} } @page frontmatter :right { @top-center { content: flow(recto-FM); vertical-align: top;} @bottom-center {content: normal;} } @page copyright { @top-center {content: normal;} @bottom-center {content: normal;} } @page blurbs { padding: 0; margin-top: .875in; margin-bottom: .35in; margin-inside: .875in; margin-outside: .625in; @top-center {content: normal;} @bottom-center {content: normal;} } /* Running Headers, Footers */ /* Design of all headers */ h1.float-book-title, h1.float-title, h1.float-book-title:before, h1.float-title:after, h1.float-book-title-FM, h1.float-title-FM, h1.float-book-title-FM:before, h1.float-title-FM:after { margin: 0; text-indent: 0; font-size: 8.5pt; font-family: MyriadPro-Regular; font-weight: normal; padding-top: 20pt; vertical-align: top; } /* Pick up General Header Content (headers duplicated from titles via PERL) */ h1.float-book-title { flow: static(verso); text-align: left; } h1.float-book-title:before { content: counter(page); display: inline; padding-right: 15pt; } h1.float-title { flow: static(recto); text-align: right; } h1.float-title:after { content: counter(page); display: inline; padding-left: 15pt; } /* Pick up Frontmatter Header Content (roman numerals require a full set of heads) */ h1.float-book-title-FM { flow: static(verso-FM); text-align: left; } h1.float-book-title-FM:before { content: counter(page, lower-roman); display: inline; padding-right: 15pt; } h1.float-title-FM { flow: static(recto-FM); text-align: right; } h1.float-title-FM:after { content: counter(page, lower-roman); display: inline; padding-left: 15pt; } /* Declare General Body Font and paragraph styling */ html { line-height: 16pt; font-size: 11pt; font-family: AGaramondPro; /* this creates a counter for the chapters */ counter-reset: chapter_count; /* the following is a Prince hack that disables ligatures */ font-variant: prince-opentype(ccmp); } /* --------- General Inlines --------- */ /* For editorial commentary and highlighting */ span.remark { color: red; } /* Make Links look like regular text */ a, code { font-family: inherit; color: black; text-decoration: none; hyphens: none; } /* Styling of Cross-references, adds page number of landing anchor */ a.cross-ref { content: "on page "target-counter(attr(href), page); display: inline; hyphens: manual; } .smallcaps { display: inline; font-variant: small-caps; } em, .italic, em.emphasis, em.citetitle, em.foreignphrase { font-family: AGaramondPro-Italic; font-style: normal; } strong { font-family: AGaramondPro-Bold; font-style: normal; font-weight: normal; } /* Two Italics cancel each other out */ em em { font-family: AGaramondPro; font-style: normal; } /* div.chapter p:first-letter*/ .dropcap { margin-top: 4pt; margin-right: 2pt; float: left; line-height: 28pt; font-size: 38pt; } /* --------- General Body Text --------- */ p, p.noindent { text-align: justify; text-indent: 0; /* identifies hyphenation dictionary file */ prince-hyphenate-patterns: url('hyph_en_US.dic'); prince-hyphenate-lines: 2; prince-hyphenate-before: 3; prince-hyphenate-after: 3; widows: 2; orphans: 2; hyphens: auto; } p + p, p.indent, div.sidebar p.pullquote + p { text-indent: 12pt; } div.preface p.signature, p.signature { margin-left: 36pt; text-align: right; hyphens: none; } /* Epigraphs and Blockquotes */ div.epigraph { margin: 0 12pt 10pt 12pt; } div.blockquote { margin: 8pt 12pt; } div.blockquote p { line-height: 14pt; font-size: 10.5pt; } div.epigraph p { text-align: center; font-family: AGaramondPro-Italic; font-style: normal; } div.epigraph p.attribution { text-align: center; text-indent: 0; font-size: 10.5pt; font-family: AGaramondPro; font-style: normal; } div.blockquote p.attribution { page-break-before: avoid; text-align: right; font-style: normal; } /* Verse */ /* typically occurs in epigraph or blockquote let those elements handle margin/padding */ div.poem { margin: 8pt 12pt; } div.stanza + div.stanza { margin-top: 8pt; } div.stanza > p.verse-line:first-child { page-break-after: avoid; } div.stanza > p.verse-line:last-child { page-break-before: avoid; } p.verse-line { margin-left: 30pt; text-align: left; text-indent: -30pt; hyphens: none; } p.verse-line-ind1 { margin-left: 30pt; text-align: left; text-indent: -20pt; hyphens: none; } p.verse-line-ind2 { margin-left: 30pt; text-align: left; text-indent: -10pt; hyphens: none; } p.verse-line-ind3 { margin-left: 30pt; text-align: left; text-indent: -5pt; hyphens: none; } /* Lists */ div.orderedlist, div.itemizedlist { margin-top: 6pt; margin-bottom: 8pt; } div.orderedlist p, div.itemizedlist p { margin-bottom: 0; text-indent: 0; } /*ol list-style-type: upper-roman|lower-roman|lower-alpha|none|inherit;*/ ol { list-style-type: decimal; } /*ul list-style-type: disc|circle|square|hyphen|none;*/ ul { list-style-type: disc; } /* List-style-position: inside|outside; */ ul, ol { margin-top: 0; margin-left: 20pt; list-style-position: outside; } li.listitem p { margin-bottom: 2pt; text-align: left; text-indent: 0; } /*Determines space between bullet/number and text*/ li::marker { padding-right: 7px; } .variablelist { margin: 8pt 0 8pt 0; } .varlistentry p { margin-top: 6pt; text-align: justify; text-indent: 0; } .varlistentry p:first-child { margin-top: 0; } .varlistentry p + p { margin-top: 0; text-indent: 12pt; } /* If using Inline Varlists/Glossary terms */ span.term, span.glossterm, span.pron { font-family: AGaramondPro-Bold; font-style: normal; } /* If using block varlists */ p.term { margin-bottom: 0; font-family: AGaramondPro-Bold; font-style: normal; } /* --------- Book Sections --------- */ /* Half Title page */ @page halftitlepage {} div.halftitlepage { prince-page-group: start; page: halftitlepage; page-break-after: always; } /* Main Title page as text*/ div.maintitlepage { page: maintitlepage; page-break-before: right; page-break-after: always; prince-page-group: start; } @page maintitlepage { @top-center {content: normal;} @bottom-center { content: flow(lp-titlepage-logo); vertical-align: bottom; padding-bottom: 24pt;} } div.halftitlepage h1.title, div.maintitlepage h1.title { margin: 20pt 0 0 0; text-align: center; line-height: 48pt; font-size: 50pt; font-family: TrajanPro-Regular; font-weight: normal; } span.forthe { font-size: 75pt; font-family: ZapfinoExtraLTPro; color: grey; } div.maintitlepage h2.subtitle { margin: 28pt 0pt 85pt 0pt; text-align: center; line-height: 30pt; font-size: 16pt; font-family: TrajanSansPro-Regular; font-weight: normal; /*letter-spacing: 1pt;*/ } div.maintitlepage h3.author { text-align: center; font-size: 15pt; font-family: TrajanPro-Regular; font-weight: normal; text-transform: uppercase; /*letter-spacing: 1pt;*/ } div.LP-titlepage-logo { flow: static(lp-titlepage-logo); } div.LP-titlepage-logo img { page-break-after: always; display: block; margin: 0 auto; text-align: center; width: 102pt; height: auto; } /* Copyright Page */ div.copyrightpage { page: blank; prince-page-group: start; page-break-before: left; vertical-align: bottom; width: 100%; position: fixed; bottom: -.35in; } div.copyright-logo img { text-align: left; width: 102pt; height: auto; } div.legalnotice { margin-top: 8pt; margin-bottom: 8pt; } p.copyright, p.copyright-statement, div.legalnotice p, p.isbn13, p.isbn10, p.LCCN { margin: 0; text-align: left; text-indent: 0; line-height: 11pt; font-size: 8pt; font-family: AGaramondPro; hyphens: none; } div.legalnotice p + p, div.book_ids { margin-top: 11pt; } /*div.legalnotice[id="id-1.1.13"] p + p { margin-top: 0; }*/ /* The following shouldn't be necessary if conditional profiling worked on transform, but just in case... */ p.eBookPubdate, p.eBookISBN { display: none; } /* Dedication, xml markup (if 2 dedications, see book "Stripped" */ div.dedication, div.colophon { page: blank; page-break-before: always; margin: 142pt 24pt 0 24pt; } div.dedication p, div.colophon div.epigraph p, div.dedication div.epigraph p.verse-line { /* margin-left: 0;*/ margin-bottom: 4pt; text-align: center; text-indent: 0; font-size: 11.5pt; font-family: AGaramondPro-Italic; font-style: normal; hyphens: none; } div.dedication p.attribution, iv.colophon p.attribution, div.dedication div.epigraph p.epi-attribution { margin-top: 0; text-align: center; text-indent: 0; font-size: 10.5pt; font-family: AGaramondPro; font-style: normal; } div.dedication div.epigraph + div.epigraph, div.colophon div.epigraph + div.epigraph { margin-top: 20pt } /* Table of Contents */ div.toc { page-break-before: right; page: frontmatter; prince-page-group: start; margin-left: 0; margin-right: 0; padding: 0; } .toc p { /* tweak this to get the hanging indent aligned */ margin-left: 20pt; text-indent: -20pt; text-align: left; font-style: normal; font-weight: normal; hyphens: none; } p.toc-preface-line, p.toc-bibliography-line, p.toc-appendix-line, p.toc-glossary-line { margin-top: 8pt; margin-bottom: 4pt; font-variant: small-caps; } p.toc-part-line { page-break-after: avoid; margin-top: 16pt; margin-bottom: 2pt; } span.toc-part-label, span.toc-chapter-label { font-size: 10pt; font-family: MyriadPro-Regular; font-weight: normal; } /* remember to keep the "a" in this selector for styling */ span.toc-part-title a { /* font-family: HelveticaLTStd-Bold; */ font-weight: normal; } p.toc-chapter-line { page-break-inside: avoid; margin-top: 8pt; margin-bottom: 3pt; margin-left: 18pt; /*make 28pt if Part*/ line-height: 14pt; } /* remember to keep the "a" in this selector for styling */ span.toc-chapter-title a { } /* to Generate Page Numbers for TOC, including roman for preface see Walking With Jesus/Life & Revolution if using leaders in TOC*/ div.toc a::after, div.toc p.toc-part-line a::after, div.toc p.toc-section-line a::after { content: leader('.') target-counter(attr(href), page); /*float: right;*/ /*If no leaders*/ font-size: 9.5pt; font-family: AGaramondPro; } div.toc p.toc-preface-line a::after { content: leader('.') target-counter(attr(href), page, lower-roman); /*float: right;*/ /*If no leaders*/ font-size: 9.5pt; font-family: AGaramondPro; font-variant: normal; } /* Preface */ div.preface { page: frontmatter; prince-page-group: start; page-break-before: right; } /* General Rules for Heads, set up Chapter heads here, everything else is an exception */ h1, h2, h3, h4, h5, h6 { page-break-after: avoid; display: block; text-align: center; text-indent: 0; line-height: 24pt; /*If Sans-serif may need to adjust size*/ font-size: 22pt; /*If Sans-serif may need to adjust size*/ font-family: MyriadPro-Regular; font-style: normal; font-weight: normal; padding: 0; hyphens: none; } /* Most FM, BM h1 heads styles here, except div.toc h1, otherbooks h1 */ /* h1 */ div.preface > div.titlepage > .title, div.appendix > div.titlepage > .title, div.bibliography > div.titlepage > .title, div.endnotes > div.titlepage > .title, div.acknowledgements > div.titlepage > .title, div.ata > div.titlepage > .title, div.glossary h1.title { margin-top: 150pt; margin-bottom: 48pt; } div.toc .title { margin-top: 0pt; margin-bottom: 48pt; } /*If NO h1.chapter-label/h1.part-label, div.chapter > div.titlepage > .title should be margin-top: 150pt*/ div.chapter h1.chapter-label { margin-top: 115pt; margin-bottom: 16pt; font-size: 26pt; font-family: Town23Lines-Light; /*background-image: url('ia_5043_SpiritualPracticesBrain/ch1_opener.jpg'); background-position: 0 0; background-repeat: no-repeat; background-size: 4.125in auto; background-image-resolution: 300dpi;*/ } /* Chapters */ div.chapter { page: body; prince-page-group: start; page-break-before: right; } /*Ch Opener background images [id="id-1.5"]*/ div.chapter[id="id-1.5"] { background-image: url('ia_5043_SpiritualPracticesBrain/ch1_opener.jpg'); background-position: 0 0; background-repeat: no-repeat; background-size: 4.125in auto; background-image-resolution: 300dpi; /*the following opens up a viewing area for the background image into the margin*/ margin-top: -.5in; padding-top: .25in; } /* Remember that Chapter heads are first styled in the general h1, h2, etc section above */ /* h1 */ div.chapter > div.titlepage > .title { margin: 0 24pt 12pt 24pt; /*48pt*/ } /* Sections */ /* h2 */ div.section .title { margin: 16pt 24pt 2pt 24pt; text-align: center; line-height: 16pt; font-size: 14pt; font-family: AGaramondPro-Bold; font-style: normal; } /* h3 */ div.section div.section .title { margin: 16pt 20pt 0 0; text-align: left; line-height: 16pt; font-size: 12pt; font-style: normal; } /* Appendices, EM */ div.appendix, div.bibliography, div.acknowledgements, div.endnotes { page: body; page-break-before: right; prince-page-group: start; } div.appendix div.section .title { margin-top: 8pt; margin-left: 0; text-align: left; } div.appendix div.section { margin-top: 8pt; margin-bottom: 8pt; } /* About the Author */ div.ata { prince-page-group: start; page: body; page-break-before: always; } /* Bibliography */ div.bibliomixed { margin-bottom: 8pt; text-align: left; text-indent: 18pt hanging; line-height: 14pt; hyphens: none; } /* Endnotes in back of book*/ div.footnote { margin-bottom: 8pt; } div.footnote p { text-align: left; text-indent: 18pt hanging; line-height: 14pt; hyphens: none; } .inline-footnote-marker { vertical-align: super; line-height: -6px; font-size: 70%; } /* Use this section INSTEAD when using on-page footnotes instead of endnotes */ @page { @footnotes { margin-top: 14pt; border-top: solid black thin; padding-top: 6pt; } } .onpage-footnote { float: footnote; counter-increment: footnote; margin-right: 12pt; margin-bottom: 1pt; text-indent: 9.5pt hanging; text-align: left; line-height: 10pt; font-size: 8pt; footnote-style-position: inside; hyphens: none; } /*Footnote calls are the numeric anchors in the text that refer to the footnotes If you want footnote number in brackets use this content: "[" counter(footnote) "]"*/ .onpage-footnote::footnote-call { content: counter(footnote); line-height: none; font-size: inherit; vertical-align: super; } /*Numeric markers placed in front of the footnote text Turn off decimal after number in ControlPanel.xsl, footnote.body.marker.after*/ .onpage-footnote::footnote-marker { padding-right: 2px; } /* Tables */ table { margin-top: 16pt; margin-bottom: 16pt; border-collapse: collapse; } thead tr td { text-align: center; font-family: AGaramondPro-Bold; font-style: normal; vertical-align: bottom; } td { page-break-inside: avoid; border: .5pt solid black; width: 50%; padding: 4pt; vertical-align: top; } td + td { width: 50%; vertical-align: top; } td, td p { text-align: left; line-height: 11pt; font-size: 8.75pt; vertical-align: top; hyphens: none; } /* Images */ div.text-break { margin: 10pt auto 5pt auto; text-align: center; } /* Dingbat */ div.text-break img { width: 50pt; height: auto; } /* CHEATS! */ /* Use Perl to add this div to fix bad page breaks */ .no-break-inside { page-break-inside: avoid; } /* added via XML (DocBook ), used for manual fixes of hyphens across page */ .no-hyphen { hyphens: none; } /* added via perl scripts, used for systemic fixes (last word of paragraph, hyphenated compounds) */ .perl-no-hyphen { hyphens: none; } /* allows you to track in letter or word spacing to cheat text fit */ .tighten { word-spacing: -1px; letter-spacing: inherit; } /* allows you to track out letter or word spacing to cheat text fit */ .loosen { word-spacing: 1px; letter-spacing: inherit; } /* =============================================== Project Specific Code =============================================== */ /* Sidebars and Pullquotes */ /* Epig 2, Sidebar as block text */ /*div.sidebar { margin-top: 8pt; margin-bottom: 8pt; margin-left: 24pt; margin-right: 24pt; } div.sidebar p { margin-bottom: 0; text-align: left; text-indent: 0; line-height: 11pt; font-size: 9pt; font-family: MyriadPro-Regular; hyphens: none; }*/ /* Sidebar as float, epig2 */ div.sidebar { display: block; page-break-inside: avoid; float: right; width: 1.3in; margin: 2pt 0 8pt 12pt; border-top: 1px black solid; border-bottom: 1px black solid; border-left: none; border-right: none; padding: 4pt 0 3pt 0; } /*div.sidebar .title { margin-bottom: 1pt; line-height: 14pt; font-size: 12pt; font-family: MyriadPro-Regular; font-weight: normal; padding: 0; }*/ div.sidebar p.pullquote, div.sidebar p { margin-bottom: 0; text-align: left; text-indent: 0; line-height: 11pt; font-size: 9pt; /*8.75pt*/ font-family: MyriadPro-Light; font-style: normal; hyphens: none; } div.sidebar strong { font-family: MyriadPro-Regular; } div.chapter div.sidebar p.pullquote + p, div.sidebar p.pullquote + p, div.sidebar p + p { text-indent: 0; } div.sidebar p.pullquote + p { margin-top: 0; text-indent: 12pt; } div.sidebar .itemizedlist { margin-left: 6pt; margin-top: 4pt; margin-bottom: 2pt; } /*Practice section in grey tint box*/ p.practice + p.practice { margin-top: -8pt; margin-bottom: 8pt; text-indent: 12pt; padding-top: 0; } div.simplesect { margin: 16pt auto; } /*Practice section in grey tint box*/ div.simplesect p, div.simplesect > div.titlepage > p, p.practice { margin-top: 8pt; margin-bottom: 8pt; margin-left: 0; margin-right: 0; background-color: #e6e6e6; padding: 9pt; text-indent: 0; line-height: 12.7pt; font-size: 9.3pt; font-family: MyriadPro-Regular; hyphens: none; } /*Good for URL websites a.link { word-wrap: break-word; 
 hyphens: auto;
 word-break: break-all; }*/ /*This works for Prince*/ a.link { 
 /*display: inline-block;*/ 
 /*word-wrap: break-word;*/ overflow-wrap: break-word;
 word-break: break-all;
 hyphens: auto; font-size: 9pt; 
 text-indent: 0; 
} /* Fonts */ @font-face { font-family: "AGaramondPro"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/AGaramondPro-Regular.otf); } @font-face { font-family: "AGaramondPro-Italic"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/AGaramondPro-Italic.otf); } @font-face { font-family: "AGaramondPro-Bold"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/AGaramondPro-Bold.otf); } @font-face { font-family: "AGaramondPro-BoldItalic"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/AGaramondPro-BoldItalic.otf); } @font-face { font-family: "Town23Lines-Light"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/Town23Lines-Light.otf); } @font-face { font-family: "TrajanPro-Regular"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/TrajanPro-Regular.otf); } @font-face { font-family: "TrajanSansPro-Regular"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/TrajanSansPro-Regular.otf); } @font-face { font-family: "MyriadPro-Light"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/MyriadPro-Light.otf); } @font-face { font-family: "MyriadPro-LightIt"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/MyriadPro-LightIt.otf); } @font-face { font-family: "MyriadPro-Regular"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/MyriadPro-Regular.otf); } @font-face { font-family: "MyriadPro-It"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/MyriadPro-It.otf); } @font-face { font-family: "ZapfinoExtraLTPro"; font-style: normal; font-weight: normal; src:url(if_5043_SpiritualPracticesBrain/ZapfinoExtraLTPro.otf); }