additional sidebar menus

This commit is contained in:
Jana Deutschländer 2017-01-05 15:26:50 +01:00
commit fb0ec22f42
8 changed files with 54 additions and 4 deletions

View file

@ -10,6 +10,7 @@
/* + + + + + nav main + + + + + */
.nav-main {
padding-bottom: 1.8rem;
> ul {
@icon-size: 2rem;

View file

@ -7,11 +7,12 @@
.side-tools.main-sidebar {
@icon-size: 2rem;
counter-increment: bar-counter;
> nav{
margin-top: 1rem;
> ul{
margin-bottom: 0;
padding-bottom: .4rem;
}
}
@ -23,10 +24,9 @@
font-size: .88rem;
font-weight: normal;
padding: .5rem 0 .5rem (@icon-size + 1);
&::before {
//background-color: gold;
content: 'A';
content: counter(bar-counter, lower-alpha);
position: absolute;
top: 0;
left: 0;
@ -58,9 +58,33 @@
/* + + + linklist + + + */
ul {
ul,.trace{
padding-left: (@icon-size + .5);
}
ul{
border-bottom: 1px solid @color-border;
}
p{
border: 1px solid @color-border;
background-color: @background_page-header;
padding: .4rem;
max-height: 200px;
overflow-y: auto;
.bchead, .bcsep{
display: none;
}
.breadcrumbs{
padding: 0; margin: 0;
}
bdi{
display: block;
line-height: 125%;
padding: .1rem 0;
}
a{
cursor: pointer;
}
}
li {
list-style-type: none;

View file

@ -14,6 +14,7 @@ $lang['head_quick_search'] = 'wikiübergreifende Schnellsuche';
$lang['head_menu_main'] = 'Hauptmenü';
$lang['head_menu_status'] = 'Seitenstatus';
$lang['head_breadcrumb'] = 'Standortanzeiger';
$lang['head_menu_trace'] = 'zuletzt angesehen';
$lang['quality_trigger'] = 'Seitenanalyse ein- bzw. ausblenden';

View file

@ -18,6 +18,7 @@ $lang['head_quick_search'] = 'wikiübergreifende Schnellsuche';
$lang['head_menu_main'] = 'Hauptmenü';
$lang['head_menu_status'] = 'Seitenstatus';
$lang['head_breadcrumb'] = 'Standortanzeiger';
$lang['head_menu_trace'] = 'zuletzt angesehen';
$lang['quality_trigger'] = 'Seitenanalyse ein- bzw. ausblenden';

View file

@ -13,6 +13,7 @@ $lang['head_quick_search'] = 'quick search';
$lang['head_menu_main'] = 'main menu';
$lang['head_menu_status'] = 'site status';
$lang['head_breadcrumb'] = 'location indicator';
$lang['head_menu_trace'] = 'trace / visited last';
$lang['quality_trigger'] = 'toggle page analysis';

View file

@ -18,6 +18,7 @@ $lang['head_quick_search'] = 'quick search';
$lang['head_menu_main'] = 'main menu';
$lang['head_menu_status'] = 'site status';
$lang['head_breadcrumb'] = 'location indicator';
$lang['head_menu_trace'] = 'trace / visited last';
$lang['quality_trigger'] = 'toggle page analysis';

View file

@ -215,6 +215,16 @@ $showSidebar = true; /* */
?>
</div><!-- .side-tools -->
<div class="side-tools main-sidebar toggle-menu">
<?php
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* trace */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
include('tpl/nav-trace.php');
?>
</div><!-- .side-tools -->
<div class="sidebarfooter main-sidebar">
<?php

11
tpl/nav-trace.php Executable file
View file

@ -0,0 +1,11 @@
<?php
if (!defined('DOKU_INC')) die();
if ($conf['useacl'] && $showTools): ?>
<nav class="nav-trace <?php echo $navClass?>">
<h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_trace'); ?></h6>
<div class="trace"><p><?php tpl_breadcrumbs(); ?></p></div>
</nav><!-- #dokuwiki__usertools -->
<?php endif ?>