-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
225 lines (193 loc) · 4.12 KB
/
main.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/* Principal font import URL */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&display=swap');
/* Secondary font used */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');
/* General styles in body */
body{
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Main container */
.container{
background-color: hsl(30, 38%, 92%);
width: 800px;
height: 400px;
margin: 70px auto;
display: flex;
justify-content: center;
align-items: center;
}
/* Info product and image container */
.card__component{
background-color: hsl(0, 0%, 100%);
width: 400px;
height: 300px;
display: flex;
}
/* Image container */
.img__container{
margin: auto;
}
/* image styles by itself */
.img__container img{
width: 200px;
height: 300px;
background-size: cover;
}
/* Info product container */
.product__info{
padding: 15px 20px 10px 20px;
}
/* Product Mark - Perfume word styles */
.product__mark{
font-size: .6em;
display: block;
text-align: start;
color: hsl(228, 12%, 48%);
text-transform: uppercase;
font-family: 'Montserrat', sans-serif;
letter-spacing: 5px;
margin-bottom: 15px;
}
/* Product Mark - Product title styles */
.product__title{
font-weight: bold;
font-size: 1.2em;
justify-content: space-between;
font-weight: bolder;
margin-top: 5px;
font-family: 'Fraunces', serif;
margin-bottom: 20px;
word-spacing: 7px;
}
/* Product Mark - Product description styles */
.product__description{
font-size: .6em;
color: hsl(228, 12%, 48%);
font-family: 'Montserrat', sans-serif;
word-spacing: 3px;
padding-right: 1px;
margin-bottom: 20px;
}
/* Prices container */
.prices{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
/* Discount price */
.discount__price{
color: hsl(158, 36%, 37%);
font-weight: bold;
font-size: 1.2em;
font-family: 'Fraunces', serif;
}
/* Real price without discount */
.normal__price{
color: hsl(228, 12%, 48%);
font-size: .6em;
font-family: 'Montserrat', sans-serif;
padding-right: 32px;
}
/* Button container */
.button__container{
margin: 0 auto;
margin-top: 10px;
width: 100%;
height: 30px;
}
/* Button styles */
.add__button{
background-color: hsl(158, 36%, 37%);
color: #fff;
border-radius: 3px;
border: none;
font-size: .7em;
width: 100%;
height: 30px;
cursor: pointer;
margin-top: 10px;
font-family: 'Montserrat', sans-serif;
}
/* SVG styles */
.add__button img{
padding-right: 5px;
height: .8em;
width: .8em;
}
/* Button :hover styles */
button:hover{
background-color: hsl(212, 21%, 14%);
}
/* Movile design 300px to 600px */
@media screen and (min-width:300px) and (max-width:600px){
body{
background-color: hsl(30, 38%, 92%);
}
.container{
display: flex;
width: 500px;
height: 800px;
margin: 0;
padding: 0;
}
.card__component{
display: flex;
flex-direction: column;
height: 95%;
border-radius: 10px;
}
.img__container{
margin: 0;
width: 100%;
height: 380px;
}
.img__container img{
width: 100%;
height: 380px;
background-size: cover;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.product__info{
margin: 0;
padding: 20px;
}
.product__mark{
font-size: .9em;
margin-top: 0;
}
.product__title{
font-size: 2em;
font-weight: bold;
}
.product__description{
font-size: 1em;
}
.prices{
display: flex;
}
.discount__price{
font-size: 2em;
font-weight: bolder;
}
.normal__price{
font-size: 1em;
padding-right: 150px;
}
.add__button{
margin: 0;
height: 50px;
font-size: 1.1em;
}
/* Footer */
.attribution{
display: none;
}
}
/* Footer */
.attribution{
text-align: center;
}