@ilo-org/styles 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/css/components/index.css +1181 -794
- package/build/css/components/index.css.map +1 -1
- package/build/css/global.css +1 -1
- package/build/css/global.css.map +1 -1
- package/build/css/index.css +1181 -794
- package/build/css/index.css.map +1 -1
- package/build/css/monorepo.css +1181 -794
- package/build/css/monorepo.css.map +1 -1
- package/build/minified/index.css +1 -1
- package/build/minified/index.css.map +1 -1
- package/build/minified/monorepo.css +1 -1
- package/build/minified/monorepo.css.map +1 -1
- package/css/components/accordion.css +1 -1
- package/css/components/breadcrumb.css +1 -1
- package/css/components/featurecard.css +1 -1
- package/css/components/hero.css +1 -1
- package/css/components/icon.css +1 -0
- package/css/components/list.css +1 -1
- package/css/components/navigation.css +1 -1
- package/css/components/pagination.css +1 -1
- package/css/components/richtext.css +1 -1
- package/css/components/searchfield.css +1 -1
- package/css/components/tag.css +1 -1
- package/css/components/video-legacy.css +1 -0
- package/css/components/video.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +8 -8
- package/css/index.css.map +1 -1
- package/css/monorepo.css +8 -8
- package/css/monorepo.css.map +1 -1
- package/package.json +2 -2
- package/scss/_mixins.scss +27 -1
- package/scss/components/_accordion.scss +7 -5
- package/scss/components/_breadcrumb.scss +5 -1
- package/scss/components/_card.scss +2 -2
- package/scss/components/_cardgroup.scss +1 -1
- package/scss/components/_datacard.scss +1 -1
- package/scss/components/_detailcard.scss +1 -1
- package/scss/components/_factlistcard.scss +1 -1
- package/scss/components/_featurecard.scss +3 -11
- package/scss/components/_hero.scss +206 -214
- package/scss/components/_icon.scss +6 -0
- package/scss/components/_list.scss +0 -2
- package/scss/components/_multilinkcard.scss +2 -2
- package/scss/components/_navigation.scss +11 -9
- package/scss/components/_pagination.scss +1 -3
- package/scss/components/_profile.scss +1 -1
- package/scss/components/_promocard.scss +1 -1
- package/scss/components/_richtext.scss +14 -40
- package/scss/components/_searchfield.scss +36 -4
- package/scss/components/_tag.scss +1 -1
- package/scss/components/_video-legacy.scss +795 -0
- package/scss/components/_video.scss +191 -636
- package/scss/components/index.scss +2 -0
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
@import "../mixins";
|
|
4
4
|
|
|
5
5
|
.ilo--video {
|
|
6
|
-
position: relative;
|
|
7
6
|
width: 100%;
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
position: relative;
|
|
12
|
-
width: 100%;
|
|
8
|
+
.video-js {
|
|
9
|
+
height: auto;
|
|
13
10
|
}
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
.vjs-loading-spinner {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vjs-tech {
|
|
17
|
+
width: 100%;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
&--caption {
|
|
@@ -25,377 +26,198 @@
|
|
|
25
26
|
@include font-styles("image-caption");
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
.vjs-tech:focus {
|
|
30
|
-
outline: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&--element,
|
|
34
|
-
.vjs-tech {
|
|
29
|
+
&--element {
|
|
35
30
|
height: auto;
|
|
36
31
|
object-fit: cover;
|
|
37
|
-
width:
|
|
38
|
-
|
|
39
|
-
&:focus {
|
|
40
|
-
outline: none;
|
|
41
|
-
}
|
|
32
|
+
width: inherit;
|
|
42
33
|
}
|
|
43
34
|
|
|
44
|
-
&--
|
|
35
|
+
&--wrapper {
|
|
36
|
+
line-height: 0;
|
|
45
37
|
position: relative;
|
|
46
|
-
|
|
47
|
-
&:focus {
|
|
48
|
-
outline: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.youtube {
|
|
52
|
-
height: auto;
|
|
53
|
-
max-width: 100%;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
padding-bottom: 56.25%;
|
|
56
|
-
position: relative;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
iframe {
|
|
60
|
-
height: 100%;
|
|
61
|
-
left: 0;
|
|
62
|
-
position: absolute;
|
|
63
|
-
top: 0;
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
38
|
+
overflow: hidden;
|
|
66
39
|
}
|
|
67
40
|
|
|
68
|
-
|
|
69
|
-
|
|
41
|
+
// ? drupal style reset issue
|
|
42
|
+
button {
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
// Remove extra controls
|
|
46
|
+
.vjs-time-divider,
|
|
47
|
+
.vjs-remaining-time,
|
|
48
|
+
.vjs-current-time,
|
|
49
|
+
.vjs-control-text,
|
|
50
|
+
.vjs-custom-control-spacer {
|
|
70
51
|
display: none;
|
|
71
|
-
|
|
72
|
-
height: 100%;
|
|
73
|
-
left: 0;
|
|
74
|
-
max-height: 100%;
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
position: absolute;
|
|
78
|
-
top: 0;
|
|
79
|
-
width: 100%;
|
|
80
|
-
|
|
81
|
-
&.show {
|
|
82
|
-
display: block;
|
|
83
|
-
}
|
|
52
|
+
}
|
|
84
53
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
width: 100%;
|
|
54
|
+
// Show Controls
|
|
55
|
+
&:hover,
|
|
56
|
+
&:focus,
|
|
57
|
+
&:focus-within {
|
|
58
|
+
.vjs-control-bar {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
transition: opacity 150ms ease-out;
|
|
93
61
|
}
|
|
94
62
|
}
|
|
95
63
|
|
|
96
|
-
|
|
97
|
-
.vjs-
|
|
98
|
-
bottom:
|
|
99
|
-
|
|
100
|
-
display: flex;
|
|
101
|
-
justify-content: flex-start;
|
|
102
|
-
left: 0;
|
|
103
|
-
height: px-to-rem(40px);
|
|
104
|
-
opacity: 0;
|
|
105
|
-
position: absolute;
|
|
106
|
-
transition: opacity 150ms ease-out;
|
|
107
|
-
width: 100%;
|
|
64
|
+
// Youtube spacing
|
|
65
|
+
.vjs-youtube {
|
|
66
|
+
padding-bottom: 56.25%;
|
|
67
|
+
}
|
|
108
68
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
69
|
+
// Initial state
|
|
70
|
+
&--element:not(.vjs-has-started) {
|
|
71
|
+
.vjs-poster {
|
|
72
|
+
background-size: cover;
|
|
73
|
+
object-fit: cover;
|
|
74
|
+
height: 100%;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
position: absolute;
|
|
77
|
+
width: 100%;
|
|
78
|
+
left: 0;
|
|
112
79
|
top: 0;
|
|
113
|
-
|
|
114
|
-
@include breakpoint("large") {
|
|
115
|
-
flex-direction: column;
|
|
116
|
-
height: 122px;
|
|
117
|
-
width: px-to-rem(4px);
|
|
118
|
-
}
|
|
119
80
|
}
|
|
120
81
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
82
|
+
.vjs-control-bar {
|
|
83
|
+
& {
|
|
84
|
+
bottom: auto;
|
|
85
|
+
opacity: 1;
|
|
86
|
+
top: 0;
|
|
87
|
+
width: px-to-rem(124px);
|
|
124
88
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
89
|
+
&:hover,
|
|
90
|
+
&:focus {
|
|
91
|
+
.vjs-duration,
|
|
92
|
+
.vjs-play-control {
|
|
93
|
+
background-color: $color-ux-video-controls-hover-background;
|
|
94
|
+
color: $color-ux-video-controls-hover-icon;
|
|
95
|
+
}
|
|
128
96
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
background-color: $color-ux-video-controls-default-background;
|
|
134
|
-
border: none;
|
|
135
|
-
cursor: pointer;
|
|
136
|
-
height: 100%;
|
|
137
|
-
order: 1;
|
|
138
|
-
width: px-to-rem(40px);
|
|
139
|
-
-webkit-appearance: none;
|
|
140
|
-
-moz-appearance: none;
|
|
141
|
-
}
|
|
97
|
+
.vjs-play-control {
|
|
98
|
+
@include dataurlicon("play", $color-ux-video-controls-hover-icon);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
142
101
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
.vjs-play-control,
|
|
146
|
-
.vjs-big-play-button {
|
|
147
|
-
order: 1;
|
|
148
|
-
height: px-to-rem(48px);
|
|
149
|
-
width: px-to-rem(48px);
|
|
102
|
+
.vjs-play-control {
|
|
103
|
+
@include videobutton("play");
|
|
150
104
|
}
|
|
151
105
|
|
|
152
|
-
.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
106
|
+
.vjs-duration {
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
font-weight: 700;
|
|
111
|
+
font-size: px-to-rem(14px);
|
|
112
|
+
height: px-to-rem(40px);
|
|
156
113
|
width: px-to-rem(80px);
|
|
114
|
+
background-color: $color-ux-video-controls-default-background;
|
|
115
|
+
color: $color-ux-video-controls-default-icon;
|
|
157
116
|
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
117
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
);
|
|
170
|
-
|
|
171
|
-
&.ilo--video--controls--play--hovered,
|
|
172
|
-
&:hover,
|
|
173
|
-
&:focus {
|
|
174
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
175
|
-
@include iconbutton(
|
|
176
|
-
"play",
|
|
177
|
-
px-to-rem(48px),
|
|
178
|
-
px-to-rem(48px),
|
|
179
|
-
$color-ux-video-controls-hover-icon
|
|
180
|
-
);
|
|
181
|
-
|
|
182
|
-
& ~ .vjs-duration,
|
|
183
|
-
& ~ .ilo--video--controls--duration {
|
|
184
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
185
|
-
color: $color-ux-video-controls-hover-icon;
|
|
118
|
+
@include breakpoint("large") {
|
|
119
|
+
width: px-to-rem(80px);
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
height: px-to-rem(124px);
|
|
122
|
+
gap: px-to-rem(4px);
|
|
123
|
+
.vjs-play-control {
|
|
124
|
+
@include videobutton("play", "big");
|
|
125
|
+
}
|
|
186
126
|
}
|
|
187
127
|
}
|
|
188
128
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
"play",
|
|
193
|
-
px-to-rem(24px),
|
|
194
|
-
px-to-rem(24px),
|
|
195
|
-
$color-ux-video-controls-default-icon
|
|
196
|
-
);
|
|
197
|
-
|
|
198
|
-
&:hover,
|
|
199
|
-
&:focus {
|
|
200
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
201
|
-
@include iconbutton(
|
|
202
|
-
"play",
|
|
203
|
-
px-to-rem(24px),
|
|
204
|
-
px-to-rem(24px),
|
|
205
|
-
$color-ux-video-controls-hover-icon
|
|
206
|
-
);
|
|
207
|
-
}
|
|
129
|
+
// Hide controls for initial state
|
|
130
|
+
.vjs-fullscreen-control {
|
|
131
|
+
display: none;
|
|
208
132
|
}
|
|
209
|
-
}
|
|
210
133
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
background-size: 24px 24px;
|
|
134
|
+
.vjs-progress-control {
|
|
135
|
+
display: none;
|
|
214
136
|
}
|
|
215
|
-
}
|
|
216
137
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
@include iconbutton(
|
|
220
|
-
"pause",
|
|
221
|
-
px-to-rem(24px),
|
|
222
|
-
px-to-rem(24px),
|
|
223
|
-
$color-ux-video-controls-default-icon
|
|
224
|
-
);
|
|
225
|
-
|
|
226
|
-
&:hover,
|
|
227
|
-
&:focus {
|
|
228
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
229
|
-
@include iconbutton(
|
|
230
|
-
"pause",
|
|
231
|
-
px-to-rem(24px),
|
|
232
|
-
px-to-rem(24px),
|
|
233
|
-
$color-ux-video-controls-hover-icon
|
|
234
|
-
);
|
|
138
|
+
.vjs-volume-panel {
|
|
139
|
+
display: none;
|
|
235
140
|
}
|
|
236
141
|
}
|
|
142
|
+
}
|
|
237
143
|
|
|
238
|
-
|
|
144
|
+
// Video With Non Initial State
|
|
145
|
+
.vjs-control-bar {
|
|
146
|
+
order: 1;
|
|
147
|
+
opacity: 0;
|
|
148
|
+
transition: opacity 150ms ease-out;
|
|
149
|
+
position: absolute;
|
|
150
|
+
display: flex;
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: px-to-rem(40px);
|
|
153
|
+
bottom: 0;
|
|
154
|
+
|
|
155
|
+
// TODO: BIG SCREEN
|
|
239
156
|
.vjs-duration {
|
|
240
|
-
background-color: $color-ux-video-controls-default-background;
|
|
241
|
-
color: $color-ux-video-controls-default-icon;
|
|
242
157
|
display: none;
|
|
243
|
-
|
|
244
|
-
font-weight: 700;
|
|
245
|
-
margin-left: px-to-rem(2px);
|
|
246
|
-
order: 2;
|
|
247
|
-
padding-top: px-to-rem(9px);
|
|
248
|
-
text-align: center;
|
|
249
|
-
width: px-to-rem(80px);
|
|
250
|
-
|
|
251
|
-
&.ilo--video--controls--duration--hovered,
|
|
252
|
-
&:hover,
|
|
253
|
-
&:focus {
|
|
254
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
255
|
-
color: $color-ux-video-controls-hover-icon;
|
|
256
|
-
|
|
257
|
-
// react-player play button, https://github.com/international-labour-organization/designsystem/issues/521
|
|
258
|
-
& ~ .ilo--video--controls--play {
|
|
259
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
260
|
-
@include iconbutton(
|
|
261
|
-
"play",
|
|
262
|
-
px-to-rem(48px),
|
|
263
|
-
px-to-rem(48px),
|
|
264
|
-
$color-ux-video-controls-hover-icon
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
@include font-styles("label-small");
|
|
158
|
+
}
|
|
270
159
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
160
|
+
.vjs-poster {
|
|
161
|
+
display: none;
|
|
274
162
|
}
|
|
275
163
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
164
|
+
// Play Button
|
|
165
|
+
.vjs-play-control {
|
|
166
|
+
@include videobutton("play");
|
|
167
|
+
margin-right: px-to-rem(2px);
|
|
168
|
+
&.vjs-paused,
|
|
169
|
+
&.vjs-ended {
|
|
170
|
+
@include videobutton("play");
|
|
171
|
+
}
|
|
284
172
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
margin-left: 0;
|
|
288
|
-
margin-top: 2px;
|
|
289
|
-
width: px-to-rem(80px);
|
|
290
|
-
}
|
|
173
|
+
&.vjs-playing {
|
|
174
|
+
@include videobutton("pause");
|
|
291
175
|
}
|
|
292
176
|
}
|
|
293
177
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
178
|
+
// Fullscreen control
|
|
179
|
+
.vjs-fullscreen-control {
|
|
180
|
+
order: 5;
|
|
181
|
+
@include videobutton("fullscreen", "standard");
|
|
297
182
|
}
|
|
298
183
|
|
|
299
|
-
|
|
184
|
+
// Duration Bar
|
|
300
185
|
.vjs-progress-control {
|
|
186
|
+
order: 2;
|
|
187
|
+
margin-right: px-to-rem(2px);
|
|
301
188
|
background-color: $color-ux-video-controls-default-background;
|
|
302
|
-
display: none;
|
|
303
189
|
flex-grow: 1;
|
|
304
|
-
height: 100%;
|
|
305
|
-
margin-left: 2px;
|
|
306
|
-
order: 3;
|
|
307
|
-
position: relative;
|
|
308
190
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
display: block;
|
|
191
|
+
.vjs-mouse-display {
|
|
192
|
+
display: none;
|
|
312
193
|
}
|
|
313
194
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
left: 2%;
|
|
317
|
-
opacity: 0;
|
|
318
|
-
padding: 0;
|
|
319
|
-
position: absolute;
|
|
320
|
-
top: 0;
|
|
195
|
+
.vjs-progress-holder {
|
|
196
|
+
position: relative;
|
|
321
197
|
width: 96%;
|
|
322
|
-
z-index: 20;
|
|
323
198
|
}
|
|
324
199
|
|
|
325
|
-
|
|
200
|
+
.vjs-load-progress,
|
|
326
201
|
.vjs-play-progress {
|
|
327
|
-
height: 8px;
|
|
202
|
+
height: px-to-rem(8px);
|
|
328
203
|
left: 2%;
|
|
329
|
-
position: absolute;
|
|
330
204
|
top: px-to-rem(16px);
|
|
331
|
-
|
|
332
|
-
z-index:
|
|
333
|
-
-webkit-appearance: none;
|
|
334
|
-
|
|
335
|
-
&::-moz-progress-bar {
|
|
336
|
-
background: $color-ux-video-controls-hover-background;
|
|
337
|
-
border-radius: 0;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
&::-webkit-progress-bar {
|
|
341
|
-
background: transparent;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
&::-webkit-progress-value {
|
|
345
|
-
background: $color-ux-video-controls-hover-background;
|
|
346
|
-
border-radius: 0;
|
|
347
|
-
}
|
|
205
|
+
position: absolute;
|
|
206
|
+
z-index: 10;
|
|
348
207
|
}
|
|
349
208
|
|
|
350
209
|
.vjs-play-progress {
|
|
351
|
-
background: $color-ux-video-controls-hover-background;
|
|
210
|
+
background-color: $color-ux-video-controls-hover-background;
|
|
211
|
+
z-index: 15;
|
|
352
212
|
|
|
353
213
|
.vjs-time-tooltip {
|
|
354
214
|
display: none;
|
|
355
215
|
}
|
|
356
216
|
}
|
|
357
217
|
|
|
358
|
-
div[data-start] {
|
|
359
|
-
background: $color-base-neutrals-light;
|
|
360
|
-
height: 8px;
|
|
361
|
-
left: 2%;
|
|
362
|
-
position: absolute;
|
|
363
|
-
top: 0;
|
|
364
|
-
width: 96%;
|
|
365
|
-
z-index: 15;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
&-played,
|
|
369
|
-
.vjs-mouse-display {
|
|
370
|
-
display: none;
|
|
371
|
-
position: absolute;
|
|
372
|
-
top: -40px;
|
|
373
|
-
z-index: 20;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
&-loaded,
|
|
377
218
|
.vjs-load-progress {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
position: absolute;
|
|
381
|
-
top: px-to-rem(16px);
|
|
382
|
-
width: 96%;
|
|
383
|
-
z-index: 10;
|
|
384
|
-
-webkit-appearance: none;
|
|
385
|
-
|
|
386
|
-
&::-moz-progress-bar {
|
|
387
|
-
background: $color-base-neutrals-light;
|
|
388
|
-
border-radius: 0;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
&::-webkit-progress-bar {
|
|
392
|
-
background: transparent;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
&::-webkit-progress-value {
|
|
396
|
-
background: $color-base-neutrals-light;
|
|
397
|
-
border-radius: 0;
|
|
398
|
-
}
|
|
219
|
+
background-color: $color-base-neutrals-light;
|
|
220
|
+
z-index: 15;
|
|
399
221
|
}
|
|
400
222
|
|
|
401
223
|
&:hover,
|
|
@@ -404,10 +226,12 @@
|
|
|
404
226
|
position: relative;
|
|
405
227
|
|
|
406
228
|
.vjs-time-tooltip {
|
|
229
|
+
color: $brand-ilo-grey-light;
|
|
230
|
+
font-size: px-to-rem(14px);
|
|
231
|
+
height: px-to-rem(32px);
|
|
407
232
|
align-items: center;
|
|
408
233
|
background-color: $color-ux-credit-background;
|
|
409
234
|
display: flex;
|
|
410
|
-
height: px-to-rem(32px);
|
|
411
235
|
justify-content: center;
|
|
412
236
|
right: 0;
|
|
413
237
|
position: absolute;
|
|
@@ -432,352 +256,88 @@
|
|
|
432
256
|
}
|
|
433
257
|
}
|
|
434
258
|
}
|
|
435
|
-
|
|
436
|
-
.ilo--video--controls--progress-played-container {
|
|
437
|
-
position: absolute;
|
|
438
|
-
left: 2%;
|
|
439
|
-
top: 0;
|
|
440
|
-
width: 96%;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.ilo--video--controls--progress-played {
|
|
444
|
-
--playhead: 0%;
|
|
445
|
-
align-items: center;
|
|
446
|
-
background-color: $color-ux-credit-background;
|
|
447
|
-
display: flex;
|
|
448
|
-
height: px-to-rem(32px);
|
|
449
|
-
justify-content: center;
|
|
450
|
-
left: calc(var(--playhead) - 34px);
|
|
451
|
-
position: absolute;
|
|
452
|
-
bottom: calc(300% + 12px);
|
|
453
|
-
width: 70px;
|
|
454
|
-
@include font-styles("image-credit");
|
|
455
|
-
|
|
456
|
-
&:after {
|
|
457
|
-
background-position: top left;
|
|
458
|
-
background-repeat: no-repeat;
|
|
459
|
-
background-size: contain;
|
|
460
|
-
@include dataurlicon(
|
|
461
|
-
"equilateraltriangle",
|
|
462
|
-
$color-base-neutrals-dark
|
|
463
|
-
);
|
|
464
|
-
content: "";
|
|
465
|
-
height: px-to-rem(12px);
|
|
466
|
-
position: absolute;
|
|
467
|
-
left: calc(50% - 6px);
|
|
468
|
-
bottom: -#{px-to-rem(12px)};
|
|
469
|
-
width: px-to-rem(12px);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
259
|
}
|
|
473
260
|
}
|
|
474
261
|
|
|
475
|
-
|
|
262
|
+
// Volume Control
|
|
476
263
|
.vjs-volume-panel {
|
|
264
|
+
order: 3;
|
|
477
265
|
border-bottom: 1px solid;
|
|
478
266
|
bottom: 0;
|
|
479
|
-
display: none;
|
|
480
267
|
flex-direction: column;
|
|
481
|
-
|
|
482
|
-
margin-left: 2px;
|
|
483
|
-
order: 4;
|
|
268
|
+
margin-right: px-to-rem(2px);
|
|
484
269
|
position: relative;
|
|
485
270
|
width: 40px;
|
|
486
271
|
|
|
487
|
-
|
|
488
|
-
.vjs-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
&:hover,
|
|
493
|
-
&:focus {
|
|
494
|
-
.vjs-volume-control {
|
|
495
|
-
display: block;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
&--showvolume,
|
|
501
|
-
.vjs-mute-control {
|
|
502
|
-
background-color: $color-ux-video-controls-default-background;
|
|
503
|
-
border: none;
|
|
504
|
-
cursor: pointer;
|
|
505
|
-
height: px-to-rem(40px);
|
|
506
|
-
margin-top: 0;
|
|
507
|
-
position: relative;
|
|
508
|
-
width: px-to-rem(40px);
|
|
509
|
-
z-index: 10;
|
|
510
|
-
-webkit-appearance: none;
|
|
511
|
-
-moz-appearance: none;
|
|
512
|
-
@include iconbutton(
|
|
513
|
-
"volume",
|
|
514
|
-
px-to-rem(24px),
|
|
515
|
-
px-to-rem(24px),
|
|
516
|
-
$color-ux-video-controls-default-icon
|
|
517
|
-
);
|
|
518
|
-
|
|
519
|
-
&:hover,
|
|
520
|
-
&:focus {
|
|
521
|
-
background-color: $color-ux-video-controls-hover-background;
|
|
522
|
-
@include iconbutton(
|
|
523
|
-
"volume",
|
|
524
|
-
px-to-rem(24px),
|
|
525
|
-
px-to-rem(24px),
|
|
526
|
-
$color-ux-video-controls-hover-icon
|
|
527
|
-
);
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
&.muted,
|
|
531
|
-
&[title="Unmute"] {
|
|
532
|
-
@include iconbutton(
|
|
533
|
-
"muted",
|
|
534
|
-
px-to-rem(24px),
|
|
535
|
-
px-to-rem(24px),
|
|
536
|
-
$color-ux-video-controls-default-icon
|
|
537
|
-
);
|
|
272
|
+
// Mute Button
|
|
273
|
+
.vjs-mute-control {
|
|
274
|
+
@include videobutton("volume");
|
|
275
|
+
height: px-to-rem(40px);
|
|
538
276
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
background-color: #ebf5fd;
|
|
542
|
-
@include iconbutton(
|
|
543
|
-
"muted",
|
|
544
|
-
px-to-rem(24px),
|
|
545
|
-
px-to-rem(24px),
|
|
546
|
-
$color-ux-video-controls-hover-icon
|
|
547
|
-
);
|
|
277
|
+
&[title="Unmute"] {
|
|
278
|
+
@include videobutton("muted");
|
|
548
279
|
}
|
|
549
280
|
}
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
&--setvolume,
|
|
553
|
-
.vjs-volume-control {
|
|
554
|
-
background: $color-ux-video-controls-hover-background;
|
|
555
|
-
border-left: 3px solid rgb(184, 196, 204);
|
|
556
|
-
display: none;
|
|
557
|
-
height: px-to-rem(40px);
|
|
558
|
-
order: 1;
|
|
559
|
-
padding: 0;
|
|
560
|
-
position: absolute;
|
|
561
|
-
transform: rotate(270deg);
|
|
562
|
-
transform-origin: -4px -4px;
|
|
563
|
-
top: 9px;
|
|
564
|
-
width: px-to-rem(138px);
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
&--setvolume {
|
|
568
|
-
border-left: 8px solid $color-ux-video-controls-hover-background;
|
|
569
|
-
border-right: 8px solid $color-ux-video-controls-hover-background;
|
|
570
|
-
width: px-to-rem(122px);
|
|
571
|
-
-webkit-appearance: none;
|
|
572
|
-
|
|
573
|
-
&.show {
|
|
574
|
-
display: block;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
&-container {
|
|
578
|
-
left: -2px;
|
|
579
|
-
position: absolute;
|
|
580
|
-
top: -2px;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
&::-webkit-slider-runnable-track {
|
|
584
|
-
background-color: $color-ux-video-controls-hover-icon;
|
|
585
|
-
border: none;
|
|
586
|
-
box-shadow: none;
|
|
587
|
-
height: 4px;
|
|
588
|
-
cursor: pointer;
|
|
589
|
-
}
|
|
590
281
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
border: none;
|
|
594
|
-
border-radius: 50%;
|
|
595
|
-
box-shadow: none;
|
|
282
|
+
&.vjs-hover .vjs-volume-control {
|
|
283
|
+
align-items: center;
|
|
596
284
|
cursor: pointer;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
width: 16px;
|
|
600
|
-
-webkit-appearance: none;
|
|
285
|
+
display: flex;
|
|
286
|
+
justify-content: center;
|
|
601
287
|
}
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.vjs-volume-panel.vjs-hover .vjs-volume-control {
|
|
605
|
-
align-items: center;
|
|
606
|
-
cursor: pointer;
|
|
607
|
-
display: flex;
|
|
608
|
-
justify-content: center;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.vjs-volume-bar {
|
|
612
|
-
height: 4px;
|
|
613
|
-
position: relative;
|
|
614
|
-
width: calc(100% - 26px);
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.vjs-mouse-display,
|
|
618
|
-
.vjs-volume-level {
|
|
619
|
-
height: 4px;
|
|
620
|
-
left: 0;
|
|
621
|
-
position: absolute;
|
|
622
|
-
top: 0;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
.vjs-mouse-display {
|
|
626
|
-
background-color: $color-base-neutrals-light;
|
|
627
|
-
width: 100%;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
.vjs-volume-level {
|
|
631
|
-
background-color: $color-ux-video-controls-hover-icon;
|
|
632
288
|
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
padding: 0;
|
|
289
|
+
// Volume rocker
|
|
290
|
+
.vjs-volume-control {
|
|
291
|
+
background: $color-ux-video-controls-hover-background;
|
|
292
|
+
border-left: px-to-rem(3px) solid rgb(184, 196, 204);
|
|
293
|
+
display: none;
|
|
294
|
+
height: px-to-rem(40px);
|
|
640
295
|
position: absolute;
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
-ms-transform: translate(-50%, -50%);
|
|
646
|
-
transform: translate(-50%, -50%);
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.vjs-volume-tooltip {
|
|
651
|
-
display: none;
|
|
652
|
-
}
|
|
296
|
+
transform: rotate(270deg);
|
|
297
|
+
transform-origin: -4px -4px;
|
|
298
|
+
top: px-to-rem(9px);
|
|
299
|
+
width: px-to-rem(138px);
|
|
653
300
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
height: 100%;
|
|
661
|
-
margin-left: 2px;
|
|
662
|
-
order: 5;
|
|
663
|
-
width: px-to-rem(40px);
|
|
664
|
-
-webkit-appearance: none;
|
|
665
|
-
-moz-appearance: none;
|
|
666
|
-
@include iconbutton(
|
|
667
|
-
"fullscreen",
|
|
668
|
-
px-to-rem(24px),
|
|
669
|
-
px-to-rem(24px),
|
|
670
|
-
$color-ux-video-controls-default-icon
|
|
671
|
-
);
|
|
672
|
-
|
|
673
|
-
&:hover,
|
|
674
|
-
&:focus {
|
|
675
|
-
background-color: #ebf5fd;
|
|
676
|
-
@include iconbutton(
|
|
677
|
-
"fullscreen",
|
|
678
|
-
px-to-rem(24px),
|
|
679
|
-
px-to-rem(24px),
|
|
680
|
-
$color-ux-video-controls-hover-icon
|
|
681
|
-
);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
&.show {
|
|
685
|
-
display: block;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
.vjs-control-bar {
|
|
691
|
-
bottom: 0;
|
|
692
|
-
left: -5px;
|
|
693
|
-
width: calc(100% + 5px);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
&--element:not(.vjs-has-started) {
|
|
697
|
-
.vjs-control-bar {
|
|
698
|
-
bottom: auto;
|
|
699
|
-
left: -5px;
|
|
700
|
-
opacity: 1;
|
|
701
|
-
top: 0;
|
|
702
|
-
|
|
703
|
-
@include breakpoint("large") {
|
|
704
|
-
flex-direction: column;
|
|
705
|
-
height: 158px;
|
|
706
|
-
justify-content: flex-start;
|
|
707
|
-
left: 0;
|
|
708
|
-
width: 80px;
|
|
301
|
+
.vjs-volume-bar {
|
|
302
|
+
height: px-to-rem(4px);
|
|
303
|
+
position: relative;
|
|
304
|
+
width: calc(100% - 26px);
|
|
305
|
+
//TODO: * JUMPING
|
|
306
|
+
}
|
|
709
307
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
right: 0;
|
|
308
|
+
.vjs-volume-tooltip {
|
|
309
|
+
display: none;
|
|
713
310
|
}
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
311
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
312
|
+
.vjs-mouse-display {
|
|
313
|
+
height: px-to-rem(4px);
|
|
314
|
+
position: absolute;
|
|
315
|
+
width: 100%;
|
|
316
|
+
background-color: $color-base-neutrals-light;
|
|
317
|
+
}
|
|
720
318
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
319
|
+
.vjs-volume-level {
|
|
320
|
+
height: px-to-rem(4px);
|
|
321
|
+
left: 0;
|
|
322
|
+
top: 0;
|
|
323
|
+
position: absolute;
|
|
324
|
+
background-color: $color-ux-video-controls-hover-icon;
|
|
728
325
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
326
|
+
&:before {
|
|
327
|
+
content: "";
|
|
328
|
+
background: $color-ux-video-controls-hover-icon;
|
|
329
|
+
border-radius: 50%;
|
|
330
|
+
height: px-to-rem(16px);
|
|
331
|
+
width: px-to-rem(16px);
|
|
332
|
+
position: absolute;
|
|
333
|
+
right: px-to-rem(-16px);
|
|
334
|
+
top: 50%;
|
|
335
|
+
transform: translate(-50%, -50%);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
733
338
|
}
|
|
734
339
|
}
|
|
735
340
|
}
|
|
736
|
-
|
|
737
|
-
.vjs-youtube {
|
|
738
|
-
padding-bottom: 56%;
|
|
739
|
-
|
|
740
|
-
&:not(.vjs-has-started) .vjs-poster {
|
|
741
|
-
display: block;
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
.vjs-control:focus,
|
|
746
|
-
.vjs-control *:focus {
|
|
747
|
-
outline: none;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.vjs-has-started {
|
|
751
|
-
.vjs-control:not(.vjs-duration):not(.vjs-volume-control) {
|
|
752
|
-
display: block;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
&:hover,
|
|
757
|
-
&:focus,
|
|
758
|
-
&:focus-within {
|
|
759
|
-
.ilo--video--controls,
|
|
760
|
-
.vjs-control-bar {
|
|
761
|
-
opacity: 1;
|
|
762
|
-
transition: opacity 150ms ease-out;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
// TODO: style using loading component
|
|
767
|
-
.vjs-loading-spinner {
|
|
768
|
-
display: none;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.vjs-time-divider,
|
|
772
|
-
.vjs-remaining-time,
|
|
773
|
-
.vjs-current-time,
|
|
774
|
-
.vjs-control-text {
|
|
775
|
-
display: none !important;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
.ilo--video--container {
|
|
780
|
-
position: relative;
|
|
781
341
|
}
|
|
782
342
|
|
|
783
343
|
[dir="rtl"] {
|
|
@@ -787,9 +347,4 @@
|
|
|
787
347
|
padding-left: 0;
|
|
788
348
|
padding-right: spacing(2);
|
|
789
349
|
}
|
|
790
|
-
|
|
791
|
-
.ilo--credit {
|
|
792
|
-
left: auto;
|
|
793
|
-
right: 0;
|
|
794
|
-
}
|
|
795
350
|
}
|