Skip to content

Commit b400832

Browse files
committed
fix 3D product card
1 parent 02daec9 commit b400832

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

Diff for: 58-3D product card/style.css

+34-8
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ body {
2525

2626
.card {
2727
min-height: 80vh;
28-
width: 35rem;
28+
width: 25rem;
2929
box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.2), 0px 0px 50px rgba(0, 0, 0, 0.2);
3030
border-radius: 30px;
31-
padding: 0rem 5rem;
31+
padding: 0rem 2rem;
3232
transform-style: preserve-3d;
3333
}
3434

@@ -41,31 +41,32 @@ body {
4141
}
4242

4343
.sneaker img {
44-
width: 20rem;
44+
width: 13rem;
4545
z-index: 2;
4646
transition: all 0.75s ease-out;
4747
}
4848

4949
.circle {
50-
width: 15rem;
51-
height: 15rem;
50+
width: 7rem;
51+
height: 7rem;
5252
background: linear-gradient(
5353
to right,
5454
rgba(245, 70, 66, 0.75),
5555
rgba(8, 83, 156, 0.75)
5656
);
5757
position: absolute;
58-
z-index: 1;
58+
z-index: -1;
5959
border-radius: 50%;
6060
}
6161

6262
.info h1 {
63-
font-size: 3rem;
63+
font-size: 1.7rem;
64+
padding-top: 1rem;
6465
transition: all 0.75s ease-out;
6566
}
6667

6768
.info h3 {
68-
font-size: 1.3rem;
69+
font-size: 1rem;
6970
padding: 2rem 0rem;
7071
color: #585858;
7172
font-weight: lighter;
@@ -111,3 +112,28 @@ button.active {
111112
font-weight: bolder;
112113
font-family: inherit;
113114
}
115+
116+
@media screen and (min-width: 740px) {
117+
.card {
118+
width: 35rem;
119+
padding: 0rem 5rem;
120+
}
121+
122+
.sneaker img {
123+
width: 20rem;
124+
}
125+
126+
.circle {
127+
width: 15rem;
128+
height: 15rem;
129+
}
130+
131+
.info h1 {
132+
font-size: 3rem;
133+
padding-top: 0;
134+
}
135+
136+
.info h3 {
137+
font-size: 1.3rem;
138+
}
139+
}

0 commit comments

Comments
 (0)