Re: [tw5] Distinguishing Native Shadow Tiddlers from Overwritten Shadow Tiddlers (for Styling)

2020-03-09 Thread Jeremy Ruston
Hi Scott

It’s an oversight that there wasn’t a way to style overridden shadow tiddlers. 
I’ve added a tc-tiddler-overridden-shadow for the upcoming v5.1.22 release:

https://github.com/Jermolene/TiddlyWiki5/commit/ae9ce4f01c6048aeb5604a93b57c2f3e4f959162

It’ll take about 10 minutes to build and then you’ll be able to try it out at 
https://tiddlywiki.com/prerelease 

Best wishes

Jeremy.


> On 8 Mar 2020, at 20:17, Scott Simmons (Secret-HQ)  
> wrote:
> 
> This is a follow-up to another question about using CSS to affect the opacity 
> of tiddlers 
> 
>  from a year ago.
> 
> In that thread, I managed to make shadow tiddlers translucent for easy 
> identification when TiddlyWiking.  My follow-up ambition was to add similarly 
> identifying styling to former shadow tiddlers (i.e., modified shadow 
> tiddlers, now saved as full-fledged tiddlers).
> 
> However, it doesn't look like there's an obvious way to identify those for 
> CSS.  I used to think they got the style "tc-tiddler-exists" added when they 
> were saved, and it seems that IS true — the original shadow also has that 
> same CSS class.  Best I can tell, the only difference between a "native 
> shadow" (one that hasn't been modified since it was loaded) and an 
> overwritten shadow is the addition of the "tc-tiddler-exists" class a second 
> time:
> 
> NATIVE SHADOW:
> tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists tc-tiddler-shadow 
> tc-tiddler-system 
> 
> OVERWRITTEN SHADOW:
> tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists tc-tiddler-exists 
> tc-tiddler-shadow tc-tiddler-system 
> 
> ... and I don't think styling 
> .tc-tiddler-exists.tc-tiddler-exists.tc-tiddler-shadow differently from 
> .tc-tiddler-exists.tc-tiddler-shadow is going to work.
> 
> Are there any ways to go about this with how TW identifies shadow tiddlers 
> and overwritten shadow tiddlers?  Because the EditTemplate throws up 
> different alerts when you're editing a native shadow and when you're editing 
> an overwritten shadow, I assume there must be some TiddlyWay of knowing the 
> difference.  Is it a way that can be leveraged by CSS?
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/c3a1f84f-8247-44bb-9538-01491d0c4f7f%40googlegroups.com
>  
> .

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/B890DB34-9119-41AF-9C4B-CD980276661C%40gmail.com.


[tw5] Distinguishing Native Shadow Tiddlers from Overwritten Shadow Tiddlers (for Styling)

2020-03-08 Thread Scott Simmons (Secret-HQ)
This is a follow-up to another question about using CSS to affect the 
opacity of tiddlers 

 from 
a year ago.

In that thread, I managed to make shadow tiddlers translucent for easy 
identification when TiddlyWiking.  My follow-up ambition was to add 
similarly identifying styling to *former* shadow tiddlers (i.e., modified 
shadow tiddlers, now saved as full-fledged tiddlers).

However, it doesn't look like there's an obvious way to identify those for 
CSS.  I used to think they got the style "tc-tiddler-exists" added when 
they were saved, and it seems that *IS* true — the original shadow also has 
that same CSS class.  Best I can tell, the only difference between a 
"native shadow" (one that hasn't been modified since it was loaded) and an 
overwritten shadow is the addition of the "tc-tiddler-exists" class a 
second time:

NATIVE SHADOW:
tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists tc-tiddler-shadow 
tc-tiddler-system 

OVERWRITTEN SHADOW:
tc-tiddler-frame tc-tiddler-view-frame tc-tiddler-exists *tc-tiddler-exists* 
tc-tiddler-shadow tc-tiddler-system 

... and I don't think styling 
.tc-tiddler-exists.tc-tiddler-exists.tc-tiddler-shadow differently from 
.tc-tiddler-exists.tc-tiddler-shadow is going to work.

Are there any ways to go about this with how TW identifies shadow tiddlers 
and overwritten shadow tiddlers?  Because the EditTemplate throws up 
different alerts when you're editing a native shadow and when you're 
editing an overwritten shadow, I assume there must be some TiddlyWay of 
knowing the difference.  Is it a way that can be leveraged by CSS?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c3a1f84f-8247-44bb-9538-01491d0c4f7f%40googlegroups.com.