Skip to content

Commit

Permalink
Responsive design!
Browse files Browse the repository at this point in the history
  • Loading branch information
LeahHirst committed Apr 8, 2018
1 parent f7eae62 commit 79508fd
Showing 1 changed file with 37 additions and 4 deletions.
41 changes: 37 additions & 4 deletions public/css/style.css
Expand Up @@ -73,14 +73,47 @@
padding-bottom: 10px;
text-align: center;
}

.gh-card-container {
display: grid;
grid-template-columns: 23% 23% 23% 23%;
grid-gap: 2%;
margin-left: 30px;
grid-template-columns: 100%;
grid-gap: 0%;
}

@media only screen and (max-width: 800px) {
.gh-card {
margin: 20px auto;
}
}

@media only screen and (min-width: 800px) {
.gh-card-container {
display: grid;
grid-template-columns: 45% 45%;
grid-gap: 5%;
margin-left: 5%;
}
}

@media only screen and (min-width: 1000px) {
.gh-card-container {
display: grid;
grid-template-columns: 30% 30% 30%;
grid-gap: 3%;
margin-left: 3%;
}
}

@media only screen and (min-width: 1200px) {
.gh-card-container {
display: grid;
grid-template-columns: 23% 23% 23% 23%;
grid-gap: 2%;
margin-left: 2%;
}
}



.gh-back {
position: fixed;
top: 30px;
Expand Down

0 comments on commit 79508fd

Please sign in to comment.