From 7676d709bbdd3fbcc3e7d2183a6c3fda243a5fe4 Mon Sep 17 00:00:00 2001 From: Phil-Ah Date: Mon, 9 May 2022 09:16:26 +0200 Subject: [PATCH] Change CSS definition of padding to better confer to standard (#2023) "padding: inherit;" does not take any further arguments. Further definitions will be moved to separate lines to produce valid CSS. Co-authored-by: Eduard Heimbuch --- gradle/changelog/valid_CSS.yaml | 2 ++ .../ui-syntaxhighlighting/src/syntax-highlighting.module.css | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 gradle/changelog/valid_CSS.yaml diff --git a/gradle/changelog/valid_CSS.yaml b/gradle/changelog/valid_CSS.yaml new file mode 100644 index 0000000000..413d4960f8 --- /dev/null +++ b/gradle/changelog/valid_CSS.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: separate definition of padding to produce valid CSS ([#2023](https://github.com/scm-manager/scm-manager/pull/2023)) diff --git a/scm-ui/ui-syntaxhighlighting/src/syntax-highlighting.module.css b/scm-ui/ui-syntaxhighlighting/src/syntax-highlighting.module.css index 1d984f186c..2533bacbd9 100644 --- a/scm-ui/ui-syntaxhighlighting/src/syntax-highlighting.module.css +++ b/scm-ui/ui-syntaxhighlighting/src/syntax-highlighting.module.css @@ -183,7 +183,9 @@ pre[class*="language-"] > code[class*="language-"] { position: absolute; left: 0; right: 0; - padding: inherit 0; + padding: inherit; + padding-left: 0; + padding-right: 0; margin-top: 1em; background: var(--sh-highlight-background); box-shadow: inset 5px 0 0 var(--sh-highlight-accent);