emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Margin added for overflow visibility problem


From: Fatih Aydin
Subject: [PATCH] Margin added for overflow visibility problem
Date: Sun, 6 Dec 2020 08:57:43 +0000

Write a code block in an org file and publish it to a html file. You will see that only bottom part of the name of the programming language is visible when you hover on it because of the css of that block (overflow:auto)
To fix this, a margin-top can be added.
--- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index d2f24f5c6..1a466fb16 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -300,7 +300,7 @@ property on the headline itself.") padding: 3px; border: 1px solid black; } - pre.src:hover:before { display: inline;} + pre.src:hover:before { display: inline; margin-top: 14px;} /* Languages per Org manual */ pre.src-asymptote:before { content: 'Asymptote'; } pre.src-awk:before { content: 'Awk'; } -- 2.29.2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]