Skip to content

Commit 02ffdd8

Browse files
responsiveness done beast-details
1 parent cb7f30d commit 02ffdd8

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

components/ui/ProductBeastView/InfoMobile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const InfoMobileWrapper = styled.div`
2121
display: none;
2222
width: 32%;
2323
// padding: 0 10rem;
24-
@media (max-width: 420px) {
24+
@media (max-width: 1024px) {
2525
display: flex;
2626
flex-direction: column;
2727
align-items: center;
@@ -31,7 +31,7 @@ const InfoMobileWrapper = styled.div`
3131

3232
const BeastDetailsMobile = styled.div`
3333
display: none;
34-
@media (max-width: 420px) {
34+
@media (max-width: 1024px) {
3535
display: block;
3636
}
3737
`

components/ui/ProductBeastView/ProductBeastView.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Panel = styled.div`
5151
5252
outline: none;
5353
transition: 0.4s;
54-
@media (max-width: 420px) {
54+
@media (max-width: 1024px) {
5555
border: 1px solid #5c5e6c;
5656
border-radius: 1.2rem;
5757
}
@@ -65,7 +65,7 @@ const AccordionTitle = styled.div`
6565
margin-bottom: 20px;
6666
/* border-bottom: 1px solid rgba(220, 220, 220, 0.25); */
6767
line-height: 1;
68-
@media (max-width: 420px) {
68+
@media (max-width: 1024px) {
6969
margin-bottom: 0.5rem;
7070
justify-content: space-between;
7171
margin-right: 10px;
@@ -77,7 +77,7 @@ const AccordionContent = styled.div`
7777
border: 1px solid #5c5e6c;
7878
border-radius: 1rem;
7979
width: 100%;
80-
@media (max-width: 420px) {
80+
@media (max-width: 1024px) {
8181
border: 0;
8282
padding: 0.5rem;
8383
}
@@ -116,7 +116,7 @@ const ImgDiv = styled.div`
116116
117117
overflow: hidden;
118118
margin: 0 auto 50px;
119-
@media (max-width: 420px) {
119+
@media (max-width: 1024px) {
120120
margin-bottom: 20px;
121121
}
122122
`
@@ -136,7 +136,7 @@ export const OwnerImg = styled.img`
136136
border-radius: 8px;
137137
height: max-content;
138138
object-fit: contain;
139-
@media (max-width: 420px) {
139+
@media (max-width: 1024px) {
140140
max-width: 3rem;
141141
}
142142
`
@@ -153,7 +153,7 @@ const Trait = styled.p`
153153
line-height: 0;
154154
text-transform: uppercase;
155155
margin: 1rem 0;
156-
@media (max-width: 420px) {
156+
@media (max-width: 1024px) {
157157
font-size: 1.2rem;
158158
margin: 0.5rem 0;
159159
}
@@ -176,7 +176,7 @@ export const H3 = styled.h3`
176176
width: 100%;
177177
font-size: 2rem;
178178
color: white;
179-
@media (max-width: 420px) {
179+
@media (max-width: 1024px) {
180180
font-size: 1.2rem;
181181
}
182182
`
@@ -239,7 +239,7 @@ const AttributeBlock = styled.div`
239239
color: white;
240240
}
241241
242-
@media (max-width: 420px) {
242+
@media (max-width: 1024px) {
243243
padding: 5px 15px 5px 15px;
244244
gap: 0px;
245245
}
@@ -250,7 +250,7 @@ const Info = styled.div`
250250
align-items: center;
251251
width: 32%;
252252
// padding: 0 10rem;
253-
@media (max-width: 420px) {
253+
@media (max-width: 1024px) {
254254
display: none;
255255
}
256256
`
@@ -286,15 +286,15 @@ const OfferDetails = styled.div`
286286
align-items: center;
287287
border-bottom: 2px solid #2e3340;
288288
padding-bottom: 20px;
289-
@media (max-width: 420px) {
289+
@media (max-width: 1024px) {
290290
flex-direction: row;
291291
}
292292
`
293293

294294
const Offeror = styled.div`
295295
display: flex;
296296
align-items: center;
297-
@media (max-width: 420px) {
297+
@media (max-width: 1024px) {
298298
flex-direction: row;
299299
}
300300
`
@@ -318,7 +318,7 @@ export const Clickable = styled.span`
318318
&:active {
319319
transform: scale(0.95);
320320
}
321-
@media (max-width: 420px) {
321+
@media (max-width: 1024px) {
322322
font-size: 1.2rem;
323323
}
324324
`
@@ -328,48 +328,48 @@ const BeastDescription = styled.section`
328328
display: flex;
329329
justify-content: space-between;
330330
color: white;
331-
@media (max-width: 420px) {
331+
@media (max-width: 1024px) {
332332
flex-direction: column;
333333
padding-left: 0;
334334
padding-right: 0;
335335
}
336336
`
337337

338338
const BeastDescriptionWrapper = styled.div`
339-
@media (max-width: 420px) {
339+
@media (max-width: 1024px) {
340340
width: 100%;
341341
}
342342
`
343343

344344
const BeastDetails = styled.div`
345345
display: block;
346-
@media (max-width: 420px) {
346+
@media (max-width: 1024px) {
347347
display: none;
348348
}
349349
`
350350

351351
const BeastDetailsMobile = styled.div`
352352
display: none;
353-
@media (max-width: 420px) {
353+
@media (max-width: 1024px) {
354354
display: block;
355355
}
356356
`
357357

358358
const OfferorId = styled.span`
359-
@media (max-width: 420px) {
359+
@media (max-width: 1024px) {
360360
display: none;
361361
}
362362
`
363363
const OfferorIdMobile = styled.span`
364364
display: none;
365-
@media (max-width: 420px) {
365+
@media (max-width: 1024px) {
366366
display: block;
367367
font-size: 1.2rem;
368368
}
369369
`
370370

371371
const OfferorPrice = styled.span`
372-
@media (max-width: 420px) {
372+
@media (max-width: 1024px) {
373373
font-size: 1rem;
374374
}
375375
`

0 commit comments

Comments
 (0)