fix: extend recipe hero images into status bar safe area
All checks were successful
CI / update (push) Successful in 3m30s
All checks were successful
CI / update (push) Successful in 3m30s
Account for env(safe-area-inset-top) in the hero negative margin-top so images fill the status bar area on edge-to-edge Android instead of leaving empty space.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homepage",
|
||||
"version": "1.21.1",
|
||||
"version": "1.21.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
.section {
|
||||
margin-bottom: -20vh;
|
||||
margin-top: calc(-3.5rem - 12px);
|
||||
margin-top: calc(-3.5rem - 12px - env(safe-area-inset-top, 0px));
|
||||
transform-origin: center top;
|
||||
transform: scaleY(calc(1 - var(--scale)));
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
margin-bottom: calc(var(--parallax-scale) * (20vh - min(60vh, 520px)));
|
||||
transform-origin: center top;
|
||||
transform: scaleY(calc(1 - var(--parallax-scale)));
|
||||
margin-top: calc(-3.5rem - 12px);
|
||||
margin-top: calc(-3.5rem - 12px - env(safe-area-inset-top, 0px));
|
||||
}
|
||||
@media (prefers-reduced-motion) {
|
||||
.hero-section {
|
||||
|
||||
Reference in New Issue
Block a user