Skip to content

Commit

Permalink
refactor(styles): use container queries
Browse files Browse the repository at this point in the history
  • Loading branch information
comfysage committed Dec 14, 2024
1 parent b909ed3 commit 66cf681
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions styles/layouts/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ body {

.main-page {
flex: 1;
container: main-page / inline-size;
}

a {
Expand Down
2 changes: 1 addition & 1 deletion styles/partials/blog-preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin-bottom: 2rem;
}

@media (max-width: 768px) {
@container main-page (width < 768px) {
.blog-previews {
grid-template-columns: 1fr;
}
Expand Down
2 changes: 1 addition & 1 deletion styles/partials/donations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin-bottom: 2rem;
}

@media (max-width: 768px) {
@container main-page (width < 768px) {
.donations {
grid-template-columns: 1fr 1fr;
}
Expand Down
2 changes: 1 addition & 1 deletion styles/partials/project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin-bottom: 2rem;
}

@media (max-width: 768px) {
@container main-page (width < 768px) {
.projects {
grid-template-columns: 1fr;
}
Expand Down

0 comments on commit 66cf681

Please sign in to comment.