summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan José González <juanjosegzl@libreoffice.org>2024-04-14 11:14:21 -0600
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2024-04-18 07:26:34 +0200
commit83b1b76cb72845dd5d605337cb8253b914086911 (patch)
treea3031adf1982f4cb234664b890783564d785c809
parenttdf#160467 Remove z-index in prism code block (diff)
downloadhelp-libreoffice-24-2.tar.gz
help-libreoffice-24-2.zip
Move z-index rule to CSS stylesheet we control libreoffice-24-2
Previously a fix was pushed to prism css file, which can be changed by the upstream project. Instead overwrite the rule in our files. Change-Id: I549b05d4a359343ae0fe09831644a2eed8fb0474 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166076 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> (cherry picked from commit 2b438594148c4ee94cb632e7a3d3b64b547706d5) Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166211 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r--help3xsl/default.css4
-rw-r--r--help3xsl/prism.css1
2 files changed, 5 insertions, 0 deletions
diff --git a/help3xsl/default.css b/help3xsl/default.css
index 5bcd2c28f1..2a1fb17cb8 100644
--- a/help3xsl/default.css
+++ b/help3xsl/default.css
@@ -190,6 +190,10 @@ code[class*="language-"], pre[class*="language-"] {
white-space: pre-wrap;
}
+pre[class*="language-"] > code {
+ z-index: 0;
+}
+
/* Table related classes */
/* Special case of table with one cell*/
diff --git a/help3xsl/prism.css b/help3xsl/prism.css
index 54f0bf021e..4610909810 100644
--- a/help3xsl/prism.css
+++ b/help3xsl/prism.css
@@ -39,6 +39,7 @@ pre[class*="language-"] {
pre[class*="language-"] > code {
position: relative;
+ z-index: 1;
border-left: 10px solid #358ccb;
box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
background-color: #fdfdfd;