-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct_preview.css
118 lines (118 loc) · 2.46 KB
/
product_preview.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
body{
background-color: hsl(30, 38%, 92%);
margin: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.whole_page{
border-radius: 15px;
display: flex;
flex-direction: row;
width: 600px;
height: 400px;
}
.product_image{
display: flex;
height: 400px;
width: 300px;
}
.product_image img{
border-radius: 10px 0 0 10px;
object-fit: cover;
height: 400px;
width: 300px;
}
.description{
border-radius: 0 10px 10px 0;
background-color: #fff;
display: flex;
flex-direction: column;
height: 350px;
width: 250px;
padding: 25px;
}
.description h4{
margin: 0;
font-family: monospace;
text-transform: uppercase;
letter-spacing: 10px;
color: grey;
font-weight: 500;
}
.description h2{
margin: 20px 0;
font-size: 30px;
letter-spacing: 0.01px;
line-height: 35px;
font-family: "fraunces";
}
.description p{
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 14px;
}
.description .price{
height: 70px;
display: flex;
flex-direction: row;
}
.description .price h3{
margin: 20px 0;
width: 50%;
font-size: 25px;
font-family: "fraunces";
}
.description .price h5{
font-size: 15px;
margin: 18px 0;
width: 50%;
font-family: "fraunces";
vertical-align: baseline;
line-height: 45px;
}
button{
border: 0;
border-radius: 10px;
height: 45px;
background-color: hsl(158, 72%, 17%);
color: white;
font-weight: 700;
letter-spacing: 1px;
}
button svg{
margin: 0 10px;
}
@media (max-width: 620px){
.whole_page{
border-radius: 15px;
display: flex;
flex-direction: column;
width: 300px;
height: auto;
}
.product_image{
display: flex;
height: 200px;
width: 300px;
}
.product_image img{
border-radius: 10px 10px;
object-fit: cover;
height: 400px;
width: 300px;
}
.description{
border-radius: 0 0 10px 10px;
height: auto;
width: 250px;
padding: 25px;
}
.description h2{
margin: 10px 0;
font-size: 25px;
}
.description .price{
height: 70px;
}