wide content toggler

This commit is contained in:
Jana Deutschländer 2017-01-10 09:41:22 +01:00
commit 3569264837
3 changed files with 5 additions and 4 deletions

View file

@ -164,7 +164,7 @@
.content {
.row > .col-xs-12{
width: auto;
float: right;
float: none;
}
}
&.showSidebar{

View file

@ -4,10 +4,10 @@
$elem.wrapInner('<a href="#toggleMenu" class="toggler"></a>');
},
setWideContent = function(){
$('body').addClass('wide-content');
},
setDefaultContent= function(){
$('body').removeClass('wide-content');
},
toggleState = function($toggler){
$toggler.toggleClass('closed');

View file

@ -83,8 +83,9 @@ $showSidebar = true; /* */
/* #dokuwiki__top used as anchor for "back to top" button/link links */
$classWideContent = ($ACT === "show") ? "": "wide-content ";
?>
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($ACT) ? 'do-'.$ACT : 'do-none'; ?> <?php echo ($showSidebar) ? 'showSidebar' : ''; ?>">
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($ACT) ? 'do-'.$ACT : 'do-none'; ?> <?php echo $classWideContent; ?><?php echo ($showSidebar) ? 'showSidebar' : ''; ?>">
<div id="dokuwiki__site">
<?php