1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-06-16 02:04:56 +00:00

Add help section id to right of header.

This commit is contained in:
Starbeamrainbowlabs 2016-03-21 16:35:22 +00:00
parent da6ce432c9
commit f49d87a2f1
4 changed files with 8 additions and 4 deletions

View file

@ -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; } .tag-list li { display: inline-block; margin: 1rem; }
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; } .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; } .cursor-query { cursor: help; }
.larger { color: rgb(9, 180, 0); } .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 // Todo add a button that you can click to get a permanent link
// to this section. // to this section.
$content .= "<h2 id='$index'>" . $section["title"] . "</h2>\n"; $content .= "<h2 id='$index' class='help-section-header'>" . $section["title"] . "</h2>\n";
$content .= $section["content"] . "\n"; $content .= $section["content"] . "\n";
} }
} }

View file

@ -122,7 +122,7 @@
"author": "Starbeamrainbowlabs", "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.", "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", "id": "page-help",
"lastupdate": 1458412848, "lastupdate": 1458578106,
"optional": false "optional": false
}, },
{ {
@ -131,7 +131,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds a page that lists all the pages in the index along with their metadata.", "description": "Adds a page that lists all the pages in the index along with their metadata.",
"id": "page-list", "id": "page-list",
"lastupdate": 1458577343, "lastupdate": 1458577390,
"optional": false "optional": false
}, },
{ {

View file

@ -53,7 +53,7 @@ register_module([
// Todo add a button that you can click to get a permanent link // Todo add a button that you can click to get a permanent link
// to this section. // to this section.
$content .= "<h2 id='$index'>" . $section["title"] . "</h2>\n"; $content .= "<h2 id='$index' class='help-section-header'>" . $section["title"] . "</h2>\n";
$content .= $section["content"] . "\n"; $content .= $section["content"] . "\n";
} }
} }

View file

@ -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; } .tag-list li { display: inline-block; margin: 1rem; }
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; } .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; } .cursor-query { cursor: help; }
.larger { color: rgb(9, 180, 0); } .larger { color: rgb(9, 180, 0); }