finished book

This commit is contained in:
2025-10-03 16:31:42 +02:00
parent 08dbaf6e75
commit 466f21591c

View File

@@ -10,6 +10,7 @@ para {
book { book {
background-color: #f8f8f8; background-color: #f8f8f8;
counter-reset: chapter-number footnote-number;
font-family: "EB Garamond", Garamond, Georgia, 'Times New Roman', Times, serif; font-family: "EB Garamond", Garamond, Georgia, 'Times New Roman', Times, serif;
margin: auto; margin: auto;
max-width: 80ch; max-width: 80ch;
@@ -40,3 +41,60 @@ book>title {
title+chapter { title+chapter {
border-top: medium double black; border-top: medium double black;
} }
chapter>title {
font-size: x-large;
text-decoration: underline;
margin: 1.5em 0 0.75em 0;
}
chapter>title::before {
content: "Chapter " counter(chapter-number) "\2014";
counter-increment: chapter-number;
}
para {
line-height: 1.5;
margin-top: 0.75em;
text-indent: 1.5em;
}
title+para {
text-indent: 0;
}
title+para::first-letter {
font-size: 1.7em;
font-weight: bold;
line-height: 1;
margin-right: 0.05em;
}
para:hover {
background-color: slateblue;
color: white;
cursor: pointer;
}
footnote {
display: inline;
font-size: 0;
vertical-align: super;
}
footnote::before {
content: '[' counter(footnote-number) ']';
counter-increment: footnote-number;
font-size: small;
}
footnote:hover {
background-color: tomato;
font-size: large;
padding: 0.5em;
}
footnote:hover::before {
font-size: large;
padding-right: 0.25em;
}