summaryrefslogtreecommitdiff
path: root/help3xsl/default.css
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-04-16 16:42:40 +0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2022-04-17 16:38:31 +0200
commit24828f91e22842cdaf64faf7d22a028541e5746c (patch)
treebfc2e98a19170299fba7f3ba5c228139ed6eb596 /help3xsl/default.css
parent8d70f37fcc80c0b6c4fbfa36709ec1b1e9002a40 (diff)
tdf#148621 Improve Basic Help layout
- Get rid of tables - Add normalize-whitespace Prism plugin to get rid of useless indents - Fix code blocks poking through sticky header - Add some word wrapping CSS to fix mobile-unfriendliness Change-Id: I73fd1e0678624b0d4bd5561f50e80990db5567be Reviewed-on: https://gerrit.libreoffice.org/c/help/+/133096 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/default.css')
-rw-r--r--help3xsl/default.css6
1 files changed, 6 insertions, 0 deletions
diff --git a/help3xsl/default.css b/help3xsl/default.css
index 085d323a95..2c5e59ac0a 100644
--- a/help3xsl/default.css
+++ b/help3xsl/default.css
@@ -121,6 +121,7 @@ pre,
display: inline;
padding: 1px 3px;
font-family: var(--font_mono);
+ word-wrap: anywhere;
}
.smathcode {
border-radius: 2px;
@@ -178,6 +179,10 @@ pre,
.noteicon, .notetext {
padding:0.3em;
}
+/* Override some Prism.js styles */
+code[class*="language-"], pre[class*="language-"] {
+ white-space: pre-wrap;
+}
/* Table related classes */
@@ -603,6 +608,7 @@ li.disabled a {
background: #18A303;
top: 0px;
position: sticky;
+ z-index: 100;
}
.xapian-omega-search {
margin: auto;