-
Notifications
You must be signed in to change notification settings - Fork 0
/
lightbox.css
90 lines (89 loc) · 1.83 KB
/
lightbox.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
87
88
89
90
.lightbox {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 999;
background: rgba(0, 0, 0, 0.85);
opacity: 0;
}
.lightbox::before {
position: absolute;
top: 50%;
left: 50%;
z-index: 0;
padding: .5em 1em;
opacity: 0;
transform: translate(-50%, -50%);
background: black;
color: white;
content: "LOADING…";
}
.lightbox .lightbox-close a, .lightbox .lightbox-prev a, .lightbox .lightbox-next a {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
text-decoration: none;
font-size: 4em;
}
.lightbox .lightbox-prev a {
right: 80%;
}
.lightbox .lightbox-next a {
left: 80%;
}
.lightbox .lightbox-prev a div, .lightbox .lightbox-next a div {
position: relative;
top: 50%;
height: 15vh;
line-height: 15vh;
margin: 0 0.25em;
transform: translateY(-50%);
text-align: center;
color: white;
border: 0.0625em solid white;
opacity: 0.5;
}
.lightbox .lightbox-wrapper {
position: absolute;
top: 3%;
left: 20%;
right: 20%;
bottom: 9%;
z-index: 1;
opacity: 1.0;
transform: scale(0.8);
pointer-events: none;
}
.lightbox .lightbox-image {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: center / contain no-repeat;
}
.lightbox .lightbox-progress {
text-align: center;
opacity: 0.5;
position: relative;
top: 94%;
height: 0;
}
.lightbox .lightbox-progress a {
border: 0.0625em solid white;
margin: 0 -0.03125em;
}
.lightbox .lightbox-progress a.current {
background-color: white;
}
.lightbox:target {
opacity: 1;
visibility: visible;
}
.lightbox:target::before {
opacity: 1;
transition: opacity 0.75s cubic-bezier(0.05, 0.85, 0.15, 1.0) 0.25s;
}
.lightbox:target .lightbox-wrapper {
opacity: 1;
transform: scale(1);
transition: 0.75s cubic-bezier(0.05, 0.85, 0.15, 1.0);
}
.lightbox:target .lightbox-image-container {
display: block;
}