-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.css
187 lines (160 loc) · 3.54 KB
/
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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */
/* SPDX-License-Identifier: MIT-0 */
.player-wrapper {
width: 90%;
max-width: 1080px;
position: relative;
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
background: black;
margin: 20px 0px;
}
#videoPlayer video:focus {
outline: 0 !important;
}
#videoPlayer .vjs-big-play-button {
width: 90px !important;
height: 90px !important;
border-radius: 60px !important;
border: none !important;
}
#videoPlayer .vjs-big-play-button span:first-child {
position: relative !important;
width: 100% !important;
height: 100% !important;
}
#videoPlayer .vjs-big-play-button span:first-child:before {
top: 0 !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
width: auto !important;
height: auto !important;
}
#videoPlayer .vjs-control-bar {
height: 40px !important;
}
#videoPlayer .vjs-icon-placeholder {
position: relative;
width: 100%;
height: 100%;
}
#videoPlayer .vjs-icon-placeholder:before {
transform: translate(50%, -50%);
top: 0 !important;
left: 100% !important;
width: auto !important;
height: auto !important;
}
#videoPlayer .vjs-control {
align-items: center;
}
#videoPlayer .vjs-button:focus {
outline: 0em !important;
}
#videoPlayer .vjs-remaining-time {
display: flex;
}
#videoPlayer .vjs-playback-rate-value {
display: flex;
align-items: center;
justify-content: center;
}
#videoPlayer .vjs-playback-rate .vjs-menu {
margin-bottom: 2.3em;
}
/* hide control bar when pause video */
#videoPlayer.vjs-paused .vjs-control-bar {
opacity: 0;
}
/* Custom video title */
#videoPlayer .vjs-title-bar {
background: rgba(0, 0, 0, 0.5);
color: white;
/*
By default, do not show the title bar.
*/
display: none;
font-size: 2em;
padding: .5em;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
/*
Only show the title bar after playback has begun (so as not to hide
the big play button) and only when paused or when the user is
interacting with the player.
*/
#videoPlayer.vjs-paused.vjs-has-started .vjs-title-bar,
#videoPlayer.vjs-user-active.vjs-has-started .vjs-title-bar{
display: block;
}
.quiz {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, 0%);
width: 50%;
height: 50%;
border-radius: 3em;
background-color: white;
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}
.quiz-container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
padding: 1.5em;
color: black;
font-size: 1.6em;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow: auto;
}
.answer-container {
display: flex;
flex-direction: column;
overflow: auto;
flex:1;
align-items: flex-end;
justify-content: flex-end;
}
.question {
margin: 0.5em 0;
}
.answer {
border-radius: 2em;
background-color: aqua;
margin: 0.2em 0;
text-align: center;
width: 100%;
padding: 0.7em 0.5em;
}
.able {
cursor: pointer;
}
.able:hover {
background-color: brown;
}
.correct {
background-color: greenyellow;
}
.wrong {
background-color: red;
}
.vjs-emoji {
left: 20px;
bottom: 40px;
background-color:transparent;
font-size: 30px;
position: absolute;
content: '';
width: 50px;
height: 50px;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
.vjs-emoji.smile {
background-image: url("./smile.png");
}