Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1001400

    Hello
    I’ve looked at tons of posts and have al ot of code but there are two things that are eluding me here, please (I’ve used basic colours to show what is being edited – they are just there as helpers for now).
    1) the burger is not centered – it’s off to the right a bit – I’ve tried all sorts of css but can’t seem to get it exactly in the middle.
    2) Once the burger is open, I’ve set the li to align top but I want it below the X

    Here’s my working code, below. Thanks in advance!

    	/* header logo and burger menu **********************************************/
    	
    	
    	/* height of both logo and main menu area */
    	
    	.responsive #top #wrap_all .container {
    	    height: 20px !important;
    		background: green !important; /* just to see what elemnt is targetted */		
    	}
    	  
    	.responsive #top .logo, 
    	  .responsive #top .logo a {
      		width: 100% !important;
      	    height: auto !important;		
    	    display: block !important;
    	    margin: 0 auto !important;
    		background: red !important; /* just to see what elemnt is targetted */
    	  }
    
    	  .responsive #top .logo img {
    		padding: 20px !important;
    	    margin: 0 auto !important;
    	  }
    	  
    	  /* adjusts the burger within main menu area */
    	  
    	  .av-main-nav-wrap ul {
    	  	top: 0px;
    	  }
    
    	  .responsive #top #wrap_all .main_menu {
    	    position: static;
    		height: auto !important;
    	  }
    
    	  .responsive #top .av-logo-container #avia-menu {
    	    margin: 0 auto !important;
    	    width: 30px !important;				
    	  }
    
    	  .responsive #top .av-logo-container .avia-menu {
    	    width: 100%;
    	    text-align: center !important;
    		background: blue !important; /* just to see what elemnt is targetted */
    	  }
    
    	  #top #wrap_all #header .av-small-burger-icon a {
    	    height: auto !important;
    	    line-height: 3 !important;
    	  }	
    	  
       	/* burger closed */
    	
       	.header_color .av-hamburger-inner,
       	.header_color .av-hamburger-inner::before,
       	.header_color .av-hamburger-inner::after {
       		background-color: #fff !important;
       	}
      
          /* burger open */
    	
      	#top .header_color .is-active .av-hamburger-inner, 
      	#top .header_color .is-active .av-hamburger-inner::before, 
      	#top .header_color .is-active .av-hamburger-inner::after {
      	    background-color: #fff !important;
      	}
    	 
    	 /* tweak the vertical position of the menu when open */
     
    	 #av-burger-menu-ul {
    		 vertical-align: top; /* originally middle */
    		 background: black !important; /* just to see what elemnt is targetted */
    	 }
    
    	 #av-burger-menu-ul li {
    	     text-align: center;
    		 padding: 5px 0px !important;
    	 }
      
    	 .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li a {
    	 	font-size: 12px;
    	 	line-height: 16px;
    	  	color: #afa89c !important;
    	  }
    
    	 .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li a:hover {
    		color: #fff !important;
    	  	opacity: 1 !important;
    	  }		 
     
    	 .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li.current-menu-item .avia-menu-text {
    	   color: #fff !important;
    	 }
     
    #1001407

    Ok, I sorted one thing out, ie, 2, the location of the ul when open – I commented out this code and it’s ok now, but I still can;t get the closed burger to be in the middle, please :)

    	.responsive #top #wrap_all .container {
    	    /* height: 20px !important;
    		background: green !important;  just to see what elemnt is targetted */		
    	}
    #1001602

    Hi webWahine,

    Adjust your code to be 50px and the burger will be in the center:

    
    @media only screen and (max-width: 989px) {
      .responsive #top .av-logo-container #avia-menu {
    	    margin: 0 auto !important;
    	    width: 50px !important;
    	  }
    }
    

    Best regards,
    Victoria

    #1001719

    That’s perfect! Thanks so much! How would I modify my code if I wanted the burger to be either flush left or right under the logo, please?

    #1001924

    Hi webWahine,

    What do you mean?

    You will probably need to remove the code for the burger positioning that you added and it should be on the right.

    Best regards,
    Victoria

    #1002071

    Ok, super, but what if I’d like to have it on the left, please?

    #1002220

    Hi webWahine,

    Will need to set left to 0 and right to auto in that case.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1002420

    Ok, super! One last question, please – if I change the mobile burger from small to default it moves over – what is the correct css to grab the default element, please? I have this for the small –

    	  #top #wrap_all #header .av-small-burger-icon a {
    	    height: auto !important;
    	    line-height: 3 !important;
    	  }	
    #1002633

    Hi webWahine,

    I think you can use this selector instead:

    #top #wrap_all #header .av-burger-menu-main a {
    
    }

    Hope this helps.

    Best regards,
    Nikko

    #1002835

    Thank you! I prefer the smaller one but just in case the client likes it to be more ovbious :)

    #1002995

    Hi,

    Thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1003244

    Fell free to close this now. Thanks again! :)

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.