From a0d90eedca5f06c0dd8f60ba90bd8a04c0ae80c2 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 22 Oct 2025 16:18:18 -0300 Subject: [PATCH] feat(ipub): change all section images to ipub-images --- .../example/OEBPS/sections/section0001.xhtml | 61 ++++++------------- .epub/example/OEBPS/styles/stylesheet.css | 41 ------------- 2 files changed, 18 insertions(+), 84 deletions(-) diff --git a/.epub/example/OEBPS/sections/section0001.xhtml b/.epub/example/OEBPS/sections/section0001.xhtml index 73bcebc..8a0f314 100644 --- a/.epub/example/OEBPS/sections/section0001.xhtml +++ b/.epub/example/OEBPS/sections/section0001.xhtml @@ -25,59 +25,34 @@ rel="external nofollow noopener noreferrer" target="_blank" /> -
- - - - - -
+ + + -
- - - -
-
- - - -
+ + + + + + -
- - - -
-
- - - -
-
- - - -
+ + + + + + + + + diff --git a/.epub/example/OEBPS/styles/stylesheet.css b/.epub/example/OEBPS/styles/stylesheet.css index 6c758bd..0e42da0 100644 --- a/.epub/example/OEBPS/styles/stylesheet.css +++ b/.epub/example/OEBPS/styles/stylesheet.css @@ -146,44 +146,3 @@ ipub-interaction { --ipub-radius: 100%; } } - -[data-ipub-element="image"] { - width: var(--ipub-width, unset); - height: var(--ipub-height, unset); - background-image: var(--ipub-image, unset); - background-repeat: no-repeat; - background-size: cover; - display: block; - - img { - max-width: 100%; - max-height: 100%; - } -} - -[data-ipub-element="interaction"] { - position: absolute; - left: var(--ipub-x, 0%); - top: var(--ipub-y, 0%); - border-radius: var(--ipub-radius, unset); - width: var(--ipub-width, unset); - height: var(--ipub-height, unset); - transform: translate( - var(--ipub-origin-offset-x, 0%), - var(--ipub-origin-offset-y, 0%) - ); - aspect-ratio: var(--ipub-ratio, unset); - /* - * The opacity would be, by default, zero. Here it is 0.3 for easier debugging and - * showing of the example ebook - */ - background-color: red; - opacity: 0.3; -} - -a[data-ipub-element="interaction"] { - /* The text inside the interaction anchor are for accessibility purposes */ - font-size: 0px; -} - -}