From d5aba3080365acb02c8fe5435d1a14193fc34bac Mon Sep 17 00:00:00 2001 From: ChiaraDipi Date: Fri, 20 Dec 2019 12:23:23 +0100 Subject: [PATCH] Fix navbar toggler when navbar initially expanded --- css/BRnav.css | 4 ---- js/main/interface_control/ic_BRnav.js | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/css/BRnav.css b/css/BRnav.css index d216a30..275b0ea 100644 --- a/css/BRnav.css +++ b/css/BRnav.css @@ -317,10 +317,6 @@ transition: all 0.5s; } -#BRnavCntlBtm.BRdn { - bottom: -42px; -} - .fancybox img:hover { cursor: pointer; opacity: .7; diff --git a/js/main/interface_control/ic_BRnav.js b/js/main/interface_control/ic_BRnav.js index eaf7e83..90533c5 100644 --- a/js/main/interface_control/ic_BRnav.js +++ b/js/main/interface_control/ic_BRnav.js @@ -201,13 +201,13 @@ function bindArrowsBRnavClick() { // Expand BRnav.removeClass('collapsed').addClass('expanded'); centralWrapper.removeClass('navBarCollapsed').addClass('navBarExpanded'); - $(this).removeClass('BRup').addClass('BRdown'); + $(this).removeClass('BRup').addClass('BRdn'); $(this).find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down'); } else { // Collapse BRnav.removeClass('expanded').addClass('collapsed'); centralWrapper.removeClass('navBarExpanded').addClass('navBarCollapsed'); - $(this).removeClass('BRdown').addClass('BRup'); + $(this).removeClass('BRdn').addClass('BRup'); $(this).find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up'); } updateTextContHeight();