On Wednesday, August 20, 2014 9:41:15 PM UTC+2, Jeremy Ruston wrote:
>
> Hi Ton
>
> Is there something similar for the Sidebar (double chevron) button?
>>
>
> In 5.0.16 I plan to bring the same customisability to the topbar as we
> have for the sidebar buttons.
>
Nice. Will give more flexibility, also for my top menu toolbar.
>
>
>> Usecase: my (TW5.0.13) read-only plugin [1] that does not work properly
>> in TW5.0.14.
>>
>> In $:/plugins/tongerner/ro/publish I can toggle the visibility of the
>> Sidebar button on/off (CSS-wise), which works. But when I switch to
>> read-only mode (CSS-wise like the ReadOnly theme), the left double chevron
>> becomes visible again!
>> If I can hide the Sidebar button with some 'visibility' tiddler ....
>>
>
> I'm not sure why you can't hide the sidebar chevrons with CSS. Is it just
> that the CSS classes are different for the left and right chevrons?
>
In analogy with the styles in the ReadOnly theme I use:
svg.tw-image-chevron-left {
display: none;
}
svg.tw-image-chevron-right {
display: none;
}
And although the images disappear, there is something wrong: the button is
still usable although not visible. So it acts more like visibility: hidden than
display: none.
That was already in TW5.0.13-beta, so nothing new, but it is strange.
For some reason in TW 5.0.14/15-beta the left chevron icon reappears when I
apply the ReadOnly styles.
But in TW 5.0.14/15-beta I can hide per button (no ReadOnly styles needed
anymore).
And hopefully in TW5.016 I can hide the Sidebar button as well.
I will refactor my readonly plugin accordingly.
Cheers,
Ton
>
> Best wishes
>
> Jeremy
>
>
>>
>> Cheers,
>>
>> Ton
>>
>> [1] http://tw5readonly.tiddlyspot.com/
>>
>>
>> On Monday, August 18, 2014 12:20:35 PM UTC+2, Ton Gerner wrote:
>>>
>>> Hi Jeremy,
>>>
>>>>
>>>> The visibility tiddlers must contain the text "hide" to suppress the
>>>> associated button. If the visibility tiddler is missing then it's value
>>>> defaults to "show".
>>>>
>>>> So, in the case of the PageControls and ViewToolbar buttons there are
>>>> several buttons that are hidden by default, hence the visibility tiddlers.
>>>> In the case of the EditToolbar, all three of the available buttons are
>>>> visible, and so no visibility tiddlers are required.
>>>>
>>>> Thanks for explaining.
>>> I expected shadow visibility tiddlers for the EditToolbar as well (to
>>> define the 'show' state at start-up). I understand now these visibility
>>> tiddlers for the EditToolbar are just state tiddlers created 'on demand'.
>>>
>>> Cheers,
>>>
>>> Ton
>>>
>>
>
>
> --
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.