@charset "utf-8"; @namespace epub "http://www.idpf.org/2007/ops"; /* Collection page breaks */ article, section{ break-after: page; } /* Stanza, spans, and breaks */ [epub|type~="z3998:poem"], [epub|type~="z3998:song"], [epub|type~="z3998:verse"] p{ text-align: initial; text-indent: 0; } [epub|type~="z3998:poem"] p + p, [epub|type~="z3998:verse"] p + p{ margin-top: 1em; } [epub|type~="z3998:poem"] p > span, [epub|type~="z3998:song"] p > span, [epub|type~="z3998:verse"] p > span{ display: block; padding-left: 1em; text-indent: -1em; } [epub|type~="z3998:poem"] p > span + br, [epub|type~="z3998:song"] p > span + br, [epub|type~="z3998:verse"] p > span + br{ display: none; } /* Line indentation */ p span.i1{ padding-left: 2em; text-indent: -1em; } p span.i2{ padding-left: 3em; text-indent: -1em; } /* Poetry hgroup */ [epub|type~="z3998:poem"] hgroup p{ text-align: center; } /* Double dropped line */ .dl2 span:first-child{ vertical-align: 100%; } /* Dialogue table */ [epub|type~="z3998:drama"] table, table[epub|type~="z3998:drama"]{ border-collapse: collapse; margin: 1em auto; width: 100%; } [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%; } /* Stage directions and personas */ [epub|type~="z3998:stage-direction"]{ font-style: italic; } [epub|type~="z3998:stage-direction"] [epub|type~="z3998:persona"], i [epub|type~="z3998:persona"]{ font-style: normal; } [epub|type~="z3998:stage-direction"]::before{ content: "("; font-style: normal; } [epub|type~="z3998:stage-direction"]::after{ content: ")"; font-style: normal; } [epub|type~="z3998:persona"]{ font-variant: all-small-caps; } section[epub|type~="z3998:scene"] > p, article[epub|type~="z3998:scene"] > p{ margin: 1em auto; width: 75%; } /* non-TOC headers */ header{ margin: 1em; text-align: center; } /* Footers on prefaces and datelines on poems */ footer{ font-variant: small-caps; margin-top: 1em; text-align: right; } /* All epigraphs */ [epub|type~="epigraph"]{ font-style: italic; hyphens: none; -epub-hyphens: none; } [epub|type~="epigraph"] cite{ font-style: normal; font-variant: small-caps; margin-top: 1em; } /* Bridgeheads */ [epub|type~="se:bridgehead"]{ display: inline-block; font-style: italic; max-width: 60%; text-align: justify; text-indent: 0; } [epub|type~="z3998:poem"] [epub|type~="se:bridgehead"]{ text-align: justify; } /* Figures */ figure{ break-inside: avoid; margin: 1em 2.5em; } figure img{ display: block; margin: auto; max-height: 100vh; max-width: 100%; } article[epub|type~="z3998:drama"] > p{ margin: 1em auto; width: 75%; } /* Epigraphs in section headers */ article > header [epub|type~="epigraph"], section > header [epub|type~="epigraph"]{ display: inline-block; margin: auto; max-width: 80%; text-align: initial; } article > header [epub|type~="epigraph"] + *, section > header [epub|type~="epigraph"] + *{ margin-top: 3em; } @supports(display: table){ article > header [epub|type~="epigraph"], section > header [epub|type~="epigraph"]{ display: table; } } /* End epigraphs in section headers */ /* *********************** */ /* Poem-specific styling */ /* *********************** */ /* Italicised stanzas */ #responsibilities > article:first-of-type > p, #responsibilities > article:last-of-type > p, #how-ferencz-renyi-kept-silent > p:first-of-type, #the-rose-to-ireland-in-the-coming-times > p, #crossways-anashuya-and-vijaya [epub|type~="z3998:song"], #crossways-anashuya-and-vijaya tr:nth-of-type(12) > td:nth-of-type(2) > p:nth-of-type(1), #crossways-anashuya-and-vijaya tr:nth-of-type(23) > td:nth-of-type(2) > p:nth-of-type(1), #baile-and-aillinn > p:nth-of-type(1), #baile-and-aillinn > p:nth-of-type(4), #baile-and-aillinn > p:nth-of-type(7), #baile-and-aillinn > p:nth-of-type(17), #responsibilities-the-grey-rock > p:nth-of-type(1), #responsibilities-the-grey-rock > p:nth-of-type(4), #responsibilities-the-grey-rock > p:nth-of-type(5), #responsibilities-the-grey-rock > p:nth-of-type(8), #responsibilities-the-three-beggars > p:first-of-type, #responsibilities-the-three-beggars > p:last-of-type, #the-wild-swans-at-coole-the-phases-of-the-moon tbody > tr:first-of-type, #the-wild-swans-at-coole-the-phases-of-the-moon tbody > tr:nth-of-type(16), #the-wild-swans-at-coole-the-phases-of-the-moon tbody > tr:last-of-type{ font-style: italic; } /* Italicised lines */ #crossways-the-madness-of-king-goll > p > span:last-of-type, #crossways-the-meditation-of-the-old-fisherman > p > span:last-of-type{ font-style: italic; } /* Title pages for collections and multi-part poems */ #the-wanderings-of-usheen > header, #the-rose > header, #crossways > header, #the-wind-among-the-reeds > h2, #in-the-seven-woods > h2, #introductory-poems-from-the-shadowy-waters > h2, #from-the-green-helmet-and-other-poems > h2, #responsibilities > header, #the-wild-swans-at-coole > h2, #michael-robartes-and-the-dancer > h2, #the-tower > h2{ margin-top: 3em; } /* Section breaks for multi-part poems */ #the-wanderings-of-usheen > section, #the-wanderings-of-usheen > header, #the-rose > header, #crossways > header, #the-wind-among-the-reeds > h2, #in-the-seven-woods > h2, #introductory-poems-from-the-shadowy-waters > h2, #from-the-green-helmet-and-other-poems > h2, #responsibilities > header, #the-wild-swans-at-coole > h2, #michael-robartes-and-the-dancer > h2, #the-tower > h2, #the-tower-a-man-young-and-old > section{ break-after: page; } /* Italics in Baile and Ailinn */ #baile-and-aillinn [epub|type~="se:bridgehead"] i{ font-style: normal; } /* Chorus header in Colonus' Praise */ #the-tower-colonus-praise > header > p{ font-variant: small-caps; } /* Poem ("The Dying Swan") in endnotes */ #note-27 header{ font-variant: small-caps; } /* Quotation styling for italicised quotations within poems */ q{ font-style: italic; } @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; } /* Rows that are only stage direction get a top margin. */ [epub|type~="z3998:drama"] td:first-child:not([epub|type]) + td{ margin-top: 1.5em; } }