From bbb9ad0e3512cba9ccc2c9e8ee78f7ecf89add69 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Thu, 23 Oct 2025 14:56:23 -0300 Subject: [PATCH] feat(ipub): ipub-body element this replaces the ipub-content element, and makes ipub publications limited/containerized into one element. --- .epub/example/OEBPS/sections/section0001.xhtml | 8 +++++--- .epub/example/OEBPS/styles/stylesheet.css | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.epub/example/OEBPS/sections/section0001.xhtml b/.epub/example/OEBPS/sections/section0001.xhtml index 8a0f314..bce5a84 100644 --- a/.epub/example/OEBPS/sections/section0001.xhtml +++ b/.epub/example/OEBPS/sections/section0001.xhtml @@ -2,6 +2,8 @@ + - -
+ +
@@ -54,6 +56,6 @@
- +
diff --git a/.epub/example/OEBPS/styles/stylesheet.css b/.epub/example/OEBPS/styles/stylesheet.css index 8683855..7b6cce4 100644 --- a/.epub/example/OEBPS/styles/stylesheet.css +++ b/.epub/example/OEBPS/styles/stylesheet.css @@ -8,9 +8,22 @@ margin: 0; max-width: 100vw; + max-height: 100vh; + overflow: clip; + display: flex; + } -ipub-content { +ipub-body { + max-width: 100%; + max-height: 100%; + + position: relative; + + display: flex; + flex-direction: column; + + overflow: scroll; --ipub-padding: 0%; --ipub-gap: 0%; --ipub-padding-x: var(--ipub-padding, 0%);