diff --git a/ora3/book/book.css b/ora3/book/book.css index a1677ef..2f54f9a 100644 --- a/ora3/book/book.css +++ b/ora3/book/book.css @@ -10,6 +10,7 @@ para { book { background-color: #f8f8f8; + counter-reset: chapter-number footnote-number; font-family: "EB Garamond", Garamond, Georgia, 'Times New Roman', Times, serif; margin: auto; max-width: 80ch; @@ -40,3 +41,60 @@ book>title { title+chapter { 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; +}