Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1417717

    I’ve created a new site based on the Hotel template. The link is for the test or dev site, which is what I’m experimenting on.

    Because of the ‘normal’ main menu length, I need to increase the width at which the burger menu and responsive mode kicks in. I’ve done this on other Enfold sites but my code from those sites is not working on this new site, I guess because Hotel’s header is different.

    If you look at the site you can see that I’m nearly there… but I just can’t figure out the right CSS needed to get the transition at 1150px to seamlessly match up with the template’s 990px switch point, i.e. for 1150px to 990px to look exactly like 990px and below. The Header Custom Height is 250px.

    I think I need to include this to shrink the header

    .responsive.html_mobile_menu_tablet #top #wrap_all .av-logo-container {
        height: 90px;
        line-height: 90px;}

    but then I can’t get the burger menu and search icon to move up into the header, nor increase the size of the icon to match 990px.

    Can you help please? Here’s the code, based on previous efforts:

    @media only screen and (max-width: 1150px) and (min-width: 990px) {
    .html_header_top.html_bottom_nav_header #header_main_alternate {
        display: none;}
    .responsive #top #wrap_all .av_mobile_menu_tablet .main_menu {
        top: 0;
        left: auto;
        right: 0;
        display: block;}
    #menu-item-search { display: block!important; }
    .responsive.html_mobile_menu_tablet .av-burger-menu-main {
    	display: block!important; }}
    #1417789

    Hey zimbo,

    Thank you for the inquiry.

    You can add this css code to adjust the breakpoint of the header and make sure that it displays the same on relatively smaller screens as it does on tablet view.

    
    /* Tablet Portrait size to standard 960 (devices and browsers) */
    @media only screen and (min-width: 768px) and (max-width: 1150px)
    {
    	.responsive .main_menu ul:first-child > li > a {
    		padding: 0 10px;
    	}
    
    	.responsive #top .header_bg {
    		opacity: 1;
    	}
    
    	.responsive #main .container_wrap:first-child{
    		border-top:none;
    	}
    
    	.responsive .logo{
    		float:left;
    	}
    
    	.responsive .logo img{
    		margin:0;
    	}
    
    	.responsive.html_top_nav_header.html_mobile_menu_tablet #top .social_bookmarks {
    		right: 50px;
    	}
    
    	.responsive.html_top_nav_header.html_mobile_menu_tablet #top #wrap_all #main{
    		padding-top:0;
    	}
    
    	.responsive.js_active .avia_combo_widget .top_tab .tab{
    		font-size: 10px;
    	}
    
    	.responsive.js_active .avia_combo_widget .news-thumb{
    		display:none;
    	}
    
    	.responsive #top #wrap_all .grid-sort-container .av_one_sixth{
    		width:33.3%;
    		margin-bottom: 0;
    	}
    
    	.responsive body.boxed#top,
    	.responsive.html_boxed.html_header_sticky #top #header,
    	.responsive.html_boxed.html_header_transparency #top #header{
    		max-width: 100%;
    	}
    
    	.responsive.html_header_top.html_header_sticky.html_bottom_nav_header.html_mobile_menu_tablet #main{
    		padding-top: 88px;
    	}
    
    	.responsive.html_header_top.html_header_sticky.html_bottom_nav_header.html_top_nav_header.html_mobile_menu_tablet #main{
    		margin-top:0;
    	}
    
    	.responsive #top .av-hide-on-tablet{
    		display:none !important;
    	}
    
    	/*new menu*/
    	.responsive.html_mobile_menu_tablet .av-burger-menu-main{
    		display: block;
    	}
    
    	.responsive #top #wrap_all .av_mobile_menu_tablet .main_menu{
    		top:0;
    		left:auto;
    		right:0;
    		display:block;
    	}
    
    	.responsive.html_logo_right #top #wrap_all .av_mobile_menu_tablet .main_menu{
    		top:0;
    		left:0;
    		right:auto;
    	}
    
    	.responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item{
    		display:none;
    	}
    
    	.responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special{
    		display:block;
    	}
    
    	.responsive #top #wrap_all .av_mobile_menu_tablet .menu-item-search-dropdown > a {
    		font-size: 24px;
    	}
    
    	.responsive #top .av_mobile_menu_tablet #header_main_alternate{
    		display:none;
    	}
    
    	.responsive.html_mobile_menu_tablet #top #wrap_all #header {
    		position: relative;
    		width:100%;
    		float:none;
    		height:auto;
    		margin:0 !important;
    		opacity: 1;
    		min-height:0;
    	}
    
    	.responsive.html_mobile_menu_tablet #top #header #header_meta .social_bookmarks{
    		display:none;
    	}
    
    	.responsive.html_mobile_menu_tablet #top .av-logo-container .social_bookmarks{
    		display:none
    	}
    
    	.responsive.html_mobile_menu_tablet #top .av-logo-container .main_menu .social_bookmarks{
    		display:block;
    		position: relative;
    		margin-top: -15px;
    		right:0;
    	}
    
    	.responsive.html_logo_center.html_bottom_nav_header .av_mobile_menu_tablet .avia-menu.av_menu_icon_beside{
    		height:100%;
    	}
    
    	.responsive.html_mobile_menu_tablet #top #wrap_all .menu-item-search-dropdown > a {
    		font-size: 24px;
    	}
    
    	.responsive.html_mobile_menu_tablet #top #main .av-logo-container .main_menu{
    		display:block;
    	}
    
    	.responsive.html_mobile_menu_tablet.html_header_top.html_header_sticky #top #wrap_all #main{
    		padding-top: 88px;
    	}
    
    	.responsive.html_mobile_menu_tablet.html_header_top #top #main {
    		padding-top: 0 !important;
    		margin: 0;
    	}
    
    	.responsive.html_mobile_menu_tablet.html_top_nav_header.html_header_sticky #top #wrap_all #main{
    		padding-top:0;
    	}
    
    	.responsive.html_mobile_menu_tablet #top #header_main > .container .main_menu  .av-main-nav > li > a,
    	.responsive.html_mobile_menu_tablet #top #wrap_all .av-logo-container {
    		height:90px;
    		line-height:90px;
    	}
    
    	.responsive.html_mobile_menu_tablet #top #header_main > .container .main_menu  .av-main-nav > li > a{
    		min-width: 0;
    		padding:0 0 0 20px;
    		margin:0;
    		border-style: none;
    		border-width: 0;
    	}
    
    	.responsive.html_mobile_menu_tablet #top .av_seperator_big_border .avia-menu.av_menu_icon_beside{
    		border-right-style: solid;
    		border-right-width: 1px;
    		padding-right: 25px;
    	}
    
    	.responsive.html_mobile_menu_tablet #top #header .av-main-nav > li > a, .responsive #top #header .av-main-nav > li > a:hover{
    		background:transparent;
    		color: inherit;
    	}
    
    	.responsive.html_mobile_menu_tablet.html_top_nav_header .av-logo-container .inner-container{
    		overflow: visible;
    	}
    
    }

    Best regards,
    Ismael

    #1417847

    WOW, thank you. I’d have never figured all that out… :-)

    #1417862

    Hi,

    Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

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