feat(ipub): ipub-body element

this replaces the ipub-content element, and makes ipub publications
limited/containerized into one element.
This commit is contained in:
Guz
2025-10-23 14:56:23 -03:00
parent 6a7abdea6f
commit bbb9ad0e35
2 changed files with 19 additions and 4 deletions

View File

@@ -2,6 +2,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="x-ipub-version" content="0.1" />
<meta name="viewport"
content="initial-scale=1,width=device-width,height=device-height,viewport-fit=contain" />
<link href="../styles/stylesheet.css" rel="stylesheet" type="text/css" />
<!-- <script type="module" src="../scripts/ipub.js" fetchpriority="high"></script> -->
<script defer="true" src="../scripts/ipub.js" fetchpriority="high">
@@ -9,8 +11,8 @@
</script>
</head>
<body xmlns:epub="http://www.idpf.org/2007/ops" class="body">
<ipub-content style="--ipub-padding: 10%;">
<main>
<ipub-body style="--ipub-padding: 10%;">
<main id="content">
<ipub-background id="background0001">
<img src="../images/background0001.jpg" width="100" height="100" />
</ipub-background>
@@ -54,6 +56,6 @@
<img src="../images/image0004.png" />
</ipub-image>
</main>
</ipub-content>
</ipub-body>
</body>
</html>