-
Notifications
You must be signed in to change notification settings - Fork 287
/
video.css
68 lines (58 loc) · 1012 Bytes
/
video.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
.video {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
background-color: #000000;
}
.video__link {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.video__media {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.video__button {
position: absolute;
top: 50%;
left: 50%;
z-index: 1;
display: none;
padding: 0;
width: 68px;
height: 48px;
border: none;
background-color: transparent;
transform: translate(-50%, -50%);
cursor: pointer;
}
.video__button-shape {
fill: #212121;
fill-opacity: 0.8;
}
.video__button-icon {
fill: #ffffff;
}
.video__button:focus {
outline: none;
}
.video:hover .video__button-shape,
.video__button:focus .video__button-shape {
fill: #ff0000;
fill-opacity: 1;
}
/* Enabled */
.video--enabled {
cursor: pointer;
}
.video--enabled .video__button {
display: block;
}