Make content CSS-selectable depending on tags #2912

Closed
opened 2026-02-05 05:42:39 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ssddanbrown on GitHub (Jul 19, 2022).

Thought from requests to customized specific pages here and there.
If we converted tags to CSS classes, or any kind of marker in the DOM, then they could be used to selectively apply CSS (and also JS I guess) to specific bits of content.

Will need to think of scheme that allows selecting on tag name or value, but also on name and value, ignore cases where the value may be used under a different name.

Should be added to the hacking docs page if implemented.

Originally created by @ssddanbrown on GitHub (Jul 19, 2022). Thought from requests to customized specific pages here and there. If we converted tags to CSS classes, or any kind of marker in the DOM, then they could be used to selectively apply CSS (and also JS I guess) to specific bits of content. Will need to think of scheme that allows selecting on tag name or value, but also on name and value, ignore cases where the value may be used under a different name. Should be added to the hacking docs page if implemented.
OVERLORD added the 📖 Docs Update🖌️ View Customization labels 2026-02-05 05:42:39 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2912