That's a pretty nifty use of the ::before pseudo element.  Love it.

On Saturday, August 26, 2017 at 4:32:50 PM UTC-5, Stephan Hradek wrote:
>
> As there was a small typo in the CSS and I wanted to experiment with a 
> macro, please see below a macro-version.
>
> CSS:
> span.strex:before {
> content:"\00a0...\00a0";
> background-color: lightgray;
> border: 1px solid black;
> }
> span.strex > span {
> display: none;
> }
>
> span.strex:hover:before {
> content:"";
> border: none;
> }
> span.strex:hover span {
> display:inline;
> }
>
> Macro + usage
>
> \define strex(text) <span class="strex"><span>$text$</span></span>
>
> The ''TextStretch'' macro is a great tool <<strex "for you as an author 
> of hypertext">> to keep the message short. Your readers can discover more 
> details easily.
>
>
>
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/44cb26a8-25f9-4569-8377-1ced3bb3a627%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to