@charset "utf-8"; @namespace epub "http://www.idpf.org/2007/ops"; @namespace xml "http://www.w3.org/XML/1998/namespace"; [epub|type~="z3998:poem"], [epub|type~="z3998:verse"]{ text-align: initial; text-indent: 0; } /* p in poem hgroup */ [epub|type~="z3998:poem"] hgroup p{ text-align: center; } [epub|type~="se:bridgehead"]{ display: inline-block; font-style: italic; max-width: 60%; text-align: justify; text-indent: 0; } /* breaks after poem */ article[epub|type~="z3998:poem"], section[epub|type~="z3998:poem"], article[epub|type~="z3998:drama"], article[epub|type~="z3998:fiction"], section[epub|type~="z3998:fiction"], section[epub|type~="chapter"], section > h2{ break-after: page; } /* breaks in The Sphinx, where there are no section headers */ #the-sphinx section{ margin-top: 3em; } /* poem footer */ [epub|type~="z3998:poem"] footer, [epub|type~="chapter"] footer{ font-variant: small-caps; margin-top: 1em; } [epub|type~="z3998:poem"] footer p{ text-align: right; } /* stanza */ [epub|type~="z3998:poem"] p{ text-align: initial; text-indent: 0; } [epub|type~="z3998:poem"] p + p{ margin-top: 1em; } /* poetry span */ [epub|type~="z3998:poem"] p > span{ display: block; padding-left: 1em; text-indent: -1em; } [epub|type~="z3998:poem"] p > span + br{ display: none; } p span.i1{ padding-left: 2em; text-indent: -1em; } p span.i2{ padding-left: 3em; text-indent: -1em; } p span.i3{ padding-left: 4em; text-indent: -1em; } p span.i4{ padding-left: 5em; text-indent: -1em; } p span.i5{ padding-left: 6em; text-indent: -1em; } p span.i6{ padding-left: 7em; text-indent: -1em; } /* Dropped line */ .dl2 span:first-child{ vertical-align: 100%; } /* Dialogue table */ [epub|type~="z3998:drama"] table{ border-collapse: collapse; margin: 1em auto; width: 100%; } article[epub|type~="z3998:drama"] > p{ margin: 1em auto; width: 75%; } [epub|type~="z3998:drama"] tr:first-child td{ padding-top: 0; } [epub|type~="z3998:drama"] tr:last-child td{ padding-bottom: 0; } [epub|type~="z3998:drama"] td{ padding: .5em; vertical-align: top; } [epub|type~="z3998:drama"] td:last-child{ padding-right: 0; } [epub|type~="z3998:drama"] td:first-child{ padding-left: 0; } [epub|type~="z3998:drama"] td[epub|type~="z3998:persona"]{ hyphens: none; -epub-hyphens: none; text-align: right; width: 20%; } [epub|type~="z3998:persona"]{ font-variant: all-small-caps; } /* Epigraph */ /* All epigraphs */ [epub|type~="epigraph"]{ font-style: italic; hyphens: none; -epub-hyphens: none; } /* End all epigraphs */ /* Epigraphs in section headers */ article > header [epub|type~="epigraph"]{ display: inline-block; margin: auto; max-width: 80%; text-align: initial; } @supports(display: table){ article > header [epub|type~="epigraph"]{ display: table; } } /* End epigraphs in section headers */ /* Italics for blocks with language tags */ blockquote[xml|lang]{ font-style: italic; } /* Dedication */ header p[epub|type~="dedication"]{ text-align: center; } @media(max-width: 400px){ [epub|type~="z3998:drama"] td, [epub|type~="z3998:drama"] td[epub|type~="z3998:persona"], [epub|type~="z3998:drama"] td:last-child{ display: block; padding: 0; text-align: initial; width: 100%; } [epub|type~="z3998:drama"] td[epub|type~="z3998:persona"]{ break-after: avoid; margin-top: 1.5em; } }