Skip to content

Commit

Permalink
moved media queries to layout.css file
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-you committed Jun 29, 2023
1 parent 7f4d5b2 commit 7328cf2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
38 changes: 38 additions & 0 deletions css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,41 @@
margin-top: 3rem;
}
}

@media screen and (max-width: 768px) {
.list-wrap {
display: flex;
flex-direction: column;
height: 30rem;
}

.text-wrap {
width: 100%;
display: flex;
justify-content: center;
}

.img-wrap {
display: flex;
justify-content: center;
width: 100%;
margin-top: 1rem;
}

.modal-text-wrap {
margin-left: 0;
}

.add-btn-wrap {
display: flex;
justify-content: center;
}

.add {
margin-top: 0;
}

.top-row-wrap {
align-items: center;
}
}
38 changes: 0 additions & 38 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -292,41 +292,3 @@ li {
box-shadow: 0 5px 5px black;
transform: translateY(3px);
}

@media screen and (max-width: 768px) {
.list-wrap {
display: flex;
flex-direction: column;
height: 30rem;
}

.text-wrap {
width: 100%;
display: flex;
justify-content: center;
}

.img-wrap {
display: flex;
justify-content: center;
width: 100%;
margin-top: 1rem;
}

.modal-text-wrap {
margin-left: 0;
}

.add-btn-wrap {
display: flex;
justify-content: center;
}

.add {
margin-top: 0;
}

.top-row-wrap {
align-items: center;
}
}

0 comments on commit 7328cf2

Please sign in to comment.