1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6 @namespace html url("http://www.w3.org/1999/xhtml");
10 background-color: rgba(156,156,255,0.75);
17 background-color: transparent;
18 background-repeat: no-repeat;
19 background-position: center;
28 .muteButton:not([noAudio]):hover,
29 .closedCaptionButton:hover,
30 .fullscreenButton:hover {
31 background-color: rgba(255,207,0,0.75);
34 .playButton:hover:active,
35 .muteButton:not([noAudio]):hover:active,
36 .closedCaptionButton:hover:active,
37 .fullscreenButton:hover:active {
38 background-color: rgba(255,159,0,0.75);
42 background-image: url("chrome://global/skin/media/pauseButton.png");
43 margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */
44 position: relative; /* Trick to work around negative margin interfering with clicking on the button. */
48 background-image: url("chrome://global/skin/media/pauseButton-hover.png");
52 background-image: url("chrome://global/skin/media/playButton.png");
55 .playButton[paused]:hover {
56 background-image: url("chrome://global/skin/media/playButton-hover.png");
60 background-image: url("chrome://global/skin/media/muteButton.png");
65 background-image: url("chrome://global/skin/media/muteButton-hover.png");
69 background-image: url("chrome://global/skin/media/unmuteButton.png");
72 .muteButton[muted]:hover {
73 background-image: url("chrome://global/skin/media/unmuteButton-hover.png");
76 .muteButton[noAudio] {
77 background-image: url("chrome://global/skin/media/noAudio.png");
80 .muteButton[noAudio] + .volumeStack {
84 .closedCaptionButton {
85 background-image: url("chrome://global/skin/media/closeCaptionButton.png");
86 background-position: 4px;
89 .closedCaptionButton:hover {
90 background-image: url("chrome://global/skin/media/closeCaptionButton-hover.png");
93 .closedCaptionButton[enabled] {
97 .closedCaptionButton[hidden] {
102 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0);
105 .fullscreenButton:hover {
106 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton-hover.png"), 0, 16, 16, 0);
109 .fullscreenButton[fullscreened] {
110 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16);
113 .fullscreenButton[fullscreened]:hover {
114 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton-hover.png"), 0, 32, 16, 16);
124 background-repeat: no-repeat;
125 background-position: center;
130 background-image: url("chrome://global/skin/media/volume-empty.png");
134 background-image: url("chrome://global/skin/media/volume-full.png");
135 background-clip: content-box;
140 -moz-appearance: none;
146 .textTrackList[hidden] {
150 .textTrackList > html|*.textTrackItem {
151 -moz-appearance: none;
152 -moz-box-align: start;
157 -moz-margin-end: 10px;
159 color: rgba(255,255,255,.5);
160 background-color: rgba(35,31,32,.74);
164 .textTrackList > html|*.textTrackItem[on] {
166 background-color: black;
169 .textTrackList > html|*.textTrackItem:hover {
170 background-color: rgba(0,0,0,.55);
173 .controlBar[fullscreen-unavailable] {
174 /* This value is duplicated in the videocontrols.xml adjustControlSize function. */
175 padding-inline-end: 8px;
178 .volumeControl .scale-thumb {
184 -moz-box-pack: center;
188 margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */
189 padding-left: 8px; /* don't bump into the scrubber bar */
190 padding-top: 0px; /* center vertically with scrubber bar */
191 color: rgba(0,0,0,0.75);
192 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
201 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
202 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
204 background-color: rgba(0,0,0,0.75);
205 border-radius: 2.5px;
210 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
211 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
214 background-color: transparent;
219 /* .progress-bar is an element inside the <progressmeter> implementation. */
220 .bufferBar .progress-bar {
222 * Note that this is drawn on top of the .backgroundBar. So although this
223 * has the same background-color specified, the semitransparent
224 * compositing gives it a different visual appearance.
226 background-color: rgba(255,159,0,0.75);
227 border-radius: 2.5px;
228 -moz-appearance: none;
231 .progressBar .progress-bar {
232 background-color: #008484;
233 border-radius: 2.5px;
234 -moz-appearance: none;
237 /* .scale-slider is an element inside the <scale> implementation. */
238 .scrubber .scale-slider,
239 .volumeControl .scale-slider {
240 /* Hide the default horizontal bar. */
245 .scrubber .scale-slider {
246 /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
251 /* .scale-thumb is an element inside the <scale> implementation. */
252 .scrubber .scale-thumb,
253 .volumeControl .scale-thumb {
254 /* Override the default thumb appearance with a custom image. */
255 background: transparent;
256 border: none !important;
260 background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center;
263 -moz-box-pack: center;
266 .timeThumb[showhours="true"] {
267 background-image: url("chrome://global/skin/media/scrubberThumbWide.png");
271 .timeThumb:hover, .timeThumb:active {
272 background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
277 color: rgba(0,0,0,0.75);
279 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
280 text-shadow: rgba(255,259,0, 0.3) 0 1px;
285 -moz-box-align: center;
286 -moz-box-pack: center;
287 background-color: rgba(0,0,0,0.55);
291 margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
296 .statusIcon[type="throbber"] {
297 background: url("chrome://communicator/skin/brand/throbber-anim.png") no-repeat center;
300 .statusIcon[type="throbber"][stalled] {
301 background: url("chrome://global/skin/media/stalled.png") no-repeat center;
304 .statusIcon[type="error"] {
305 background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center;
308 /* Overlay Play button */
312 -moz-box-pack: center;
313 -moz-box-align: center;
315 background-image: url("chrome://global/skin/media/videoClickToPlayButton.svg");
316 background-repeat: no-repeat;
317 background-position: center;
318 background-size: 64px 64px;
319 background-color: hsla(0,0%,10%,.5);
325 /* Statistics formatting */
335 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
344 background: rgba(68,68,111,.7);
346 border-collapse: collapse;
350 /* CSS Transitions */
352 transition-property: opacity, background-size;
353 transition-duration: 400ms, 400ms;
355 .clickToPlay[fadeout] {
356 background-size: auto, 192px 192px;
359 .clickToPlay[fadeout][immediate] {
360 transition-property: opacity, background-size;
361 transition-duration: 0s, 0s;
363 .controlBar:not([immediate]) {
364 transition-property: opacity;
365 transition-duration: 200ms;
367 .controlBar[fadeout] {
370 .volumeStack:not([immediate]) {
371 transition-property: opacity, margin-top;
372 transition-duration: 200ms, 200ms;
374 .volumeStack[fadeout] {
378 .statusOverlay:not([immediate]) {
379 transition-property: opacity;
380 transition-duration: 300ms;
381 transition-delay: 750ms;
383 .statusOverlay[fadeout] {
387 /* Error description formatting */
389 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
401 @media (min-resolution: 2dppx) {
403 background-image: url(chrome://global/skin/media/pauseButton@2x.png);
404 background-size: 28px 28px;
407 background-image: url(chrome://global/skin/media/pauseButton-hover@2x.png);
408 background-size: 28px 28px;
410 .playButton[paused] {
411 background-image: url(chrome://global/skin/media/playButton@2x.png);
412 background-size: 28px 28px;
414 .playButton[paused]:hover {
415 background-image: url(chrome://global/skin/media/playButton-hover@2x.png);
416 background-size: 28px 28px;
419 background-image: url(chrome://global/skin/media/volume-empty@2x.png);
420 background-size: 32px 16px;
422 .volumeForeground:hover {
423 background-image: url(chrome://global/skin/media/volume-full-hover@2x.png);
424 background-size: 32px 16px;
427 background-image: url(chrome://global/skin/media/muteButton@2x.png);
428 background-size: 33px 28px;
431 background-image: url(chrome://global/skin/media/muteButton-hover@2x.png);
432 background-size: 33px 28px;
435 background-image: url(chrome://global/skin/media/unmuteButton@2x.png);
436 background-size: 33px 28px;
438 .muteButton[muted]:hover {
439 background-image: url(chrome://global/skin/media/unmuteButton-hover@2x.png);
440 background-size: 33px 28px;
442 .muteButton[noAudio] {
443 background-image: url(chrome://global/skin/media/noAudio@2x.png);
444 background-size: 33px 28px;
446 .closedCaptionButton {
447 background-image: url(chrome://global/skin/media/closeCaptionButton@2x.png);
448 background-position: 4px;
449 background-size: 28px 28px;
451 .closedCaptionButton:hover {
452 background-image: url(chrome://global/skin/media/closeCaptionButton-hover@2x.png);
453 background-position: 4px;
454 background-size: 28px 28px;
457 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 32, 32, 0);
458 background-size: 16px 16px;
460 .fullscreenButton:hover {
461 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton-hover@2x.png"), 0, 32, 32, 0);
462 background-size: 16px 16px;
464 .fullscreenButton[fullscreened] {
465 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 64, 32, 32);
466 background-size: 16px 16px;
468 .fullscreenButton[fullscreened]:hover {
469 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton-hover@2x.png"), 0, 64, 32, 32);
470 background-size: 16px 16px;
473 background-image: url(chrome://global/skin/media/scrubberThumb@2x.png);
474 background-size: 33px 28px;
476 .timeThumb[showhours="true"] {
477 background-image: url(chrome://global/skin/media/scrubberThumbWide@2x.png);
478 background-size: 45px 28px;