Skip to content

Commit

Permalink
Fix CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Mar 15, 2024
1 parent 7ec5d70 commit 644c885
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 16 additions & 1 deletion src/epub/css/local.css
Expand Up @@ -2,6 +2,18 @@
@namespace epub "http://www.idpf.org/2007/ops";
@namespace xml "http://www.w3.org/XML/1998/namespace";

figure{
break-inside: avoid;
margin: 1em 40px;
text-align: center;
}

figure img{
display: block;
margin: auto;
max-width: 100%;
}

/* All epigraphs */
[epub|type~="epigraph"]{
font-style: italic;
Expand Down Expand Up @@ -49,6 +61,10 @@ blockquote[xml|lang]{
font-style: italic;
}

blockquote[xml|lang] em{
font-style: normal;
}

/* Verse */
[epub|type~="z3998:verse"] p{
text-align: initial;
Expand Down Expand Up @@ -100,5 +116,4 @@ p + section > header,
header + section > header{
font-variant: small-caps;
margin: 1em;
text-align: center;
}
6 changes: 4 additions & 2 deletions src/epub/text/endnotes.xhtml
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Endnotes</title>
<link href="../css/core.css" rel="stylesheet" type="text/css"/>
<link href="../css/se.css" rel="stylesheet" type="text/css"/>
<link href="../css/local.css" rel="stylesheet" type="text/css"/>
</head>
<body epub:type="backmatter">
<section id="endnotes" epub:type="endnotes">
Expand Down Expand Up @@ -209,7 +209,9 @@
</li>
<li id="note-60" epub:type="endnote">
<p>As this whole scene is taken from fact, I subjoin the notes whose modulation is so simple, and whose effect was so profound.</p>
<img alt="Two bars of music, written on a grand staff." src="../images/illustration-1.svg"/>
<figure id="illustration-1">
<img alt="Two bars of music, written on a grand staff." src="../images/illustration-1.svg"/>
</figure>
<p>
<a href="chapter-31.xhtml#noteref-60" epub:type="backlink"></a>
</p>
Expand Down

0 comments on commit 644c885

Please sign in to comment.