body.tc-body.tc-tiddler-frame{
background:{{[img[Background.pattern-2.jpg]]}}
}background-image: url(<<datauri "Background-pattern-2.jpg">>);
background: url(<$macrocall $name="datauri" title="Motovun Jack.jpg" $output="text/plain"/>);
This will be the looking I have in mind. This color should appear if given the tag "Ribbon_2". Then I want to add 1-2 more templates for other colors.
.tc-tagged-bbb .tc-tiddler-title:after {width:95%;height:6em;content:"";position:absolute;margin-top:-2em;margin-left:-2em;background-color:rgba(1,1,1,.3);border:1px green solid;}I don't think you're quite getting the basic problem that Peter is talking about here. While we can reference an external image in CSS by the image URL, how do we reference an internal image, one which has been imported into TW as a tiddler type image/png or whatever.
While we can reference an external image in CSS by the image URL, how do we reference an internal image
.foobar {
background-image: url(<img src="…"/>);
}
If the example was in a CSS tiddler, you could simply write:
background: url(<<datauri "Motovun Jack.jpg">>);
I was hoping there would be an alternate to changing the type of the tiddler to text/vnd.tiddlywiki because that messes up some stuff.
title: MySpecialStyle
tags: $:/tags/Stylesheet
type: text/vnd.tiddlywiki
\define border-radius(size)
border-radius: $size$;
-moz-border-radius: $size$;
-webkit-border-radius: $size$;
-o-border-radius: $size$;
\end
<pre>
.foobar {
<<border-radius 6px>>
color: <<colour foreground>>;
background-color: <<colour background>>;
}
</pre>
.foobar {
content: '';
}
.bar {
content: '';
}
.foobar {
content: <b>;
}
.bar {
content: </b>;
}
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/465873e8-8ffb-4a02-beba-ce7a9ed61452%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@MatThanks for your forpeter tiddler ^^Correct me if I'm wrong. You simply avoid my problem by adding a new html-element to the tiddlers (if needed). You gave me a huge playground. If thats work for my ideas that would be great. Again thank you!I will post my experience and hopefully succes