forked from dirkjanm/videojs-vtt-thumbnails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideojs.thumbnails.css
61 lines (54 loc) · 1.41 KB
/
videojs.thumbnails.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
/* a wrapper element that tracks the mouse vertically */
.vjs-thumbnail-holder {
position: relative;
overflow: hidden;
left: -1000px;
bottom: 1.3em;
}
.vjs-thumbnail-text-div {
display: table;
}
.vjs-thumbnail-text {
position: absolute;
font-family: VideoJS;
font-size: 11px;
z-index: 3;
background-color: #00000080;
bottom: 0px;
text-align: center;
transition: opacity .2s ease;
-webkit-transition: opacity .2s ease;
-moz-transition: opacity .2s ease;
-mz-transition: opacity .2s ease;
}
/* the thumbnail image itself */
.vjs-thumbnail {
position: absolute;
left: 0;
opacity: 0;
z-index: 2;
transition: opacity .2s ease;
-webkit-transition: opacity .2s ease;
-moz-transition: opacity .2s ease;
-mz-transition: opacity .2s ease;
}
/* fade in the thumbnail when hovering over the progress bar */
/* .fake-active is needed for Android only. It's removed on touchend/touchecancel */
.vjs-progress-control:hover .vjs-thumbnail,
.vjs-progress-control.fake-active .vjs-thumbnail,
.vjs-progress-control:active .vjs-thumbnail {
opacity: 1;
}
/* ... but hide the thumbnail when hovering directly over it */
.vjs-progress-control:hover .vjs-thumbnail-text:hover,
.vjs-progress-control:active .vjs-thumbnail-text:active {
opacity: 0;
}
.video-js .vjs-progress-control .vjs-mouse-display {
z-index: 2;
}
.video-js .vjs-mouse-display:after {
top: auto;
bottom: 3.5em;
visibility: hidden;
}