From 5bab8a2d2530d7487064a2560c440269018a56b9 Mon Sep 17 00:00:00 2001 From: Ilmari Lauhakangas Date: Mon, 18 Apr 2022 12:41:48 +0300 Subject: tdf#148621 Make ScriptForge service tables mobile-friendly - Introduce element - While considering text-align, I noticed we do not take RTL languages into account. A CSS rule 'html[dir=ltr] th' was added, which does nothing at the moment. We should look into directionality. Change-Id: Ib59aa0c508529c0beaa35542d96bd5cc1aa4db29 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/133114 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- help3xsl/default.css | 27 +++++++++++++++++++++++ help3xsl/online_transform.xsl | 7 ++++-- helpers/xmlhelp.dtd | 7 +++++- source/text/sbasic/shared/03/lib_ScriptForge.xhp | 28 ++++++++++-------------- 4 files changed, 50 insertions(+), 19 deletions(-) diff --git a/help3xsl/default.css b/help3xsl/default.css index 2c5e59ac0a..bc053cc704 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -212,6 +212,9 @@ table, th, td { border-right: 0; padding: 0.3em; } +html[dir=ltr] th { + text-align: left; +} .tablehead, .tableheadintable { font-weight: bold; @@ -226,6 +229,17 @@ table, th, td { font-size: 0.98rem; } +/* ScriptForge service tables */ +.sf_table { + min-width: 100%; +} +.sf_table thead { + display: none; +} +.sf_table tr, .sf_table td { + display: block; +} + h1, h2, h3, @@ -840,6 +854,19 @@ li.disabled a { max-width: 200px; width: 100% } + /* ScriptForge service tables */ + .sf_table { + min-width: auto; + } + .sf_table thead { + display: table-header-group; + } + .sf_table tr { + display: table-row; + } + .sf_table td { + display: table-cell; + } } @media screen and (min-width: 1440px) { #Contents { diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 465415ea24..70c7ab0af5 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -732,7 +732,7 @@ - + @@ -744,7 +744,7 @@ - + @@ -758,6 +758,9 @@
+ + + diff --git a/helpers/xmlhelp.dtd b/helpers/xmlhelp.dtd index 6a4ef9778b..fcb1076b57 100644 --- a/helpers/xmlhelp.dtd +++ b/helpers/xmlhelp.dtd @@ -228,7 +228,7 @@ Version Nov 2018 select (sys | appl | distrib | target | ver | lang) #REQUIRED > - + + + +

Services provided by the ScriptForge library

- - - - Category - - - Services - - - - - - - - +
+ + + + Category + + + Services + + + %PRODUCTNAME Basic @@ -241,4 +237,4 @@ All ScriptForge Basic routines or identifiers that are prefixed with an underscore character "_" are reserved for internal use. They are not meant be used in Basic macros or Python scripts. - \ No newline at end of file + -- cgit