From f49d87a2f1b1945e6456ef5958f5a355eeeafef2 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 21 Mar 2016 16:35:22 +0000 Subject: [PATCH] Add help section id to right of header. --- build/index.php | 4 +++- module_index.json | 4 ++-- modules/page-help.php | 2 +- settings.fragment.php | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/index.php b/build/index.php index e79d6c4..2fc67a1 100644 --- a/build/index.php +++ b/build/index.php @@ -337,6 +337,8 @@ textarea ~ input[type=submit] { margin: 0.5rem 0.8rem; padding: 0.5rem; font-wei .tag-list li { display: inline-block; margin: 1rem; } .mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; } +.help-section-header::after { content: attr(id); float: right; color: rgba(0, 0, 0, 0.4); font-size: 0.8rem; font-weight: normal; } + .cursor-query { cursor: help; } .larger { color: rgb(9, 180, 0); } @@ -3144,7 +3146,7 @@ register_module([ // Todo add a button that you can click to get a permanent link // to this section. - $content .= "

" . $section["title"] . "

\n"; + $content .= "

" . $section["title"] . "

\n"; $content .= $section["content"] . "\n"; } } diff --git a/module_index.json b/module_index.json index e67e16c..910a52d 100644 --- a/module_index.json +++ b/module_index.json @@ -122,7 +122,7 @@ "author": "Starbeamrainbowlabs", "description": "Adds a rather useful help page. Access through the 'help' action. This module also exposes help content added to Pepperminty Wiki's inbuilt invisible help section system.", "id": "page-help", - "lastupdate": 1458412848, + "lastupdate": 1458578106, "optional": false }, { @@ -131,7 +131,7 @@ "author": "Starbeamrainbowlabs", "description": "Adds a page that lists all the pages in the index along with their metadata.", "id": "page-list", - "lastupdate": 1458577343, + "lastupdate": 1458577390, "optional": false }, { diff --git a/modules/page-help.php b/modules/page-help.php index fe74ed2..82ff9cf 100644 --- a/modules/page-help.php +++ b/modules/page-help.php @@ -53,7 +53,7 @@ register_module([ // Todo add a button that you can click to get a permanent link // to this section. - $content .= "

" . $section["title"] . "

\n"; + $content .= "

" . $section["title"] . "

\n"; $content .= $section["content"] . "\n"; } } diff --git a/settings.fragment.php b/settings.fragment.php index fd918b3..ac37889 100644 --- a/settings.fragment.php +++ b/settings.fragment.php @@ -334,6 +334,8 @@ textarea ~ input[type=submit] { margin: 0.5rem 0.8rem; padding: 0.5rem; font-wei .tag-list li { display: inline-block; margin: 1rem; } .mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; } +.help-section-header::after { content: attr(id); float: right; color: rgba(0, 0, 0, 0.4); font-size: 0.8rem; font-weight: normal; } + .cursor-query { cursor: help; } .larger { color: rgb(9, 180, 0); }