Skip to content

Commit 422c983

Browse files
committed
fix(cordova): only target navbar section when it has the statusbar-padding
1 parent f45ddf9 commit 422c983

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ionic/platform/cordova.ios.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
$cordova-ios-statusbar-padding: 20px !default;
77

88

9-
ion-navbar-section {
9+
ion-navbar-section.statusbar-padding {
1010
height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
1111
min-height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
1212
}
1313

14-
ion-navbar-section > .toolbar ion-segment,
15-
ion-navbar-section > .toolbar ion-title,
16-
ion-navbar-section > .toolbar {
14+
ion-navbar-section.statusbar-padding > .toolbar ion-segment,
15+
ion-navbar-section.statusbar-padding > .toolbar ion-title,
16+
ion-navbar-section.statusbar-padding > .toolbar {
1717
padding-top: $cordova-ios-statusbar-padding;
1818
height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
1919
min-height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});

ionic/platform/cordova.md.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
$cordova-ios-statusbar-padding: 20px !default;
77

88

9-
ion-navbar-section {
9+
ion-navbar-section.statusbar-padding {
1010
height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
1111
min-height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
1212
}
1313

14-
ion-navbar-section > .toolbar {
14+
ion-navbar-section.statusbar-padding > .toolbar {
1515
padding-top: $cordova-ios-statusbar-padding;
1616
height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
1717
min-height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});

ionic/platform/cordova.wp.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
$cordova-ios-statusbar-padding: 20px !default;
77

88

9-
ion-navbar-section {
9+
ion-navbar-section.statusbar-padding {
1010
height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
1111
min-height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
1212
}
1313

14-
ion-navbar-section > .toolbar {
14+
ion-navbar-section.statusbar-padding > .toolbar {
1515
padding-top: $cordova-ios-statusbar-padding;
1616
height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
1717
min-height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});

0 commit comments

Comments
 (0)