-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodal.css
86 lines (78 loc) · 1.55 KB
/
modal.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
.modal-container {
height: 100vh;
width: 100%;
background: rgba(0, 0, 0, .5);
position: fixed;
top: 0;
left: 0;
z-index: 2000;
display: none;
justify-content: center;
align-items: center;
}
.modal-container.ativo {
display: flex;
}
.modal {
width: 80vw;
max-width: 600px;
background: #F2F2F2;
padding: 40px;
border: 10px solid #222;
box-shadow: 0 0 0 10px #F2F2F2;
position: relative;
box-sizing: border-box;
}
@keyframes modal {
from {
opacity: 0;
transform: translate3d(0, -30px, 0);
}
to {
opacity: 1;
transform: translate3d(0, 0, 0);
}
}
.ativo .modal {
animation: modal .3s forwards;
}
.fechar {
width: 50px;
height: 50px;
border: 4px solid white;
border-radius: 50%;
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .3);
top: -30px;
position: absolute;
background: black;
right: -30px;
font-size: 1.2rem;
color: white;
font-family: 'Poppins', sans-serif;
cursor: pointer;
}
.modal label {
display: block;
font-family: 'Poppins', sans-serif;
font-size: 1.2rem;
color: #63727e;
font-weight: bold;
margin: 1rem 0 .5rem 0;
}
.modal input {
width: 100%;
padding: .7rem .5rem;
box-sizing: border-box;
}
.modal button[type="submit"] {
display: block;
background-color: black;
border: none;
border-radius: 4px;
padding: .7rem 2rem;
font-size: 1rem;
color: white;
font-family: 'Poppins', sans-serif;
font-weight: bold;
margin-top: 1rem;
}