|
31 | 31 | height: 100%;
|
32 | 32 | }
|
33 | 33 |
|
| 34 | +@media (forced-colors: active) { |
| 35 | + .VideoPlayer__container { |
| 36 | + border: var(--brand-borderWidth-thin) solid ButtonBorder; |
| 37 | + } |
| 38 | +} |
| 39 | + |
34 | 40 | /* ---------------------------------------------------------- */
|
35 | 41 | /* 2. Player */
|
36 | 42 | /* ---------------------------------------------------------- */
|
|
87 | 93 | color: var(--brand-videoPlayer-playButton-fgColor-rest);
|
88 | 94 | }
|
89 | 95 |
|
| 96 | +@media (forced-colors: active) { |
| 97 | + .VideoPlayer__playButton { |
| 98 | + color: Highlight; |
| 99 | + opacity: 1; |
| 100 | + } |
| 101 | +} |
| 102 | + |
90 | 103 | /* ---------------------------------------------------------- */
|
91 | 104 | /* 4. Title */
|
92 | 105 | /* ---------------------------------------------------------- */
|
|
114 | 127 | visibility: hidden;
|
115 | 128 | }
|
116 | 129 |
|
| 130 | +@media (forced-colors: active) { |
| 131 | + .VideoPlayer__title { |
| 132 | + background: Canvas; |
| 133 | + color: CanvasText; |
| 134 | + } |
| 135 | +} |
| 136 | + |
117 | 137 | /* ---------------------------------------------------------- */
|
118 | 138 | /* 5. Controls */
|
119 | 139 | /* ---------------------------------------------------------- */
|
|
173 | 193 | }
|
174 | 194 |
|
175 | 195 | .VideoPlayer__iconControl:focus-visible {
|
176 |
| - border-color: var(--brand-color-focus); |
177 |
| - outline: none; |
178 |
| - box-shadow: 0 0 0 0.125rem var(--brand-color-focus); |
| 196 | + outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus); |
| 197 | + outline-offset: var(--base-size-6); |
179 | 198 | opacity: 1;
|
180 | 199 | }
|
181 | 200 |
|
| 201 | +.VideoPlayer__iconControl:not(.VideoPlayer__closedCaption):focus-visible { |
| 202 | + border-radius: var(--brand-borderRadius-small); |
| 203 | +} |
| 204 | + |
182 | 205 | .VideoPlayer__iconControl svg {
|
183 | 206 | color: var(--brand-videoPlayer-controls-fgColor);
|
184 | 207 | }
|
|
224 | 247 | color: var(--brand-videoPlayer-closedCaption-fgColor-disabled);
|
225 | 248 | }
|
226 | 249 |
|
| 250 | +@media (forced-colors: active) { |
| 251 | + .VideoPlayer__iconControl svg { |
| 252 | + color: ButtonText; |
| 253 | + } |
| 254 | + |
| 255 | + .VideoPlayer__iconControl:focus-visible { |
| 256 | + outline-color: Highlight; |
| 257 | + } |
| 258 | + |
| 259 | + .VideoPlayer__closedCaption:focus-visible { |
| 260 | + outline: none; |
| 261 | + } |
| 262 | + |
| 263 | + .VideoPlayer__closedCaption:not(.VideoPlayer__ccOff) { |
| 264 | + background: Highlight; |
| 265 | + border-color: Highlight; |
| 266 | + } |
| 267 | + |
| 268 | + .VideoPlayer__closedCaption:not(.VideoPlayer__ccOff) .VideoPlayer__ccText { |
| 269 | + background-color: Highlight; |
| 270 | + color: HighlightText; |
| 271 | + } |
| 272 | +} |
| 273 | + |
227 | 274 | /* ---------------------------------------------------------- */
|
228 | 275 | /* 6. Range Element */
|
229 | 276 | /* ---------------------------------------------------------- */
|
|
254 | 301 |
|
255 | 302 | .VideoPlayer__rangeInput:focus-visible {
|
256 | 303 | outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
|
257 |
| - outline-offset: var(--base-size-4); |
| 304 | + outline-offset: var(--base-size-8); |
| 305 | + border-radius: var(--brand-borderRadius-small); |
258 | 306 | opacity: 1;
|
259 | 307 | }
|
260 | 308 |
|
|
303 | 351 | border: none;
|
304 | 352 | }
|
305 | 353 |
|
| 354 | +@media (forced-colors: active) { |
| 355 | + .VideoPlayer__rangeProgress::-webkit-progress-bar { |
| 356 | + background-color: FieldText; |
| 357 | + } |
| 358 | + |
| 359 | + .VideoPlayer__rangeProgress::-webkit-progress-value { |
| 360 | + background-color: Highlight; |
| 361 | + } |
| 362 | + |
| 363 | + .VideoPlayer__rangeProgress::-moz-progress-bar { |
| 364 | + background: Highlight; |
| 365 | + } |
| 366 | + |
| 367 | + .VideoPlayer__rangeProgress::-ms-fill-lower { |
| 368 | + background-color: Highlight; |
| 369 | + } |
| 370 | + |
| 371 | + .VideoPlayer__rangeProgress::-ms-fill-upper { |
| 372 | + background-color: FieldText; |
| 373 | + } |
| 374 | +} |
| 375 | + |
306 | 376 | /* ---------------------------------------------------------- */
|
307 | 377 | /* 7. Tooltip */
|
308 | 378 | /* ---------------------------------------------------------- */
|
|
0 commit comments