Skip to content

Commit

Permalink
FIX toggle of login_block was ko with eldy theme
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 19, 2019
1 parent 07a8d00 commit 70c2ffc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -7195,7 +7195,6 @@ function printCommonFooter($zone = 'private')
print ' if(!$( "body" ).hasClass( "sidebar-collapse" )){ event.preventDefault(); }'."\n";
print ' console.log("We click on .menuhider");'."\n";
print ' $("body").toggleClass("sidebar-collapse")'."\n";
print ' $(".login_block").toggle()'."\n";
print '});'."\n";
}

Expand Down
10 changes: 8 additions & 2 deletions htdocs/theme/eldy/global.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,11 @@
transition: left 0.5s ease;
}

body.sidebar-collapse .side-nav {
.side-nav, .login_block {
transition: left 0.5s ease;
}

body.sidebar-collapse .side-nav, body.sidebar-collapse .login_block {
display: none;
}

Expand Down Expand Up @@ -1829,6 +1833,9 @@
color: #<?php echo $colortextbackvmenu; ?>;
text-decoration:underline;
}
.login_block_elem a span.atoplogin, .login_block_elem span.atoplogin {
vertical-align: middle;
}
div.login_block_user {
display: inline-block;
padding-top: 3px;
Expand Down Expand Up @@ -5644,7 +5651,6 @@
div.login_block {
<?php if ($conf->browser->layout == 'phone' && ((GETPOST('testmenuhider', 'int') || ! empty($conf->global->MAIN_TESTMENUHIDER)) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))) { ?>
/* Style when phone layout or when using the menuhider */
display: none;
padding-top: 20px;
padding-left: 20px;
padding-right: 20px;
Expand Down
4 changes: 3 additions & 1 deletion htdocs/theme/md/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,9 @@
.login_block_getinfo .atoplogin, .login_block_getinfo .atoplogin:hover {
color: #333 !important;
}

.login_block_elem a span.atoplogin, .login_block_elem span.atoplogin {
vertical-align: middle;
}



Expand Down

0 comments on commit 70c2ffc

Please sign in to comment.