OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. | 3 * Copyright (C) 2009 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 26 matching lines...) Expand all Loading... | |
37 } | 37 } |
38 | 38 |
39 audio::-webkit-media-controls, | 39 audio::-webkit-media-controls, |
40 video::-webkit-media-controls { | 40 video::-webkit-media-controls { |
41 width: inherit; | 41 width: inherit; |
42 height: inherit; | 42 height: inherit; |
43 position: relative; | 43 position: relative; |
44 direction: ltr; | 44 direction: ltr; |
45 display: flex; | 45 display: flex; |
46 flex-direction: column; | 46 flex-direction: column; |
47 font-family: Arial, Helvetica, sans-serif; | |
47 justify-content: flex-end; | 48 justify-content: flex-end; |
48 align-items: center; | 49 align-items: center; |
49 } | 50 } |
50 | 51 |
51 audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure { | 52 audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure { |
52 width: 100%; | 53 width: 100%; |
53 max-width: 800px; | 54 max-width: 800px; |
54 height: 30px; | 55 height: 30px; |
55 flex-shrink: 0; | 56 flex-shrink: 0; |
56 bottom: 0; | 57 bottom: 0; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
206 flex: none; | 207 flex: none; |
207 display: flex; | 208 display: flex; |
208 border: none; | 209 border: none; |
209 cursor: default; | 210 cursor: default; |
210 | 211 |
211 height: 30px; | 212 height: 30px; |
212 margin: 0 9px 0 0; | 213 margin: 0 9px 0 0; |
213 padding: 0; | 214 padding: 0; |
214 | 215 |
215 line-height: 30px; | 216 line-height: 30px; |
216 font-family: Arial, Helvetica, sans-serif; | |
217 font-size: 13px; | 217 font-size: 13px; |
218 font-weight: bold; | 218 font-weight: bold; |
219 font-style: normal; | 219 font-style: normal; |
220 color: white; | 220 color: white; |
221 | 221 |
222 letter-spacing: normal; | 222 letter-spacing: normal; |
223 word-spacing: normal; | 223 word-spacing: normal; |
224 text-transform: none; | 224 text-transform: none; |
225 text-indent: 0; | 225 text-indent: 0; |
226 text-shadow: none; | 226 text-shadow: none; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
340 } | 340 } |
341 | 341 |
342 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button { | 342 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button { |
343 display: none; | 343 display: none; |
344 } | 344 } |
345 | 345 |
346 audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media -controls-fullscreen-volume-max-button { | 346 audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media -controls-fullscreen-volume-max-button { |
347 display: none; | 347 display: none; |
348 } | 348 } |
349 | 349 |
350 video::-webkit-scrollbar { | |
philipj_slow
2016/03/01 13:01:15
It's a bit weird that this pseudo-element is on th
srivats
2016/03/30 00:46:42
Unfortunately not. I tried doing that before havin
| |
351 width: 12px; | |
352 } | |
353 | |
354 video::-webkit-scrollbar-track { | |
355 box-shadow: inset 0 0 6px rgba(20, 20, 20, 0.3); | |
356 border-radius: 10px; | |
357 } | |
358 | |
359 video::-webkit-scrollbar-thumb { | |
360 border-radius: 10px; | |
361 background-color: rgba(80, 80, 80, 0.8); | |
362 box-shadow: inset 0 0 6px rgba(20, 20, 20, 0.5); | |
363 } | |
364 | |
365 video::-internal-media-controls-text-track-list { | |
366 position: absolute; | |
367 bottom: 35px; | |
368 right: 5px; | |
369 background: rgba(20, 20, 20, 0.8); | |
370 max-width: 50%; | |
371 max-height: 250px; | |
372 border-radius: 5px; | |
373 overflow-x: hidden; | |
374 overflow-y: auto; | |
375 text-overflow: ellipsis; | |
376 margin-bottom: 5px; | |
377 white-space: nowrap; | |
378 padding: 10px; | |
379 font-weight: bold; | |
380 font-size: 13px; | |
381 } | |
382 | |
383 video::-internal-media-controls-text-track-list-item { | |
384 display: block; | |
385 color: white; | |
386 padding: 4px 30px 4px 10px; | |
387 border-bottom: 1px solid #555; | |
388 text-align: start; | |
389 line-height: 25px; | |
390 } | |
391 | |
392 video::-internal-media-controls-text-track-list-item:hover { | |
393 background-color: rgba(105, 105, 105, 0.8); | |
394 } | |
395 | |
396 video::-internal-media-controls-text-track-list-item-input { | |
397 -webkit-appearance: -internal-media-track-selection-checkmark; | |
398 position: relative; | |
399 visibility: hidden; | |
400 top: -2px; | |
401 left: 0; | |
402 vertical-align: middle; | |
403 margin: 0 5px 0 0; | |
404 width: 25px; | |
405 height: 25px; | |
406 } | |
407 | |
408 video::-internal-media-controls-text-track-list-item-input:checked { | |
409 visibility: visible; | |
410 } | |
411 | |
412 video::-internal-media-controls-text-track-list-kind-captions { | |
413 -webkit-appearance: -internal-media-closed-captions-icon; | |
414 height: 24px; | |
415 width: 24px; | |
416 margin-left: 10px; | |
417 vertical-align: middle; | |
418 } | |
419 | |
420 video::-internal-media-controls-text-track-list-kind-subtitles { | |
421 -webkit-appearance: -internal-media-subtitles-icon; | |
422 height: 20px; | |
423 width: 20px; | |
424 margin-left: 10px; | |
425 vertical-align: middle; | |
426 } | |
427 | |
350 video::-webkit-media-text-track-container { | 428 video::-webkit-media-text-track-container { |
351 position: relative; | 429 position: relative; |
352 width: inherit; | 430 width: inherit; |
353 height: inherit; | 431 height: inherit; |
354 overflow: hidden; | 432 overflow: hidden; |
355 | 433 |
356 font: 22px sans-serif; | 434 font: 22px sans-serif; |
357 text-align: center; | 435 text-align: center; |
358 color: rgba(255, 255, 255, 1); | 436 color: rgba(255, 255, 255, 1); |
359 | 437 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
414 font-weight: bold; | 492 font-weight: bold; |
415 } | 493 } |
416 | 494 |
417 video::cue(u) { | 495 video::cue(u) { |
418 text-decoration: underline; | 496 text-decoration: underline; |
419 } | 497 } |
420 | 498 |
421 video::cue(i) { | 499 video::cue(i) { |
422 font-style: italic; | 500 font-style: italic; |
423 } | 501 } |
OLD | NEW |