/
video.component.scss
129 lines (106 loc) · 2.05 KB
/
video.component.scss
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@mixin box-shadow($x: 0, $y: 1px, $blur: 3px, $alpha: 0.5) {
box-shadow: $x $y $blur rgba(0, 0, 0, $alpha);
}
.player {
background: black;
color: white;
height: 522px;
.container {
position: relative;
height: 450px;
.video {
position: absolute;
display: block;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 0 auto;
width: 100%;
height: 100%;
}
.preview-line {
width: 100%;
width: calc(100% - 16px);
position: absolute;
bottom: 0;
margin: 0 8px;
.preview {
position: relative;
bottom: 0;
display: block;
border: 2px solid rgba(28, 28, 28, 0.9);
border-radius: 2px;
width: 158px;
height: 90px;
app-video-preview {
position: absolute;
}
}
}
app-progress-indicator {
position: absolute;
margin-left: -24px;
}
app-status {
margin-top: 16px;
display: inline-block;
}
}
.controls {
background: rgba(0, 0, 0, 0.5);
position: relative;
.mat-toolbar-row {
height: 24px;
}
.progress {
width: 100%;
cursor: pointer;
}
.action {
position: inherit;
height: 40px;
flex-wrap: nowrap;
.mat-icon-button[disabled][disabled] {
color: rgba(255, 255, 255, 0.26);
}
.time {
margin-top: 12px;
padding: 0 6px;
cursor: all-scroll;
position: relative;
}
}
}
}
// cinema mode = bigger video player, but not fullscreen
.player.cinema {
width: 100vw;
height: 100vh;
margin: 0;
top: 0;
left: 0;
position: fixed;
z-index: 999;
@include box-shadow();
.container {
width: 100%;
height: calc(100% - 80px);
position: fixed;
.video {
max-width: 100%;
}
.preview-line {
position: fixed;
bottom: 80px;
}
}
.controls {
position: fixed;
bottom: 0;
height: 80px;
.action {
margin: 24px 0 0;
flex-wrap: nowrap;
}
}
}