-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
118 lines (108 loc) · 2.25 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
113
114
115
116
117
118
body{
font-size: 14px;
}
.maindiv{
background-color:hsl(30, 38%, 92%);
width: 100vw;
height: 100vh;
position: relative;
}
.insidediv{
width: 40%;
height: 70%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: flex;
border-radius: 2%;
}
.section1{
width: 50%;
border-top-left-radius: 2%;
border-bottom-left-radius: 2%;
}
.section2{
width: 50%;
border-top-right-radius: 2%;
border-bottom-right-radius: 2%;
background-color: hsl(0, 0%, 100%);
}
.product-image{
width: 100%;
height: 100%;
border-top-left-radius: 2%;
border-bottom-left-radius: 2%;
}
p{
padding-top: 5%;
padding-left: 10%;
font-family: 'Montserrat', sans-serif;
}
h1{
font-family: 'Fraunces', serif;
padding-left: 10%;
margin-right: 5%;
margin-top: 1%;
margin-bottom: 1%;
margin-left: 1%;
}
.description{
padding-right: 2%;
padding-left: 10%;
margin-right: auto;
margin-top: 1%;
margin-bottom: 1%;
margin-left: auto;
font-family: 'Montserrat', sans-serif;
line-height: 1.5;
}
button{
background-color: hsl(158, 36%, 37%);
margin: 5%;
color: hsl(0, 0%, 100%);
border-radius: 6px;
border: none;
width: 80%;
padding: 1rem 2rem;
text-align: center;
margin-left: 7%;
margin-top: 5%;
margin-bottom: 5%;
margin-right: 5%;
cursor: pointer;
font-family: 'Montserrat', sans-serif;
}
.button{
display: inline-block;
color: hsl(158, 36%, 37%);
margin: 5%;
}
span{
font-size: 0.8rem;
text-decoration: line-through;
margin:5%;
}
@media (max-width: 1022px) {
.insidediv{
flex-direction: column;
width:90%;
height: 80%;
}
.section1{
height: 50%;
width: 90%;
border-top-left-radius: 4%;
border-top-right-radius: 4%;
}
.section2{
width: 90%;
border-bottom-left-radius: 4%;
border-bottom-right-radius: 4%;
}
.section1 img {
object-fit: cover;
border-top-left-radius: 4%;
border-top-right-radius: 4%;
}
}