forked from jbutz/bootstrap-lightbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap-lightbox.less
91 lines (77 loc) · 1.68 KB
/
bootstrap-lightbox.less
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
.lightbox-open {
overflow: hidden;
}
body.lightbox-open,
.lightbox-open .navbar-fixed-top,
.lightbox-open .navbar-fixed-bottom {
margin-right: 15px;
}
/* Fix for z-index for compatibility with Bootstrap 3.1+ */
/* added by @mattlibera */
.lightbox {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1041;
display: none;
overflow: auto;
overflow-y: scroll;
.fade .lightbox-dialog {
-webkit-transform: translate(0, -25%);
-ms-transform: translate(0, -25%);
transform: translate(0, -25%);
-webkit-transition: -webkit-transform 0.3s ease-out;
-moz-transition: -moz-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
.in .lightbox-dialog {
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
}
.lightbox-dialog {
z-index: 1050;
width: auto;
/*padding: 10px;*/
margin-right: auto;
margin-left: auto;
.lightbox-header {
float: right;
.close {
margin-top: -2px;
}
}
.lightbox-content {
position: relative;
background-color: #ffffff;
border: 1px solid #999999;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
outline: none;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
/**/
padding: 10px;
display: inline-block;
.lightbox-caption {
position: absolute;
right: 8px;
bottom: 8px;
left: 10px;
padding: 2%;
font-size: 14px;
line-height: 18px;
color: white;
text-align: center;
text-shadow: 0 -1px 0 #000;
text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
background: #000;
background: rgba(0,0,0,0.6);
}
}
}
}