fix(toolbar): properly apply safe area and border (#20375)

fixes #20354
This commit is contained in:
Liam DeBeasi
2020-02-04 12:58:44 -05:00
committed by GitHub
parent a25007f54f
commit 4971499026
4 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@
// iOS Footer // iOS Footer
// -------------------------------------------------- // --------------------------------------------------
.footer-ios ion-toolbar:first-child { .footer-ios ion-toolbar:first-of-type {
--border-width: #{$hairlines-width} 0 0; --border-width: #{$hairlines-width} 0 0;
} }
@ -21,6 +21,6 @@
} }
} }
.footer-ios.ion-no-border ion-toolbar:first-child { .footer-ios.ion-no-border ion-toolbar:first-of-type {
--border-width: 0; --border-width: 0;
} }

View File

@ -14,6 +14,6 @@ ion-footer {
z-index: $z-index-toolbar; z-index: $z-index-toolbar;
} }
ion-footer ion-toolbar:last-child { ion-footer ion-toolbar:last-of-type {
padding-bottom: var(--ion-safe-area-bottom, 0); padding-bottom: var(--ion-safe-area-bottom, 0);
} }

View File

@ -4,7 +4,7 @@
// iOS Header // iOS Header
// -------------------------------------------------- // --------------------------------------------------
.header-ios ion-toolbar:last-child { .header-ios ion-toolbar:last-of-type {
--border-width: 0 0 #{$hairlines-width}; --border-width: 0 0 #{$hairlines-width};
} }
@ -21,7 +21,7 @@
} }
} }
.header-ios.ion-no-border ion-toolbar:last-child { .header-ios.ion-no-border ion-toolbar:last-of-type {
--border-width: 0; --border-width: 0;
} }
@ -36,7 +36,7 @@
top: 0; top: 0;
} }
.header-collapse-condense ion-toolbar:first-child { .header-collapse-condense ion-toolbar:first-of-type {
padding-top: 7px; padding-top: 7px;
z-index: 1; z-index: 1;

View File

@ -14,6 +14,6 @@ ion-header {
z-index: $z-index-toolbar; z-index: $z-index-toolbar;
} }
ion-header ion-toolbar:first-child { ion-header ion-toolbar:first-of-type {
padding-top: var(--ion-safe-area-top, 0); padding-top: var(--ion-safe-area-top, 0);
} }