OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 .media-button { | 7 .media-button { |
8 position: relative; | 8 position: relative; |
9 width: 28px; | 9 width: 28px; |
10 height: 28px; | 10 height: 28px; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 /* Media controls in order of appearance. */ | 185 /* Media controls in order of appearance. */ |
186 | 186 |
187 /* Play/pause button. */ | 187 /* Play/pause button. */ |
188 | 188 |
189 .media-button.play { | 189 .media-button.play { |
190 margin-left: -7px; | 190 margin-left: -7px; |
191 margin-right: -7px; | 191 margin-right: -7px; |
192 } | 192 } |
193 | 193 |
194 .media-button.play > .state0.normal { | 194 .media-button.play > .state0.normal { |
195 background-image: url(../../images/media/media_play.png); | 195 background-image: url(../images/media/media_play.png); |
196 } | 196 } |
197 | 197 |
198 .media-button.play > .state0.hover { | 198 .media-button.play > .state0.hover { |
199 background-image: url(../../images/media/media_play_hover.png); | 199 background-image: url(../images/media/media_play_hover.png); |
200 } | 200 } |
201 | 201 |
202 .media-button.play > .state0.active { | 202 .media-button.play > .state0.active { |
203 background-image: url(../../images/media/media_play_down.png); | 203 background-image: url(../images/media/media_play_down.png); |
204 } | 204 } |
205 | 205 |
206 .media-button.play > .state1.normal{ | 206 .media-button.play > .state1.normal{ |
207 background-image: url(../../images/media/media_pause.png); | 207 background-image: url(../images/media/media_pause.png); |
208 } | 208 } |
209 | 209 |
210 .media-button.play > .state1.hover { | 210 .media-button.play > .state1.hover { |
211 background-image: url(../../images/media/media_pause_hover.png); | 211 background-image: url(../images/media/media_pause_hover.png); |
212 } | 212 } |
213 | 213 |
214 .media-button.play > .state1.active { | 214 .media-button.play > .state1.active { |
215 background-image: url(../../images/media/media_pause_down.png); | 215 background-image: url(../images/media/media_pause_down.png); |
216 } | 216 } |
217 | 217 |
218 .media-button.play > .disabled { | 218 .media-button.play > .disabled { |
219 background-image: url(../../images/media/media_play_disabled.png); | 219 background-image: url(../images/media/media_play_disabled.png); |
220 } | 220 } |
221 | 221 |
222 /* Time controls: a slider and a text time display. */ | 222 /* Time controls: a slider and a text time display. */ |
223 | 223 |
224 .time-controls { | 224 .time-controls { |
225 height: 100%; | 225 height: 100%; |
226 display: -webkit-box; | 226 display: -webkit-box; |
227 -webkit-box-orient: horizontal; | 227 -webkit-box-orient: horizontal; |
228 -webkit-box-align: center; | 228 -webkit-box-align: center; |
229 -webkit-box-pack: center; | 229 -webkit-box-pack: center; |
230 -webkit-box-flex: 1; | 230 -webkit-box-flex: 1; |
231 } | 231 } |
232 | 232 |
233 .custom-slider.progress { | 233 .custom-slider.progress { |
234 position: relative; | 234 position: relative; |
235 height: 100%; | 235 height: 100%; |
236 display: -webkit-box; | 236 display: -webkit-box; |
237 -webkit-box-flex: 1; | 237 -webkit-box-flex: 1; |
238 margin-left: -9px; /* Set the margins at the edges of the slider bar. */ | 238 margin-left: -9px; /* Set the margins at the edges of the slider bar. */ |
239 margin-right: -9px; | 239 margin-right: -9px; |
240 } | 240 } |
241 | 241 |
242 .custom-slider.progress > input[type='range']::-webkit-slider-thumb { | 242 .custom-slider.progress > input[type='range']::-webkit-slider-thumb { |
243 width: 28px; | 243 width: 28px; |
244 background-image: url(../../images/media/media_slider_thumb.png); | 244 background-image: url(../images/media/media_slider_thumb.png); |
245 } | 245 } |
246 | 246 |
247 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:hover { | 247 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:hover { |
248 background-image: url(../../images/media/media_slider_thumb_hover.png); | 248 background-image: url(../images/media/media_slider_thumb_hover.png); |
249 } | 249 } |
250 | 250 |
251 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:active { | 251 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:active { |
252 background-image: url(../../images/media/media_slider_thumb_down.png); | 252 background-image: url(../images/media/media_slider_thumb_down.png); |
253 } | 253 } |
254 | 254 |
255 .custom-slider.progress.disabled > input[type='range']::-webkit-slider-thumb { | 255 .custom-slider.progress.disabled > input[type='range']::-webkit-slider-thumb { |
256 background-image: none; | 256 background-image: none; |
257 } | 257 } |
258 | 258 |
259 .custom-slider.progress > .bar { | 259 .custom-slider.progress > .bar { |
260 left: 14px; /* Exactly 1/2 of the thumb width */ | 260 left: 14px; /* Exactly 1/2 of the thumb width */ |
261 right: 14px; | 261 right: 14px; |
262 } | 262 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 302 |
303 /* Sound button */ | 303 /* Sound button */ |
304 | 304 |
305 .media-button.sound { | 305 .media-button.sound { |
306 margin-left: -4px; | 306 margin-left: -4px; |
307 margin-right: -2px; | 307 margin-right: -2px; |
308 background-position: -2px center; | 308 background-position: -2px center; |
309 } | 309 } |
310 | 310 |
311 .media-button.sound[level='0'] > .normal { | 311 .media-button.sound[level='0'] > .normal { |
312 background-image: url(../../images/media/media_sound_disabled.png); | 312 background-image: url(../images/media/media_sound_disabled.png); |
313 } | 313 } |
314 | 314 |
315 .media-button.sound[level='0'] > .hover { | 315 .media-button.sound[level='0'] > .hover { |
316 background-image: url(../../images/media/media_sound_disabled_hover.png); | 316 background-image: url(../images/media/media_sound_disabled_hover.png); |
317 } | 317 } |
318 | 318 |
319 .media-button.sound[level='0'] > .active { | 319 .media-button.sound[level='0'] > .active { |
320 background-image: url(../../images/media/media_sound_disabled_down.png); | 320 background-image: url(../images/media/media_sound_disabled_down.png); |
321 } | 321 } |
322 | 322 |
323 | 323 |
324 .media-button.sound[level='1'] > .normal { | 324 .media-button.sound[level='1'] > .normal { |
325 background-image: url(../../images/media/media_sound_level1.png); | 325 background-image: url(../images/media/media_sound_level1.png); |
326 } | 326 } |
327 | 327 |
328 .media-button.sound[level='1'] > .hover { | 328 .media-button.sound[level='1'] > .hover { |
329 background-image: url(../../images/media/media_sound_level1_hover.png); | 329 background-image: url(../images/media/media_sound_level1_hover.png); |
330 } | 330 } |
331 | 331 |
332 .media-button.sound[level='1'] > .active { | 332 .media-button.sound[level='1'] > .active { |
333 background-image: url(../../images/media/media_sound_level1_down.png); | 333 background-image: url(../images/media/media_sound_level1_down.png); |
334 } | 334 } |
335 | 335 |
336 | 336 |
337 .media-button.sound[level='2'] > .normal { | 337 .media-button.sound[level='2'] > .normal { |
338 background-image: url(../../images/media/media_sound_level2.png); | 338 background-image: url(../images/media/media_sound_level2.png); |
339 } | 339 } |
340 | 340 |
341 .media-button.sound[level='2'] > .hover { | 341 .media-button.sound[level='2'] > .hover { |
342 background-image: url(../../images/media/media_sound_level2_hover.png); | 342 background-image: url(../images/media/media_sound_level2_hover.png); |
343 } | 343 } |
344 | 344 |
345 .media-button.sound[level='2'] > .active { | 345 .media-button.sound[level='2'] > .active { |
346 background-image: url(../../images/media/media_sound_level2_down.png); | 346 background-image: url(../images/media/media_sound_level2_down.png); |
347 } | 347 } |
348 | 348 |
349 | 349 |
350 .media-button.sound[level='3'] > .normal { | 350 .media-button.sound[level='3'] > .normal { |
351 background-image: url(../../images/media/media_sound_full.png); | 351 background-image: url(../images/media/media_sound_full.png); |
352 } | 352 } |
353 | 353 |
354 .media-button.sound[level='3'] > .hover { | 354 .media-button.sound[level='3'] > .hover { |
355 background-image: url(../../images/media/media_sound_full_hover.png); | 355 background-image: url(../images/media/media_sound_full_hover.png); |
356 } | 356 } |
357 | 357 |
358 .media-button.sound[level='3'] > .active { | 358 .media-button.sound[level='3'] > .active { |
359 background-image: url(../../images/media/media_sound_full_down.png); | 359 background-image: url(../images/media/media_sound_full_down.png); |
360 } | 360 } |
361 | 361 |
362 | 362 |
363 .media-button.sound > .disabled { | 363 .media-button.sound > .disabled { |
364 background-image: url(../../images/media/media_sound_full_disabled.png); | 364 background-image: url(../images/media/media_sound_full_disabled.png); |
365 } | 365 } |
366 | 366 |
367 /* Volume slider. */ | 367 /* Volume slider. */ |
368 | 368 |
369 .custom-slider.volume { | 369 .custom-slider.volume { |
370 position: relative; | 370 position: relative; |
371 height: 100%; | 371 height: 100%; |
372 width: 60px; | 372 width: 60px; |
373 margin-left: -4px; | 373 margin-left: -4px; |
374 margin-right: -4px; | 374 margin-right: -4px; |
375 } | 375 } |
376 | 376 |
377 .custom-slider.volume > input[type='range']::-webkit-slider-thumb { | 377 .custom-slider.volume > input[type='range']::-webkit-slider-thumb { |
378 width: 20px; | 378 width: 20px; |
379 background-image: url(../../images/media/media_volume_slider_thumb.png); | 379 background-image: url(../images/media/media_volume_slider_thumb.png); |
380 } | 380 } |
381 | 381 |
382 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:hover { | 382 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:hover { |
383 background-image: url(../../images/media/media_volume_slider_thumb_hover.png); | 383 background-image: url(../images/media/media_volume_slider_thumb_hover.png); |
384 } | 384 } |
385 | 385 |
386 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:active { | 386 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:active { |
387 background-image: url(../../images/media/media_volume_slider_thumb_down.png); | 387 background-image: url(../images/media/media_volume_slider_thumb_down.png); |
388 } | 388 } |
389 | 389 |
390 .custom-slider.volume.disabled > input[type='range']::-webkit-slider-thumb { | 390 .custom-slider.volume.disabled > input[type='range']::-webkit-slider-thumb { |
391 background-image: none; | 391 background-image: none; |
392 } | 392 } |
393 | 393 |
394 .custom-slider.volume > .bar { | 394 .custom-slider.volume > .bar { |
395 left: 10px; /* Exactly 1/2 of the thumb width */ | 395 left: 10px; /* Exactly 1/2 of the thumb width */ |
396 right: 10px; | 396 right: 10px; |
397 } | 397 } |
(...skipping 27 matching lines...) Expand all Loading... |
425 | 425 |
426 /* Fullscreen button. */ | 426 /* Fullscreen button. */ |
427 /* There is no final decision whether we need a separate icon when toggled. */ | 427 /* There is no final decision whether we need a separate icon when toggled. */ |
428 | 428 |
429 .media-button.fullscreen { | 429 .media-button.fullscreen { |
430 margin-left: 9px; /* 15px visible margin - 6px whitespace in the icon. */ | 430 margin-left: 9px; /* 15px visible margin - 6px whitespace in the icon. */ |
431 margin-right: -6px; | 431 margin-right: -6px; |
432 } | 432 } |
433 | 433 |
434 .media-button.fullscreen > .normal { | 434 .media-button.fullscreen > .normal { |
435 background-image: url(../../images/media/media_fullscreen.png); | 435 background-image: url(../images/media/media_fullscreen.png); |
436 } | 436 } |
437 | 437 |
438 .media-button.fullscreen > .hover { | 438 .media-button.fullscreen > .hover { |
439 background-image: url(../../images/media/media_fullscreen_hover.png); | 439 background-image: url(../images/media/media_fullscreen_hover.png); |
440 } | 440 } |
441 | 441 |
442 .media-button.fullscreen > .active { | 442 .media-button.fullscreen > .active { |
443 background-image: url(../../images/media/media_fullscreen_down.png); | 443 background-image: url(../images/media/media_fullscreen_down.png); |
444 } | 444 } |
445 | 445 |
446 .media-button.fullscreen > .disabled { | 446 .media-button.fullscreen > .disabled { |
447 background-image: url(../../images/media/media_fullscreen_disabled.png); | 447 background-image: url(../images/media/media_fullscreen_disabled.png); |
448 } | 448 } |
449 | 449 |
450 .playback-state-icon { | 450 .playback-state-icon { |
451 position: absolute; | 451 position: absolute; |
452 left: 50%; | 452 left: 50%; |
453 top: 50%; | 453 top: 50%; |
454 width: 32px; | 454 width: 32px; |
455 height: 32px; | 455 height: 32px; |
456 margin-left: -16px; | 456 margin-left: -16px; |
457 margin-top: -16px; | 457 margin-top: -16px; |
(...skipping 18 matching lines...) Expand all Loading... |
476 .playback-state-icon[visible] { | 476 .playback-state-icon[visible] { |
477 display: block; | 477 display: block; |
478 } | 478 } |
479 | 479 |
480 .playback-state-icon[state] { | 480 .playback-state-icon[state] { |
481 opacity: 0; | 481 opacity: 0; |
482 -webkit-transform: scaleX(3) scaleY(3); | 482 -webkit-transform: scaleX(3) scaleY(3); |
483 } | 483 } |
484 | 484 |
485 .playback-state-icon[state='play'] { | 485 .playback-state-icon[state='play'] { |
486 background-image: url(../../images/media/media_play.png); | 486 background-image: url(../images/media/media_play.png); |
487 } | 487 } |
488 | 488 |
489 .playback-state-icon[state='pause'] { | 489 .playback-state-icon[state='pause'] { |
490 background-image: url(../../images/media/media_pause.png); | 490 background-image: url(../images/media/media_pause.png); |
491 } | 491 } |
OLD | NEW |