-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
340 lines (306 loc) · 5.55 KB
/
style.css
File metadata and controls
340 lines (306 loc) · 5.55 KB
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
* {
font-family: Work Sans;
margin: 0;
padding: 0;
box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
padding: 0px;
margin: 0px;
}
.row {
display: flex;
flex-direction: row;
position: relative;
}
.column {
display: flex;
flex-direction: column;
position: relative;
}
.grow {
flex-grow: 1;
}
.shrink {
flex-shrink: 0;
}
.accentText {
color: #FD0272;
}
.layout {
width: 100%;
display: flex;
align-items: center;
align-self: center;
margin-left: auto;
margin-right: auto;
flex-direction: column;
padding: 28px;
max-width: 480px;
/* SM */
@media (min-width: 640px) {
padding: 28px 64px;
max-width: 640px;
}
/* MD */
@media (min-width: 780px) {
flex-direction: row;
padding: 0;
max-width: 680px;
}
/* LG */
@media (min-width: 1024px) {
max-width: 880px;
}
/* XL */
@media (min-width: 1280px) {
max-width: 960px;
}
}
.card {
position: relative;
background: white;
border: 2px solid #ecedf2;
padding: 47px 30px 50px 30px;
border-radius: 24px;
width: 100%;
/* MD */
@media (min-width: 780px) {
max-width: 360px;
}
/* LG */
@media (min-width: 1024px) {
max-width: 408px;
}
}
/* --Input Label-- */
.input-label {
font: normal normal 600 13px/28px Work Sans;
letter-spacing: 0px;
line-height: 16px;
color: #1E1F22;
}
/* --Input Field-- */
.input-field {
padding: 14px 17px 14px 17px;
border: 2px solid #ECEDF2;
border-radius: 12px;
}
::placeholder {
/* Firefox */
color: #8E8E90;
opacity: 1;
}
:-ms-input-placeholder {
/* Internet Explorer 10-11 */
color: #8E8E90;
}
::-ms-input-placeholder {
/* Microsoft Edge */
color: #8E8E90;
}
/* --Input Checkbox-- */
input[type="checkbox"] {
appearance: none;
width: 16px;
height: 16px;
border: 2px solid #ECEDF2;
border-radius: 5px;
background: white;
display: inline-block;
vertical-align: middle;
position: relative;
transition: 200ms background ease-in-out;
}
input[type="checkbox"]:checked {
background: #FD0272;
}
input[type="checkbox"]:before {
position: absolute;
content: "\2714";
font-size: 10px;
top: -1px;
left: 2px;
line-height: 15px;
color: white;
transform: scale(0);
transition: 200ms transform ease-in-out;
}
input[type="checkbox"]:checked::before {
transform: scale(1);
}
/* --Modal-- */
.modal {
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: auto;
bottom: 100vh;
transition: bottom 0ms ease-in-out 300ms;
/* MD */
@media (min-width: 780px) {
top: -100vh;
bottom: auto;
transition: top 0ms ease-in-out 300ms;
}
}
.modal .modal-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
opacity: 0;
transition: all 300ms ease-in-out;
}
.modal .modal-content {
position: absolute;
background: white;
padding: 32px 36px 36px 36px;
border-radius: 12px;
opacity: 0;
transition: all 300ms ease-in-out;
top: auto;
left: 25px;
bottom: 25px;
width: calc(100% - 50px);
transform: translate(0%, 50%) scale(1);
/* MD */
@media (min-width: 780px) {
top: 50%;
left: 50%;
bottom: auto;
width: 95%;
max-width: 380px;
transform: translate(-50%, -50%) scale(1.15);
}
}
.modal .modal-content h4 {
text-align: center;
font: normal normal 600 24px/30px Work Sans;
letter-spacing: 0px;
color: #1E1F22;
opacity: 1;
}
.modal .modal-content p {
text-align: center;
font: normal normal normal 16px/24px Work Sans;
letter-spacing: 0px;
color: #828691;
opacity: 1;
}
.modal .modal-content button {
position: absolute;
cursor: pointer;
border-radius: 50%;
background: #ECEDF2;
content: "\2573";
color: #1E1F22;
border: none;
top: 9px;
right: 9px;
height: 36px;
width: 36px;
font-size: 24px;
font-weight: 500;
/* MD */
@media (min-width: 780px) {
top: 6px;
right: 6px;
height: 24px;
width: 24px;
font-size: 16px;
font-weight: 700;
}
}
.modal .modal-content button:hover {
opacity: 0.75;
}
.modal.active {
top: auto;
bottom: 0px;
transition: bottom 0ms ease-in-out 0ms;
/* MD */
@media (min-width: 780px) {
top: 0px;
bottom: auto;
transition: top 0ms ease-in-out 0ms;
}
}
.modal.active .modal-overlay {
opacity: 1;
}
.modal.active .modal-content {
opacity: 1;
transform: translate(0%, 0%) scale(1);
/* MD */
@media (min-width: 780px) {
transform: translate(-50%, -50%) scale(1);
}
}
/* --Copy-- */
.copy-header {
text-align: left;
color: #1E1F22;
font: normal normal bold 48px/56px Work Sans;
/* MD */
@media (min-width: 780px) {
font: normal normal bold 56px/64px Work Sans;
}
/* LG */
@media (min-width: 1024px) {
font: normal normal bold 64px/74px Work Sans;
}
}
.copy-body {
text-align: left;
font: normal normal normal 20px/32px Work Sans;
letter-spacing: 0px;
color: #828691;
opacity: 1;
display: none;
/* SM */
@media (min-width: 640px) {
display: block;
}
}
/* --Form-- */
.form-header {
text-align: left;
font: normal normal 600 24px/30px Work Sans;
letter-spacing: 0px;
color: #1E1F22;
}
.submit-button {
width: 100%;
font: normal normal 600 16px/28px Work Sans;
letter-spacing: 0px;
color: white;
text-transform: capitalize;
background: #FD0272;
border-radius: 12px;
padding: 18px 20px 17px 20px;
border-width: 0px;
cursor: pointer;
}
.submit-button:hover {
opacity: 0.75;
}
/* --Limited Offer Badge-- */
.offer-badge {
position: absolute;
top: -14px;
left: -11px;
background: #ffdd4d;
padding: 15px 23px 15px 23px;
font-weight: 600;
font-size: 14px;
}