Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: spaces on mobile #184

Merged
merged 1 commit into from
Feb 17, 2024
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
6 changes: 3 additions & 3 deletions src/components/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function Features(): JSX.Element {
))}
</div>
</div>
<div className="container" style={{ marginTop: "20rem" }}>
<div className="container py-12 md:pt-24 lg:pt-36">
<div className="row">
<div className="col col--6 flex justify-center align-center">
<div>
Expand All @@ -96,7 +96,7 @@ export default function Features(): JSX.Element {
</div>
</div>
</div>
<div className="container" style={{ marginTop: "20rem" }}>
<div className="container py-12 md:pt-24 lg:pt-36">
<div className="row">
<div className="col col--6 flex justify-center align-center">
<div>
Expand All @@ -122,7 +122,7 @@ export default function Features(): JSX.Element {
</div>
</div>
</div>
<div className="container" style={{ marginTop: "20rem", marginBottom: "20rem" }}>
<div className="container pt-12 pb-24 md:pt-24 lg:pt-48">
<div className="row">
<div className="col col--6 flex justify-center align-center">
<div>
Expand Down
51 changes: 51 additions & 0 deletions static/css/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,54 @@
.align-center {
align-items: center;
}

.pt-12 {
padding-top: 3rem;
}

.pt-16 {
padding-top: 4rem;
}

.pb-16 {
padding-bottom: 4rem;
}

.pb-24 {
padding-bottom: 6rem;
}

.py-12 {
padding-top: 3rem;
padding-bottom: 3rem;
}

.py-16 {
padding-top: 4rem;
padding-bottom: 4rem;
}

@media (min-width: 960px) {
.lg\:pt-36 {
padding-top: 9rem;
}

.lg\:pt-48 {
padding-top: 12rem;
}
}

@media (min-width: 640px) {
.md\:pt-16 {
padding-top: 4rem;
}

.md\:pt-24 {
padding-top: 6rem;
}

.md\:pt-48 {
padding-top: 12rem;
}
}

Loading