emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] style/worg.css: Display TOC on top
@ 2022-04-16 12:02 Ihor Radchenko
  2022-05-08  7:09 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Ihor Radchenko @ 2022-04-16 12:02 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

I noticed a small glitch in https://orgmode.org/worg/dev/org-syntax.html

When TOC is expanded, the page notes are displayed on top of the TOC.
See the attached screenshot.


[-- Attachment #2: 2022-04-16_13-03.png --]
[-- Type: image/png, Size: 186713 bytes --]

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]


AFAIU, the problem is related to worg CSS. style/worg.css sets z-index
to the same value for all the elements making rendering dependent on the
defined element order.

The attached patch fixes the issue.

Best,
Ihor


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0001-style-worg.css-Display-TOC-on-top.patch --]
[-- Type: text/x-patch, Size: 779 bytes --]

From 4da10584bd8bb356a980678aaebf77bb46133c81 Mon Sep 17 00:00:00 2001
Message-Id: <4da10584bd8bb356a980678aaebf77bb46133c81.1650099192.git.yantar92@gmail.com>
From: Ihor Radchenko <yantar92@gmail.com>
Date: Sat, 16 Apr 2022 16:51:55 +0800
Subject: [PATCH] style/worg.css: Display TOC on top

* style/worg.css (@media all #table-of-contents): Avoid page text
being shown on top of TOC overlay.
---
 style/worg.css | 1 +
 1 file changed, 1 insertion(+)

diff --git a/style/worg.css b/style/worg.css
index c2572895..30cadb1b 100644
--- a/style/worg.css
+++ b/style/worg.css
@@ -73,6 +73,7 @@
 
     /* TOC inspired by http://jashkenas.github.com/coffee-script */
     #table-of-contents {
+	z-index: 1;
 	margin-top: 105px;
 	font-size: 10pt;
 	font-family:sans-serif;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-08  7:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-16 12:02 [PATCH] style/worg.css: Display TOC on top Ihor Radchenko
2022-05-08  7:09 ` Ihor Radchenko

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).