From c341a278291be3c6a4fcca77fede476a04417a69 Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 20 Jan 2021 18:17:06 +0800 Subject: [PATCH 4/5] ox-html.el: tweak styling of src blocks * lisp/ox-html.el (org-html-style-default): Apply the following changes to the styling of src blocks: - Remove box shadow. - Lighten border. - Add very light grey background colour. - Make lang label (visible on hover) less obtrusive by removing border. --- lisp/ox-html.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 14f023e87..e83648726 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -277,24 +277,24 @@ property on the headline itself.") #postamble p, #preamble p { font-size: 90%; margin: .2em; } p.verse { margin-left: 3%; } pre { - border: 1px solid #ccc; - box-shadow: 3px 3px 3px #eee; + border: 1px solid #e6e6e6; + border-radius: 3px; + background-color: #f2f2f2; padding: 8pt; font-family: monospace; overflow: auto; margin: 1.2em; } pre.src { position: relative; - overflow: auto; - padding-top: 1.2em; } + overflow: auto; } pre.src:before { display: none; position: absolute; - background-color: white; - top: -10px; - right: 10px; + top: -8px; + right: 12px; padding: 3px; - border: 1px solid black; } + color: #555; + background-color: #f2f2f299; } pre.src:hover:before { display: inline; margin-top: 14px;} /* Languages per Org manual */ pre.src-asymptote:before { content: 'Asymptote'; } -- 2.29.2