@brightspace-ui/labs 2.55.1 → 2.56.2

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.
Files changed (51) hide show
  1. package/demo/components/ou-filter/ouFilterDemoPage.js +14 -16
  2. package/package.json +4 -3
  3. package/src/components/accessibility-disability-simulator/accessibility-disability-simulator.js +70 -74
  4. package/src/components/accordion/accordion-collapse.js +161 -164
  5. package/src/components/accordion/accordion.js +14 -17
  6. package/src/components/attribute-picker/attribute-picker-item.js +63 -66
  7. package/src/components/attribute-picker/attribute-picker.js +118 -121
  8. package/src/components/card-overlay/card-overlay.js +53 -55
  9. package/src/components/checkbox-drawer/checkbox-drawer.js +32 -36
  10. package/src/components/community/community-base.js +3 -5
  11. package/src/components/community/community-button.js +3 -5
  12. package/src/components/community/community-link.js +4 -6
  13. package/src/components/file-uploader/file-uploader.js +148 -151
  14. package/src/components/grade-result/grade-result-icon-button.js +5 -6
  15. package/src/components/grade-result/grade-result-letter-score.js +18 -22
  16. package/src/components/grade-result/grade-result-numeric-score.js +25 -28
  17. package/src/components/grade-result/grade-result-presentational.js +133 -136
  18. package/src/components/grade-result/grade-result-student-grade-preview.js +38 -42
  19. package/src/components/media-player/media-player-audio-bars.js +28 -31
  20. package/src/components/media-player/media-player.js +471 -475
  21. package/src/components/media-player/slider-bar.js +119 -122
  22. package/src/components/navigation/navigation-band.js +69 -71
  23. package/src/components/navigation/navigation-button-icon.js +51 -55
  24. package/src/components/navigation/navigation-dropdown-button-custom.js +13 -17
  25. package/src/components/navigation/navigation-dropdown-button-icon.js +21 -25
  26. package/src/components/navigation/navigation-immersive.js +128 -132
  27. package/src/components/navigation/navigation-iterator.js +24 -24
  28. package/src/components/navigation/navigation-link-back.js +13 -17
  29. package/src/components/navigation/navigation-link-icon.js +36 -40
  30. package/src/components/navigation/navigation-link-image.js +31 -35
  31. package/src/components/navigation/navigation-link.js +34 -38
  32. package/src/components/navigation/navigation-main-footer.js +7 -9
  33. package/src/components/navigation/navigation-main-header.js +34 -36
  34. package/src/components/navigation/navigation-notification-icon.js +30 -34
  35. package/src/components/navigation/navigation.js +19 -23
  36. package/src/components/opt-in-flyout/flyout-impl.js +138 -146
  37. package/src/components/opt-in-flyout/opt-in-flyout.js +14 -18
  38. package/src/components/opt-in-flyout/opt-out-dialog.js +63 -67
  39. package/src/components/opt-in-flyout/opt-out-flyout.js +15 -19
  40. package/src/components/opt-in-flyout/opt-out-reason-selector.js +38 -45
  41. package/src/components/opt-in-flyout/opt-out-reason.js +9 -13
  42. package/src/components/ou-filter/ou-filter.js +14 -18
  43. package/src/components/ou-filter/tree-filter.js +22 -26
  44. package/src/components/ou-filter/tree-selector-node.js +62 -66
  45. package/src/components/ou-filter/tree-selector.js +55 -62
  46. package/src/components/pagination/pager-numeric.js +35 -39
  47. package/src/components/view-toggle/view-toggle.js +79 -81
  48. package/src/components/wizard/single-step-header.js +106 -110
  49. package/src/components/wizard/wizard-step.js +65 -68
  50. package/src/components/wizard/wizard.js +30 -33
  51. package/src/utilities/reactive-store/README.md +10 -15
@@ -77,549 +77,545 @@ const tryParseUrlExpiry = url => {
77
77
 
78
78
  class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
79
79
 
80
- static get properties() {
81
- return {
82
- allowDownload: { type: Boolean, attribute: 'allow-download', reflect: true },
83
- autoplay: { type: Boolean },
84
- crossorigin: { type: String },
85
- downloadFilename: { type: String, attribute: 'download-filename' },
86
- durationHint: { type: Number, attribute: 'duration-hint' },
87
- hideCaptionsSelection: { type: Boolean, attribute: 'hide-captions-selection' },
88
- hideSeekBar: { type: Boolean, attribute: 'hide-seek-bar' },
89
- loop: { type: Boolean },
90
- mediaType: { type: String, attribute: 'media-type' },
91
- metadata: { type: Object },
92
- poster: { type: String },
93
- src: { type: String },
94
- thumbnails: { type: String },
95
- disableSetPreferences: { type: Boolean, attribute: 'disable-set-preferences' },
96
- transcriptViewerOn: { type: Boolean, attribute: 'transcript-viewer-on' },
97
- playInView: { type: Boolean, attribute: 'play-in-view' },
98
- _chapters: { type: Array, attribute: false },
99
- _currentTime: { type: Number, attribute: false },
100
- _duration: { type: Number, attribute: false },
101
- _heightPixels: { type: Number, attribute: false },
102
- _hoverTime: { type: Number, attribute: false },
103
- _hovering: { type: Boolean, attribute: false },
104
- _loading: { type: Boolean, attribute: false },
105
- _maintainHeight: { type: Number, attribute: false },
106
- _mediaContainerAspectRatio: { type: Object, attribute: false },
107
- _message: { type: Object, attribute: false },
108
- _muted: { type: Boolean, attribute: false },
109
- _playing: { type: Boolean, attribute: false },
110
- _posterVisible: { type: Boolean, attribute: false },
111
- _recentlyShowedCustomControls: { type: Boolean, attribute: false },
112
- _searchResults: { type: Array, attribute: false },
113
- _selectedQuality: { type: String, attribute: false },
114
- _selectedSpeed: { type: String, attribute: false },
115
- _selectedTrackIdentifier: { type: Object, attribute: false },
116
- _sources: { type: Object, attribute: false },
117
- _thumbnailsImage: { type: Object, attribute: false },
118
- _timelinePreviewOffset: { type: Number, attribute: false },
119
- _trackFontSizeRem: { type: Number, attribute: false },
120
- _timeFontSizeRem: { type: Number, attribute: false },
121
- _trackText: { type: String, attribute: false },
122
- _tracks: { type: Array, attribute: false },
123
- _usingVolumeContainer: { type: Boolean, attribute: false },
124
- _volume: { type: Number, attribute: false },
125
- };
126
- }
80
+ static properties = {
81
+ allowDownload: { type: Boolean, attribute: 'allow-download', reflect: true },
82
+ autoplay: { type: Boolean },
83
+ crossorigin: { type: String },
84
+ downloadFilename: { type: String, attribute: 'download-filename' },
85
+ durationHint: { type: Number, attribute: 'duration-hint' },
86
+ hideCaptionsSelection: { type: Boolean, attribute: 'hide-captions-selection' },
87
+ hideSeekBar: { type: Boolean, attribute: 'hide-seek-bar' },
88
+ loop: { type: Boolean },
89
+ mediaType: { type: String, attribute: 'media-type' },
90
+ metadata: { type: Object },
91
+ poster: { type: String },
92
+ src: { type: String },
93
+ thumbnails: { type: String },
94
+ disableSetPreferences: { type: Boolean, attribute: 'disable-set-preferences' },
95
+ transcriptViewerOn: { type: Boolean, attribute: 'transcript-viewer-on' },
96
+ playInView: { type: Boolean, attribute: 'play-in-view' },
97
+ _chapters: { type: Array, attribute: false },
98
+ _currentTime: { type: Number, attribute: false },
99
+ _duration: { type: Number, attribute: false },
100
+ _heightPixels: { type: Number, attribute: false },
101
+ _hoverTime: { type: Number, attribute: false },
102
+ _hovering: { type: Boolean, attribute: false },
103
+ _loading: { type: Boolean, attribute: false },
104
+ _maintainHeight: { type: Number, attribute: false },
105
+ _mediaContainerAspectRatio: { type: Object, attribute: false },
106
+ _message: { type: Object, attribute: false },
107
+ _muted: { type: Boolean, attribute: false },
108
+ _playing: { type: Boolean, attribute: false },
109
+ _posterVisible: { type: Boolean, attribute: false },
110
+ _recentlyShowedCustomControls: { type: Boolean, attribute: false },
111
+ _searchResults: { type: Array, attribute: false },
112
+ _selectedQuality: { type: String, attribute: false },
113
+ _selectedSpeed: { type: String, attribute: false },
114
+ _selectedTrackIdentifier: { type: Object, attribute: false },
115
+ _sources: { type: Object, attribute: false },
116
+ _thumbnailsImage: { type: Object, attribute: false },
117
+ _timelinePreviewOffset: { type: Number, attribute: false },
118
+ _trackFontSizeRem: { type: Number, attribute: false },
119
+ _timeFontSizeRem: { type: Number, attribute: false },
120
+ _trackText: { type: String, attribute: false },
121
+ _tracks: { type: Array, attribute: false },
122
+ _usingVolumeContainer: { type: Boolean, attribute: false },
123
+ _volume: { type: Number, attribute: false },
124
+ };
125
+
126
+ static styles = [labelStyles, css`
127
+ :host {
128
+ display: block;
129
+ min-height: 140px;
130
+ position: relative;
131
+ }
127
132
 
128
- static get styles() {
129
- return [ labelStyles, css`
130
- :host {
131
- display: block;
132
- min-height: 140px;
133
- position: relative;
134
- }
133
+ :host([hidden]) {
134
+ display: none;
135
+ }
135
136
 
136
- :host([hidden]) {
137
- display: none;
138
- }
137
+ #d2l-labs-media-player-media-container {
138
+ align-items: center;
139
+ justify-content: center;
140
+ /* This max-height prevents the video from growing out of bounds and appearing cut off inside of ISF iframes */
141
+ max-height: 100vh;
142
+ overflow: hidden;
143
+ position: relative;
144
+ width: 100%;
145
+ }
139
146
 
140
- #d2l-labs-media-player-media-container {
141
- align-items: center;
142
- justify-content: center;
143
- /* This max-height prevents the video from growing out of bounds and appearing cut off inside of ISF iframes */
144
- max-height: 100vh;
145
- overflow: hidden;
146
- position: relative;
147
- width: 100%;
148
- }
147
+ .d2l-labs-media-player-type-is-audio {
148
+ background-color: #ffffff;
149
+ }
149
150
 
150
- .d2l-labs-media-player-type-is-audio {
151
- background-color: #ffffff;
152
- }
151
+ .d2l-labs-media-player-type-is-video {
152
+ background-color: #000000;
153
+ color: #ffffff;
154
+ }
153
155
 
154
- .d2l-labs-media-player-type-is-video {
155
- background-color: #000000;
156
- color: #ffffff;
157
- }
158
156
 
157
+ #d2l-labs-media-player-video {
158
+ display: block;
159
+ height: 100%;
160
+ max-height: var(--d2l-labs-media-player-video-max-height, 100vh);
161
+ min-height: 100%;
162
+ position: relative;
163
+ width: 100%;
164
+ }
159
165
 
160
- #d2l-labs-media-player-video {
161
- display: block;
162
- height: 100%;
163
- max-height: var(--d2l-labs-media-player-video-max-height, 100vh);
164
- min-height: 100%;
165
- position: relative;
166
- width: 100%;
167
- }
166
+ #d2l-labs-media-player-video-poster {
167
+ background-color: #000000;
168
+ cursor: pointer;
169
+ height: 100%;
170
+ object-fit: contain;
171
+ position: absolute;
172
+ width: 100%;
173
+ z-index: 1;
174
+ }
168
175
 
169
- #d2l-labs-media-player-video-poster {
170
- background-color: #000000;
171
- cursor: pointer;
172
- height: 100%;
173
- object-fit: contain;
174
- position: absolute;
175
- width: 100%;
176
- z-index: 1;
177
- }
176
+ #d2l-labs-media-player-video-poster-play-button {
177
+ background-color: rgba(0, 0, 0, 0.69);
178
+ border: none;
179
+ border-radius: 50%;
180
+ cursor: pointer;
181
+ padding: 2em;
182
+ position: absolute;
183
+ z-index: 2;
184
+ }
178
185
 
179
- #d2l-labs-media-player-video-poster-play-button {
180
- background-color: rgba(0, 0, 0, 0.69);
181
- border: none;
182
- border-radius: 50%;
183
- cursor: pointer;
184
- padding: 2em;
185
- position: absolute;
186
- z-index: 2;
187
- }
186
+ #d2l-labs-media-player-video-poster-play-button[transcript] {
187
+ background-color: rgba(0, 0, 0, 0.69);
188
+ border: none;
189
+ border-radius: 50%;
190
+ cursor: pointer;
191
+ left: 10%;
192
+ padding: 2em;
193
+ position: absolute;
194
+ top: 10%;
195
+ transform: scale(0.5);
196
+ z-index: 2;
197
+ }
188
198
 
189
- #d2l-labs-media-player-video-poster-play-button[transcript] {
190
- background-color: rgba(0, 0, 0, 0.69);
191
- border: none;
192
- border-radius: 50%;
193
- cursor: pointer;
194
- left: 10%;
195
- padding: 2em;
196
- position: absolute;
197
- top: 10%;
198
- transform: scale(0.5);
199
- z-index: 2;
200
- }
201
199
 
200
+ #d2l-labs-media-player-video-poster-play-button > d2l-icon {
201
+ color: #ffffff;
202
+ }
202
203
 
203
- #d2l-labs-media-player-video-poster-play-button > d2l-icon {
204
- color: #ffffff;
205
- }
204
+ #d2l-labs-media-player-media-controls {
205
+ bottom: 0;
206
+ position: absolute;
207
+ transition: bottom 500ms ease;
208
+ width: 100%;
209
+ z-index: 2;
210
+ }
206
211
 
207
- #d2l-labs-media-player-media-controls {
208
- bottom: 0;
209
- position: absolute;
210
- transition: bottom 500ms ease;
211
- width: 100%;
212
- z-index: 2;
213
- }
212
+ .d2l-labs-media-player-type-is-audio #d2l-labs-media-player-media-controls {
213
+ background-color: #ffffff;
214
+ }
215
+ .d2l-labs-media-player-type-is-video #d2l-labs-media-player-media-controls {
216
+ background-color: rgba(0, 0, 0, 0.69);
217
+ }
214
218
 
215
- .d2l-labs-media-player-type-is-audio #d2l-labs-media-player-media-controls {
216
- background-color: #ffffff;
217
- }
218
- .d2l-labs-media-player-type-is-video #d2l-labs-media-player-media-controls {
219
- background-color: rgba(0, 0, 0, 0.69);
220
- }
219
+ #d2l-labs-media-player-media-controls.d2l-labs-media-player-hidden {
220
+ bottom: -8rem;
221
+ }
221
222
 
222
- #d2l-labs-media-player-media-controls.d2l-labs-media-player-hidden {
223
- bottom: -8rem;
224
- }
223
+ #d2l-labs-media-player-seek-bar {
224
+ --d2l-knob-focus-color: #ffffff;
225
+ --d2l-knob-focus-size: 4px;
226
+ --d2l-knob-size: 16px;
227
+ --d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
228
+ --d2l-progress-border-radius: 0;
229
+ position: absolute;
230
+ top: -9px;
231
+ width: 100%;
232
+ z-index: 1;
233
+ }
225
234
 
226
- #d2l-labs-media-player-seek-bar {
227
- --d2l-knob-focus-color: #ffffff;
228
- --d2l-knob-focus-size: 4px;
229
- --d2l-knob-size: 16px;
230
- --d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
231
- --d2l-progress-border-radius: 0;
232
- position: absolute;
233
- top: -9px;
234
- width: 100%;
235
- z-index: 1;
236
- }
235
+ #d2l-labs-media-player-seek-bar:focus {
236
+ --d2l-knob-box-shadow: 0 2px 6px 3px rgba(0, 0, 0, 1);
237
+ }
237
238
 
238
- #d2l-labs-media-player-seek-bar:focus {
239
- --d2l-knob-box-shadow: 0 2px 6px 3px rgba(0, 0, 0, 1);
240
- }
239
+ #d2l-labs-media-player-buttons {
240
+ align-items: center;
241
+ direction: ltr;
242
+ display: flex;
243
+ flex-direction: row;
244
+ justify-content: space-between;
245
+ margin-left: 6px;
246
+ }
241
247
 
242
- #d2l-labs-media-player-buttons {
243
- align-items: center;
244
- direction: ltr;
245
- display: flex;
246
- flex-direction: row;
247
- justify-content: space-between;
248
- margin-left: 6px;
249
- }
248
+ [dir="rtl"] #d2l-labs-media-player-buttons {
249
+ margin-left: 0;
250
+ margin-right: 6px;
251
+ }
250
252
 
251
- [dir="rtl"] #d2l-labs-media-player-buttons {
252
- margin-left: 0;
253
- margin-right: 6px;
254
- }
253
+ .d2l-labs-media-player-flex-filler {
254
+ flex: auto;
255
+ }
255
256
 
256
- .d2l-labs-media-player-flex-filler {
257
- flex: auto;
258
- }
257
+ d2l-button-icon {
258
+ --d2l-button-icon-min-height: 1.8rem;
259
+ --d2l-button-icon-min-width: 1.8rem;
260
+ margin: 6px 6px 6px 0;
261
+ }
259
262
 
260
- d2l-button-icon {
261
- --d2l-button-icon-min-height: 1.8rem;
262
- --d2l-button-icon-min-width: 1.8rem;
263
- margin: 6px 6px 6px 0;
264
- }
263
+ #d2l-labs-media-player-time:hover {
264
+ cursor: auto;
265
+ }
265
266
 
266
- #d2l-labs-media-player-time:hover {
267
- cursor: auto;
268
- }
267
+ #d2l-labs-media-player-volume-container {
268
+ position: relative;
269
+ }
269
270
 
270
- #d2l-labs-media-player-volume-container {
271
- position: relative;
272
- }
271
+ #d2l-labs-media-player-volume-level-container {
272
+ bottom: calc(1.8rem + 6px);
273
+ height: 11px;
274
+ left: 0;
275
+ position: absolute;
276
+ width: 1.8rem;
277
+ z-index: 2;
278
+ }
273
279
 
274
- #d2l-labs-media-player-volume-level-container {
275
- bottom: calc(1.8rem + 6px);
276
- height: 11px;
277
- left: 0;
278
- position: absolute;
279
- width: 1.8rem;
280
- z-index: 2;
281
- }
280
+ #d2l-labs-media-player-volume-level-container.d2l-labs-media-player-hidden {
281
+ left: -10000px;
282
+ }
282
283
 
283
- #d2l-labs-media-player-volume-level-container.d2l-labs-media-player-hidden {
284
- left: -10000px;
285
- }
284
+ #d2l-labs-media-player-volume-level-background {
285
+ align-items: center;
286
+ background-color: rgba(0, 0, 0, 0.69);
287
+ border-radius: 0 0.3rem 0.3rem 0;
288
+ bottom: 4.55rem;
289
+ display: flex;
290
+ height: 1.8rem;
291
+ justify-content: center;
292
+ left: -2.7rem;
293
+ padding: 0 0.625rem;
294
+ position: relative;
295
+ width: 6rem;
296
+ }
286
297
 
287
- #d2l-labs-media-player-volume-level-background {
288
- align-items: center;
289
- background-color: rgba(0, 0, 0, 0.69);
290
- border-radius: 0 0.3rem 0.3rem 0;
291
- bottom: 4.55rem;
292
- display: flex;
293
- height: 1.8rem;
294
- justify-content: center;
295
- left: -2.7rem;
296
- padding: 0 0.625rem;
297
- position: relative;
298
- width: 6rem;
299
- }
298
+ #d2l-labs-media-player-volume-slider-container {
299
+ height: 100%;
300
+ width: 100%;
301
+ }
300
302
 
301
- #d2l-labs-media-player-volume-slider-container {
302
- height: 100%;
303
- width: 100%;
304
- }
303
+ #d2l-labs-media-player-volume-slider {
304
+ --d2l-knob-focus-color: #ffffff;
305
+ --d2l-knob-focus-size: 0.25rem;
306
+ --d2l-knob-size: 0.8rem;
307
+ --d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
308
+ position: relative;
309
+ top: calc(0.5rem + 1px);
310
+ }
305
311
 
306
- #d2l-labs-media-player-volume-slider {
307
- --d2l-knob-focus-color: #ffffff;
308
- --d2l-knob-focus-size: 0.25rem;
309
- --d2l-knob-size: 0.8rem;
310
- --d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
311
- position: relative;
312
- top: calc(0.5rem + 1px);
313
- }
312
+ .d2l-labs-media-player-rotated {
313
+ transform: rotate(-90deg);
314
+ }
314
315
 
315
- .d2l-labs-media-player-rotated {
316
- transform: rotate(-90deg);
317
- }
316
+ #d2l-labs-media-player-audio-bars-container {
317
+ align-items: center;
318
+ display: flex;
319
+ flex-wrap: nowrap;
320
+ height: 8.5rem;
321
+ justify-content: center;
322
+ left: calc(2.1rem + 6px);
323
+ position: absolute;
324
+ top: calc(50% - 5.125rem);
325
+ width: calc(100% - 4.2rem - 12px);
326
+ }
318
327
 
319
- #d2l-labs-media-player-audio-bars-container {
328
+ d2l-labs-media-player-audio-bars {
329
+ height: 2rem;
330
+ }
331
+
332
+ #d2l-labs-media-player-track-container {
333
+ align-items: center;
334
+ color: #ffffff;
335
+ display: flex;
336
+ justify-content: center;
337
+ overflow: hidden;
338
+ position: absolute;
339
+ text-align: center;
340
+ transition: bottom 500ms ease;
341
+ width: 100%;
342
+ }
343
+
344
+ @media screen and (min-width: 768px) {
345
+ #d2l-labs-media-player-track-container > div {
320
346
  align-items: center;
321
347
  display: flex;
322
- flex-wrap: nowrap;
323
- height: 8.5rem;
324
348
  justify-content: center;
325
- left: calc(2.1rem + 6px);
326
- position: absolute;
327
- top: calc(50% - 5.125rem);
328
- width: calc(100% - 4.2rem - 12px);
329
- }
330
-
331
- d2l-labs-media-player-audio-bars {
332
- height: 2rem;
349
+ min-width: ${MIN_TRACK_WIDTH_PX}px;
350
+ width: 50%;
333
351
  }
352
+ }
334
353
 
335
- #d2l-labs-media-player-track-container {
354
+ @media screen and (max-width: 767px) {
355
+ #d2l-labs-media-player-track-container > div {
336
356
  align-items: center;
337
- color: #ffffff;
338
357
  display: flex;
339
358
  justify-content: center;
340
- overflow: hidden;
341
- position: absolute;
342
- text-align: center;
343
- transition: bottom 500ms ease;
344
359
  width: 100%;
345
360
  }
361
+ }
346
362
 
347
- @media screen and (min-width: 768px) {
348
- #d2l-labs-media-player-track-container > div {
349
- align-items: center;
350
- display: flex;
351
- justify-content: center;
352
- min-width: ${MIN_TRACK_WIDTH_PX}px;
353
- width: 50%;
354
- }
355
- }
356
-
357
- @media screen and (max-width: 767px) {
358
- #d2l-labs-media-player-track-container > div {
359
- align-items: center;
360
- display: flex;
361
- justify-content: center;
362
- width: 100%;
363
- }
364
- }
365
-
366
- #d2l-labs-media-player-track-container > div > span {
367
- background-color: rgba(0, 0, 0, 0.69);
368
- box-shadow: 0.3rem 0 0 rgba(0, 0, 0, 0.69), -0.3rem 0 0 rgba(0, 0, 0, 0.69);
369
- color: white;
370
- line-height: 1.35rem;
371
- white-space: pre-wrap;
372
- }
363
+ #d2l-labs-media-player-track-container > div > span {
364
+ background-color: rgba(0, 0, 0, 0.69);
365
+ box-shadow: 0.3rem 0 0 rgba(0, 0, 0, 0.69), -0.3rem 0 0 rgba(0, 0, 0, 0.69);
366
+ color: white;
367
+ line-height: 1.35rem;
368
+ white-space: pre-wrap;
369
+ }
373
370
 
374
- #d2l-labs-media-player-audio-play-button-container {
375
- background-color: white;
376
- position: absolute;
377
- }
371
+ #d2l-labs-media-player-audio-play-button-container {
372
+ background-color: white;
373
+ position: absolute;
374
+ }
378
375
 
379
- #d2l-labs-media-player-audio-play-button {
380
- background-color: transparent;
381
- border: none;
382
- border-radius: 12px;
383
- margin: 2px;
384
- padding: 2px;
385
- }
376
+ #d2l-labs-media-player-audio-play-button {
377
+ background-color: transparent;
378
+ border: none;
379
+ border-radius: 12px;
380
+ margin: 2px;
381
+ padding: 2px;
382
+ }
386
383
 
387
- #d2l-labs-media-player-audio-play-button:focus {
388
- outline: none;
389
- }
384
+ #d2l-labs-media-player-audio-play-button:focus {
385
+ outline: none;
386
+ }
390
387
 
391
- #d2l-labs-media-player-audio-play-button:hover {
392
- background: var(--d2l-color-mica);
393
- background-clip: content-box;
394
- cursor: pointer;
395
- }
388
+ #d2l-labs-media-player-audio-play-button:hover {
389
+ background: var(--d2l-color-mica);
390
+ background-clip: content-box;
391
+ cursor: pointer;
392
+ }
396
393
 
397
- #d2l-labs-media-player-audio-play-button:${unsafeCSS(getFocusPseudoClass())} {
398
- border: 2px solid var(--d2l-color-celestine);
399
- }
394
+ #d2l-labs-media-player-audio-play-button:${unsafeCSS(getFocusPseudoClass())} {
395
+ border: 2px solid var(--d2l-color-celestine);
396
+ }
400
397
 
401
- #d2l-labs-media-player-audio-play-button > d2l-icon {
402
- height: 2.75rem;
403
- width: 2.75rem;
404
- }
398
+ #d2l-labs-media-player-audio-play-button > d2l-icon {
399
+ height: 2.75rem;
400
+ width: 2.75rem;
401
+ }
405
402
 
406
- .d2l-labs-media-player-chapter-marker, .d2l-labs-media-player-chapter-marker-highlight {
407
- cursor: pointer;
408
- height: 6px;
409
- pointer-events: none;
410
- position: absolute;
411
- top: 4px;
412
- width: 3px;
413
- z-index: 2;
414
- }
403
+ .d2l-labs-media-player-chapter-marker, .d2l-labs-media-player-chapter-marker-highlight {
404
+ cursor: pointer;
405
+ height: 6px;
406
+ pointer-events: none;
407
+ position: absolute;
408
+ top: 4px;
409
+ width: 3px;
410
+ z-index: 2;
411
+ }
415
412
 
416
- .d2l-labs-media-player-chapter-marker {
417
- background-color: var(--d2l-color-ferrite);
418
- }
413
+ .d2l-labs-media-player-chapter-marker {
414
+ background-color: var(--d2l-color-ferrite);
415
+ }
419
416
 
420
- .d2l-labs-media-player-chapter-marker-highlight {
421
- background-color: var(--d2l-color-celestine-minus-1);
422
- }
417
+ .d2l-labs-media-player-chapter-marker-highlight {
418
+ background-color: var(--d2l-color-celestine-minus-1);
419
+ }
423
420
 
424
- .d2l-labs-media-player-chapter-marker[theme="dark"] {
425
- background-color: white;
426
- }
421
+ .d2l-labs-media-player-chapter-marker[theme="dark"] {
422
+ background-color: white;
423
+ }
427
424
 
428
- #d2l-labs-media-player-search-container {
429
- align-items: center;
430
- display: flex;
431
- }
432
- #d2l-labs-media-player-search-container.d2l-labs-media-player-search-container-hidden {
433
- display: none;
434
- }
425
+ #d2l-labs-media-player-search-container {
426
+ align-items: center;
427
+ display: flex;
428
+ }
429
+ #d2l-labs-media-player-search-container.d2l-labs-media-player-search-container-hidden {
430
+ display: none;
431
+ }
435
432
 
436
- #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input {
437
- border-color: rgba(48, 52, 54, 0.1);
438
- border-radius: 20px;
439
- color: var(--d2l-color-ferrite);
440
- font-size: 1rem;
441
- opacity: 0;
442
- outline: 0;
443
- padding: 0;
444
- position: relative;
445
- transition: width 0.4s, opacity 0.4s, visibility 0s;
446
- visibility: hidden;
447
- width: 0;
448
- }
433
+ #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input {
434
+ border-color: rgba(48, 52, 54, 0.1);
435
+ border-radius: 20px;
436
+ color: var(--d2l-color-ferrite);
437
+ font-size: 1rem;
438
+ opacity: 0;
439
+ outline: 0;
440
+ padding: 0;
441
+ position: relative;
442
+ transition: width 0.4s, opacity 0.4s, visibility 0s;
443
+ visibility: hidden;
444
+ width: 0;
445
+ }
449
446
 
450
- #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input[theme="dark"] {
451
- background-color: rgba(24, 26, 27, 0.15);
452
- color: rgb(206, 216, 225);
453
- }
447
+ #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input[theme="dark"] {
448
+ background-color: rgba(24, 26, 27, 0.15);
449
+ color: rgb(206, 216, 225);
450
+ }
454
451
 
455
- #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input:focus,
456
- #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input:active {
457
- box-shadow: rgb(24 26 27) 0 0 1px;
458
- outline-color: initial;
459
- }
452
+ #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input:focus,
453
+ #d2l-labs-media-player-search-container #d2l-labs-media-player-search-input:active {
454
+ box-shadow: rgb(24 26 27) 0 0 1px;
455
+ outline-color: initial;
456
+ }
460
457
 
461
- #d2l-labs-media-player-search-container:hover #d2l-labs-media-player-search-input,
462
- #d2l-labs-media-player-search-container.d2l-labs-media-player-search-container-hover #d2l-labs-media-player-search-input {
463
- height: 1.2rem;
464
- opacity: 1;
465
- padding: 0 0.35rem;
466
- visibility: visible;
467
- width: 6rem;
468
- }
458
+ #d2l-labs-media-player-search-container:hover #d2l-labs-media-player-search-input,
459
+ #d2l-labs-media-player-search-container.d2l-labs-media-player-search-container-hover #d2l-labs-media-player-search-input {
460
+ height: 1.2rem;
461
+ opacity: 1;
462
+ padding: 0 0.35rem;
463
+ visibility: visible;
464
+ width: 6rem;
465
+ }
469
466
 
470
- #d2l-labs-media-player-timeline-markers-container {
471
- position: absolute;
472
- top: -9px;
473
- transition: all 0.2s;
474
- width: 100%;
475
- }
467
+ #d2l-labs-media-player-timeline-markers-container {
468
+ position: absolute;
469
+ top: -9px;
470
+ transition: all 0.2s;
471
+ width: 100%;
472
+ }
476
473
 
477
- #d2l-labs-media-player-thumbnails-preview-container {
478
- bottom: 60px;
479
- position: absolute;
480
- transform: translateX(-50%);
481
- z-index: 2;
482
- }
474
+ #d2l-labs-media-player-thumbnails-preview-container {
475
+ bottom: 60px;
476
+ position: absolute;
477
+ transform: translateX(-50%);
478
+ z-index: 2;
479
+ }
483
480
 
484
- #d2l-labs-media-player-thumbnails-preview-chapter {
485
- background: #00000072;
486
- position: absolute;
487
- text-align: center;
488
- text-shadow: 0 0 5px rgb(0 0 0 / 75%);
489
- width: 100%;
490
- z-index: 2;
491
- }
481
+ #d2l-labs-media-player-thumbnails-preview-chapter {
482
+ background: #00000072;
483
+ position: absolute;
484
+ text-align: center;
485
+ text-shadow: 0 0 5px rgb(0 0 0 / 75%);
486
+ width: 100%;
487
+ z-index: 2;
488
+ }
492
489
 
493
- #d2l-labs-media-player-thumbnails-preview-time {
494
- background: #00000042;
495
- bottom: 3px;
496
- font-size: 14px;
497
- left: 0;
498
- position: absolute;
499
- text-align: center;
500
- text-shadow: 0 0 4px rgb(0 0 0 / 75%);
501
- width: 100%;
502
- z-index: 2;
503
- }
490
+ #d2l-labs-media-player-thumbnails-preview-time {
491
+ background: #00000042;
492
+ bottom: 3px;
493
+ font-size: 14px;
494
+ left: 0;
495
+ position: absolute;
496
+ text-align: center;
497
+ text-shadow: 0 0 4px rgb(0 0 0 / 75%);
498
+ width: 100%;
499
+ z-index: 2;
500
+ }
504
501
 
505
- #d2l-labs-media-player-thumbnails-preview-image {
506
- background-repeat: no-repeat;
507
- position: relative;
508
- width: 100%;
509
- z-index: 2;
510
- }
502
+ #d2l-labs-media-player-thumbnails-preview-image {
503
+ background-repeat: no-repeat;
504
+ position: relative;
505
+ width: 100%;
506
+ z-index: 2;
507
+ }
511
508
 
512
- .d2l-labs-media-player-search-marker {
513
- color: var(--d2l-color-ferrite);
514
- cursor: pointer;
515
- height: 6px;
516
- pointer-events: none;
517
- position: absolute;
518
- top: 4px;
519
- width: 6px;
520
- z-index: 2;
521
- }
509
+ .d2l-labs-media-player-search-marker {
510
+ color: var(--d2l-color-ferrite);
511
+ cursor: pointer;
512
+ height: 6px;
513
+ pointer-events: none;
514
+ position: absolute;
515
+ top: 4px;
516
+ width: 6px;
517
+ z-index: 2;
518
+ }
522
519
 
523
- .d2l-labs-media-player-search-marker[theme="dark"] {
524
- color: white;
525
- }
520
+ .d2l-labs-media-player-search-marker[theme="dark"] {
521
+ color: white;
522
+ }
526
523
 
527
- .d2l-labs-media-player-full-area-centered {
528
- align-items: center;
529
- display: flex;
530
- height: 100%;
531
- justify-content: center;
532
- left: 0;
533
- position: absolute;
534
- top: 0;
535
- width: 100%;
536
- z-index: 2;
537
- }
524
+ .d2l-labs-media-player-full-area-centered {
525
+ align-items: center;
526
+ display: flex;
527
+ height: 100%;
528
+ justify-content: center;
529
+ left: 0;
530
+ position: absolute;
531
+ top: 0;
532
+ width: 100%;
533
+ z-index: 2;
534
+ }
538
535
 
539
- #d2l-labs-media-player-alert-inner {
540
- display: flex;
541
- flex-direction: row;
542
- justify-content: flex-start;
543
- }
536
+ #d2l-labs-media-player-alert-inner {
537
+ display: flex;
538
+ flex-direction: row;
539
+ justify-content: flex-start;
540
+ }
544
541
 
545
- #d2l-labs-media-player-alert-inner > svg {
546
- flex-shrink: 0;
547
- margin-right: 0.5rem;
548
- }
542
+ #d2l-labs-media-player-alert-inner > svg {
543
+ flex-shrink: 0;
544
+ margin-right: 0.5rem;
545
+ }
549
546
 
550
- #d2l-labs-media-player-alert-inner > span {
551
- font-size: 1rem;
552
- line-height: 2.1rem;
553
- }
547
+ #d2l-labs-media-player-alert-inner > span {
548
+ font-size: 1rem;
549
+ line-height: 2.1rem;
550
+ }
554
551
 
555
- .transcript-cue-container {
556
- padding-left: 10px;
557
- }
558
- .video-transcript-cue {
559
- padding-left: 5px;
560
- }
561
- .audio-transcript-cue {
562
- padding-left: 5px;
563
- }
564
- .video-transcript-cue[active] {
565
- background-color: gray;
566
- box-shadow: -5px 0 0 white;
567
- }
568
- .audio-transcript-cue[active] {
569
- background-color: lightgray;
570
- box-shadow: -5px 0 0 black;
571
- }
572
- #video-transcript-viewer {
573
- bottom: 55px;
574
- color: white;
575
- overflow-anchor: none;
576
- overflow-y: auto;
577
- position: absolute;
578
- right: 0;
579
- top: 50px;
580
- width: 65%;
581
- z-index: 1;
582
- }
583
- #audio-transcript-viewer {
584
- bottom: 60px;
585
- color: black;
586
- overflow-anchor: none;
587
- overflow-y: auto;
588
- position: absolute;
589
- right: 0;
590
- top: 45px;
591
- width: 100%;
592
- z-index: 1;
593
- }
594
- #close-transcript {
595
- position: absolute;
596
- right: 7px;
597
- top: 0;
598
- z-index: 1;
599
- }
600
- #video-transcript-download-button {
601
- left: 35%;
602
- position: absolute;
603
- top: 5px;
604
- z-index: 2;
605
- }
606
- #audio-transcript-download-button {
607
- left: 10px;
608
- position: absolute;
609
- top: 0;
610
- z-index: 2;
611
- }
612
- #audio-transcript-download-menu {
613
- left: 35px;
614
- }
615
- #video-close-transcript-icon {
616
- color: white;
617
- }
618
- #audio-close-transcript-icon {
619
- color: black;
620
- }
621
- ` ];
622
- }
552
+ .transcript-cue-container {
553
+ padding-left: 10px;
554
+ }
555
+ .video-transcript-cue {
556
+ padding-left: 5px;
557
+ }
558
+ .audio-transcript-cue {
559
+ padding-left: 5px;
560
+ }
561
+ .video-transcript-cue[active] {
562
+ background-color: gray;
563
+ box-shadow: -5px 0 0 white;
564
+ }
565
+ .audio-transcript-cue[active] {
566
+ background-color: lightgray;
567
+ box-shadow: -5px 0 0 black;
568
+ }
569
+ #video-transcript-viewer {
570
+ bottom: 55px;
571
+ color: white;
572
+ overflow-anchor: none;
573
+ overflow-y: auto;
574
+ position: absolute;
575
+ right: 0;
576
+ top: 50px;
577
+ width: 65%;
578
+ z-index: 1;
579
+ }
580
+ #audio-transcript-viewer {
581
+ bottom: 60px;
582
+ color: black;
583
+ overflow-anchor: none;
584
+ overflow-y: auto;
585
+ position: absolute;
586
+ right: 0;
587
+ top: 45px;
588
+ width: 100%;
589
+ z-index: 1;
590
+ }
591
+ #close-transcript {
592
+ position: absolute;
593
+ right: 7px;
594
+ top: 0;
595
+ z-index: 1;
596
+ }
597
+ #video-transcript-download-button {
598
+ left: 35%;
599
+ position: absolute;
600
+ top: 5px;
601
+ z-index: 2;
602
+ }
603
+ #audio-transcript-download-button {
604
+ left: 10px;
605
+ position: absolute;
606
+ top: 0;
607
+ z-index: 2;
608
+ }
609
+ #audio-transcript-download-menu {
610
+ left: 35px;
611
+ }
612
+ #video-close-transcript-icon {
613
+ color: white;
614
+ }
615
+ #audio-close-transcript-icon {
616
+ color: black;
617
+ }
618
+ `];
623
619
 
624
620
  constructor() {
625
621
  super();