-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
60 lines (57 loc) · 1.37 KB
/
style.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
@import url(https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #f1f1f1;
}
.content {
padding: 0 5rem;
}
.popup {
position: fixed;
top: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, .3);
display: grid;
place-content: center;
opacity: 0;
pointer-events: none;
transition: 200ms ease-in-out opacity;
}
.popup-content {
width: clamp(300px, 90vw, 500px);
background-color: #fff;
padding: clamp(1.5rem, 100vw, 3rem);
box-shadow: 0 0 .5em rgba(0, 0, 0, .5);
border-radius: .5em;
opacity: 0;
transform: translateY(20%);
transition: 200ms ease-in-out opacity,
200ms ease-in-out transform;
position: relative;
}
.popup h1 {
position: absolute;
top: 2rem;
right: 2rem;
line-height: 1;
cursor: pointer;
user-select: none;
}
.popup h1:active {
transform: scale(.9);
}
.showPopup {
opacity: 1;
transform: translateY(0);
pointer-events: all;
}