Skip to content

Commit

Permalink
feat: adjust height and transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
eaingaran committed Jun 1, 2024
1 parent a6eb135 commit 784b419
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 48 deletions.
42 changes: 0 additions & 42 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,42 +0,0 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
}
14 changes: 8 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ const App = () => {
sx={{
bgcolor: "background.default",
display: "flex",
minHeight: "100vh",
maxHeight: "100vh",
width: "100vw",
minHeight: "100dvh",
maxHeight: "100dvh",
width: "100dvw",
flexDirection: "column",
transition: "all 0.3s ease-in-out",
}}
>
<Header />
Expand All @@ -22,15 +23,16 @@ const App = () => {
sx={{
bgcolor: "background.default",
display: "flex",
width: "100vw",
width: "100dvw",
position: "relative",
mt: "61px",
minHeight: "calc(100vh - 122px)",
maxHeight: "calc(100vh - 122px)",
minHeight: "calc(100dvh - 122px)",
maxHeight: "calc(100dvh - 122px)",
flexGrow: 1,
flexDirection: "column",
alignItems: "center",
overflow: "auto",
transition: "all 0.3s ease-in-out",
}}
>
<Routes />
Expand Down

0 comments on commit 784b419

Please sign in to comment.