Yeah, it was text that I would apply the class to. I've since realized that
there will at least have to be several different classes depending on where
it is i.e. styling the titles will be different than styling buttons or in
a tiddler, etc. since the backgrounds and such will need to be in different
dom locations.

I want to gild titles, the editor buttons (of all the varieties), drop
caps, bits and bobs on sidebars, and on demand for specific words or icons
in the tiddler on demand, so to speak.

I'm also planning to use the same technique for a different theme, based on
a Tlingit soulcatcher, which is usually a carved and styled bone with
inlays of mother of pearl (hence the paua.jpg).

On Mon, Nov 8, 2021 at 5:08 PM Charlie Veniot <cj.ven...@gmail.com> wrote:

> G'day Aidan,
>
> What text?  Where is the text?  Do you mean all of the content showing in
> a tiddler?
>
> Or just the text in a specific area in a tiddler?
>
> On Monday, November 8, 2021 at 3:52:06 PM UTC-4 taale...@gmail.com wrote:
>
>> I'm trying to make a class that will allow me to fill text with an image.
>> For example, making a drop cap for a manuscript-inspired theme that looks
>> like it's been gilded, by using an image of gold leaf.
>>
>> The interwebz tell me that I want to use background-clip, but I'm not
>> sure how to set that up in a CSS class. Does anyone have any pointers?
>>
>> All I have so far, which doesn't work (and I didn't think it would):
>>
>> .dropcap { font-size: 40px;
>> margin: 10pc;
>> border: 5px double black;
>> float: left; background-image: url(<$macrocall $name="datauri"
>> title="paua.jpg" $output="text/plain"/>) background-clip: text; }
>>
>> Thanks,
>> Aidan
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/13f105b9-b296-4652-9e6d-b881b42b12fen%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/13f105b9-b296-4652-9e6d-b881b42b12fen%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJu7H0Y-fSfA67uJa6d_FvStnhVQO1BEt5aPpSAOgMdqUdE6aw%40mail.gmail.com.

Reply via email to