OLD | NEW |
1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 .cast-menu { | 5 .cast-menu { |
6 background: #222; | 6 background-color: rgba(0, 0, 0, 0.85); |
7 border: 0; | 7 border: 0; |
8 border-radius: 1px; | 8 border-radius: 1px; |
9 min-width: 120px; | 9 min-width: 120px; |
10 padding: 0 15px 15px; | 10 outline: none; |
| 11 overflow: hidden; |
| 12 padding: 0 0 5px; |
11 position: absolute; | 13 position: absolute; |
12 z-index: 1000; | 14 z-index: 1000; |
13 } | 15 } |
14 | 16 |
15 .cast-menu:before { | 17 .cast-menu:before { |
| 18 -webkit-margin-start: 10px; |
| 19 border-bottom: solid 1px rgba(255, 255, 255, 0.25); |
16 color: #fff; | 20 color: #fff; |
17 content: attr(playon-text); | 21 content: attr(playon-text); |
18 line-height: 42px; | 22 display: block; |
| 23 font-size: 12px; |
| 24 margin-bottom: 5px; |
| 25 padding-bottom: 6px; |
| 26 padding-top: 6px; |
| 27 } |
| 28 |
| 29 /* Make the width of the horizontal border one device pixel even on HiDPI. |
| 30 * crbug.com/417113. */ |
| 31 @media (-webkit-min-device-pixel-ratio: 2) { |
| 32 .cast-menu:before { |
| 33 border-bottom: none; |
| 34 background-image: linear-gradient(rgba(255, 255, 255, 0.25), |
| 35 rgba(255, 255, 255, 0.25), |
| 36 rgba(255, 255, 255, 0), |
| 37 rgba(255, 255, 255, 0)); |
| 38 background-position: bottom; |
| 39 background-size: 100% 1px; |
| 40 background-repeat: no-repeat; |
| 41 } |
19 } | 42 } |
20 | 43 |
21 .cast-menu.hidden { | 44 .cast-menu.hidden { |
22 display: none; | 45 display: none; |
23 } | 46 } |
24 | 47 |
25 .cast-menu > :not(hr) { | 48 .cast-menu > :not(hr) { |
26 -webkit-padding-end: 14px; | 49 -webkit-padding-end: 10px; |
27 -webkit-padding-start: 19px; | 50 -webkit-padding-start: 30px; |
28 background-color: #e6e6e6; | 51 color: rgba(255, 255, 255, 0.5); |
29 font-size: 12px; | 52 font-size: 12px; |
30 padding-bottom: 5px; | 53 padding-bottom: 5px; |
31 padding-top: 5px; | 54 padding-top: 6px; |
32 text-overflow: ellipsis; | 55 text-overflow: ellipsis; |
33 } | 56 } |
34 | 57 |
35 .cast-menu > [checked]:not(hr) { | 58 .cast-menu > :not(hr):hover { |
36 /* A checkmark has 19 px width. */ | 59 background-color: rgba(48, 48, 48, 0.85); |
37 -webkit-padding-start: 0; | |
38 } | 60 } |
39 | 61 |
40 .cast-menu > [selected]:not(hr) { | 62 .cast-menu > [checked]:not(hr) { |
41 background-color: #888; | 63 /* A checkmark has corresponding width and margin. */ |
| 64 -webkit-padding-start: 0; |
42 color: #fff; | 65 color: #fff; |
43 } | 66 } |
44 | 67 |
45 .cast-menu > [selected]:not(hr):active { | 68 .cast-menu > [checked]:before { |
46 background-color: #888; | 69 content: -webkit-image-set( |
47 color: #fff; | 70 url('../images/media/media_check.png') 1x, |
| 71 url('../images/media/2x/media_check.png') 2x); |
| 72 height: 8px; |
| 73 margin: 0 10px; |
| 74 width: 10px; |
48 } | 75 } |
49 | |
50 .cast-menu > [checked]:hover:before, | |
51 .cast-menu > [checked]:active:before { | |
52 content: url('../../../webui/resources/images/checkbox_white.png'); | |
53 } | |
54 | |
55 .cast-menu > :not(hr):hover { | |
56 background-color: #555; | |
57 color: #fff; | |
58 } | |
OLD | NEW |