Sidebar tc-reveal breaks theme hierarchy

72 views
Skip to first unread message

Arlen Beiler

unread,
Feb 4, 2019, 10:57:00 PM2/4/19
to TiddlyWiki
In trying to modify the theme of the sidebar, I discovered that the reveal widget makes it impossible to reposition the sidebar elements because they do not have the appropriate classes. 

image.png

I am wondering if it would be possible to change the sidebar tiddler to allow the individual inclusions to specify a container class for the sidebar tiddler to put on the reveal widget.

Thoughts, anyone?
Arlen

Jeremy Ruston

unread,
Feb 5, 2019, 11:07:37 AM2/5/19
to tiddl...@googlegroups.com
Hi Arlen

In trying to modify the theme of the sidebar, I discovered that the reveal widget makes it impossible to reposition the sidebar elements because they do not have the appropriate classes. 

<image.png>

I am wondering if it would be possible to change the sidebar tiddler to allow the individual inclusions to specify a container class for the sidebar tiddler to put on the reveal widget.

The sidebar is generated like this:

<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">

<$reveal type="nomatch" state=<<config-title>> text="hide"  tag="div">

<$transclude tiddler=<<listItem>> mode="block"/>

</$reveal>

</$list>

(See $:/core/ui/PageTemplate/sidebar).

I guess we could do something like this to allow sidebar segments to have a “class” field that is used as the class for the DIV:

<$reveal type="nomatch" state=<<config-title>> text="hide" class={{{ [<listItem>get[class]] }}} tag="div">

But we’d need to consider consistency with other places where we use tags to build the UI.

Best wishes

Jeremy.



Thoughts, anyone?
Arlen

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAJ1vdSRB-D2eFW%2B425j4GSOKwsy27tF2S4PC%3DHSrKb2rxQ8xzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Arlen Beiler

unread,
Feb 6, 2019, 10:19:57 PM2/6/19
to tiddl...@googlegroups.com
There are many places where tc-reveal inside a list breaks customizing the individual items in the list. But as far as I can think, this is the only place where it matters, because most other lists are used in places where all items are styled the same. 

Thomas Elmiger

unread,
Feb 7, 2019, 2:58:20 PM2/7/19
to TiddlyWiki
Hi Arlen,

Sometimes there is something inside the tab you can target (examples below), or maybe you can use pseudo classes like :first or ... what exactly are you trying to achieve?

In trying to modify the theme of the sidebar, I discovered that the reveal widget makes it impossible to reposition the sidebar elements because they do not have the appropriate classes. 



Bildschirmfoto 2019-02-07 um 20.50.55.png


It can be hard to restyle the sidebar, but it might be possible.


Cheers,

Thomas

 
Reply all
Reply to author
Forward
0 new messages