revert(scss): more explicit, repetitive, and reliable system for statusbar

Addresses #1012
This commit is contained in:
Andy Joslin
2014-04-01 14:20:04 -06:00
parent 4d1f03ae93
commit 833a017dd0
4 changed files with 27 additions and 8 deletions

View File

@@ -10,19 +10,37 @@
// Bump down everything to make room for it. However, if
// 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;
&.item-input-inset .item-input-wrapper {
margin-top: 19px !important;
}
> * {
margin-top: $ios7-statusbar-height;
margin-top: 20px;
}
}
.tabs-top > .tabs,
.tabs.tabs-top {
top: $bar-height + $ios7-statusbar-height;
}
.has-header,
.bar-subheader {
top: $bar-height + $ios7-statusbar-height;
}
.has-subheader {
top: (2 * $bar-height) + $ios7-statusbar-height;
}
.has-tabs-top {
top: $bar-height + $tabs-height + $ios7-statusbar-height;
}
.has-header.has-subheader.has-tabs-top {
top: 2 * $bar-height + $tabs-height + $ios7-statusbar-height;
}
}
&.status-bar-hide {
&.statusbar-hide {
// Cordova doesn't adjust the body height correctly, this makes up for it
margin-bottom: 20px;
}

View File

@@ -282,6 +282,7 @@ ion-infinite-scroll.active .scroll-infinite {
// Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
// Note: For these to work, content must come after both bars in the markup
/* If you change these, change platform.scss as well */
.has-header {
top: $bar-height;
}

View File

@@ -90,6 +90,7 @@
}
/* Allow parent element to have tabs-top */
/* If you change this, change platform.scss as well */
.tabs-top > .tabs,
.tabs.tabs-top {
top: $bar-height;

View File

@@ -9,7 +9,6 @@
position: absolute;
width: 100%;
height: 20px;
top: -20px;
background: blue;
color: white;
text-align: center;