body { font-family: serif; margin-left: 3%; margin-right: 3%; margin-top: 3%; margin-bottom: 3%; color: black; } p { text-indent: 1em; /* text indent one EM by default. */ margin-top: 0; margin-bottom: 0; orphans: 2; /* widow and orphan control won't do much on kindle - solves some issues on iPad */ widows: 2; } /* Headings Set up the defaults for h1-h6 and then modify */ h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0; font-weight: normal; } /* Use h1 for title page only */ h1.book_title { margin-top: 10%; page-break-after: avoid; text-align: center; margin-bottom: 2em; /* Make sure that any subtitle is separated. */ } /* Subtitle for book is an h2 */ h2.book_subtitle { page-break-after: avoid; text-align: center; margin-bottom: 1em; } h2.book_author { page-break-after: avoid; text-align: center; margin-bottom: 1em; } /* Other title page text */ p.title_page { text-align: center; } /* This paragraph style is basically the same as above but we are using it to have a specific style for imprint/publisher logos */ p.publisher_logo { margin-top: 3em; text-align: center; margin-bottom: 3em; } /* Use h2 for parts and chapters. Default style is to use the centred chapter head. */ h2.chapter_head_left { text-align: left; page-break-after: avoid; margin-top: 10%; margin-bottom: 2em; } h2.chapter_number_left { text-align: left; page-break-after: avoid; margin-top: 10%; margin-bottom: 1em; } h2.chapter_head { text-align: center; font-size: 2em; page-break-after: avoid; margin-top: 10%; margin-bottom: 1em; } h2.chapter_number { text-align: center; page-break-after: avoid; margin-top: 10%; margin-bottom: 2em; } /* This is deliberately empty - it's a placeholder */ span.chapter_number { } /* Use h3 for A heads and equivalents (highest level heads in a chapter). */ h3.a_head_left { text-align: left; page-break-after: avoid; margin-bottom: 1em; } h3.a_head { text-align: center; margin-bottom: 1em; page-break-after: avoid; } /* Use h4 for B heads and other subheads under A heads. Default for B and C heads is flush left */ h4.b_head { text-align: left; page-break-after: avoid; margin-bottom: 1em; } h4.b_head_center { text-align: center; page-break-after: avoid; margin-bottom: 1em; } /* Use h5 for C heads and other subheads under B heads. */ h5.c_head { text-align: left; page-break-after: avoid; margin-bottom: 1em; } h5.c_head_center { text-align: center; page-break-after: avoid; margin-bottom: 1em; } /* Use h6 for captions and so on. */ p.figure_caption_left { text-align: left; page-break-after: avoid; margin-bottom: 1em; } p.figure_caption { page-break-after: avoid; text-align: center; margin-bottom: 1em; } h6.box_head_left { text-align: left; page-break-after: avoid; font-weight: bold; } h6.box_head { page-break-after: avoid; text-align: center; font-weight: bold; } /* Body Text. There are two main formats for the body text - flush left and indented. Because the kindle and iBooks have different defaults we don't use the default paragraph style. Random house default paragraph style requires that the first para in a chapter use p.flush_left and following paras use p.indented */ p.flush_left { text-indent: 0; margin-top: 0; margin-bottom: 0; } p.flush_left_top_space { text-indent: 0; margin-top: 1em; margin-bottom: 0; } p.indented { text-indent: 1em; margin-top: 0; margin-bottom: 0; } p.flush_left_space_after { text-indent: 0; margin-top: 0; margin-bottom: 1em; } p.indented_space_after { text-indent: 1em; margin-top: 0; margin-bottom: 1em; } /* Hanging indents This now works on most devices. */ p.hanging_indent_space_after { margin-top: 0; margin-bottom: 1em; text-indent: -1em; padding-left: 1em; font-size: 0.9em; } p.extra_hanging_indent_space_after { margin-top: 0; margin-bottom: 1em; text-indent: -1em; padding-left: 2em; } p.hanging_indent { margin-top: 0; text-indent: -1em; padding-left: 1em; font-size: 0.9em; } p.extra_hanging_indent { margin-top: 0; text-indent: -1em; padding-left: 2em; } /* Cover page */ body.cover_page { margin: 0; padding: 0; } div.cover_image { text-align: center; margin: 0; padding: 0; } img.cover_image { max-width: 100%; height: 100%; } /* Page breaks */ div.break_before { page-break-before: always; } div.break_after { page-break-after: always; } /* Pages which require a larger top margin. */ body.prelims_page { margin-top: 15%; } /* Full page images */ div.full_page_image { page-break-after: always; page-break-before: always; page-break-inside: avoid; text-align: center; } /* Block images - these must be contained within a div element No top margin as we use bottom margins throughout. */ div.image { text-align: left; text-indent: 0; margin-bottom: 1em; } div.centered_image { text-align: center; } div.image_container { page-break-inside: avoid; } /* Table of contents */ h2.toc_head { text-indent: 0; margin-bottom: 1em; text-align: center; } p.toc_text { font-weight: normal; text-indent: 0; line-height: 1.3em; } p.toc_text_indent { font-weight: normal; text-indent: -1em; margin-left: 2em; line-height: 1.3em; } p.toc_text_indent_extra { font-weight: normal; text-indent: 2em; } p.toc_text_space_after { font-weight: normal; text-indent: 0; margin-bottom: 1em; line-height: 1.2em; } p.toc_text_indent_space_after { font-weight: normal; text-indent: 1em; margin-bottom: 1em; line-height: 1.3em; } p.toc_text_indent_extra_space_after { font-weight: normal; text-indent: 2em; margin-bottom: 1em; } p.toc_text1 { font-size:0.85em; text-indent: -1em; margin-left: 1em; margin-top: 0.2em; margin-bottom: 0em; line-height: 1.3em; /* CHECK THIS! */ } p.toc_text4 { font-size:0.85em; text-indent: -1em; margin-top: 0.2em; margin-left: 1em; margin-bottom: 1em; line-height: 1.3em; /* CHECK THIS! */ } /* About the author */ h3.author_head { text-align: center; page-break-after: avoid; font-weight: normal; margin-bottom: 2em; } p.author_text { text-indent: 0; margin-top: 0; margin-bottom: 1em; } /* Books by the same author */ h3.books_by_head { text-align: center; margin-bottom: 1.5em; } h4.books_by_subhead { text-align: center; margin-bottom: 0.5em; } p.books_by_list { font-style: italic; text-align: center; } /* Poetry */ p.poetry_title { text-align: left; margin-bottom: 0.5em } p.poetry_source { text-align: right; font-size: 0.8em; } div.verse { margin-bottom: 1em; } p.poetry_left_1 { text-align: left; text-indent: 0; } p.poetry_left_2 { text-align: left; text-indent: 4em; } p.poetry_left_3 { text-align: left; text-indent: 8em; } p.poetry_centred { text-align: center; text-indent: 0; } p.poetry_right { text-align: right; text-indent: 0; } /* Adding space after for default lists. */ ul, ol { margin-bottom: 1em } /* Copyright/Imprint. Simple styles here because they may change. */ p.copyright_space_after { text-indent: 0em; text-align: center; margin-bottom: 1em; font-size: 0.9em; } p.copyright { text-indent: 0em; text-align: center; font-size: 0.9em; } p.copyright1 { text-indent: 0em; text-align: left; font-size: 0.9em; margin-bottom: 1em; } p.copyright_logo { text-align: center; vertical-align: middle; margin-top: 20px; margin-bottom: 20px; } /* Shading. We have defined two sets of styles for shading _ these are identical except that one uses div elements and one uses paragraph elements. The div elements are useful when several paragraphs must be shaded. NOTE - no padding is defined. It is necessary to use empty paras (perhaps with a single non breaking space in them) to add padding to the background on a Kindle. */ div.shading_25, p.shading_25 { background-color: #C0C0C0; } div.shading_50, p.shading_50 { background-color: #808080; } div.shading_50_white, p.shading_50_white { background-color: #808080; color: white; } div.shading_75, p.shading_75 { background-color: #404040; color: black; } div.shading_75_white, p.shading_75_white { background-color: #404040; color: white; } div.shading_25_space_after, p.shading_25_space_after { background-color: #C0C0C0; margin-bottom: 1em; } div.shading_50_space_after, p.shading_50_space_after { background-color: #808080; margin-bottom: 1em; } div.shading_50_white_space_after, p.shading_50_white_space_after { background-color: #808080; color: white; margin-bottom: 1em; } div.shading_75_space_after, p.shading_75_space_after { background-color: #404040; color: black; margin-bottom: 1em; } div.shading_75_white_space_after, p.shading_75_white_space_after { background-color: #404040; color: white; margin-bottom: 1em; } /* Extracts Extract styles are simpler than those in print text. We do not currently allow for as much variation as in print books. Extract styles are derived from normal body text styles */ p.extract_flush_left { font-size: 0.8em; text-indent: 0; margin-top: 0em; margin-bottom: 0em; margin-left: 1.5em; margin-right: 2em; } p.extract_indented { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 0em; margin-left: 1.5em; margin-right: 2em; } p.extract_flush_left_space_after { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.extract_indented_space_after { font-size: 0.8em; text-indent: 1em; margin-top: 0; margin-bottom: 1em; margin-left: 1.5em; margin-right: 2em; } p.extract_source { font-size: 0.8em; text-align: right; margin-top: 0; margin-bottom: 0; margin-left: 50%; margin-right: 2em; } /* Epigraphs. Default formatting we're going for here is an italicised version of the extract. */ p.epigraph { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-left: 1.5em; margin-right: 2em; font-style: italic; } p.epigraph_space_after { font-size: 0.8em; text-indent: 0; margin-top: 0; margin-left: 1.5em; margin-right: 2em; font-style: italic; margin-bottom: 1em; } p.epigraph_source { font-size: 0.8em; text-align: right; margin-top: 0; margin-bottom: 0; margin-left: 50%; margin-right: 2em; font-style: italic; margin-bottom: 1em; } span.epigraph_source { font-size: 0.8em; font-style: italic; } /* Praise Only one option out of many chosen here. */ h4.praise_head { font-weight: bold; text-align: center; margin-bottom: 1em; } h5.praise_sub_head { font-weight: normal; text-align: center; margin-bottom: 1em; } p.praise { font-weight: normal; text-align: center; } p.praise_space_after { font-weight: normal; text-align: center; margin-bottom: 1em; } p.praise_source { font-weight: normal; text-align: center; margin-bottom: 1em; font-style: italic; } p.praise_left { font-weight: normal; text-align: left; } p.praise_left_space_after { font-weight: normal; text-align: left; margin-bottom: 1em; } p.praise_source_left { font-weight: normal; text-align: left; margin-bottom: 1em; font-style: italic; } span.praise_source { font-style: italic; font-weight: normal; font-size: 0.8em; } span.drama_speaker { } span.drama_direction { } /* Generics */ .small_caps { /* DUMMY */ } .small { /* 60% seems to give a reasonable visual difference in size on the Kindle */ font-size: 0.8em; } .small1 { /* 60% seems to give a reasonable visual difference in size on the Kindle */ font-size: 0.9em; } /* Links */ a a:visited,a:active,a:link { text-decoration:none; color: black; } a.none { text-decoration:none; color:black; } a.none:visited { color: black; } a.toc_link { text-decoration:none; color:black; } a.toc_link:visited { color: black; } .full-page-image { margin: 0em auto 1.5em; text-align:center; page-break-inside: avoid; page-break-before: always; max-height: 90% !important; max-height: 90vh; } .full-page-image + .image_caption1 { margin: -1em auto 0em auto; page-break-after: avoid; } div.common-img { text-align: center; margin-top: 0.5em; margin-bottom: 2em; } .grey { color: #5f5e5e; } h2.recipe_head { page-break-before: always; margin-top: 10%; margin-bottom: 1em; text-align:left; } h2.note_head_center { page-break-before: always; margin-top: 10%; margin-bottom: 1em; text-align: center; } .serves { text-indent: 0; margin-top: 1em; margin-bottom: 1em; font-size: 0.9em; } .serves1 { text-indent: 0; margin-top: 1em; margin-bottom: 0em; font-size: 0.9em; } .recipe-list { text-indent: -1em; margin-left: 1em; margin-top: 0; margin-bottom: 0.2em; font-size: 0.9em; } .recipe-list1 { text-indent: -1em; margin-left: 1em; margin-top: 1em; margin-bottom: 0.2em; font-size: 0.9em; } .full-height { max-height: 100%; width: 100%; } .full-width { max-height: 100%; width: 100% } .index-main { margin-left: 0em; text-indent: 0em; } .index-main1 { font-size: 1.5em; font-weight: bold; margin-top: 1em; margin-left: 0em; text-indent: 0em; } .index-sub { margin-left: 2em; text-indent: -1em; } .ack { text-align: center; font-weight: bold; font-size: 1.5em; text-indent: 0em; margin-left: 0em; margin-top: 1em; margin-bottom: 1em; } .index { text-align: center; font-weight: bold; font-size: 1.5em; text-indent: 0em; margin-left: 0em; margin-top: 1em; margin-bottom: 1em; } .ack_text { text-indent: 0em; margin-left: 0em; margin-top: 1em; margin-bottom: 1em; } .ack_text123 { text-indent: 0em; margin-left: 0em; margin-top: 0.3em; text-align: center; } .image_caption1 { clear: both; width: 70%; display: block; margin: 0.3em auto 1.5em auto; text-align: center; page-break-before: avoid; font-size: 0.75em; line-height: 110%; font-style: italic; } h2.recipe-listnew { margin-top: .5em; margin-bottom: .5em; text-align:center; page-break-before:right; } .chap-recipe { margin-top: .2em; margin-bottom: .2em; text-align:center; }