forked from chetnagrover00/JavaScript-Mini-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
58 lines (50 loc) · 1.05 KB
/
style.css
File metadata and controls
58 lines (50 loc) · 1.05 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");
* {
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
font-family: "Poppins", sans-serif;
margin: 0;
min-height: 100vh;
}
button {
background-color: steelblue;
color: white;
padding: 1rem;
border-radius: 4px;
border: none;
font-family: inherit;
}
.popup-container {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.5);
display: none;
align-items: center;
justify-content: center;
}
.popup-container.active {
display: flex;
}
.popup {
background-color: #fff;
border-radius: 5px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
padding: 2rem;
position: relative;
width: 500px;
}
.popup button {
background-color: #fff;
color: steelblue;
font-size: 2rem;
position: absolute;
top: 10px;
right: 10px;
}