-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
553 lines (460 loc) · 12 KB
/
style.css
File metadata and controls
553 lines (460 loc) · 12 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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
:root{
--ff-sans: "Ubuntu", sans-serif;
--fw-400: 400;
--fw-500: 500;
--fw-700: 700;
--fs-small: 0.75rem;
--fs-regular: 1rem;
--fs-large: 1.5rem;
--clr-primary-500: hsl(213, 96%, 18%);
--clr-primary-300: hsl(243, 100%, 62%);
--clr-primary-200: hsl(228, 100%, 84%);
--clr-primary-100: hsl(206, 94%, 87%);
--clr-primary-400: hsl(354, 84%, 57%);
--clr-neutral-500: hsl(231, 11%, 63%);
--clr-neutral-400: hsl(229, 24%, 87%);
--clr-neutral-300: hsl(217, 100%, 97%);
--clr-neutral-200: hsl(231, 100%, 99%);
--clr-neutral-100: hsl(0, 0%, 100%);
}
/*
1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
box-sizing: border-box;
}
/*
2. Remove default margin
*/
* {
margin: 0;
}
/*
Typographic tweaks!
3. Add accessible line-height*/
html,
body{
height:100%
}
/*4. Improve text rendering
*/
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
5. Improve media defaults
*/
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
/*
6. Remove built-in form typography styles
*/
input, button, textarea, select {
font: inherit;
}
/*
7. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
font-size: var(--fs-regular);
overflow-wrap: break-word;
}
body{
font-family: var(--ff-sans);
font-size: var(--fs-regular);
background-color: var(--clr-primary-100);
display: flex;
justify-content: center;
align-items: center;
& h1{
font-size: var(--fs-large);
color: var(--clr-primary-500);
}
& h3{
color: var(--clr-primary-500);
}
& .description{
color: var(--clr-neutral-400);
font-weight: var(--fw-500);
}
}
.background-wrapper{
width: 100%;
max-width: 900px;
background-color: var(--clr-neutral-100);
border-radius: 1rem;
}
@media(max-width: 650px){
.background-wrapper{
max-width: 375px;
border-radius: 0;
}
}
.main-wrapper{
display: flex;
padding: 1rem;
gap: 4.75rem;
}
@media(max-width: 650px){
.main-wrapper{
flex-direction: column;
gap: 0;
padding: 0;
}
}
.flex-group{
display: flex;
align-items: center;
}
/* Desktop Sidebar */
.sidebar {
width: 100%;
max-width: 274px;
height: 568px;
padding: 2.5rem;
color: var(--clr-neutral-400);
text-transform: uppercase;
font-weight: var(--fw-500);
border-radius: 1rem;
/* Inline SVG as background */
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='274' height='568' fill='none' viewBox='0 0 274 568'><rect width='274' height='568' fill='%23483EFF' rx='10'/><mask id='a' width='274' height='568' x='0' y='0' maskUnits='userSpaceOnUse' style='mask-type:alpha'><rect width='274' height='568' fill='%23fff' rx='10'/></mask><g mask='url(%23a)'><path fill='%236259FF' fill-rule='evenodd' d='M-34.692 543.101C3.247 632.538 168.767 685.017 211.96 612.52c43.194-72.497-66.099-85.653-104.735-160.569-38.635-74.916-68.657-121.674-124.482-104.607-55.824 17.068-55.375 106.32-17.436 195.757Z' clip-rule='evenodd'/><path fill='%23F9818E' fill-rule='evenodd' d='M233.095 601.153c60.679-28.278 92.839-143.526 41.875-171.528-50.965-28.003-57.397 47.579-108.059 75.987-50.662 28.408-82.14 50.207-69.044 88.241 13.096 38.034 74.549 35.578 135.228 7.3Z' clip-rule='evenodd'/><path stroke='%23fff' stroke-linecap='round' stroke-linejoin='bevel' stroke-width='5' d='m165.305 469.097 10.607-10.806M209.461 474.581l-12.506-10.503M187.56 488.991l-6.908 14.798'/><path fill='%23FFAF7E' d='M.305 546.891c37.003 0 67-29.997 67-67s-29.997-67-67-67-67 29.997-67 67 29.997 67 67 67Z'/></g></svg>");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
/* Mobile Sidebar */
@media (max-width: 650px) {
.sidebar {
width: 100%;
max-width: 375px;
height: auto;
border-radius: 0;
display: flex;
justify-content: center;
gap: 1rem;
/* Mobile inline SVG background */
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='375' height='172' viewBox='0 0 375 172'><defs><path id='a' d='M0 0h375v172H0z'/></defs><g fill='none' fill-rule='evenodd'><mask id='b' fill='%23fff'><use xlink:href='%23a'/></mask><use xlink:href='%23a' fill='%23483EFF'/><g mask='url(%23b)'><g transform='translate(-151.029 -133.957)'><path fill='%236259FF' d='M79.546 349.634c54.547 128.646 292.524 204.132 354.626 99.852 62.102-104.28-95.035-123.204-150.583-230.963-55.547-107.759-98.711-175.015-178.973-150.466C24.354 92.607 25 220.987 79.546 349.634Z'/><ellipse cx='129.864' cy='258.711' fill='%23FFAF7E' rx='96.329' ry='96.373'/><path fill='%23F9818E' d='M464.88 433.146c87.31-40.69 133.585-206.525 60.253-246.82-73.333-40.293-82.587 68.465-155.485 109.343-72.898 40.877-118.192 72.245-99.348 126.973 18.845 54.728 107.27 51.194 194.58 10.504Z'/><g stroke='%23FFF' stroke-linecap='round' stroke-linejoin='bevel' stroke-width='5'><path d='m367.336 243.125 15.263-15.549M430.872 251.016l-17.995-15.112M399.36 271.751l-9.94 21.293'/></g></g></g></g></svg>");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
}
.sidebar-gap{
gap: 1rem;
margin-bottom: 1.25rem;
}
.number-list{
display: flex;
justify-content: center;
align-items: center;
width: 35px;
height: 35px;
border: 1px solid var(--clr-neutral-400);
border-radius: 1.5rem ;
&.active{
background-color: var(--clr-primary-200);
color: var(--clr-primary-500);
border: 0;
}
}
.step-list span{
font-size: var(--fs-small);
color: var(--clr-neutral-500);
}
@media(max-width: 650px){
.step-list{
display: none;
}
}
.content-wrapper{
display: flex;
flex-direction: column;
justify-content: space-around;
}
section{
display: grid;
gap: 1rem;
}
@media(max-width: 650px){
section{
padding: 1rem;
box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
background-color: var(--clr-neutral-100);
z-index: 20;
margin-top:-40px;
}
}
.button-group{
display: flex;
justify-content: space-between;
& .prev-nav{
padding: 0.5rem 1rem;
border-radius: 0.5rem;
border: 0;
}
& .disabled{
opacity: 0;
pointer-events: none;
}
& .next-nav{
padding: 0.5rem 1rem;
border-radius: 0.5rem;
border: 0;
background-color: var(--clr-primary-500);
color: var(--clr-neutral-100);
&:hover{
cursor: pointer;
}
}
}
@media(max-width: 650px){
.button-group{
padding: 1rem;
}
}
#personal-info{
display: grid;
gap: 2.5rem;
& .flex-group{
justify-content: space-between;
}
& h3{
font-size: var(--fs-small);
}
& .error-message{
display: none;
color: var(--clr-primary-400);
font-size: var(--fs-small);
font-weight: var(--fw-700);
}
& input{
width: 100%;
height: 90%;
border-radius: 0.5rem;
border: 1px solid var(--clr-neutral-400);
padding-left: 1rem;
&:hover{
border: 1px solid var(--clr-primary-300);
cursor: pointer;
}
&.warning{
border: 1px solid var(--clr-primary-400);
}
}
}
#select-plan{
display: grid;
gap: 2.5rem;
}
.plan-options-wrapper{
display: flex;
gap: 1rem;
justify-content: space-between;
}
@media(max-width: 650px){
.plan-options-wrapper{
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
}
/*make the circle in front of the radio button disappear*/
.plan-options input[type="radio"]{
opacity: 0;
position: fixed;
width: 0;
}
.plan-descriptions{
display: flex;
flex-direction: column;
gap: 2rem;
width: 140px;
height: 170px;
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid var(--clr-neutral-400);
& h3{
font-size: var(--fs-regular);
}
& span, p{
font-size: var(--fs-small);
color: var(--clr-neutral-500);
}
&:hover{
cursor: pointer;
border: 1px solid var(--clr-neutral-500);
}
}
@media(max-width: 650px){
.plan-descriptions{
flex-direction: row;
width: 340px;
height: 100px;
}
}
.plan-options input[type="radio"]:checked + .plan-descriptions {
border: 1px solid var(--clr-primary-300);
}
.annual-fee-promotion{
display: none;
}
/*create a toggle switch*/
/*start by hiding the checkbox element*/
#toggle{
display: none;
}
/*style the toggle appearance*/
.toggle-appearance{
display: inline-block;
/*the display property is set to inline-block to make the switch come in line with text in span tag*/
width: 40px;
height: 20px;
background-color: var(--clr-primary-500);
border-radius: 10px;
position: relative;
cursor: pointer;
margin-inline: 2rem;
/*create the inner part of the switch*/
&::before{
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background-color: var(--clr-neutral-100);
border-radius: 50%;
transition: transform 0.3s;
}
}
/*when the switch is checked, the background color of the label will change*/
#toggle:checked + .toggle-appearance{
background-color: var(--clr-primary-300);
/*add an animation to the toggle effect, making the inner part of the switch move when it is checked*/
&::before{
transform: translateX(20px);
}
}
.toggle-appearance-wrapper{
display: flex;
justify-content: center;
align-items: center;
border: 0;
border-radius: 0.5rem;
background-color: var(--clr-neutral-200);
padding: 0.5rem;
}
#add-ons{
display: grid;
gap: 1rem;
}
.checkbox-button{
display: flex;
align-items: center;
border: 1px solid var(--clr-neutral-400);
border-radius: 0.5rem;
padding: 1rem 2rem;
&:hover{
cursor: pointer;
border: 1px solid var(--clr-primary-300);
}
}
.service-description{
padding-left: 2rem;
}
.online-service{
padding-left: 5rem;
}
.larger-storage{
padding-left: 7.2rem;
}
.customizable-profile{
padding-left: 4.2rem;
}
.price-list{
color: var(--clr-primary-300);
}
.summary-wrapper{
display: grid;
gap: 1rem;
& .flex-group{
justify-content: space-between;
}
}
.summary__selection-result{
background-color: var(--clr-neutral-300);
padding: 1.5rem;
border-radius: 0.5rem;
display: grid;
gap: 2rem;
}
.summary__membership-selection{
border-bottom: 1px solid var(--clr-neutral-400);
padding-bottom: 2rem;
}
.summary__service-selection{
display: grid;
gap: 1rem;
}
.total-result{
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
}
.summary__price-details{
margin-left: 12rem;
}
.total__price-details{
font-size: var(--fs-regular);
font-weight: var(--fw-500);
}
.membership-price__highlighted{
font-size: var(--fs-regular);
color: var(--clr-primary-500);
font-weight: var(--fw-700);
}
.total-price__hightlighted{
font-size: var(--fs-large);
color: var(--clr-primary-300);
font-weight: var(--fw-700);
}
.change-selection,
.add-ons__result p,
.summary__total-result p{
font-size: var(--fs-regular);
color: var(--clr-neutral-500);
}
#thank-you-page{
text-align: center;
padding-right: 4rem;
gap: 1rem;
& p{
color: var(--clr-neutral-500);
}
}
.img{
display: block;
margin: auto;
}
#select-plan,
#add-ons,
#summary,
#thank-you-page{
display: none;
}
/*.content-details{
display: none;
&.show{
display: block;
}
}
.page-nav {
&.disabled{
opacity: 0.2;
pointer-events: none;
}
}*/