diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-20 16:15:18 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-20 16:15:18 -0400 |
| commit | 676270d21beed31d767a06c89522198c77d5d865 (patch) | |
| tree | 902772af01bfbcf80955f0351a5aae9eb029b9b0 /www/lib/ionic/scss/_platform.scss | |
Initial commit
Diffstat (limited to 'www/lib/ionic/scss/_platform.scss')
| -rw-r--r-- | www/lib/ionic/scss/_platform.scss | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/www/lib/ionic/scss/_platform.scss b/www/lib/ionic/scss/_platform.scss new file mode 100644 index 00000000..163994e8 --- /dev/null +++ b/www/lib/ionic/scss/_platform.scss @@ -0,0 +1,77 @@ + +/** + * Platform + * -------------------------------------------------- + * Platform specific tweaks + */ + +.platform-ios.platform-cordova { + // iOS has a status bar which sits on top of the header. + // Bump down everything to make room for it. However, if + // if its in Cordova, and set to fullscreen, then disregard the bump. + &:not(.fullscreen) { + .bar-header:not(.bar-subheader) { + height: $bar-height + $ios-statusbar-height; + + &.item-input-inset .item-input-wrapper { + margin-top: 19px !important; + } + + > * { + margin-top: $ios-statusbar-height; + } + } + .tabs-top > .tabs, + .tabs.tabs-top { + top: $bar-height + $ios-statusbar-height; + } + + .has-header, + .bar-subheader { + top: $bar-height + $ios-statusbar-height; + } + .has-subheader { + top: $bar-height + $bar-subheader-height + $ios-statusbar-height; + } + .has-header.has-tabs-top { + top: $bar-height + $tabs-height + $ios-statusbar-height; + } + .has-header.has-subheader.has-tabs-top { + top: $bar-height + $bar-subheader-height + $tabs-height + $ios-statusbar-height; + } + } + .popover{ + .bar-header:not(.bar-subheader) { + height: $bar-height; + &.item-input-inset .item-input-wrapper { + margin-top: -1px; + } + > * { + margin-top: 0; + } + } + .has-header, + .bar-subheader { + top: $bar-height; + } + .has-subheader { + top: $bar-height + $bar-subheader-height; + } + } + &.status-bar-hide { + // Cordova doesn't adjust the body height correctly, this makes up for it + margin-bottom: 20px; + } +} + +@media (orientation:landscape) { + .platform-ios.platform-browser.platform-ipad { + position: fixed; // required for iPad 7 Safari + } +} + +.platform-c:not(.enable-transitions) * { + // disable transitions on grade-c devices (Android 2) + -webkit-transition: none !important; + transition: none !important; +} |
