On 29/12/2024 11:26, Nikolaos Chatzikonstantinou wrote:
I should probably try to do this, but I got inspired by Worg's website
which does not do any backend hacking as far as I can tell, but
instead puts some javascript to collapse the table of contents.

Not all users are happy with current CSS with :hover to show the table of contents on Worg:

Samuel Wales. [accessibility] worg obscures text. Wed, 8 Jun 2022 14:51:55 -0700.
<https://list.orgmode.org/CAJcAo8uTOpEazLNCr0t1kFqPGTLz=G=adnklhuo1-ura8-m...@mail.gmail.com>

There is a trick with a hidden checkbox to implement menu without JavaScript. See languages selector in Wikipedia
<https://en.wikipedia.org/wiki/Org_mode>
and the main Org site top menu when accessed from a mobile device
<https://orgmode.org>

Perhaps a similar effect may be achieved with <details>/<summary>.

If you check my blog now, it looks almost OK in mobile phones.

In desktop version of Firefox, when responsive design mode is enabled, the sidebar is rendered over main text (at least with active NoScript).

Reply via email to