debug show or hide sidebar in edit mode

This commit is contained in:
Jana Deutschländer 2017-01-04 16:04:15 +01:00
commit 605f78d818
3 changed files with 13 additions and 4 deletions

View file

@ -42,13 +42,23 @@
#dokuwiki__footer {
.col-xs-12 {
float: right;
width: 73%;
width: 100%;
}
.main-footer {
padding: @margin-default 0;
}
}
.showSidebar {
#dokuwiki__footer {
.col-xs-12 {
width: 73%;
}
}
}
}

View file

@ -148,8 +148,6 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
<div class="sr-only nav-area-head">
<h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
</div><!-- .nav-area-head -->
<?php if ($showSidebar): ?>
<div class="tools">
<div class="container">
@ -223,7 +221,6 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
</div><!-- .row -->
</div><!-- .container -->
</div><!-- .tools -->
<?php endif ?>
<div class="top-header">

View file

@ -1,5 +1,6 @@
<?php
if (!defined('DOKU_INC')) die();
if ($showSidebar):
echo "<nav class=\"nav-main\">";
echo "<h6 class=\"sr-only\" role=\"heading\" aria-level=\"2\">".tpl_getLang('head_menu_main')."</h6>";
@ -8,3 +9,4 @@
echo PHP_EOL;
echo "</nav>";
endif ?>