Skip to content

Commit

Permalink
Style: container sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
hookor committed May 30, 2024
1 parent 71ef7b7 commit 14ee9e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/coffee/ScrollInducer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ const ScrollInducer = ({

const Container = styled.div`
height: 80px;
position: absolute;
position: sticky;
margin: 0 -20px;
left: 0;
right: 0;
bottom: 47px;
bottom: 0;
background-image: linear-gradient(#f5f5f530, #e9e9e9df);
opacity: 100;
transition: opacity 0.5s ease;
Expand All @@ -57,6 +58,7 @@ const Default = css`

const Text = styled.div`
width: 100%;
position: absolute;
margin-top: 40px;
font-size: var(--font-sizes-sm);
color: var(--colors-mid-grey);
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Page-Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const Container = styled.div`
max-width: 500px;
min-width: 360px;
width: 100vw;
height: 100vh;
height: calc(
100dvh - 50px - env(safe-area-inset-bottom) - env(safe-area-inset-top)
);
padding: 0 20px 20px;
margin-bottom: calc(env(safe-area-inset-bottom));
`;
Expand Down

0 comments on commit 14ee9e9

Please sign in to comment.