Search code examples
mobile-safariyui-pure-css

Site zooms out when menu is opened


I'm using Yahoo's PureCSS library along with a plugin for the sidebar and it works great on all browsers except mobile Safari. For some reason, it zooms out whenever the menu is opened. This even occurs in the documentation's example. I have no idea what could be causing this but it's tempting to just call it a browser bug.

I can put together a JSFiddle if necessary.


Solution

  • This question actually boiled down to being the same as Does overflow:hidden applied to work on iPhone Safari?. I guess Mobile Safari will zoom out to make room for the menu and the content area when the user opens the menu, unless you do this on a wrapper element:

    html,
    body {
        overflow-x: hidden;
    }