Skip to content

Commit

Permalink
Media querys for gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDario committed Sep 4, 2021
1 parent 1e7414e commit 0a46a0f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions css/gallery-media-query.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@media screen and (min-width: 400px) {
.section-two .section-two__gallery{
height: 35vh;
}
}

@media screen and (min-width: 550px) {
.section-two .section-two__gallery{
height: 40vh;
}
}

@media screen and (min-width: 700px) {
.section-two .section-two__gallery{
height: 50vh;
}
}
@media screen and (min-width: 800px) {
.section-two .section-two__gallery{
height: 60vh;
}
}
@media screen and (min-width: 900px) {
.section-two .section-two__gallery{
height: 65vh;
}
}
@media screen and (min-width: 1000px) {
.section-two .section-two__gallery{
height: 70vh;
}
}
@media screen and (min-width: 1200px) {
.section-two{
display: flex;
flex-direction: column;
align-items: center;
}
.section-two .section-two__gallery{
height: 80vh;
width: 1200px;
box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}
}
1 change: 1 addition & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import url("./section-three.css");
@import url("./section-four.css");
@import url("./footer.css");
@import url("./gallery-media-query.css");

:root {
--font-title: 'Open Sans', sans-serif;
Expand Down

0 comments on commit 0a46a0f

Please sign in to comment.