forked from ericmagnuson/captionjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
captionjs.css
57 lines (53 loc) · 1.17 KB
/
captionjs.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
/*
// caption.js styles
*/
/* Main */
.captionjs {
line-height: 0;
}
.captionjs figcaption {
line-height: 1;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
}
.captionjs.stacked,
.captionjs.animated,
.captionjs.hide {
position: relative;
overflow: hidden;
}
.captionjs.stacked figcaption,
.captionjs.animated figcaption,
.captionjs.hide figcaption {
position: absolute;
}
/* Stacked mode */
.captionjs.stacked figcaption {
bottom: 0;
}
/* Animated mode */
.captionjs.animated figcaption {
-webkit-transition: 0.25s bottom;
-moz-transition: 0.25s bottom;
-ms-transition: 0.25s bottom;
-o-transition: 0.25s bottom;
transition: 0.25s bottom;
}
.captionjs.animated:hover figcaption {
bottom: 0 !important;
}
/* Hide mode */
.captionjs.hide figcaption {
-webkit-transition: 0.25s margin-bottom;
-moz-transition: 0.25s margin-bottom;
-ms-transition: 0.25s margin-bottom;
-o-transition: 0.25s margin-bottom;
transition: 0.25s margin-bottom;
}
.captionjs.hide:hover figcaption {
margin-bottom: 0 !important;
}