/* Canelo Base CSS template */ /* General */ body { border: 0; font-size: 100%; margin: 0; padding: 0; text-align: justify; } p { text-indent: 1em; font-size: 1em; margin: 0; } code { font-family: monospace; } sup, sub { line-height: 0; } /* IDs */ h1.hidden, h2.hidden { display: none; } #cover, #patch { text-align: center; overflow: hidden; padding: 0px; margin: auto; height: 99%; height: 99vh; width: 100%; } img#coverimage, #patch > img { height: 99%; } img#coverimage:only-of-type, #patch > img { /*overrides the previous setting, but only in newer systems that support CSS3 */ height: 99vh; } /* Headings */ h1, h2, h3 { text-align: center; margin: 0em; } h1 { font-size: 1.6em; margin-top: 1em; } h2 { font-size: 1.4em; } h3 { font-size: 1.2em; } h4, h5, h6 { text-align: left; font-size: 1em; margin: 0; } h4 { font-weight: bold; } h5 { font-style: italic; } h6 { font-weight: normal; font-style: normal; } h1 + section.level2 { margin-top: 1em; } h2 + section.level3, h3 + section.level4, h4 + section.level5 { margin-top: 1em; } section + section, p + section { margin-top: 2em; } h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p { margin-top: 1em; text-indent: 0em; } span.head_multiline { display: block; font-size: 100%; /*this is adjustable*/ margin-top: 0em; /*this is adjustable*/ } /* Title Page styles */ h1.title { font-size: 2.2em; } h2.subtitle { font-size: 2em; margin-top: 1em; } h2.author { font-size: 1.8em; margin-top: 2em; margin-bottom: 3em; } div.logo { margin: 1em auto 0 auto; text-align: center; } #dedication, #epigraph { margin: 3em 1em 1em 1em; } #dedication > p { font-style: italic; text-align: center; text-indent: 0; margin-top: 1em; } #copyright > p { text-align: center; text-indent: 0; margin-top: 1em; } #author_bio p + p { text-indent: 0em; margin-top: 1em; } /* Alignment */ .no_indent { text-indent: 0em; } .no_indent_top_space { text-indent: 0em; margin-top: 1em; } /* Only use .centred in block level elements with children, as it will result in spaces above and below in print ouput. Use .centred_para for centred paragraphs with no spacing */ .centred, .centred p, .centred_para { text-align: center; text-indent: 0em; } .centred > p + p { margin-top: 1em; } /* .centred_top_space here only for backwards compatability */ /* Best to use .centred_top_space_para */ .centred_top_space, .centred_top_space_para { text-align: center; margin-top: 1em; text-indent: 0em; } /* .right_align here only for backwards compatability */ /* Best to use .right_align_para */ .right_align, .right_align_para { text-indent: 0em; text-align: right; } /* .right_align_top_space here only for backwards compatability */ /* Best to use .right_align_top_space_para */ .right_align_top_space, .right_align_top_space_para { text-indent: 0em; text-align: right; margin-top: 1em; } /* .left_align here only for backwards compatability */ /* Best to use .left_align_para */ .left_align, .left_align_para { text-indent: 0em; text-align: left; } /* .left_align_top_space here only for backwards compatability */ /* Best to use .left_align_top_space_para */ .left_align_top_space, .left_align_top_space_para { text-indent: 0em; text-align: left; margin-top: 1em; } .no_header { margin-top: 3em; } .top_space { margin-top: 1em; } .top_space_half { margin-top: 0.5em; } .no_indent_top_space_half { margin-top: 0.5em; text-indent: 0em; } /* Blockquotes */ blockquote { margin: 1em; } blockquote p { text-indent: 0em; } blockquote p + p { text-indent: 1em; } div + p, blockquote + p { text-indent: 0em; } .hanging_indent p { text-indent: -1em; margin-left: 1em; } /*Text messages*/ /* Usage is as classed blockquotes with the appropriate class*/ .text-messages-received { width: 45%; background-color: #58a5ff; border: 1px solid #58a5ff; text-align: left; padding: 10px 20px; border-radius: 0.8em; margin: 1em 2em; page-break-inside: avoid; } .text-messages-sent { width: 45%; margin-left: 35%; background-color: #d4ebf2; border: 1px solid #d4ebf2; text-align: left; padding: 10px 20px; border-radius: 0.8em; page-break-inside: avoid; } .text-messages-notification { border: 1px solid grey; text-align: center; padding: 10px 20px; border-radius: 0.8em; margin: 1em 2em; page-break-inside: avoid; } .text-messages-received p, .text-messages-sent p, .text-messages-notification p { font-family: system-ui, Helvetica, sans-serif; font-style: normal; font-size: 0.8em; text-indent: 0em; } /* Bibliography and hanging indent text not in a blockquote*/ p.hanging_indent_bibliography { text-indent: -1em; margin-left: 1em; margin-top: 0.5em; } /* Span */ span.smallcaps { text-transform: uppercase; font-size: 0.8em; } span.underline { text-decoration: underline; } span.normal { font-style: normal; } /* Separator */ hr { margin-top: 2em; margin-bottom: 2em; font-size: 1em; text-align: center; border: none; background: none; } hr:after { content: "*"; font-size: 1em; border: none; background: none; } hr + p { text-indent: 0; } nav#toc ol, nav#landmarks ol { padding: 0; margin-left: 1em; } nav#toc ol li, nav#landmarks ol li { list-style-type: none; margin: 0; padding: 0; } code { white-space: pre-wrap; } q { quotes: "“" "”" "‘" "’"; } div.column { display: inline-block; vertical-align: top; width: 50%; } div.hanging-indent { margin-left: 1.5em; text-indent: -1.5em; } /* TOC styles */ .toc ol, .toc ul { margin: 0em; } .toc li p { text-indent: 0em; margin-bottom: 0em; } /* Lists styles */ ol, ul { margin: 1em; } li p { text-indent: 0em; margin-bottom: 0.5em; } ol + p, ul + p { text-indent: 0em; } /* Footnotes */ a.footnote-ref { vertical-align: super; } .footnote-ref, .footnotes { font-size: 85%; } /*Series pages*/ h1.hidden_in_ebook { display: none; } .next_endad { text-align: center; margin: 1.5em auto; width: 50%; } .series_endad { text-align: center; margin: 1.5em auto; width: 100%; } .series_endad img, .next_endad img { width: 100%; } /*newsletter page*/ .newsletter_logo { text-align: center; margin: 2em auto 3em auto; width: 40%; } .newsletter_logo img { width: 100%; } /* Canelo Crime ads */ .crime_logo { text-align: center; margin: 2em auto 3em auto; width: 70%; } .crime_logo img { width: 100%; } .crime_titles { margin-top: 2em; font-size: 1.2em; text-indent: 0em; text-align: center; } .crime_authors { margin-bottom: 1em; text-indent: 0em; text-align: center; } .crime_authors + p { text-indent: 0em; } /* Amazon media queries */ @media amzn-mobi { .hanging_indent p { text-indent: -1.5em; margin-left: 0; } }