File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ window.ProcessMaker.navbar = new Vue({
141141 taskTitle : "" ,
142142 isMobile : false ,
143143 isMobileDevice : window . ProcessMaker . mobileApp ,
144+ isNavbarExpanded : false ,
144145 } ;
145146 } ,
146147 watch : {
@@ -214,6 +215,9 @@ window.ProcessMaker.navbar = new Vue({
214215 onResize ( ) {
215216 this . isMobile = window . innerWidth < 992 ;
216217 } ,
218+ toggleNavbar ( ) {
219+ this . isNavbarExpanded = ! this . isNavbarExpanded ;
220+ } ,
217221 } ,
218222} ) ;
219223
Original file line number Diff line number Diff line change 55 $loginLogo = \ProcessMaker \Models \Setting:: getLogin ();
66 @endphp
77 <b-navbar-brand href =" #" class =" d-lg-none pl-2" ><img class =" navbar-logo" src ={{ $loginLogo } } ></b-navbar-brand >
8- <b-navbar-toggle class =" ml-auto" :target =" ['nav-collapse', 'breadcrumbs-collapse']" ></b-navbar-toggle >
8+ <b-navbar-toggle class =" ml-auto" :target =" ['nav-collapse', 'breadcrumbs-collapse']" @click =" toggleNavbar" >
9+ <template #default =" { expanded }" >
10+ <span class =" bar" :class =" { 'rotate-top': isNavbarExpanded }" ></span >
11+ <span class =" bar" :class =" { 'fade-out': isNavbarExpanded }" ></span >
12+ <span class =" bar" :class =" { 'rotate-bottom': isNavbarExpanded }" ></span >
13+ </template >
14+ </b-navbar-toggle >
915 </div >
1016
1117 <div class =" d-flex d-lg-none w-100" >
@@ -172,6 +178,27 @@ class="ml-2"
172178
173179</div >
174180<style lang =" scss" scoped >
181+ .bar {
182+ display : block ;
183+ width : 25px ;
184+ height : 3px ;
185+ margin : 5px auto ;
186+ background-color : rgba (114 , 128 , 146 , 0.8 );
187+ transition : all 0.3s ease ;
188+ }
189+
190+ .rotate-top {
191+ transform : rotate (45deg ) translate (7px , 5px );
192+ }
193+
194+ .rotate-bottom {
195+ transform : rotate (-45deg ) translate (6px , -5px );
196+ }
197+
198+ .fade-out {
199+ opacity : 0 ;
200+ }
201+
175202 .separator {
176203 border-right : 1px solid rgb (227 , 231 , 236 );
177204 height : 30px ;
You can’t perform that action at this time.
0 commit comments