mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
revert(scss): more explicit, repetitive, and reliable system for statusbar
Addresses #1012
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
top: -20px;
|
||||
background: blue;
|
||||
color: white;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user