From c27ba8be6ba7edf5c73f0203f808d4a4b013f41d Mon Sep 17 00:00:00 2001 From: Georg Tomitsch Date: Fri, 4 Apr 2025 19:33:14 +0000 Subject: [PATCH] Fixed exception. Added candleflicker. --- public/css/style.css | 1478 +++++++++++++++++++------------------- public/js/tts-factory.js | 20 +- public/js/ui-effects.js | 36 +- 3 files changed, 807 insertions(+), 727 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index d98bf92..d461c72 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,723 +1,755 @@ -/* @font-face { - font-family: "Quattrocento"; - font-style: normal; - src: url("Quattrocento-Regular.ttf"); -} - -@font-face { - font-family: "Quattrocento"; - font-weight: bold; - src: url("Quattrocento-Bold.ttf"); -} - -@font-face { - font-family: "Open Sans"; - font-style: normal; - src: url("OpenSans-VariableFont_wdth,wght.ttf"); -} - -@font-face { - font-family: "Open Sans"; - font-style: italic; - src: url("OpenSans-Italic-VariableFont_wdth,wght.ttf"); -} */ - -@font-face { - font-family: "EB Garamond"; - font-style: normal; - src: url("../fonts/EBGaramond12-Regular.otf"); -} -@font-face { - font-family: "EB Garamond"; - font-style: italic; - src: url("../fonts/EBGaramond12-Italic.otf"); -} - -/* @font-face { - font-family: "EB Garamond"; - font-style: normal; - font-weight: normal; - src: url("../fonts/EBGaramond-Regular.otf") format("opentype"); -} - -@font-face { - font-family: "EB Garamond"; - font-style:italic; - font-weight: normal; - src: url("../fonts/EBGaramond-Italic.otf") format("opentype"); -} */ - -/* @font-face { - font-family: "EB Garamond"; - font-style: normal; - font-weight: bold; - src: url("../fonts/EBGaramond-Bold.otf") format("opentype"); -} - -@font-face { - font-family: "EB Garamond"; - font-style: italic; - font-weight: bold; - src: url("../fonts/EBGaramond-BoldItalic.otf") format("opentype"); -} */ - - html { - font-family: 'EB Garamond', sans-serif; - /* font-kerning: normal; */ - /* font-variant-ligatures: common-ligatures historical-ligatures; */ - /* font-variant-numeric: oldstyle-nums; */ - font-feature-settings: 'kern' on, 'liga' on, 'onum' on, 'dlig' on, 'clig' on, 'calt' on, 'hlig' off, 'swsh' on, 'locl' off; - -webkit-font-smoothing: antialiased; - } - -sup { - font-feature-settings: "sup" on; - /* vertical-align: inherit; */ - font-size: inherit; -} - -/* sub { - font-feature-settings: "subs" on; -} */ - -double { - font-size: 2rem; - vertical-align: -10%; - opacity: 0.8; -} - -double.separator { - display: block; - margin: 2rem auto 3rem auto; -} - -html, body { - height: 100%; - margin: 0; - display: flex; - align-items: center; - justify-content: center; -} - -body { - overflow: hidden; - background-image: url('../images/brown-wooden-flooring.jpg'); - background-position: center center; - background-size: cover; - background-repeat: no-repeat; -} - -body.switched { - transition: color 0.6s, background-color 0.6s; -} - -:root { - font-size: calc(var(--book-height)/(34 * 1.5)); - --img-aspect-ratio: 1.613; - --aspect-ratio: min(var(--viewport-aspect-ratio), var(--img-aspect-ratio)); -} - -h1 { - font-size: 2rem; - margin-bottom: 0.8rem; - text-align: center; - text-transform:uppercase; - font-weight: normal; -} - -h2 { - font-size: 1.2rem; - text-align: center; - font-weight: normal; -} - -h2.chapter-heading { - font-style: italic; - margin: 2rem auto 3rem auto; -} - -h3 { - font-size: 1.2rem; - text-align: center; - font-weight: normal; -} - -.header { - padding-top: 3rem; - padding-bottom: 3rem; -} - -/* - Built-in class: - # author: Name -*/ -.byline { - font-feature-settings: "smcp"; -} - -.subtitle { - font-feature-settings: "scmp" off; -} - -.separator { - text-align: center; -} - -/* - Enables