Skip to content

Commit

Permalink
Use a vertical layout for logos on narrow screens (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
prophile authored Aug 4, 2024
1 parent 88018ab commit 2823075
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 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;
align-items: center;
column-gap: 1rem;

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

place-items: center;
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 2823075

Please sign in to comment.