Skip to content

Commit c2a38a6

Browse files
committed
fix(scss): make tabs,header,footer aligned right with statusbar
Addresses #943 Before: we offset the has-header and other classes by 20px if a status bar existed. After: we simply offset the body by 20px if a status bar exists. This makes the other classes automatically offset themselves.
1 parent 58de267 commit c2a38a6

File tree

1 file changed

+6
-45
lines changed

1 file changed

+6
-45
lines changed

scss/_platform.scss

+6-45
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,15 @@
55
* Platform specific tweaks when in Cordova.
66
*/
77

8-
.platform-ios7.platform-cordova:not(.fullscreen) {
8+
.platform-ios7.platform-cordova {
99
// iOS7 has a status bar which sits on top of the header.
1010
// Bump down everything to make room for it. However, if
1111
// if its in Cordova, and set to fullscreen, then disregard the bump.
12-
13-
.bar-header {
14-
height: 64px;
15-
16-
&.item-input-inset .item-input-wrapper {
17-
margin-top: 19px !important;
18-
}
19-
20-
> * {
21-
margin-top: 20px;
22-
}
23-
}
24-
25-
.has-header,
26-
.bar-subheader {
27-
top: 64px;
12+
&:not(.fullscreen) {
13+
margin-top: 20px;
2814
}
29-
30-
.has-subheader {
31-
top: 108px;
32-
}
33-
}
34-
35-
.platform-ios7.status-bar-hide {
36-
// Cordova doesn't adjust the body height correctly, this makes up for it
37-
margin-bottom: 20px;
38-
}
39-
40-
.platform-android.platform-cordova {
41-
42-
.bar-header {
43-
height: 48px;
44-
}
45-
46-
.has-header,
47-
.bar-subheader {
48-
top: 48px;
49-
}
50-
51-
.has-subheader {
52-
top: 96px;
53-
}
54-
55-
.title {
56-
line-height: 48px;
15+
&.status-bar-hide {
16+
// Cordova doesn't adjust the body height correctly, this makes up for it
17+
margin-bottom: 20px;
5718
}
5819
}

0 commit comments

Comments
 (0)