Created
January 8, 2013 19:20
-
-
Save timwis/4487023 to your computer and use it in GitHub Desktop.
Ratchet/junior leverages `-webkit-overflow-scrolling` but seems to have a bug on Safari Mobile when you drag the header and then try to scroll the body. This CSS reverts to standard scrolling with a fixed-position header.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Fix scrolling */ | |
body, .content, #app-container { position: static; } /* #app-container is for junior */ | |
.content { -webkit-overflow-scrolling: auto; } | |
header + .content { padding-top: 44px; } | |
header + .content-padded { padding-top: 55px; } | |
.bar-title .title + [class*="button"]:last-child { top: 5px; } /* From ratchet.css, overridden by junior.css */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works like magic !!!!