Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/components/Contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,18 @@ const links = [
text-align: center;
}
}

/* Phones: one button per row, all the same width. */
@media (max-width: 480px) {
.links {
flex-direction: column;
max-width: 320px;
margin-inline: auto;
}

.links a {
width: 100%;
justify-content: center;
}
}
</style>
36 changes: 36 additions & 0 deletions src/components/Figures.astro
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,40 @@ import { figures } from '../data/profile';
font-size: 34px;
}
}

/* Phones: one figure per row, the number beside its label. */
@media (max-width: 560px) {
.figures {
grid-template-columns: 1fr;
gap: 0;
padding-block: 24px;
}

.figure,
.figure:first-child,
.figure:nth-child(3) {
flex-direction: row-reverse;
justify-content: start;
align-items: center;
gap: 20px;
padding: 16px 0;
border-left: 0;
border-top: 1px solid var(--border);
}

.figure:first-child {
border-top: 0;
}

dd {
flex: none;
width: 88px;
font-size: 32px;
}

dt {
margin-top: 0;
max-width: none;
}
}
</style>
8 changes: 8 additions & 0 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,12 @@ import Download from './icons/Download.astro';
max-width: 320px;
}
}

/* Phones: the two buttons share the row, or stack at full width. */
@media (max-width: 480px) {
.actions .btn {
flex: 1 1 auto;
justify-content: center;
}
}
</style>
14 changes: 14 additions & 0 deletions src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,20 @@ const links = [
font-size: 13px;
}
}

/* The smallest phones: the name and the button must still fit side by side. */
@media (max-width: 380px) {
.logo {
font-size: 13px;
letter-spacing: 0;
}

.small {
padding: 7px 12px;
font-size: 12.5px;
}
}

@media (prefers-reduced-motion: reduce) {
.logo,
.small,
Expand Down
7 changes: 7 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,10 @@ h2 {
font-size: 32px;
}
}

/* Phones: a narrower gutter leaves the content room to breathe. */
@media (max-width: 480px) {
.wrap {
padding: 0 20px;
}
}
Loading