diff --git a/scripts/deploy-ebook-to-www b/scripts/deploy-ebook-to-www
index f287321f..5fd2d8ec 100755
--- a/scripts/deploy-ebook-to-www
+++ b/scripts/deploy-ebook-to-www
@@ -343,10 +343,10 @@ do
find "${workDir}"/src/epub \( -type d -name .git -prune \) -o -type f -name "*.xhtml" -print0 | xargs -0 sed --in-place --regexp-extended "s|
|${workTitle} - |g"
# Wrap book contents in a tag
- find "${workDir}"/src/epub \( -type d -name .git -prune \) -o -type f -name "*.xhtml" -print0 | xargs -0 sed --in-place --regexp-extended "s%]*)>%%; s%%%"
+ find "${workDir}"/src/epub \( -type d -name .git -prune \) -o -type f -name "*.xhtml" -print0 | xargs -0 sed --in-place --regexp-extended "s|]*)>||; s|||"
# Add the header nav to each page
- find "${workDir}"/src/epub \( -type d -name .git -prune \) -o -type f -name "*.xhtml" -print0 | xargs -0 sed --in-place --regexp-extended "s%]*)>%%"
+ find "${workDir}"/src/epub \( -type d -name .git -prune \) -o -type f -name "*.xhtml" -print0 | xargs -0 sed --in-place --regexp-extended "s|]*)>||"
# Add a chapter navigation footer to each page
"${scriptsDir}"/inject-chapter-navigation-footer "${workDir}"/src/epub "${bookUrl}"
diff --git a/www/css/web.css b/www/css/web.css
index 57b1bc86..927f86d0 100644
--- a/www/css/web.css
+++ b/www/css/web.css
@@ -1,20 +1,20 @@
@namespace epub "http://www.idpf.org/2007/ops";
body{
+ display: flex;
+ flex-direction: column;
font-family: "Georgia", serif;
font-size: 18px;
margin: 0;
min-height: 100vh;
- display: flex;
- flex-direction: column;
}
main{
+ flex-grow: 1;
margin: 5rem auto 3rem;
max-width: 55ch;
padding: 0 3rem;
width: calc(100% - 2 * 3rem); /* calc instead of box-sizing: border-box which would make max-width count padding */
- flex-grow: 1;
}
body > header{
@@ -34,7 +34,7 @@ body > header ul{
display: flex;
list-style: none;
margin: 0;
- padding: 0.5em 1em;
+ padding: 1em;
}
body > header li{
@@ -62,9 +62,9 @@ body > header li:first-child > a:hover{
body > footer ul{
display: flex;
justify-content: space-between;
+ list-style: none;
margin: 0;
padding: 0.5em 1em;
- list-style: none;
}
body > footer li{
@@ -145,7 +145,7 @@ and will just drop this entire query together if it's included. */
margin-top: 2em;
}
- [id]{
+ *[id]{
scroll-margin-top: 3em;
}
}