-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtarget.css
66 lines (60 loc) · 1.07 KB
/
target.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
body {
margin: 0;
background-color: #EBF2FA;
}
/* closed lightbox */
.lightbox {
display: none;
}
/* opened lightbox*/
.lightbox:target {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
/* Lightbox content */
.lightbox figcaption {
width: 25rem;
position: relative;
padding: 1.5em;
background-color: black;
color: #fff;
border-radius: 8px;
}
/* close button */
.lightbox .close {
position: relative;
display: block;
}
.lightbox .close::after {
right: -1rem;
top: -1rem;
width: 2rem;
height: 2rem;
position: absolute;
display: flex;
z-index: 1;
align-items: center;
justify-content: center;
background-color: red;
border-radius: 50%;
color: #fff;
content: "X";
cursor: pointer;
}
/* Lightbox overlay */
.lightbox .close::before {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
background-color: #00000024;
content: "";
cursor: pointer;
}