background-color: rgba(156,156,255,0.75);
}
-.playButton, .muteButton {
- /* Remove the usual button appearance and styling */
+.playButton,
+.muteButton,
+.fullscreenButton {
+ background-color: transparent;
+ background-repeat: no-repeat;
+ background-position: center;
margin: 0px;
padding: 0px;
border: none;
min-height: 28px;
- background-color: transparent;
- background-repeat: no-repeat;
- background-position: center center;
-}
-.playButton {
min-width: 28px;
- margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */
- position: relative; /* Trick to work around negative margin interfering with clicking on the button. */
-}
-.muteButton {
- min-width: 33px;
}
-.playButton:hover, .muteButton:hover {
+
+.playButton:hover,
+.muteButton:hover,
+.fullscreenButton:hover {
background-color: rgba(255,207,0,0.75);
}
+
+.playButton:hover:active,
+.muteButton:hover:active,
+.fullscreenButton:hover:active {
+ background-color: rgba(255,159,0,0.75);
+}
+
.playButton:-moz-focusring > .button-box,
-.muteButton:-moz-focusring > .button-box {
+.muteButton:-moz-focusring > .button-box,
+.fullscreenButton:-moz-focusring > .button-box {
border: 1px dotted rgba(0,0,0,0.75);
}
.playButton {
background-image: url("chrome://global/skin/media/pauseButton.png");
+ margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */
+ position: relative; /* Trick to work around negative margin interfering with clicking on the button. */
}
+
.playButton:hover {
background-image: url("chrome://global/skin/media/pauseButton-hover.png");
}
+
.playButton[paused] {
background-image: url("chrome://global/skin/media/playButton.png");
}
+
.playButton[paused]:hover {
background-image: url("chrome://global/skin/media/playButton-hover.png");
}
.muteButton {
background-image: url("chrome://global/skin/media/muteButton.png");
+ min-width: 33px;
}
+
.muteButton:hover {
background-image: url("chrome://global/skin/media/muteButton-hover.png");
}
+
.muteButton[muted] {
background-image: url("chrome://global/skin/media/unmuteButton.png");
}
+
.muteButton[muted]:hover {
background-image: url("chrome://global/skin/media/unmuteButton-hover.png");
}
background-image: url("chrome://global/skin/media/noAudio.png");
}
+.muteButton[noAudio] + .volumeStack {
+ display: none;
+}
+
.fullscreenButton {
- background: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0) no-repeat center;
- margin: 0;
- padding: 0;
- min-height: 28px;
- min-width: 28px;
- border: none;
+ background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0);
}
.fullscreenButton:hover {
- background-color: rgba(255,207,0,0.75);
background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 16, 16, 32, 0);
}
}
.fullscreenButton[fullscreened]:hover {
- background-color: rgba(255,207,0,0.75);
background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 16, 32, 32, 16);
}
-.volumeStack {
- width: 28px;
- height: 70px;
- background-color: rgba(156,156,255,0.74);
- /* use negative margin to place stack over the mute button to its left. */
- margin: -70px 3px 28px -31px;
- overflow: hidden; /* crop it when sliding down, don't grow the control bar */
- position: relative; /* Trick to work around negative margin interfering with dragging the thumb. */
- padding-top: 6px;
- border-radius: 3px 3px 0 0;
-}
-
.volumeControl {
- min-height: 64px;
+ width: 32px;
+ opacity: 0;
}
-/* .scale-thumb is an element inside the <scale> implementation. */
-.volumeControl .scale-thumb {
- /* Override the default thumb appearance with a custom image. */
- -moz-appearance: none;
- background: url("chrome://global/skin/media/volumeThumb.png") no-repeat center;
- border: none !important;
- min-width: 20px;
- min-height: 10px;
+.volumeBackground,
+.volumeForeground {
+ background-repeat: no-repeat;
+ background-position: center;
+ width: 32px;
}
-.volumeControl .scale-thumb:hover, .volumeControl .scale-thumb:active {
- background-image: url("chrome://global/skin/media/volumeThumb-hover.png");
+
+.volumeBackground {
+ background-image: url("chrome://global/skin/media/volume-empty.png");
}
-.volumeBackgroundBar {
- /* margin left/right: make bar 8px wide (control width = 28, minus 2 * 10 margin) */
- margin: 0px 10px;
- background-color: rgba(0,0,0,0.5);
- border-radius: 2.5px;
+.volumeForeground {
+ background-image: url("chrome://global/skin/media/volume-full.png");
+ background-clip: content-box;
}
.durationBox {
}
/* .scale-thumb is an element inside the <scale> implementation. */
-.scrubber .scale-thumb {
+.scrubber .scale-thumb,
+.volumeControl .scale-thumb {
/* Override the default thumb appearance with a custom image. */
background: transparent;
border: none !important;
}
.timeThumb[showhours="true"] {
- background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center;
+ background-image: url("chrome://global/skin/media/scrubberThumbWide.png");
}
/*