OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 /* Common styles for media buttons. */ | 5 /* Common styles for media buttons. */ |
6 | 6 |
7 .media-button { | 7 .media-button { |
8 background-position: center; | 8 background-position: center; |
9 background-repeat: no-repeat; | 9 background-repeat: no-repeat; |
10 flex: none; | 10 flex: none; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 url(../images/media/media_fullscreen.png) 1x, | 169 url(../images/media/media_fullscreen.png) 1x, |
170 url(../images/media/2x/media_fullscreen.png) 2x); | 170 url(../images/media/2x/media_fullscreen.png) 2x); |
171 } | 171 } |
172 | 172 |
173 #controls[fullscreen] .media-button.fullscreen { | 173 #controls[fullscreen] .media-button.fullscreen { |
174 background-image: -webkit-image-set( | 174 background-image: -webkit-image-set( |
175 url(../images/media/media_fullscreen_exit.png) 1x, | 175 url(../images/media/media_fullscreen_exit.png) 1x, |
176 url(../images/media/2x/media_fullscreen_exit.png) 2x); | 176 url(../images/media/2x/media_fullscreen_exit.png) 2x); |
177 } | 177 } |
178 | 178 |
| 179 .media-button.subtitles { |
| 180 background-image: -webkit-image-set( |
| 181 url(../images/media/media_subtitles.png) 1x, |
| 182 url(../images/media/2x/media_subtitles.png) 2x); |
| 183 } |
| 184 |
| 185 .media-button.subtitles:not([showing]) { |
| 186 opacity: 0.2; |
| 187 } |
| 188 |
| 189 .media-button.subtitles[unavailable] { |
| 190 display: none; |
| 191 } |
| 192 |
179 .playback-state-icon { | 193 .playback-state-icon { |
180 -webkit-animation: none; | 194 -webkit-animation: none; |
181 background-position: center center; | 195 background-position: center center; |
182 background-repeat: no-repeat; | 196 background-repeat: no-repeat; |
183 display: none; | 197 display: none; |
184 height: 32px; | 198 height: 32px; |
185 left: 50%; | 199 left: 50%; |
186 margin-left: -16px; | 200 margin-left: -16px; |
187 margin-top: -16px; | 201 margin-top: -16px; |
188 opacity: 0; | 202 opacity: 0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 url(../images/media/media_play_onscreen.png) 1x, | 270 url(../images/media/media_play_onscreen.png) 1x, |
257 url(../images/media/2x/media_play_onscreen.png) 2x); | 271 url(../images/media/2x/media_play_onscreen.png) 2x); |
258 } | 272 } |
259 | 273 |
260 .playback-state-icon[state='pause'] { | 274 .playback-state-icon[state='pause'] { |
261 -webkit-animation: blowup 500ms; | 275 -webkit-animation: blowup 500ms; |
262 background-image: -webkit-image-set( | 276 background-image: -webkit-image-set( |
263 url(../images/media/media_pause_onscreen.png) 1x, | 277 url(../images/media/media_pause_onscreen.png) 1x, |
264 url(../images/media/2x/media_pause_onscreen.png) 2x); | 278 url(../images/media/2x/media_pause_onscreen.png) 2x); |
265 } | 279 } |
OLD | NEW |