Skip to content

Commit

Permalink
Responsive patron grid
Browse files Browse the repository at this point in the history
  • Loading branch information
martgnz committed Apr 26, 2021
1 parent c021159 commit 99629fa
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions _sass/_front.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ a:active {
margin-bottom: 30px;
}
.patrons {
margin-bottom: 40px;
display: grid;
grid-template-columns: 1fr;
grid-row-gap: 2rem;
}
.patronLogo {
padding-left: 15px;
padding-right: 15px;
max-width: 20%;
max-height: 7em;
max-height: 9rem;
}
.closingText {
font-size: 22px;
Expand All @@ -71,6 +70,16 @@ a:active {
background: rgb(255, 255, 165);
}


@media screen and (min-width: $screen-md-min) {
.patrons {
margin: 0 auto;
margin-bottom: 4rem;
grid-template-columns: repeat(4, 1fr);
max-width: 800px;
}
}

@media screen and (min-width: $screen-lg-min) {
.container {
width: 970px;
Expand All @@ -84,4 +93,4 @@ a:active {
.logoImg {
margin-bottom: 0;
}
}
}

0 comments on commit 99629fa

Please sign in to comment.