-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
112 lines (106 loc) · 2.11 KB
/
style.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
@media only screen and (max-width:750px){
.wrapper{
flex-direction: column;
width: 300px;
height: 600px;
}
.container1{
border-top-right-radius: 20px;
}
.container2{
border-bottom-left-radius: 20px;
/* height: 350px; */
/* gap: 7px; */
}
}
@media only screen and (min-width: 760px){
.wrapper{
width: 600px;
height: 400px;
}
.container1{
border-bottom-left-radius: 20px;
}
.container2{
border-top-right-radius: 20px;
}
}
body{
background: hsl(30, 38%, 92%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.wrapper{
display: flex;
margin-top: 50px;
border-radius: 20px;
}
.box{
width: 100%;
height: 100%;
}
.container1{
background-image: url("./images/image-product-desktop.jpg");
background-repeat: no-repeat;
background-size: cover;
width: 100%;
height: 100%;
border-top-left-radius: 20px;
}
.container2{
width: 300px;
border-bottom-right-radius: 20px;
height: 100%;
background-color: #fff;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 20px;
}
.container2 .perfume{
letter-spacing: 4px;
font-family: 'Fraunces';
font-weight: 500;
font-size: 12px;
color: hsl(228, 12%, 48%);
}
h1{
font-family: 'Montserrat',sans-serif;
font-weight: 700;
/* font-size: 40px; */
}
.container2 .description, .old-price{
color: hsl(228, 12%, 48%);
font-size: 14px;
}
.price{
display: flex;
/* justify-content: center; */
align-items: center;
gap: 20px;
}
.price .new-price{
color: hsl(158, 36%, 37%);
font-family: 'Montserrat',sans-serif;
font-weight: 700;
font-size: 40px;
}
button{
background-color: hsl(158, 36%, 37%);
color: #fff;
padding: 12px;
background-color: hsl(158, 36%, 37%);
border: none;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
}