aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_help.css21
-rw-r--r--view/js/mod_help.js11
-rw-r--r--view/theme/redbasic/css/style.css14
-rw-r--r--view/tpl/help.tpl17
4 files changed, 29 insertions, 34 deletions
diff --git a/view/css/mod_help.css b/view/css/mod_help.css
index 3c3bc195f..d596048c9 100644
--- a/view/css/mod_help.css
+++ b/view/css/mod_help.css
@@ -11,10 +11,22 @@
padding-bottom: 0.3em;
}
+#doco-content img {
+ width: 100%;
+}
+
#region_1 .widget ul ul {
list-style-type: none;
}
+#doco-top-toc-wrapper {
+ margin-bottom: 1em;
+}
+
+#doco-top-toc-wrapper > summary {
+ font-size: large;
+}
+
.toc-content li,
#doco-top-toc li {
padding: 3px 0px;
@@ -24,3 +36,12 @@
padding-left: 20px;
}
+.selected-doco-nav > a {
+ font-weight: bold;
+ color: var(--bs-link-hover-color);
+}
+
+#help-content pre code {
+ overflow-x: auto;
+ white-space: pre;
+}
diff --git a/view/js/mod_help.js b/view/js/mod_help.js
index abd0d1194..8308f23ec 100644
--- a/view/js/mod_help.js
+++ b/view/js/mod_help.js
@@ -1,14 +1,3 @@
-function docoTocToggle() {
- if ($('#doco-top-toc').is(':visible')) {
- $('#doco-toc-toggle').removeClass('bi-gear').addClass('bi-caret-right');
- } else {
- $('#doco-toc-toggle').removeClass('bi-caret-right').addClass('bi-caret-down');
- }
- $('#doco-top-toc').toggle();
-
- return false;
-}
-
toc = {};
// Generate the table of contents in the side nav menu (see view/tpl/help.tpl)
$(document).ready(function () {
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index ec8ce42b3..6e6e19532 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -150,20 +150,6 @@ input[type=text], textarea {
color: var(--bs-body-color);
}
-.selected-doco-nav {
- font-weight: bold;
- text-shadow: 2px 2px 3px lightgray;
-}
-
-#doco-content img {
- width: 100%;
-}
-
-#help-content pre code {
- overflow-x: auto;
- white-space: pre;
-}
-
.heart {
color: #FF0000;
}
diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl
index 68e1c6694..8b7669c75 100644
--- a/view/tpl/help.tpl
+++ b/view/tpl/help.tpl
@@ -7,14 +7,13 @@
{{$module->missing_translation_message()}}
</div>
{{/if}}
- <div class="section-content-wrapper" id="doco-content">
- <h3 id="doco-top-toc-heading">
- <span class="fakelink" onclick="docoTocToggle(); return false;">
- <i class="bi bi-caret-right fakelink" id="doco-toc-toggle"></i>
- {{$module->get_toc_heading()}}
- </span>
- </h3>
- <ul id="doco-top-toc" style="margin-bottom: 1.5em; display: none;"></ul>
- {{$module->render_content()}}
+ <div class="section-content-wrapper">
+ <details id="doco-top-toc-wrapper">
+ <summary id="doco-top-toc-heading">{{$module->get_toc_heading()}}</summary>
+ <ul id="doco-top-toc"></ul>
+ </details>
+ <div id="doco-content">
+ {{$module->render_content()}}
+ </div>
</div>
</div>