Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 * Use of this source code is governed by a BSD-style license that can be | |
| 3 * found in the LICENSE file. */ | |
| 4 | |
| 5 #video-player .arrow-box { | |
| 6 align-items: center; | |
| 7 display: flex; | |
| 8 height: 100%; | |
| 9 justify-content: center; | |
| 10 pointer-events: none; | |
| 11 position: absolute; | |
| 12 width: 100%; | |
| 13 z-index: 100; | |
| 14 } | |
| 15 | |
| 16 #video-player:not([tools]) .arrow-box .arrow { | |
| 17 opacity: 0; | |
|
mtomasz
2014/06/06 03:41:43
Why not (1) visibility: hidden, or (2) display: no
yoshiki
2014/06/06 08:02:22
I've just found 'tools'-related feature is control
| |
| 18 pointer-events: none; | |
| 19 } | |
| 20 | |
| 21 #video-player .arrow-box .arrow-spacer { | |
| 22 flex-grow: 1; | |
| 23 pointer-events: none; | |
| 24 } | |
| 25 | |
| 26 #video-player[tools] .arrow-box .arrow { | |
| 27 opacity: 1; | |
| 28 pointer-events: auto; | |
| 29 } | |
| 30 | |
| 31 /* The arrow icons are in nested divs so that their opacity can be manipulated | |
| 32 * independently from their parent (which can be dimmed when the crop frame | |
| 33 * overlaps it) */ | |
| 34 #video-player .arrow div { | |
| 35 background-position: center center; | |
| 36 background-repeat: no-repeat; | |
| 37 height: 193px; | |
| 38 opacity: 0; | |
| 39 width: 105px; | |
| 40 } | |
| 41 | |
| 42 #video-player[multiple][tools] .arrow-box .arrow div { | |
| 43 opacity: 0.25; | |
| 44 } | |
| 45 | |
| 46 #video-player[multiple][tools] .arrow-box .arrow div:hover { | |
| 47 opacity: 1; | |
| 48 } | |
| 49 | |
| 50 #video-player:not([first-video]) .arrow.left div { | |
| 51 cursor: pointer; | |
| 52 background-image: -webkit-image-set( | |
| 53 url(../images/100/arrow_left.png) 1x, | |
| 54 url(../images/200/arrow_left.png) 2x); | |
| 55 } | |
| 56 | |
| 57 #video-player:not([last-video]) .arrow.right div { | |
| 58 cursor: pointer; | |
| 59 background-image: -webkit-image-set( | |
| 60 url(../images/100/arrow_right.png) 1x, | |
| 61 url(../images/200/arrow_right.png) 2x); | |
| 62 } | |
| OLD | NEW |