Hi PMario,
I apologize for my inaccurate use of terminology. I actually tried googling
the proper term specifically to get it right, but managed to mess it up
nevertheless.
I will take your advice and avoid hard coding styles. Thank you for the tip
and all the help!
>From the examples I have seen, I am impressed! I believe that making text
look more appealing will provide a little dopamine hit, which encourages
reading the notes more often and makes creating the notes more fun. The
green, yellow and pink background colors seem particularly appealing to me.
Pekka
On Tuesday, May 18, 2021 at 1:44:08 PM UTC+3 PMario wrote:
> On Tuesday, May 18, 2021 at 7:31:15 AM UTC+2 Pekka wrote:
>
> For example, if I would type: ++ Custom block of text ++, then the HTML
>> output would be <div style="background-color: #FFF">Custom block of
>> text</div>, or wrapped in any other HTML blocks I choose.
>>
>
> A configuration like this isn't very future prove. Hardcodeing styles
> like: <div *style="background-color: #FFF"*>Custom block of text</div>
> ... should be a absolute last resort, if there is no other way. .. It will
> limit you in the future. Trust me!
>
> You should use: <div *class="myClass"*>Custom block of text</div> and
> create a tiddler with your "custom-styles" which is tagged:
> $:/tags/Stylesheet
>
> title: my-custom-styles
> tags: $:/tags/Stylesheet
>
> .myClass {
> background-color: #fff;
> }
>
> This is much more flexible, if you need to change the color in the future.
> .. You only need to change 1 CSS tiddler instead of every tiddler which
> contains the hardcoded code. ... Even if the custom-markup plugin is used.
>
> Just a thought.
> -mario
>
>
--
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/5a8a650d-2642-4f4e-b458-832a41cd6495n%40googlegroups.com.