Skip to content

Commit

Permalink
Typogrify
Browse files Browse the repository at this point in the history
  • Loading branch information
b-t-k committed Mar 7, 2019
1 parent 04e1f15 commit 7ca92f3
Show file tree
Hide file tree
Showing 8 changed files with 6,060 additions and 3,930 deletions.
4 changes: 1 addition & 3 deletions src/epub/content.opf
Expand Up @@ -49,9 +49,7 @@
<meta property="se:subject">TAG</meta>
<dc:description id="description">DESCRIPTION</dc:description>
<meta property="meta-auth" refines="#description">https://standardebooks.org</meta>
<meta id="long-description" property="se:long-description" refines="#description"><![CDATA[
LONGDESCRIPTION
]]></meta>
<meta id="long-description" property="se:long-description" refines="#description"> LONGDESCRIPTION </meta>
<meta property="meta-auth" refines="#long-description">https://standardebooks.org</meta>
<dc:language>en-GB</dc:language>
<dc:source>https://www.gutenberg.org/ebooks/40736</dc:source>
Expand Down
83 changes: 83 additions & 0 deletions src/epub/css/local.css
@@ -1,2 +1,85 @@
@charset "utf-8";
@namespace epub "http://www.idpf.org/2007/ops";

[epub|type~="z3998:dramatis-personae"]{
text-align: center;
}

[epub|type~="z3998:dramatis-personae"] ul{
list-style: none;
margin: 0;
padding: 0;
}

[epub|type~="z3998:dramatis-personae"] ul li{
margin: 1em;
font-style: italic;
}

[epub|type~="z3998:drama"]{
border-collapse: collapse;
}

[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{
vertical-align: top;
padding: .5em;
}

[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;
text-align: right;
width: 20%;
}

[epub|type~="z3998:drama"] table{
margin: 1em auto;
width: 100%;
border-collapse: collapse;
}

[epub|type~="z3998:scene"] h3{
margin: 2em 0 0 0;
}

[epub|type~="z3998:stage-direction"]{
font-style: italic;
}

[epub|type~="z3998:stage-direction"] i{
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{
margin: 1em auto;
width: 75%;
}

0 comments on commit 7ca92f3

Please sign in to comment.