Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1313425

    Hello, Kriesi Team,
    the resolution of phone screens has increased significantly over the past few years. Today I have added some rules to the site for responsive layout. I’ve noticed that a pretty large percentage of visitors, mostly students, use phones in landscape.
    The problem only arises at higher resolutions, e.g. my Samsung Note 8 with 850px in landscape is already seen as a tablet, but if the device is less than 550px in portrait then it’s not appropriate to display the standard large menu. I suppose it’s not just a CSS thing, but also a JavaScript thing. Is any way, how to switch to hamburger menu in version 4.8.1 ?
    For those who are interested, here is the CSS code to disable the Sticky menu. However, the usability of the dropdown menu is still lousy.

    @media only screen and (max-height: 550px) {
    .html_header_top.html_header_sticky #header {
    		position: relative;
    	}
    	.responsive #main {
        padding-top: 0px !important;
    }
    }
    #1313428

    One more related hack: let’s display small blogpost images in landscape mode.

    @media only screen and (max-height: 400px) {
    
    	.responsive #top .fullsize .template-blog .big-preview img {height: 100px; width: auto;}
    	
    }
    • This reply was modified 3 years, 4 months ago by norbou.
    #1313785

    Hi norbou,

    Thanks for sharing your code. I’m not sure if you have problem which you need help with though?

    Best regards,
    Rikard

    #1313934

    What I don’t know is how to change conditions for switching to responsive mobile hamburger menu. Current rules are not checking device height. Is it possible to modify individually? But this is general improvement, it can be implemented generally.

    #1314789

    Hi,

    Thank you for pointing at this.

    I added it to our dev repo – but at the moment I cannot provide a quick solution and no ETA for a possible implementation. There are too many things to take care of and this needs testing.

    Did you check https://stackoverflow.com/questions/19837035/media-queries-check-min-height-and-min-width ?

    Maybe this helps you to find a solution for your install.

    Best regards,
    Günter

    #1320123

    Hi,

    For the next release I added a new theme option:

    “Main Menu -> Menu Handling for Mobile Devices In Landscape Mode”

    This allows for mobile devices to keep burger menu also in landscape mode if portrait mode screen width has a burger menu.

    If you would like to have a beta release to test let us know please.

    Best regards,
    Günter

    #1321180

    Thank you Günter, that’s perfect!

    #1321378

    Hi norbou,

    Thanks for the update. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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