mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(header): make it work with ios7 statusbar correctly
This commit is contained in:
@@ -11,6 +11,16 @@
|
||||
// if its in Cordova, and set to fullscreen, then disregard the bump.
|
||||
&:not(.fullscreen) {
|
||||
margin-top: 20px;
|
||||
/*
|
||||
* Make header bar go under the status bar
|
||||
*/
|
||||
.bar-header:not(.bar-subheader) {
|
||||
top: -$ios7-statusbar-height;
|
||||
height: $bar-height + $ios7-statusbar-height;
|
||||
> * {
|
||||
margin-top: $ios7-statusbar-height;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.status-bar-hide {
|
||||
// Cordova doesn't adjust the body height correctly, this makes up for it
|
||||
|
||||
@@ -671,3 +671,7 @@ $z-index-slider-pager: 1 !default;
|
||||
$z-index-tabs: 5 !default;
|
||||
$z-index-view: 1 !default;
|
||||
|
||||
// Platform
|
||||
// -------------------------------
|
||||
|
||||
$ios7-statusbar-height: 20px !default;
|
||||
|
||||
Reference in New Issue
Block a user