forked from compact/angular-bootstrap-lightbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular-bootstrap-lightbox.css
44 lines (39 loc) · 1.15 KB
/
angular-bootstrap-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
.lightbox-nav {
position: relative;
margin-bottom: 12px; /* the font-size of .btn-xs */
text-align: center;
font-size: 0; /* prevent the otherwise inherited font-size and line-height from adding extra space to the bottom of this div */
}
.lightbox-nav .btn-group {
vertical-align: top;
}
.lightbox-nav .close {
/* absolutely position this in order to center the nav buttons */
position: absolute;
top: 0;
right: 0;
}
.lightbox-image-container {
position: relative;
text-align: center; /* center the image */
}
/* the caption overlays the top left corner of the image */
.lightbox-image-caption {
position: absolute;
top: 0;
left: 0;
margin: 0.5em 0.9em; /* the left and right margins are offset by 0.4em for the span box-shadow */
color: #000;
font-size: 1.5em;
font-weight: bold;
text-align: left;
text-shadow: 0.1em 0.1em 0.2em rgba(255, 255, 255, 0.5);
}
.lightbox-image-caption span {
padding-top: 0.1em;
padding-bottom: 0.1em;
background-color: rgba(255, 255, 255, 0.75);
/* pad the left and right of each line of text */
box-shadow: 0.4em 0 0 rgba(255, 255, 255, 0.75),
-0.4em 0 0 rgba(255, 255, 255, 0.75);
}