From 2be07f6871b63f6c3b154ec62a07d40367a60ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 17 Jun 2023 00:36:51 +0200 Subject: [PATCH] syntaxhiglight: adjust for background #569 --- static/css/ie.css | 1 + static/css/theme.css | 13 +++++++++++++ static/css/variant.css | 1 + 3 files changed, 15 insertions(+) diff --git a/static/css/ie.css b/static/css/ie.css index ee3f2fd04d..2b00aec339 100644 --- a/static/css/ie.css +++ b/static/css/ie.css @@ -489,6 +489,7 @@ } div.highlight > div { + background-color: rgba( 248, 248, 248, 1 ); /* var(--CODE-BLOCK-BG-color) */ border-color: rgba( 216, 216, 216, 1 ); /* var(--CODE-BLOCK-BORDER-color) */ } diff --git a/static/css/theme.css b/static/css/theme.css index 72d8a6e5fa..ad9ce5d348 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -674,6 +674,18 @@ div.highlight > div{ /* remove default style for usual markdown tables */ div.highlight > div table{ background-color: transparent; + border-width: 0; + margin: 0; +} +div.highlight > div td{ + border-width: 0; + !padding: 0; +} +#body div.highlight > div a { + line-height: inherit; +} +#body div.highlight > div a:after { + display: none; } /* disable selection for lineno cells */ div.highlight > div td:first-child:not(:last-child){ @@ -685,6 +697,7 @@ div.highlight > div td:not(:first-child):last-child{ } /* remove border from row cells if highlight shortcode was used in table lineno mode */ div.highlight > div td > pre { + border-radius: 0; border-width: 0; } /* in case of table lineno mode we want to move each row closer together - besides the edges diff --git a/static/css/variant.css b/static/css/variant.css index c3479c2cc8..d3e279dd11 100644 --- a/static/css/variant.css +++ b/static/css/variant.css @@ -239,6 +239,7 @@ pre { } div.highlight > div { + background-color: var(--INTERNAL-CODE-BLOCK-BG-color); border-color: var(--INTERNAL-CODE-BLOCK-BORDER-color); }