| 1 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 2 | @namespace html url("http://www.w3.org/1999/xhtml"); |
| 3 | |
| 4 | .controlBar { |
| 5 | height: 28px; |
| 6 | background-color: rgba(156,156,255,0.75); |
| 7 | } |
| 8 | |
| 9 | .playButton, .muteButton { |
| 10 | /* Remove the usual button appearance and styling */ |
| 11 | margin: 0px; |
| 12 | padding: 0px; |
| 13 | border: none; |
| 14 | min-height: 28px; |
| 15 | background-color: transparent; |
| 16 | background-repeat: no-repeat; |
| 17 | background-position: center center; |
| 18 | } |
| 19 | .playButton { |
| 20 | min-width: 28px; |
| 21 | margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */ |
| 22 | position: relative; /* Trick to work around negative margin interfering with clicking on the button. */ |
| 23 | } |
| 24 | .muteButton { |
| 25 | min-width: 33px; |
| 26 | } |
| 27 | .playButton:hover, .muteButton:hover { |
| 28 | background-color: rgba(255,207,0,0.75); |
| 29 | } |
| 30 | .playButton:-moz-focusring > .button-box, |
| 31 | .muteButton:-moz-focusring > .button-box { |
| 32 | border: 1px dotted rgba(0,0,0,0.75); |
| 33 | } |
| 34 | |
| 35 | .playButton { |
| 36 | background-image: url("chrome://global/skin/media/pauseButton.png"); |
| 37 | } |
| 38 | .playButton:hover { |
| 39 | background-image: url("chrome://global/skin/media/pauseButton-hover.png"); |
| 40 | } |
| 41 | .playButton[paused] { |
| 42 | background-image: url("chrome://global/skin/media/playButton.png"); |
| 43 | } |
| 44 | .playButton[paused]:hover { |
| 45 | background-image: url("chrome://global/skin/media/playButton-hover.png"); |
| 46 | } |
| 47 | |
| 48 | .muteButton { |
| 49 | background-image: url("chrome://global/skin/media/muteButton.png"); |
| 50 | } |
| 51 | .muteButton:hover { |
| 52 | background-image: url("chrome://global/skin/media/muteButton-hover.png"); |
| 53 | } |
| 54 | .muteButton[muted] { |
| 55 | background-image: url("chrome://global/skin/media/unmuteButton.png"); |
| 56 | } |
| 57 | .muteButton[muted]:hover { |
| 58 | background-image: url("chrome://global/skin/media/unmuteButton-hover.png"); |
| 59 | } |
| 60 | |
| 61 | .muteButton[noAudio] { |
| 62 | background-image: url("chrome://global/skin/media/noAudio.png"); |
| 63 | } |
| 64 | |
| 65 | .fullscreenButton { |
| 66 | background: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0) no-repeat center; |
| 67 | margin: 0; |
| 68 | padding: 0; |
| 69 | min-height: 28px; |
| 70 | min-width: 28px; |
| 71 | border: none; |
| 72 | } |
| 73 | |
| 74 | .fullscreenButton:hover { |
| 75 | background-color: rgba(255,207,0,0.75); |
| 76 | background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 16, 16, 32, 0); |
| 77 | } |
| 78 | |
| 79 | .fullscreenButton[fullscreened] { |
| 80 | background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16); |
| 81 | } |
| 82 | |
| 83 | .fullscreenButton[fullscreened]:hover { |
| 84 | background-color: rgba(255,207,0,0.75); |
| 85 | background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 16, 32, 32, 16); |
| 86 | } |
| 87 | |
| 88 | .volumeStack { |
| 89 | width: 28px; |
| 90 | height: 70px; |
| 91 | background-color: rgba(156,156,255,0.74); |
| 92 | /* use negative margin to place stack over the mute button to its left. */ |
| 93 | margin: -70px 3px 28px -31px; |
| 94 | overflow: hidden; /* crop it when sliding down, don't grow the control bar */ |
| 95 | position: relative; /* Trick to work around negative margin interfering with dragging the thumb. */ |
| 96 | padding-top: 6px; |
| 97 | border-radius: 3px 3px 0 0; |
| 98 | } |
| 99 | |
| 100 | .volumeControl { |
| 101 | min-height: 64px; |
| 102 | } |
| 103 | |
| 104 | /* .scale-thumb is an element inside the <scale> implementation. */ |
| 105 | .volumeControl .scale-thumb { |
| 106 | /* Override the default thumb appearance with a custom image. */ |
| 107 | -moz-appearance: none; |
| 108 | background: url("chrome://global/skin/media/volumeThumb.png") no-repeat center; |
| 109 | border: none !important; |
| 110 | min-width: 16px; |
| 111 | min-height: 11px; |
| 112 | } |
| 113 | .volumeControl .scale-thumb:hover, .volumeControl .scale-thumb:active { |
| 114 | background-image: url("chrome://global/skin/media/volumeThumb-hover.png"); |
| 115 | } |
| 116 | |
| 117 | .volumeBackgroundBar { |
| 118 | /* margin left/right: make bar 8px wide (control width = 28, minus 2 * 10 margin) */ |
| 119 | margin: 0px 10px; |
| 120 | background-color: rgba(0,0,0,0.5); |
| 121 | border-radius: 2.5px; |
| 122 | } |
| 123 | |
| 124 | .durationBox { |
| 125 | -moz-box-pack: center; |
| 126 | } |
| 127 | |
| 128 | .durationLabel { |
| 129 | margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */ |
| 130 | padding-left: 8px; /* don't bump into the scrubber bar */ |
| 131 | padding-top: 0px; /* center vertically with scrubber bar */ |
| 132 | color: rgba(0,0,0,0.75); |
| 133 | font-size: 11px; |
| 134 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 135 | } |
| 136 | |
| 137 | .positionLabel { |
| 138 | display: none; |
| 139 | } |
| 140 | |
| 141 | .backgroundBar { |
| 142 | /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */ |
| 143 | /* margin left/right: 1/2 of scrubber thumb width, for overhang. */ |
| 144 | margin: 10px 22px; |
| 145 | background-color: rgba(0,0,0,0.75); |
| 146 | border-radius: 2.5px; |
| 147 | } |
| 148 | |
| 149 | .bufferBar, .progressBar { |
| 150 | /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */ |
| 151 | /* margin left/right: 1/2 of scrubber thumb width, for overhang. */ |
| 152 | margin: 10px 22px; |
| 153 | border: none; |
| 154 | background-color: transparent; |
| 155 | min-width: 0px; |
| 156 | min-height: 0px; |
| 157 | } |
| 158 | |
| 159 | /* .progress-bar is an element inside the <progressmeter> implementation. */ |
| 160 | .bufferBar .progress-bar { |
| 161 | /* |
| 162 | * Note that this is drawn on top of the .backgroundBar. So although this |
| 163 | * has the same background-color specified, the semitransparent |
| 164 | * compositing gives it a different visual appearance. |
| 165 | */ |
| 166 | background-color: rgba(255,159,0,0.75); |
| 167 | border-radius: 2.5px; |
| 168 | -moz-appearance: none; |
| 169 | } |
| 170 | |
| 171 | .progressBar .progress-bar { |
| 172 | background-color: #008484; |
| 173 | border-radius: 2.5px; |
| 174 | -moz-appearance: none; |
| 175 | } |
| 176 | |
| 177 | /* .scale-slider is an element inside the <scale> implementation. */ |
| 178 | .scrubber .scale-slider, .volumeControl .scale-slider { |
| 179 | /* Hide the default horizontal bar. */ |
| 180 | background: none; |
| 181 | margin: 0; |
| 182 | } |
| 183 | |
| 184 | .scrubber .scale-slider { |
| 185 | /* abs(margin-top) + margin-bottom + bar height == timeThumb height */ |
| 186 | margin-top: -10px; |
| 187 | margin-bottom: 10px; |
| 188 | } |
| 189 | |
| 190 | /* .scale-thumb is an element inside the <scale> implementation. */ |
| 191 | .scrubber .scale-thumb { |
| 192 | /* Override the default thumb appearance with a custom image. */ |
| 193 | background: transparent; |
| 194 | border: none !important; |
| 195 | } |
| 196 | |
| 197 | .timeThumb { |
| 198 | background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center; |
| 199 | min-width: 45px; |
| 200 | min-height: 28px; |
| 201 | -moz-box-pack: center; |
| 202 | } |
| 203 | |
| 204 | .timeThumb[showhours="true"] { |
| 205 | background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center; |
| 206 | } |
| 207 | |
| 208 | /* |
| 209 | .timeThumb:hover, .timeThumb:active { |
| 210 | background-image: url("chrome://global/skin/media/scrubberThumb-hover.png"); |
| 211 | } |
| 212 | */ |
| 213 | |
| 214 | .timeLabel { |
| 215 | color: rgba(0,0,0,0.75); |
| 216 | font-size: 10px; |
| 217 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 218 | text-shadow: rgba(255,259,0, 0.3) 0 1px; |
| 219 | padding-top: 5px; |
| 220 | } |
| 221 | |
| 222 | .statusOverlay { |
| 223 | -moz-box-align: center; |
| 224 | -moz-box-pack: center; |
| 225 | background-color: rgba(0,0,0,0.55); |
| 226 | } |
| 227 | |
| 228 | .statusIcon { |
| 229 | margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */ |
| 230 | width: 36px; |
| 231 | height: 36px; |
| 232 | } |
| 233 | |
| 234 | .statusIcon[type="throbber"] { |
| 235 | background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center; |
| 236 | } |
| 237 | /* |
| 238 | .statusIcon[type="throbber"][stalled] { |
| 239 | background: url("chrome://global/skin/media/stalled.png") no-repeat center; |
| 240 | } |
| 241 | */ |
| 242 | .statusIcon[type="error"] { |
| 243 | background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center; |
| 244 | } |
| 245 | |
| 246 | /* Overlay Play button */ |
| 247 | .clickToPlay { |
| 248 | width: 64px; |
| 249 | height: 64px; |
| 250 | -moz-box-pack: center; |
| 251 | -moz-box-align: center; |
| 252 | opacity: 0.7; |
| 253 | background-image: url("chrome://global/skin/media/clicktoplay-bgtexture.png"), |
| 254 | url("chrome://global/skin/media/videoClickToPlayButton.svg"); |
| 255 | background-repeat: repeat, no-repeat; |
| 256 | background-position: center, center; |
| 257 | background-size: auto, 64px 64px; |
| 258 | background-color: hsla(0,0%,10%,.5); |
| 259 | } |
| 260 | .clickToPlay:hover { |
| 261 | opacity: 1; |
| 262 | } |
| 263 | |
| 264 | /* Statistics formatting */ |
| 265 | html|*.statsDiv { |
| 266 | position: relative; |
| 267 | } |
| 268 | html|td { |
| 269 | height: 1em; |
| 270 | max-height: 1em; |
| 271 | padding: 0 2px; |
| 272 | } |
| 273 | html|table { |
| 274 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 275 | font-size: 11px; |
| 276 | color: white; |
| 277 | text-shadow: |
| 278 | -1px -1px 0 #000, |
| 279 | 1px -1px 0 #000, |
| 280 | -1px 1px 0 #000, |
| 281 | 1px 1px 0 #000; |
| 282 | min-width: 100%; |
| 283 | background: rgba(68,68,111,.7); |
| 284 | table-layout: fixed; |
| 285 | border-collapse: collapse; |
| 286 | position: absolute; |
| 287 | } |
| 288 | |
| 289 | /* CSS Transitions */ |
| 290 | .clickToPlay { |
| 291 | transition-property: opacity, background-size; |
| 292 | transition-duration: 400ms, 400ms; |
| 293 | } |
| 294 | .clickToPlay[fadeout] { |
| 295 | background-size: auto, 192px 192px; |
| 296 | opacity: 0; |
| 297 | } |
| 298 | .clickToPlay[fadeout][immediate] { |
| 299 | transition-property: opacity, background-size; |
| 300 | transition-duration: 0s, 0s; |
| 301 | } |
| 302 | .controlBar:not([immediate]) { |
| 303 | transition-property: opacity; |
| 304 | transition-duration: 200ms; |
| 305 | } |
| 306 | .controlBar[fadeout] { |
| 307 | opacity: 0; |
| 308 | } |
| 309 | .volumeStack:not([immediate]) { |
| 310 | transition-property: opacity, margin-top; |
| 311 | transition-duration: 200ms, 200ms; |
| 312 | } |
| 313 | .volumeStack[fadeout] { |
| 314 | opacity: 0; |
| 315 | margin-top: 0; |
| 316 | } |
| 317 | .statusOverlay:not([immediate]) { |
| 318 | transition-property: opacity; |
| 319 | transition-duration: 300ms; |
| 320 | transition-delay: 750ms; |
| 321 | } |
| 322 | .statusOverlay[fadeout] { |
| 323 | opacity: 0; |
| 324 | } |
| 325 | |
| 326 | /* Error description formatting */ |
| 327 | .errorLabel { |
| 328 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 329 | font-size: 11px; |
| 330 | color: #E7ADE7; |
| 331 | text-shadow: |
| 332 | -1px -1px 0 #000, |
| 333 | 1px -1px 0 #000, |
| 334 | -1px 1px 0 #000, |
| 335 | 1px 1px 0 #000; |
| 336 | padding: 0 10px; |
| 337 | text-align: center; |
| 338 | } |