From: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>
To: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Some hacks on top of org-publish
Date: Sat, 4 Jan 2025 12:17:13 -0500 [thread overview]
Message-ID: <CAAQmekdQoWUScmLqaco=kcfGL2FGtm_mZdTKjfNq6FJ8f99TYQ@mail.gmail.com> (raw)
In-Reply-To: <a0236adc-f638-41b1-9aec-93eac1f720c5@gmail.com>
On Sat, Jan 4, 2025 at 10:39 AM Max Nikulin <manikulin@gmail.com> wrote:
>
> 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-m7-Q@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>.
org-publish (or is it org-html?) should just structure the HTML
document properly, as there is already an <aside> element, and even if
those semantic elements are not used, at least if the <div>'s of the
various parts of the page are placed sequentially one should be able
to deal with the rest. As it stands now the div is inside the article
content and it's hard to position it right. There's an urge to send
the entire org file contents inside the main content of the HTML page,
but then it makes it difficult to incorporate the sitemap with
#+INCLUDE.
Proper placement of elements would solve the issue addressed in my
e-mail and in your link as well. Then the user can just use flexbox to
get everything to be responsive.
> > 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).
The sidebar's default property is to be unexpanded, accounting for
those without javascript enabled. If it's running over the text it's
because your screen is too small. It's far from perfect, but I haven't
gotten around to hacking the org backends yet.
Regards,
Nikolaos Chatzikonstantinou
prev parent reply other threads:[~2025-01-04 17:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 17:45 Some hacks on top of org-publish Nikolaos Chatzikonstantinou
2024-12-25 13:48 ` Ihor Radchenko
2024-12-26 15:48 ` Nikolaos Chatzikonstantinou
2024-12-27 17:32 ` Ihor Radchenko
2024-12-29 4:17 ` Nikolaos Chatzikonstantinou
2024-12-29 4:26 ` Nikolaos Chatzikonstantinou
2024-12-30 18:14 ` Ihor Radchenko
2025-01-04 15:39 ` Max Nikulin
2025-01-04 17:17 ` Nikolaos Chatzikonstantinou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAQmekdQoWUScmLqaco=kcfGL2FGtm_mZdTKjfNq6FJ8f99TYQ@mail.gmail.com' \
--to=nchatz314@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).