Skip to content

Commit

Permalink
Switch to vertical layout for the logos on narrow screens
Browse files Browse the repository at this point in the history
  • Loading branch information
prophile committed Aug 4, 2024
1 parent 9054de4 commit 4feb06b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ header {

section#logos {
display: grid;
grid-template-columns: 1fr 1fr 1fr;

grid-auto-flow: column;
grid-auto-columns: 1fr;
grid-auto-rows: 1fr;

align-items: center;
column-gap: 1rem;
gap: 1rem;

img {
display: block;
Expand All @@ -57,6 +61,14 @@ section#logos {
height: 75px;
}
}

@media (width < 600px) {
grid-auto-flow: row;

img {
max-height: 8vh;
}
}
}

section {
Expand Down

0 comments on commit 4feb06b

Please sign in to comment.