Skip to content

Commit

Permalink
Update titlepage to new standards
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Jan 18, 2022
1 parent a821b05 commit 1859c78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/epub/css/se.css
Expand Up @@ -10,11 +10,8 @@ section[epub|type~="titlepage"] h1,
section[epub|type~="titlepage"] p,
section[epub|type~="colophon"] h2,
section[epub|type~="imprint"] h2{
/* Required for Kobo not to add an extra page to the title */
font-size: 0;

/* Required for Kindle */
position: absolute;
font-size: 0; /* Required for Kobo not to add an extra page to the title */
position: absolute; /* Required for Kindle */
left: -999em;
}

Expand Down
4 changes: 3 additions & 1 deletion src/epub/text/titlepage.xhtml
Expand Up @@ -7,7 +7,9 @@
</head>
<body epub:type="frontmatter">
<section id="titlepage" epub:type="titlepage">
<img alt="The titlepage for the Standard Ebooks edition of The Return of Tarzan, by Edgar Rice Burroughs" src="../images/titlepage.svg" epub:type="se:image.color-depth.black-on-transparent"/>
<h1 epub:type="title">The Return of Tarzan</h1>
<p>By <b epub:type="z3998:personal-name z3998:author">Edgar Rice Burroughs</b>.</p>
<img alt="" src="../images/titlepage.svg" epub:type="se:image.color-depth.black-on-transparent"/>
</section>
</body>
</html>

0 comments on commit 1859c78

Please sign in to comment.