From 153cd0a2059296efbcb0bc2cd20e165ebf33f2e2 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sat, 3 Dec 2016 15:17:31 -0500 Subject: Remove classes from the doco content region to simplify the appearance. Instead of loading /doc/main.bb, redirect to /doc/about/about_hubzilla/. These edits are minimal for demo purposes and not the proper way to do it. --- include/help.php | 1 + view/tpl/help.tpl | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/help.php b/include/help.php index 6efeeb57e..03d01d1a1 100644 --- a/include/help.php +++ b/include/help.php @@ -55,6 +55,7 @@ function get_help_content($tocpath = false) { if(! $text) { $doctype = 'bbcode'; $text = load_doc_file('doc/main.bb'); + goaway('/help/about/about_hubzilla'); \App::$page['title'] = t('Help'); } diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl index 96d52e0e9..de4b53ab0 100644 --- a/view/tpl/help.tpl +++ b/view/tpl/help.tpl @@ -1,8 +1,5 @@ -
- -
+
+
{{$content}}
-- cgit v1.2.3 From 1f91c2fe1203f6f34a639700e8d9731f51ba1429 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sun, 4 Dec 2016 08:07:58 -0500 Subject: Remove borders and box-shadow with CSS without removing the classes from help.tpl. --- doc/toc.html | 23 ++++++++++++++++++++++- view/tpl/help.tpl | 7 +++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/doc/toc.html b/doc/toc.html index 047032437..e240b5597 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -36,6 +36,27 @@ border-left: #cccccc 2px solid; margin-left: 10px; } + + #help-content.generic-content-wrapper { + border: 0; + box-shadow: 0; + border-radius: 0; + box-shadow: none; + } + #help-content.section-title-wrapper { + padding: 7px 10px; + background-color: $item_colour; + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom: 0; + } + #help-content.section-content-wrapper { + padding: 7px 10px; + background-color: $comment_item_colour; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + word-wrap: normal; + }
@@ -421,7 +442,7 @@ } }); - //$('#accordion').sticky({topSpacing:$('nav').outerHeight(true)}); + //$("#help-content").find('.section-title-wrapper h2').html($('head title').html()); }); diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl index de4b53ab0..96d52e0e9 100644 --- a/view/tpl/help.tpl +++ b/view/tpl/help.tpl @@ -1,5 +1,8 @@ -
-
+
+ +
{{$content}}
-- cgit v1.2.3 From c09ee7d714ccb79731ee59f9766a45e0bc90eec3 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Tue, 6 Dec 2016 17:15:20 -0500 Subject: Remove local CSS that overrides the redbasic theme. --- doc/toc.html | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/doc/toc.html b/doc/toc.html index e240b5597..8aceaa17d 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -37,26 +37,6 @@ margin-left: 10px; } - #help-content.generic-content-wrapper { - border: 0; - box-shadow: 0; - border-radius: 0; - box-shadow: none; - } - #help-content.section-title-wrapper { - padding: 7px 10px; - background-color: $item_colour; - border-top-left-radius: 0; - border-top-right-radius: 0; - border-bottom: 0; - } - #help-content.section-content-wrapper { - padding: 7px 10px; - background-color: $comment_item_colour; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - word-wrap: normal; - }
-- cgit v1.2.3 From ae97afd806656467b8704ecffda73dceffa98be0 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Tue, 6 Dec 2016 17:19:27 -0500 Subject: Prepare for dev pull request --- doc/toc.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/toc.html b/doc/toc.html index 8aceaa17d..c9c5ec46d 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -36,7 +36,6 @@ border-left: #cccccc 2px solid; margin-left: 10px; } -
@@ -422,7 +421,6 @@ } }); - //$("#help-content").find('.section-title-wrapper h2').html($('head title').html()); }); -- cgit v1.2.3