Skip to content

Commit

Permalink
Media Queries for 800px done
Browse files Browse the repository at this point in the history
  • Loading branch information
masaka222 committed Oct 2, 2018
1 parent ae66381 commit 75dcb7e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ body{

@media only screen and (max-width: 50em){
.container{
grid-template-rows: 6rem calc(100vh - 6rem) min-content min-content 40vw repeat(3, min-content);
grid-template-rows: 6rem calc(100vh - 6rem);
}
}
7 changes: 7 additions & 0 deletions src/StoryContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@
flex-direction: column;
justify-content: center;
align-items: flex-start;
}

@media only screen and (max-width: 50em){
.story__content{
grid-column: 1 / -1;
grid-row: 5 / 6;
}
}
17 changes: 16 additions & 1 deletion src/StoryPictures.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
align-items: center;

background-image: linear-gradient(rgba(198,153,99, .5), rgba(198,153,99, .5)), url('./img/back.jpg');

background-size: cover;
}

.story__img--1{
Expand All @@ -24,4 +24,19 @@
grid-column: 4 / 7 ;
grid-row: 4 / 6;
z-index: 10;
}

@media only screen and (max-width: 50em){
.story__pictures{
grid-column: 1 / -1;
padding: 6rem;
}
.story__img--1{
grid-column: 1 / 5 ;
grid-row: 1 / -1;
}
.story__img--2{
width: 100%;
grid-row: 1 / -1;
}
}

0 comments on commit 75dcb7e

Please sign in to comment.