Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: Source/core/css/mediaControls.css

Issue 1082533002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments from fs Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 width: 30px; 323 width: 30px;
324 height: 30px; 324 height: 30px;
325 line-height: 30px; 325 line-height: 30px;
326 margin-left: -5px; 326 margin-left: -5px;
327 margin-right: 9px; 327 margin-right: 9px;
328 padding: 0; 328 padding: 0;
329 background-color: initial; 329 background-color: initial;
330 color: inherit; 330 color: inherit;
331 } 331 }
332 332
333 video::-webkit-media-controls-text-track-list-container {
334 position: absolute;
335 display: block;
336 bottom: 30px;
337 background: rgba(20, 20, 20, 0.8);
338 max-width: 50%;
339 max-height: 250px;
340 right: 0;
341 border-radius: 5px;
342 overflow-x: hidden;
343 overflow-y: auto;
344 text-overflow: ellipsis;
345 bottom: 100%;
346 margin-bottom: 5px;
347 font-family: Arial, Helvetica, sans-serif;
348 white-space: nowrap;
349 }
350
351 video::-webkit-scrollbar {
352 width: 12px;
353 }
354
355 video::-webkit-scrollbar-track {
356 box-shadow: inset 0 0 6px rgba(20, 20, 20, 0.3);
357 border-radius: 10px;
358 }
359
360 video::-webkit-scrollbar-thumb {
361 border-radius: 10px;
362 background-color: rgba(80, 80, 80, 0.8);
363 box-shadow: inset 0 0 6px rgba(20, 20, 20, 0.5);
364 }
365
366 video::-webkit-media-controls-text-track-list {
367 display: block;
368 padding: 10px;
369 font-weight: bold;
370 font-size: 16px;
371 }
372
373 video::-webkit-media-controls-text-track-list-header {
374 margin: 0;
375 text-shadow: 0 1px 0 black;
376 text-align: center;
377 color: gray;
378 padding: 4px 0 4px 4px;
379 border-bottom: 1px solid #555;
380 }
381
382 video::-webkit-media-controls-text-track-list-item {
383 display: block;
384 color: white;
385 padding: 4px 30px 4px 30px;
386 border-bottom: 1px solid #555;
387 text-align: left;
388 position: relative;
389 line-height: 25px;
390 }
391
392 video::-webkit-media-controls-text-track-list-item:hover {
393 background-color: rgba(105, 105, 105, 0.8);
394 }
395
396 video::-webkit-media-controls-text-track-list-item-input {
397 -webkit-appearance: media-track-selection-checkmark;
398 position: absolute;
399 visibility: hidden;
400 top: 4px;
401 left: 0;
402 margin: 0;
403 width: 25px;
404 height: 25px;
405 }
406
407 video::-webkit-media-controls-text-track-list-item-input:checked {
408 visibility: visible;
409 }
410
333 audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-con trols-fullscreen-volume-slider { 411 audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-con trols-fullscreen-volume-slider {
334 display: none; 412 display: none;
335 } 413 }
336 414
337 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button { 415 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button {
338 display: none; 416 display: none;
339 } 417 }
340 418
341 audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media -controls-fullscreen-volume-max-button { 419 audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media -controls-fullscreen-volume-max-button {
342 display: none; 420 display: none;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 font-weight: bold; 487 font-weight: bold;
410 } 488 }
411 489
412 video::-webkit-media-text-track-container u { 490 video::-webkit-media-text-track-container u {
413 text-decoration: underline; 491 text-decoration: underline;
414 } 492 }
415 493
416 video::-webkit-media-text-track-container i { 494 video::-webkit-media-text-track-container i {
417 font-style: italic; 495 font-style: italic;
418 } 496 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698