mirror of
https://github.com/standardebooks/charles-darwin_the-voyage-of-the-beagle.git
synced 2025-09-06 23:27:43 -04:00
Added dedication and styling
This commit is contained in:
parent
b7a53a44a0
commit
1731d0673c
2 changed files with 47 additions and 7 deletions
|
@ -1,6 +1,37 @@
|
|||
@charset "utf-8";
|
||||
@namespace epub "http://www.idpf.org/2007/ops";
|
||||
|
||||
|
||||
/* Centered dedications */
|
||||
section[epub|type~="dedication"]{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
section[epub|type~="dedication"] > *{
|
||||
display: inline-block;
|
||||
margin: auto;
|
||||
margin-top: 3em;
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
@supports(display: flex){
|
||||
section[epub|type~="dedication"]{
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-height: calc(98vh - 3em);
|
||||
padding-top: 3em;
|
||||
}
|
||||
|
||||
section[epub|type~="dedication"] > *{
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
/* End centered dedications */
|
||||
|
||||
/* bridgeheads */
|
||||
[epub|type~="bridgehead"]{
|
||||
display: inline-block;
|
||||
font-style: italic;
|
||||
|
@ -12,10 +43,4 @@
|
|||
[epub|type~="bridgehead"] i{
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
[epub|type~="z3998:hymn"] [epub|type~="bridgehead"],
|
||||
[epub|type~="z3998:poem"] [epub|type~="bridgehead"],
|
||||
[epub|type~="z3998:song"] [epub|type~="bridgehead"],
|
||||
[epub|type~="z3998:verse"] [epub|type~="bridgehead"]{
|
||||
text-align: justify;
|
||||
}
|
||||
/* end bridgeheads */
|
15
src/epub/text/dedication.xhtml
Normal file
15
src/epub/text/dedication.xhtml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB">
|
||||
<head>
|
||||
<title>Dedication</title>
|
||||
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../css/local.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body epub:type="frontmatter z3998:non-fiction">
|
||||
<section id="dedication" epub:type="dedication">
|
||||
<p>To<br/>
|
||||
Charles Lyell, Esq, F.R.S.<br/>
|
||||
This second edition is dedicated with grateful pleasure, as an acknowledgment that the chief part of whatever scientific merit this journal and the other works of the author may possess, has been derived from studying the well-known and admirable <i epub:type="se:name.publication.book">Principles of Geology</i>.</p>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue