Skip to content

Commit

Permalink
🐛 이미지 배율 깨지는 문제 해결 - #3
Browse files Browse the repository at this point in the history
  • Loading branch information
rieulp committed Oct 21, 2022
1 parent 250fb24 commit 6435e69
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ body {
}

.ProductDetailPage .logo {
padding-left: 1rem;
text-decoration: none;
color: #333;
font-size: 52px;
Expand All @@ -102,7 +103,8 @@ body {
}

.ProductDetail img {
/* width: 700px; */
max-width: 80%;
margin: 0 auto;
flex: 1;
}

Expand Down Expand Up @@ -133,10 +135,7 @@ body {
border: 1px solid #ccc;

display: block;
/* overflow: hidden; */
/* text-overflow: ellipsis; */
line-height: 36px;
/* white-space: normal; */
position: relative;
height: 34px;
padding: 0 35px 0 15px;
Expand Down Expand Up @@ -216,7 +215,6 @@ body {

.ProductDetail__totalPrice {
margin-bottom: 16px;
/* font-size: 1.5rem; */
text-align: right;
}

Expand Down Expand Up @@ -283,3 +281,13 @@ body {
grid-template-columns: repeat(auto-fill, 300px);
}
}

@media screen and (max-width: 815px) {
.ProductDetail {
flex-direction: column;
}

.ProductDetail .ProductDetail__info {
padding: 10px;
}
}

0 comments on commit 6435e69

Please sign in to comment.