-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodal_s.css
More file actions
91 lines (79 loc) · 1.35 KB
/
modal_s.css
File metadata and controls
91 lines (79 loc) · 1.35 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
body {
margin: 0 0 0 0;
}
.container {
display: flex;
flex-direction: column;
}
.container header {
display: flex;
background: powderblue;
color: white;
align-items: center;
height: 85px;
}
.container button {
margin: 0 0 0 0;
padding: 0 0 0 0;
color: white;
font-size: 2.5rem;
width: 60px;
height: 80px;
border: 0;
background: powderblue;
}
.container button:hover {
cursor: pointer;
background-color: rgb(150, 210, 218);
}
.modal {
display: flex;
position: fixed;
top: 0;
left: -100%;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
}
.modal.open {
left: 0;
}
.modal-overay {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
opacity: 0;
transition: opacity 200ms;
}
.modal-overay.open {
opacity: 1;
transition: opacity 200ms;
}
.modal-content {
position: relative;
padding: 50px 100px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
background: white;
border-radius: 10px;
text-align: center;
opacity: 0;
}
.modal-content.open {
opacity: 1;
transition: opacity 200ms;
}
.modal-content button {
border: 0;
border-radius: 100%;
width: 45px;
height: 45px;
font-size: 1.3rem;
padding: 0 0;
background-color: tomato;
color: white;
}
.modal-content button:hover {
cursor: pointer;
}