From 747fbf015e914b6e480952cb51137bb701214e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Mon, 18 Sep 2023 23:54:41 +0200 Subject: [PATCH] Fix codehilite CSS. --- static/style.css | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index fbb2613..ee9e8ba 100644 --- a/static/style.css +++ b/static/style.css @@ -370,6 +370,20 @@ a.external::after { text-decoration: underline; } +/* Codehilite fix */ +.codehilitetable, .codehilitetable tr, .codehilitetable td { + border: none; +} +.codehilitetable .linenodiv pre { + margin: 0; + box-shadow: none; + line-height: 1.2em; + font-family: Menlo, Monaco, "Courier New", monospace; + font-size: medium; +} +.codehilitetable .code code { + font-size: medium; +} /* Code blocks */ pre { overflow: auto; @@ -383,7 +397,7 @@ pre > code { overflow: auto; } pre code { - padding: 0.5ex; + padding: 1ex; font-size: medium; background: #fff; color: #000; @@ -622,9 +636,9 @@ tr.__table-separator { background-color: #262628; } pre { - padding: 0.5ex; + padding: 0.25ex; background-color: inherit; - box-shadow: none; + box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.0); } pre code { padding: 1ex;