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) 2015 Google Inc. | 3 * Copyright (C) 2015 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: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif ; | |
philipj_slow
2016/03/01 13:01:15
While you're moving this, drop the extra space bef
srivats
2016/03/30 00:46:42
Done.
| |
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 height: 48px; | 54 height: 48px; |
54 flex-shrink: 0; | 55 flex-shrink: 0; |
55 bottom: 0; | 56 bottom: 0; |
56 text-indent: 0; | 57 text-indent: 0; |
(...skipping 16 matching lines...) Expand all Loading... | |
73 z-index: 0; | 74 z-index: 0; |
74 overflow: hidden; | 75 overflow: hidden; |
75 text-align: right; | 76 text-align: right; |
76 bottom: auto; | 77 bottom: auto; |
77 height: 48px; | 78 height: 48px; |
78 min-width: 48px; | 79 min-width: 48px; |
79 background-color: #fafafa; | 80 background-color: #fafafa; |
80 /* The duration is also specified in MediaControlElements.cpp and LayoutTest s/media/media-controls.js */ | 81 /* The duration is also specified in MediaControlElements.cpp and LayoutTest s/media/media-controls.js */ |
81 transition: opacity 0.3s; | 82 transition: opacity 0.3s; |
82 | 83 |
83 font-family: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif ; | |
84 font-size: 14px; | 84 font-size: 14px; |
85 font-weight: normal; /* Make sure that we don't inherit non-defaults. */ | 85 font-weight: normal; /* Make sure that we don't inherit non-defaults. */ |
86 font-style: normal; | 86 font-style: normal; |
87 } | 87 } |
88 | 88 |
89 video:-webkit-full-page-media { | 89 video:-webkit-full-page-media { |
90 margin: auto; | 90 margin: auto; |
91 position: absolute; | 91 position: absolute; |
92 top: 0; | 92 top: 0; |
93 right: 0; | 93 right: 0; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 } | 361 } |
362 | 362 |
363 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button { | 363 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button { |
364 display: none; | 364 display: none; |
365 } | 365 } |
366 | 366 |
367 audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media -controls-fullscreen-volume-max-button { | 367 audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media -controls-fullscreen-volume-max-button { |
368 display: none; | 368 display: none; |
369 } | 369 } |
370 | 370 |
371 video::-internal-media-controls-text-track-list { | |
372 position: absolute; | |
philipj_slow
2016/03/01 13:01:15
https://bugs.chromium.org/p/chromium/issues/detail
srivats
2016/03/30 00:46:42
Didn't get a chance to look at this.
| |
373 bottom: 48px; | |
374 right: 5px; | |
375 background-color: #fafafa; | |
376 max-width: 50%; | |
philipj_slow
2016/03/01 13:01:16
This doesn't seem to be achieving the intended eff
srivats
2016/03/30 00:46:42
I am retaining the max-width attribute and I chang
| |
377 max-height: 250px; | |
378 width: 150px; | |
379 overflow-x: hidden; | |
380 overflow-y: auto; | |
381 text-overflow: ellipsis; | |
philipj_slow
2016/03/01 13:01:15
Oh look, you're already using text-overflow:ellips
srivats
2016/03/30 00:46:42
Moved it to item and no it still doesn't do ellips
| |
382 margin-bottom: 5px; | |
383 white-space: nowrap; | |
384 font-size: 14px; | |
385 padding: 8px 0px; | |
386 } | |
387 | |
388 video::-internal-media-controls-text-track-list-item { | |
389 display: block; | |
390 color: #424242; | |
391 text-align: start; | |
392 line-height: 40px; | |
393 padding-right: 16px; | |
394 } | |
395 | |
396 video::-internal-media-controls-text-track-list-item:hover { | |
397 background-color: #e0e0e0; | |
398 } | |
399 | |
400 video::-internal-media-controls-text-track-list-item-input { | |
401 -webkit-appearance: -internal-media-track-selection-checkmark; | |
402 position: relative; | |
403 visibility: hidden; | |
404 top: -2px; | |
philipj_slow
2016/03/01 13:01:15
Discussed first in https://codereview.chromium.org
srivats
2016/03/30 00:46:42
Removed
| |
405 left: 0; | |
406 vertical-align: middle; | |
407 margin: 0 5px 0 0; | |
408 width: 16px; | |
409 height: 16px; | |
410 margin-left: 12px; | |
411 } | |
412 | |
413 video::-internal-media-controls-text-track-list-item-input:checked { | |
414 visibility: visible; | |
415 } | |
416 | |
417 video::-internal-media-controls-text-track-list-kind-captions { | |
418 -webkit-appearance: -internal-media-closed-captions-icon; | |
419 height: 20px; | |
420 width: 20px; | |
421 margin-left: 10px; | |
422 vertical-align: middle; | |
423 } | |
424 | |
425 video::-internal-media-controls-text-track-list-kind-subtitles { | |
426 -webkit-appearance: -internal-media-subtitles-icon; | |
427 height: 20px; | |
428 width: 20px; | |
429 margin-left: 10px; | |
430 vertical-align: middle; | |
431 } | |
432 | |
371 video::-webkit-media-text-track-container { | 433 video::-webkit-media-text-track-container { |
372 position: relative; | 434 position: relative; |
373 width: inherit; | 435 width: inherit; |
374 height: inherit; | 436 height: inherit; |
375 overflow: hidden; | 437 overflow: hidden; |
376 | 438 |
377 font: 22px sans-serif; | 439 font: 22px sans-serif; |
378 text-align: center; | 440 text-align: center; |
379 color: rgba(255, 255, 255, 1); | 441 color: rgba(255, 255, 255, 1); |
380 | 442 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
435 font-weight: bold; | 497 font-weight: bold; |
436 } | 498 } |
437 | 499 |
438 video::cue(u) { | 500 video::cue(u) { |
439 text-decoration: underline; | 501 text-decoration: underline; |
440 } | 502 } |
441 | 503 |
442 video::cue(i) { | 504 video::cue(i) { |
443 font-style: italic; | 505 font-style: italic; |
444 } | 506 } |
OLD | NEW |