Am Sonntag, 27. August 2017 08:52:21 UTC+2 schrieb K:
>
> I appreciate the help here, but I left out some information in my first 
> post, the macro has already been adapted, and I'm not to proficient in 
> scripting. If you still want to help, I've thrown together an empty 
> tiddlywiki file containing what I have so far.
>
> I will also be editing the first post. What I've done is modify the button 
> to look more like traditional annotations and make them change colors to 
> ease the spotting in my main tiddlywiki file. It's jsut a hassle to click 
> each one, so it'd be so much easier to hover and see hidden information.
>

As I still do not want to dive into your macro, I've created this as a 
starting point.

Note that I like to have footnotes in seperate tiddlers, in this example 
called "fn1" and "fn2".

Stylesheet:

.sup {
    position: relative;
}
.sup > div {
    display:none;
}
.sup:hover > div {
    display:inline-block;
    position: absolute;
    zindex: 998;
    top:-1em;
    left:0px;
    background: yellow;
    opacity: 1;
    border: 4px solid green;
    min-width: 40em;
}



Code + example:

\define fn(name) <span class="sup"><sup>$name$</sup><div><$transclude 
tiddler="$name$" mode="block"/></div></span>

Suspendisse sagittis dui ac orci semper, et cursus felis aliquam<<fn fn1>>. 
Duis velit est, pulvinar sodales mauris et, sollicitudin tempor nisl. 
Quisque id mi vel est iaculis viverra. Donec viverra ac neque et pharetra. 
Nullam posuere commodo erat. Duis eu lectus vel magna porta laoreet vitae 
ut diam. In tempor felis vel arcu commodo placerat. Nulla purus velit, 
pretium a ligula id, scelerisque eleifend mauris. Nulla<<fn fn2>> facilisi. 
Sed vitae tortor ipsum. Nulla fermentum semper purus, eu facilisis nibh 
tristique id. Nulla tincidunt cursus lacus et pellentesque. Aliquam 
porttitor, nunc vel ornare efficitur, urna sapien aliquam erat, vitae 
varius mauris dolor in ipsum. Vestibulum hendrerit leo metus, nec ultrices 
neque maximus eget. 



 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2c8e311b-ae82-43cf-813c-0895684842e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to