fix(navBar): workaround nav-bar flashing during page transitions

This commit is contained in:
Jason Dreyzehner 2016-11-17 13:16:20 -05:00
parent 3b9838ff82
commit 044a60e8ee
1 changed files with 17 additions and 0 deletions

View File

@ -37,3 +37,20 @@ $placeholder-icon-padding: 10px;
.card { .card {
margin: ($content-padding * 2) 14px; margin: ($content-padding * 2) 14px;
} }
// A somewhat dirty solution to the nav-bar "flashing" during page transitions.
// Since the old nav-bar is hidden before the new one is shown, this pseudo
// element fills the space with the proper background color.
ion-view.pane:before {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
height: $bar-height;
background-color: $royal;
}
.platform-ios ion-view.pane:before {
height: $bar-height + $ios-statusbar-height;
}