Skip to content

Commit e6dda6a

Browse files
committed
fix(modal): remove iOS style header padding from inset headers in modal popups on iPad in portrait mode. Closes #1605
1 parent 4a2296d commit e6dda6a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

scss/_modal.scss

+27
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,33 @@
4646
.modal.ng-leave-active {
4747
bottom: 0;
4848
}
49+
50+
// remove ios header padding from inset header
51+
.platform-ios.platform-cordova .modal-wrapper .modal{
52+
.bar-header:not(.bar-subheader) {
53+
height: $bar-height;
54+
> * {
55+
margin-top: 0;
56+
}
57+
}
58+
.tabs-top > .tabs,
59+
.tabs.tabs-top {
60+
top: $bar-height;
61+
}
62+
.has-header,
63+
.bar-subheader {
64+
top: $bar-height;
65+
}
66+
.has-subheader {
67+
top: (2 * $bar-height);
68+
}
69+
.has-tabs-top {
70+
top: $bar-height + $tabs-height;
71+
}
72+
.has-header.has-subheader.has-tabs-top {
73+
top: 2 * $bar-height + $tabs-height;
74+
}
75+
}
4976
}
5077

5178
.modal-open {

0 commit comments

Comments
 (0)