videoPlayer.scss
820 Bytes
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
.videoPlayer {
position: relative;
&:hover {
.videoPlayer__controls {
opacity: 1;
}
}
video {
max-width: 100%;
}
.videoPlayer__controls {
opacity: 0;
transition: opacity 0.4s linear;
color: white;
position: absolute;
z-index: 9;
bottom: 5px;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
padding: 10px;
display: grid;
grid-template-columns: repeat(3, 1fr);
font-size: 16px;
.videoPlayer__column:first-child {
display: flex;
align-items: center;
span:first-child {
margin-right: 10px;
}
}
.videoPlayer__column:last-child {
justify-self: end;
}
.videoPlayer__column:nth-child(2) {
justify-self: center;
}
i {
font-size: 25px;
cursor: pointer;
}
}
}