From 03d5fcb6c8bb266c5c8ccea32e76cfe842378cf2 Mon Sep 17 00:00:00 2001 From: William Martin Date: Mon, 3 May 2021 16:29:58 -0400 Subject: [PATCH] chore(): revert #23181 Reverts #23181 --- core/src/css/core.scss | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/core/src/css/core.scss b/core/src/css/core.scss index a9dea1600e..16c0a57658 100644 --- a/core/src/css/core.scss +++ b/core/src/css/core.scss @@ -32,35 +32,11 @@ body.backdrop-no-scroll { // Modal - Card Style // -------------------------------------------------- -/** - * Card style modal needs additional padding on the - * top of the header. We accomplish this by targeting - * the first toolbar in the header. - * Footer also needs this. We do not adjust the bottom - * padding though because of the safe area. - */ -html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type, -html.ios ion-modal ion-footer ion-toolbar:first-of-type { - padding-top: 6px; -} - -/** -* Card style modal needs additional padding on the -* bottom of the header. We accomplish this by targeting -* the last toolbar in the header. -*/ -html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type { - padding-bottom: 6px; -} - -/** -* Add padding on the left and right -* of toolbars while accounting for -* safe area values when in landscape. -*/ -html.ios ion-modal ion-toolbar { - padding-right: calc(var(--ion-safe-area-right) + 8px); - padding-left: calc(var(--ion-safe-area-left) + 8px); +// The card style does not reach all the way to +// the top of the screen, so there does not need +// to be any safe area padding added +html.ios ion-modal.modal-card .ion-page > ion-header > ion-toolbar:first-of-type { + padding-top: 0px; } // .ion-page needs to explicitly inherit