*How to dynamically change Custom Markup styling USING a Custom Markup 
launched macro  ...*

Ciao Tony

When I get back to reviewing the customise solution I will demonstrate a 
> method for your need.


The issue is NOT Custom Markup per se. Assume that is DONE already. And 
well.

Rather, the issue is DYNAMIC modification of CSS style values for styles 
already applied.

The Palette macro instantiates an economical stable approach that 
illustrates a solution.

IF you have time to explore this it could be useful. For ...

1 - MY needs;

2 - WIDER demonstration of the utility of macros UNDER Custom Markup.

I think it is point (2) that has most gravitas.

Best wishes
TT
 
On Friday, 23 October 2020 04:50:56 UTC+2, TonyM wrote:
>
> TT,
>
> This requirement is a fundamental aspect of the customise solution, which 
> started with an idea called dot paragraphs. 
> This idea had a leading . on any line causes subsequent lines to be 
> treated as a single paragraph unit a \n is reached.
>
> In your case arguably you want to use a div or span rather than a p
>
> \customise tick=div _element=div
>
>
> When I get back to reviewing the customise solution I will demonstrate a 
> method for your need.
>
> In short it is I believe already possible.
>
> Tones
>
>
>
>
> On Friday, 23 October 2020 01:28:37 UTC+11, @TiddlyTweeter wrote:
>>
>> Ciao Tony
>>
>> Me ... 
>>
>>> A SERIOUS use case would be HOW to invoke dynamic style change via 
>>>> inline buttons.
>>>>
>>>  
>> TonyM ...
>>
>>>  Can you give an example?
>>
>>
>> A simple one would be to able to dynamically change "block style" for 
>> paragraphs. I'm interested in archaic forms of writing where there is NO 
>> gap between paragraphs. They form one flow.
>>
>> Being able to do this simply by changing <state> ...
>>
>> p.archaic {
>>   display: <state>
>> }
>>
>> ... from "block" to "inline" in a stylesheet that is otherwise unchanged 
>> would be ace.
>>
>> Hope that is clearer on my aim!
>> TT
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/4751355e-9179-49ea-b727-a83a87da6cd6o%40googlegroups.com.

Reply via email to