mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
refactor(all): whitelist padding-top / padding-bottom
This commit is contained in:
@ -16,7 +16,6 @@ ion-footer {
|
||||
|
||||
@supports (padding-top: env(safe-area-inset-top)) {
|
||||
ion-footer ion-toolbar:last-child {
|
||||
/* stylelint-disable-next-line property-blacklist */
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,13 +15,12 @@ ion-header {
|
||||
}
|
||||
|
||||
ion-header ion-toolbar:first-child {
|
||||
/* stylelint-disable-next-line property-blacklist */
|
||||
padding-top: var(--ion-statusbar-padding);
|
||||
}
|
||||
|
||||
@supports (padding-top: env(safe-area-inset-top)) {
|
||||
ion-header ion-toolbar:first-child {
|
||||
/* stylelint-disable-next-line property-blacklist, length-zero-no-unit */
|
||||
/* stylelint-disable-next-line length-zero-no-unit */
|
||||
padding-top: calc(env(safe-area-inset-top) + var(--ion-statusbar-padding, 0px));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user