You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2021/02/25 21:21:59 UTC
[lucene-site] branch main/solr updated: Fix Markdown code
highlighting - grey background and enough padding / margins
This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch main/solr
in repository https://gitbox.apache.org/repos/asf/lucene-site.git
The following commit(s) were added to refs/heads/main/solr by this push:
new 2336271 Fix Markdown code highlighting - grey background and enough padding / margins
2336271 is described below
commit 2336271e3a83669497f4f3d2db92672ae456c407
Author: Jan Høydahl <ja...@cominvent.com>
AuthorDate: Thu Feb 25 22:21:44 2021 +0100
Fix Markdown code highlighting - grey background and enough padding / margins
---
pelicanconf.py | 2 +-
themes/solr/static/css/base.css | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/pelicanconf.py b/pelicanconf.py
index b60a2c6..d14e911 100755
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -100,7 +100,7 @@ MARKDOWN = {
'extension_configs': {
'toc': {},
'mdx_include': {},
- 'markdown.extensions.codehilite': {'css_class': 'highlight'},
+ 'markdown.extensions.codehilite': {'css_class': 'codehilite'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
diff --git a/themes/solr/static/css/base.css b/themes/solr/static/css/base.css
index ca50a83..75898b3 100644
--- a/themes/solr/static/css/base.css
+++ b/themes/solr/static/css/base.css
@@ -954,9 +954,11 @@ section.list ul li ul li {
}
.codehilite {
- padding: 30px 20px;
- border: 1px solid #ccc;
- margin: 20px 0;
+ margin: 10px 0;
+ background-color: #EEEEEE;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ padding-left: 15px;
}
pre {