I'm just applying some custom CSS to <a> HTML tags. I'm not creating any
macros, the lists of links are just generated by TiddlyWiki itself, like
those in the sidebar.
I'm doing something like:
div.tc-tab-content.tc-vertical a::before {
content: "[before]";
}
div.tc-tab-content.tc-vertical a::after {
content: "[after]";
}
Kalcifer
On Wednesday, April 1, 2020 at 1:55:57 AM UTC+1, TonyM wrote:
>
>
> KalciferCan you provide a not working example we could put on
> TiddlyWiki.com? You are taking a less common path, so it is not clear what
> is behind your problem.
>
> In effect you are talking about concatenation which often confuses people,
> however in your case case css seems to have a role.
>
> It is common to define a macro or filter to concatenate and in some cases
> the addition of the \whitespace trim
>
> \define name(param)
> \whitespace trim
> concatenate here $(variablename)$/$param$
> \end
>
> Regards
> Tony
>
>
> On Wednesday, April 1, 2020 at 5:17:29 AM UTC+11, Kalcifer Kandari wrote:
>>
>> Hello,
>>
>> I would like to add some ::before and ::after content using CSS to the
>> dynamically generated lists around the UI, for example, lists of tiddlers
>> in the sidebar, and in plugins, and so on. The problem is that due to the
>> HTML formatting of the list items, there is always a whitespace node after
>> the ::before content and before the ::after content.
>>
>> Here is what I want:
>> [before content]Some listed tiddler[after content]
>>
>> Here is what I get:
>> [before content] Same listed tiddler [after content]
>>
>> Here is how the HTML is formatted:
>> <a>
>> Tiddler title
>> </a>
>>
>> Here is how the HTML should be formatted:
>> <a>Tiddler title</a>
>>
>> This applies to <li> tags as well, and maybe others.
>>
>> There is no way to remove those whitespace nodes with CSS.
>>
>> If anyone knows how fix this by editing system tiddlers, I would be
>> willing to dabble, but I have no idea where to look.
>>
>> Thanks,
>>
>> Kalcifer
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/0b3b151d-e007-4e15-ac35-93501bd33e8e%40googlegroups.com.