mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(toolbar): fixed the toolbar spacing for iOS with platform-cordova
Added some tests for modals with a toolbar, only target the first toolbar in a menu or modal so the user can have multiple toolbars without skewing them. References #469
This commit is contained in:
@@ -9,14 +9,20 @@ $cordova-ios-toolbar-padding: 2rem !default;
|
||||
|
||||
ion-navbar-section,
|
||||
ion-navbar,
|
||||
ion-menu > ion-toolbar {
|
||||
ion-menu > ion-toolbar:first-child,
|
||||
ion-menu > ion-toolbar:first-child ion-title,
|
||||
ion-page.modal > ion-toolbar:first-child,
|
||||
ion-page.modal > ion-toolbar:first-child ion-title, {
|
||||
min-height: $toolbar-ios-height + $cordova-ios-toolbar-padding;
|
||||
height: $toolbar-ios-height + $cordova-ios-toolbar-padding;
|
||||
}
|
||||
|
||||
ion-navbar,
|
||||
ion-navbar ion-title,
|
||||
ion-menu > ion-toolbar {
|
||||
ion-menu > ion-toolbar:first-child,
|
||||
ion-menu > ion-toolbar:first-child ion-title,
|
||||
ion-page.modal > ion-toolbar:first-child,
|
||||
ion-page.modal > ion-toolbar:first-child ion-title, {
|
||||
padding-top: $cordova-ios-toolbar-padding;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user