6
Widgets PopUp Text is useful for structured content such as glossary definitions and interactive sidebars, etc. but can also be used for supplementary content. Updated: 28 November 2016
Widgets PopUp Text are designed to allow small blocks of text or relevant images to be popped-up next to a relevant content link. The pop-up panels are authored containers that are hidden until required. You can include any content into a pop-up and style it appropriately for the content.
Popups can be launched from text, headings, titles and if appropriate from image icons.
PopUp Text operates independently from the ePub 3 footnote "Aside method" as that is too limited and not completely defined. If an ePub3 reading system supports Javascript Widgets PopUp Text will work reliably. It will also work in Javascript supported non-ePub3 packages and presentation environments.
PopUp Text works in both fixed layout and reflowable ePub3 books subject to the previous conditions.
You can click on the word Text in the title or Click here to see PopUp Text in action.
By default the PopUp Text block will be hidden in the output format. This block is invoked and displayed by internal ID references. It can be placed and called from anywhere and from multiple places within the section.
<!-- POPUP PANEL --> <div class="widgets-rw popup-text-rw"> <p>Your popup text content goes here.</p> </div> <!-- POPUP PANEL REFERENCE LINK --> <span class="ref-popup-rw" data-pp-target="pt1">Hello</span>
Note that Widget references use the HTML5 data- attribute.
/* Popup ========================= */ div.popup-text-rw { position: relative; width: 300px; min-height: auto; max-height: 500px; background-color: rgb(255, 255, 220); box-shadow: 5px 5px 10px black; border-radius: 10px; padding: 10px; font-size: 16px; line-height: 20px; font-weight: normal; font-style: normal; color: rgb(0, 0, 0); display: none; z-index: 9999; }
/*DEFAULT POPUP PANEL REFERENCE CSS =============== */ .ref-popup-rw { color: blue; text-decoration: none; cursor: pointer; } .ref-panel-popup-rw:hover { text-decoration: underline; }
The Popup text is stored between the dotted lines. This allows popup text to be sourced from a glossary for example.
=====================
=====================