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(102,102,153,0.75);
17 background-color: transparent;
18 background-repeat: no-repeat;
19 background-position: center;
28 background-image: url("chrome://global/skin/media/pauseButton.png");
29 margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */
30 position: relative; /* Trick to work around negative margin interfering with clicking on the button. */
34 background-image: url("chrome://global/skin/media/playButton.png");
38 background-image: url("chrome://global/skin/media/muteButton.png");
43 background-image: url("chrome://global/skin/media/unmuteButton.png");
46 .muteButton[noAudio] {
47 background-image: url("chrome://global/skin/media/noAudio.png");
50 .muteButton[noAudio] + .volumeStack {
54 .closedCaptionButton {
55 background-image: url("chrome://global/skin/media/closeCaptionButton.png");
56 background-position: 4px;
59 .closedCaptionButton[enabled] {
63 .closedCaptionButton[hidden] {
68 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0);
71 .fullscreenButton[fullscreened] {
72 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16);
82 background-repeat: no-repeat;
83 background-position: center;
88 background-image: url("chrome://global/skin/media/volume-empty.png");
92 background-image: url("chrome://global/skin/media/volume-full.png");
93 background-clip: content-box;
98 -moz-appearance: none;
104 .textTrackList[hidden] {
108 .textTrackList > html|*.textTrackItem {
109 -moz-appearance: none;
110 -moz-box-align: start;
115 -moz-margin-end: 10px;
117 color: rgba(255,255,255,.5);
118 background-color: rgba(35,31,32,.74);
122 .textTrackList > html|*.textTrackItem[on] {
124 background-color: black;
127 .textTrackList > html|*.textTrackItem:hover {
128 background-color: rgba(0,0,0,.55);
131 .controlBar[fullscreen-unavailable] {
132 /* This value is duplicated in the videocontrols.xml adjustControlSize function. */
133 padding-inline-end: 8px;
136 .volumeControl .scale-thumb {
142 -moz-box-pack: center;
146 margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */
147 padding-left: 8px; /* don't bump into the scrubber bar */
148 padding-top: 0px; /* center vertically with scrubber bar */
149 color: rgba(204,208,221,0.75);
150 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
159 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
160 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
162 background-color: rgba(0,0,0,0.75);
167 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
168 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
171 background-color: transparent;
176 /* .progress-bar is an element inside the <progressmeter> implementation. */
177 .bufferBar .progress-bar {
179 * Note that this is drawn on top of the .backgroundBar. So although this
180 * has the same background-color specified, the semitransparent
181 * compositing gives it a different visual appearance.
183 background-color: rgba(204,208,221,0.75);
184 -moz-appearance: none;
187 .progressBar .progress-bar {
188 background-color: #336699;
189 -moz-appearance: none;
192 /* .scale-slider is an element inside the <scale> implementation. */
193 .scrubber .scale-slider,
194 .volumeControl .scale-slider {
195 /* Hide the default horizontal bar. */
200 .scrubber .scale-slider {
201 /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
206 /* .scale-thumb is an element inside the <scale> implementation. */
207 .scrubber .scale-thumb,
208 .volumeControl .scale-thumb {
209 /* Override the default thumb appearance with a custom image. */
210 background: transparent;
211 border: none !important;
215 background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center;
218 -moz-box-pack: center;
221 .timeThumb[showhours="true"] {
222 background-image: url("chrome://global/skin/media/scrubberThumbWide.png");
226 .timeThumb:hover, .timeThumb:active {
227 background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
232 color: rgba(0,0,0,0.75);
234 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
235 text-shadow: rgba(102,102,153, 0.3) 0 1px;
240 -moz-box-align: center;
241 -moz-box-pack: center;
242 background-color: rgba(0,0,0,0.55);
246 margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
251 .statusIcon[type="throbber"] {
252 background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center;
255 .statusIcon[type="throbber"][stalled] {
256 background: url("chrome://global/skin/media/stalled.png") no-repeat center;
259 .statusIcon[type="error"] {
260 background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center;
263 /* Overlay Play button */
267 -moz-box-pack: center;
268 -moz-box-align: center;
270 background-image: url("chrome://global/skin/media/videoClickToPlayButton.svg");
271 background-repeat: no-repeat;
272 background-position: center;
273 background-size: 64px 64px;
274 background-color: hsla(0,0%,10%,.5);
280 /* Statistics formatting */
290 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
299 background: rgba(68,68,68,.7);
301 border-collapse: collapse;
305 /* CSS Transitions */
307 transition-property: opacity, background-size;
308 transition-duration: 400ms, 400ms;
310 .clickToPlay[fadeout] {
311 background-size: auto, 192px 192px;
314 .clickToPlay[fadeout][immediate] {
315 transition-property: opacity, background-size;
316 transition-duration: 0s, 0s;
318 .controlBar:not([immediate]) {
319 transition-property: opacity;
320 transition-duration: 200ms;
322 .controlBar[fadeout] {
325 .volumeStack:not([immediate]) {
326 transition-property: opacity, margin-top;
327 transition-duration: 200ms, 200ms;
329 .volumeStack[fadeout] {
333 .statusOverlay:not([immediate]) {
334 transition-property: opacity;
335 transition-duration: 300ms;
336 transition-delay: 750ms;
338 .statusOverlay[fadeout] {
342 /* Error description formatting */
344 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
356 @media (min-resolution: 2dppx) {
358 background-image: url(chrome://global/skin/media/pauseButton@2x.png);
359 background-size: 28px 28px;
361 .playButton[paused] {
362 background-image: url(chrome://global/skin/media/playButton@2x.png);
363 background-size: 28px 28px;
366 background-image: url(chrome://global/skin/media/volume-empty@2x.png);
367 background-size: 32px 16px;
370 background-image: url(chrome://global/skin/media/volume-full@2x.png);
371 background-size: 32px 16px;
374 background-image: url(chrome://global/skin/media/muteButton@2x.png);
375 background-size: 33px 28px;
378 background-image: url(chrome://global/skin/media/unmuteButton@2x.png);
379 background-size: 33px 28px;
381 .muteButton[noAudio] {
382 background-image: url(chrome://global/skin/media/noAudio@2x.png);
383 background-size: 33px 28px;
385 .closedCaptionButton {
386 background-image: url(chrome://global/skin/media/closeCaptionButton@2x.png);
387 background-position: 4px;
388 background-size: 28px 28px;
391 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 32, 32, 0);
392 background-size: 16px 16px;
394 .fullscreenButton[fullscreened] {
395 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 64, 32, 32);
396 background-size: 16px 16px;
399 background-image: url(chrome://global/skin/media/scrubberThumb@2x.png);
400 background-size: 33px 28px;
402 .timeThumb[showhours="true"] {
403 background-image: url(chrome://global/skin/media/scrubberThumbWide@2x.png);
404 background-size: 45px 28px;