Mat,
I can confirm this "chain atomic styles" already works
Create a stylesheet on tiddlywiki.com with the below CSS
and this works
:.q This is a quote
:.q.b This is a quote
Tiddler tagged $:/tags/Stylesheet
.b { font-weight: bold; }
.i { margin-left: 3em;}
.ii { margin-left: 6em;}
.iii { margin-left: 9em;}
.r { margin-right: 3em;}
.rr { margin-right: 6em;}
.rrr { margin-right: 9em;}
.j { text-align: justify; text-justify: auto; }
.u { text-decoration: underline; }
.q { font-style: italic; }
.q::before {
content: "“"; /* Insert content that looks to do */
padding-left: 4px;
}
.q::after {
content: "”"; /* Insert content that looks to do */
padding-right: 4px;
}
In this example the .iii is obsolete because you can use .i.i.i
However note the gap we are addressing here is allowing such cascaded
classnames to be placed at the front of any line
Of note;
Font awesome and other CSS frameworks provide a lot of class names that can
be used this way as well,
Many of Mohammad's classes in Shiraz can be used this way as well.
- Perhaps Mohammad can document the classes to use this way rather than
via macros.
Post script:
I privately messaged Mohammad who I had not heard much of lately and he is
fine and well and not isolated by global Politics.
Regards
Tony
On Friday, 4 September 2020 03:15:22 UTC+10, Mat wrote:
>
> Adding to my post above (containing the clarification to make the
> indicator be a string rather than a character)
>
> PMario wrote:
>>
>>
>> `.justify.indent1.right-margin.cbox.cbox-primary your text goes here.
>>
>> That's pretty close the "Tailwind
>> <https://groups.google.com/d/msg/tiddlywikidev/c-PsNFN-Jm4/Hgp5RF4oBAAJ>"
>> approach, that you brought up here in the group. ...
>>
>
> In deed, and I like this possibility to chain atomic styles very much. Of
> course, if one authors e.g a book or other coherent text, there will
> probably be a very limited set that is needed (hence my point about a few
> ready made indicators that each bring their own style).
>
>
>> I did probably write it 2 times here. The DOT is _not_ possible. It will
>> clash with tiddlers tagged $:/tags/Stylesheets ... Every class name starts
>> with a dot.
>>
>
> Thanks, I missed this. I'm surprised though because I assumed the
> stylesheets tag was a *prerequisite *for the dot-classname to be
> interpreted as class names by the system - and if there was no stylesheet
> tag then this syntax didn't mean anything special...
>
>
> <:-)
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/cf9f8a51-d6c0-4e0b-bd7a-2608ef9b35bbo%40googlegroups.com.