Home Forums Basel support forum Moving the menu from right to left on mobile

Moving the menu from right to left on mobile

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #17786

    AllawiT
    Participant

    Hi,
    Is it possible to move the = button from the right to the left on mobile devices?
    if so how can I do this?

    #17813

    Bogdan Donovan
    Keymaster

    Hi,

    Try to add the following code snippet to the ‘Custom CSS for tablet” area in Theme Settings to fix this issue.

    .wrapp-header {
      position: relative;
    }
    
    .right-column .mobile-nav-icon {
      position: absolute;
      left: 0;
      top: 50%;
      -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      transform: translateY(-50%);
      margin: 0;
    }
    	
    .main-header.header-shop div.site-logo {
      padding-left: 50px;
    }

    Regards

    #22125

    slotkristian
    Participant

    Hi,

    i am trying to use the snippet above. The position in the sticky header gets to much to the left, can you help to solve this?

    Thanks!

    #22126

    Artem Temos
    Keymaster

    Hi,

    Try to add the following CSS snippet also

    .sticky-header .right-column .mobile-nav-icon {
    	left:10px;
    }

    Regards

    #22127

    slotkristian
    Participant

    Also, centered logo would be nice 🙂

    #22136

    Bogdan Donovan
    Keymaster

    Try to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.

    @media (max-width: 991px) {
    
    header.main-header.header-logo-center div.site-logo {
    	position: absolute;
    	left:50%;
    	top: 0;
    	transform: translateX(-50%);
    	-webkit-transform: translateX(-50%);
    	padding-left: 15px !important;
    	padding-right: 15px !important;
    	text-align: center;
    	height: 70px;
    }
    }
    
    @media (max-width: 767px) {
    	
    header.main-header.header-logo-center	.basel-logo-wrap {
    		position: absolute;
    		left: 0;
    		top: 50%;
    		transform: translateY(-50%);
    		-webkit-transform: translateY(-50%);
    	}	
    }

    Regards

    #22148

    slotkristian
    Participant

    This worked awsome! Thank you guys!

    Just a minor detail, could logo be centered in sticky header aswell? 🙂

    #22163

    Bogdan Donovan
    Keymaster

    Please, replace previous code snippet with the code below.

    @media (max-width: 991px) {
    
    .website-wrapper div.site-logo {
    	position: absolute;
    	left:50%;
    	top: 50%;
    	transform: translateX(-50%) translateY(-50%);
    	-webkit-transform: translateX(-50%) translateY(-50%);
    	padding-left: 15px !important;
    	padding-right: 15px !important;
    	text-align: center !important;
    	height: 70px;
    }
    	
    .sticky-header .container,
    .sticky-header div.site-logo{
    	height: 60px;
    }
    	
    .sticky-header .right-column .mobile-nav-icon {
    	left: 15px;
    }
    }
    
    @media (max-width: 767px) {
    	
    .website-wrapper .basel-logo-wrap {
    	position: absolute;
    	left: 50%;
    	top: 50%;
    	transform: translateY(-50%) translateX(-50%);
    	-webkit-transform: translateY(-50%) translate3d(-50%);
    	width: 60%;
    	}	
    }

    Regards

    #22169

    slotkristian
    Participant

    Works perfectly! First class support 🙂

    Thanks.

    #22182

    Artem Temos
    Keymaster

    You are welcome!

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Moving the menu from right to left on mobile’ is closed to new replies.