Hi Måns

Do you know if it will ever be possible to use tiddler images in a class?
>>
> Just by transcluding them in the stylesheet.
>

> Could you please show me the right syntax for doing that?

Here's how it's done:

.SomeClass{
    background: url(<<datauri "$:/core/images/home-button">>) center left
no-repeat;
    padding-left: 18px;
}

The datauri maro is needed to convert the tiddler to base64 and prepend the
data URI furniture.

Best wishes

Jeremy




On Sat, May 31, 2014 at 4:23 PM, Måns <[email protected]> wrote:

> Hi Stephan
>
>
>
>> Do you know if it will ever be possible to use tiddler images in a class?
>>>
>> Just by transcluding them in the stylesheet.
>>
>
> Could you please show me the right syntax for doing that?
>
> I have tried variations like :
>
> .SomeClass{
>     background: url({{$:/core/images/home-button}}) center left no-repeat;
>     padding-left: 18px;
> }
>  - to no avail
>
> Cheers Måns Mårtensson
>
>
>
>>
>>> Imo hardcoding base64 binary code for images in stylesheets has never
>>> been "my cup of tea"
>>>
>> Which would be kind of hard-coding.
>>
>  --
> 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 http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to