Skip to content

Commit

Permalink
fix(cordova): only target navbar section when it has the statusbar-pa…
Browse files Browse the repository at this point in the history
…dding
  • Loading branch information
brandyscarney committed Apr 15, 2016
1 parent f45ddf9 commit 422c983
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ionic/platform/cordova.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
$cordova-ios-statusbar-padding: 20px !default;


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

ion-navbar-section > .toolbar ion-segment,
ion-navbar-section > .toolbar ion-title,
ion-navbar-section > .toolbar {
ion-navbar-section.statusbar-padding > .toolbar ion-segment,
ion-navbar-section.statusbar-padding > .toolbar ion-title,
ion-navbar-section.statusbar-padding > .toolbar {
padding-top: $cordova-ios-statusbar-padding;
height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
min-height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
Expand Down
4 changes: 2 additions & 2 deletions ionic/platform/cordova.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
$cordova-ios-statusbar-padding: 20px !default;


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

ion-navbar-section > .toolbar {
ion-navbar-section.statusbar-padding > .toolbar {
padding-top: $cordova-ios-statusbar-padding;
height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
min-height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
Expand Down
4 changes: 2 additions & 2 deletions ionic/platform/cordova.wp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
$cordova-ios-statusbar-padding: 20px !default;


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

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

0 comments on commit 422c983

Please sign in to comment.