Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2018, 07:37 PM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 283
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
hover exit delay

In a recent post I asked about <detail><summary> text </summary> popup </detail> and found out from the forum that although this construct functions, it is not good CSS and it may (or may not) work in all cases. I was so delighted with a popup like this I produced a work-around using hover. Please note I reversed singular and plural: detail is details and summary is summarys.

<style>detail {display: none;}
summarys {display:block;}
summarys:before{ content:"▶ " }
summarys:hover + detail {display: inline-block;}
summarys:hover:before{content:"▼ "}
</style>

<summarys>text</summarys><detail>pops up when you hover; makes room beneath by inserting lines; triangle turns down at hover</detail>

<summarys>text</summarys>If there is text here between end-of-summarys and before detail the popup begins beneath this text.<detail>pops up when you hover; makes room beneath by inserting lines; triangle turns down at hover</detail>

It works really well and I hope this type of CSS is good grammar and acceptable. There is one very bad problem: when you unhover the popup immediately vanishes. Normally this would be okay, except the popup was where I always placed my clickable hypertext links. Does anyone know how to delay the popup in such code?

Best regards, Pop
rjwse@aol.com is offline   Reply With Quote
Old 04-09-2018, 05:34 PM   #2
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 283
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
I have found a partial answer: you can't do transitions from display:none to display:inline-block. It is okay to transition visibility, but that technique forces a blank or filled area on the page. I am still working at it. Anyone?
Best regards, Pop
rjwse@aol.com is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tooltip Hover time BetterRed Calibre 10 10-17-2015 06:15 PM
Mystery and Crime Mitford, Bertram: The Heath Hover Mystery. v1. 2 Nov 2013 crutledge Kindle Books 0 11-02-2013 07:58 AM
Mystery and Crime Mitford, Bertram: The Heath Hover Mystery. v1. 2 Nov 2013 crutledge ePub Books 0 11-02-2013 07:57 AM
Mystery and Crime Mitford, Bertram: The Heath Hover Mystery. v1. 2 Nov 2013 crutledge BBeB/LRF Books 0 11-02-2013 07:55 AM
a:hover .child - does not work properly on ADE dieda1821 ePub 7 01-20-2011 02:53 PM


All times are GMT -4. The time now is 09:39 PM.


MobileRead.com is a privately owned, operated and funded community.