aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-28 13:08:41 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-28 13:08:41 +0200
commitb664af748e32f6e8f3d451e95fd8cb65940eca17 (patch)
tree45b612c67ab843e980f7c17c436854178ea80b69
parentf108838ca976299eabab45fb07373278391d6b66 (diff)
downloadvolse-hubzilla-b664af748e32f6e8f3d451e95fd8cb65940eca17.tar.gz
volse-hubzilla-b664af748e32f6e8f3d451e95fd8cb65940eca17.tar.bz2
volse-hubzilla-b664af748e32f6e8f3d451e95fd8cb65940eca17.zip
provide help button in context help popup
-rw-r--r--view/theme/redbasic/css/style.css18
-rwxr-xr-xview/tpl/nav.tpl9
2 files changed, 22 insertions, 5 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index bb25310b6..290a1a697 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -224,6 +224,24 @@ header #banner #logo-text {
.contextual-help-content dd {
margin-bottom: 1em;
}
+
+.contextual-help-tool {
+ padding: 7px;
+ filter: alpha(opacity=20);
+ opacity: .2;
+}
+
+.contextual-help-tool:hover {
+ filter: alpha(opacity=50);
+ opacity: .5;
+ text-decoration: none;
+}
+
+.contextual-help-tool i {
+ color: #000;
+ font-size: 16px;
+}
+
/* contextual help end */
/* footer */
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index 03b48fd00..14fb8a982 100755
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -36,10 +36,6 @@
<li role="presentation" class="divider"></li>
<li role="presentation"><a href="{{$nav.admin.0}}" title="{{$nav.admin.3}}" role="menuitem" id="{{$nav.admin.4}}">{{$nav.admin.1}}</a></li>
{{/if}}
- {{if $nav.help.6}}
- <li role="presentation" class="divider"></li>
- <li role="presentation"><a href="{{$nav.help.0}}" title="{{$nav.help.3}}" role="menuitem" id="{{$nav.help.4}}">{{$nav.help.1}}</a></li>
- {{/if}}
{{if $nav.logout}}
<li role="presentation" class="divider"></li>
<li role="presentation"><a href="{{$nav.logout.0}}" title="{{$nav.logout.3}}" role="menuitem" id="{{$nav.logout.4}}">{{$nav.logout.1}}</a></li>
@@ -207,6 +203,9 @@
{{if $nav.help.6}}
<div id="contextual-help-content" class="contextual-help-content">
{{$nav.help.5}}
- <button type="button" class="close" onclick="contextualHelp();">×</button>
+ <div class="pull-right">
+ <a class="contextual-help-tool" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}"><i class="icon-question"></i></a>
+ <a class="contextual-help-tool" href="#" onclick="contextualHelp(); return false;"><i class="icon-remove"></i></a>
+ </div>
</div>
{{/if}}