mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(toolbar): properly apply safe area and border (#20375)
fixes #20354
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
// iOS Footer
|
||||
// --------------------------------------------------
|
||||
|
||||
.footer-ios ion-toolbar:first-child {
|
||||
.footer-ios ion-toolbar:first-of-type {
|
||||
--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;
|
||||
}
|
@ -14,6 +14,6 @@ ion-footer {
|
||||
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);
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
// iOS Header
|
||||
// --------------------------------------------------
|
||||
|
||||
.header-ios ion-toolbar:last-child {
|
||||
.header-ios ion-toolbar:last-of-type {
|
||||
--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;
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.header-collapse-condense ion-toolbar:first-child {
|
||||
.header-collapse-condense ion-toolbar:first-of-type {
|
||||
padding-top: 7px;
|
||||
|
||||
z-index: 1;
|
||||
|
@ -14,6 +14,6 @@ ion-header {
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user