-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlightbox.css
76 lines (76 loc) · 1.22 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
.lightbox,
.lightbox .backdrop {
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.lightbox {
position: fixed;
z-index: 999;
display: none;
opacity: 0;
-webkit-transition: opacity .2s linear;
transition: opacity .2s linear;
}
.lightbox .backdrop,
.lightbox .content {
position: absolute;
}
.lightbox .backdrop {
z-index: 1;
background: #000;
opacity: 0.7;
cursor: pointer;
}
.lightbox .content {
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 1024px;
height: 580px;
z-index: 2;
margin: auto;
-webkit-box-shadow: 1px 1px 5px #000;
box-shadow: 1px 1px 5px #000;
}
.lightbox .body,
.lightbox iframe {
width: 100%;
height: 100%;
}
.lightbox iframe {
border: 0;
display: block;
}
.lightbox img {
max-width: 100%;
max-height: 100%;
}
.lightbox video {
max-width: 100%;
max-height: 100%;
}
.lightbox .close {
color: #FFF;
font-size: 18px;
position: absolute;
top: -15px;
right: -15px;
z-index: 3;
background: #000;
-webkit-border-radius: 50%;
border-radius: 50%;
padding: 1px 5px 2px 5px;
cursor: pointer;
border: 2px #FFF solid;
-webkit-box-shadow: 2px 2px 5px #000;
box-shadow: 2px 2px 5px #000;
}
.lightbox.show {
display: block;
}
.lightbox.open {
opacity: 1;
}