Last active
August 29, 2015 14:06
-
-
Save trozdol/43cb2629932fc4cfb78c to your computer and use it in GitHub Desktop.
Sencha Touch + Cordova / PhoneGap Status Bar CSS Only Fix
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
| /*================================= | |
| THIS IS THE STATUSBAR FIX FOR IOS | |
| WHEN THE USER AGENT IS IOS, 2OPT | |
| BOX IS ADDED TO THE TOP OF THE APP. | |
| THIS SHOULD GO IN THE HEAD OF | |
| THE INDEX.HTML INSIDE SCRIPT TAGS | |
| BEFORE THE CLOSEING </HEAD> TAG | |
| ===================================*/ | |
| body.x-ios { | |
| margin-top: 20px !important; | |
| max-height: calc(100% - 20px) !important; | |
| } | |
| body.x-ios::before { | |
| content: " "; | |
| background: gray; | |
| height: 20px; | |
| position: absolute; | |
| width: 100% !important; | |
| top: 0px; | |
| box-shadow: 0 0 0 1px black; | |
| z-index: 1; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment