Skip to content

Commit 647e07e

Browse files
committed
adjust mobile styling
1 parent 9c0b4fc commit 647e07e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/layouts/Layout.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ const { pageTitle= "UmYeah's Dev" } = Astro.props
4747
width: 720px;
4848
max-width: calc(100% - 2em);
4949
margin: auto;
50-
padding: 3em 1em;
50+
padding: 3em 1em 1em;
5151
text-align: center;
5252
}
53+
54+
@media (max-width: 720px) {
55+
main {
56+
padding: 1em 0;
57+
}
58+
}
5359
</style>

src/styles/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ UmYeahDev Stuff
225225
--gray-gradient: rgba(var(--gray-light), 50%), #fff;
226226
--box-shadow: 0 2px 6px rgba(var(--gray), 25%),
227227
0 8px 24px rgba(var(--gray), 33%), 0 16px 32px rgba(var(--gray), 33%);
228+
--mobile-breakpoint: 720px;
228229
}
229230
@font-face {
230231
font-family: "Atkinson Hyperlegible";

0 commit comments

Comments
 (0)