| 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 | .fullscreenButton { |
| 62 | background-color: transparent; |
| 63 | list-style-image: url("chrome://global/skin/media/fullscreenButton.png"); |
| 64 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 65 | -moz-appearance: none; |
| 66 | margin: 0; |
| 67 | padding: 0; |
| 68 | min-height: 28px; |
| 69 | min-width: 28px; |
| 70 | border: none; |
| 71 | } |
| 72 | |
| 73 | .fullscreenButton:hover { |
| 74 | background-color: rgba(255,207,0,0.75); |
| 75 | -moz-image-region: rect(16px, 16px, 32px, 0px); |
| 76 | } |
| 77 | |
| 78 | .fullscreenButton[fullscreened] { |
| 79 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 80 | } |
| 81 | |
| 82 | .fullscreenButton[fullscreened]:hover { |
| 83 | background-color: rgba(255,207,0,0.75); |
| 84 | -moz-image-region: rect(16px, 32px, 32px, 16px); |
| 85 | } |
| 86 | |
| 87 | .volumeStack { |
| 88 | width: 28px; |
| 89 | height: 70px; |
| 90 | background-color: rgba(156,156,255,0.74); |
| 91 | /* use negative margin to place stack over the mute button to its left. */ |
| 92 | margin: -70px 3px 28px -31px; |
| 93 | overflow: hidden; /* crop it when sliding down, don't grow the control bar */ |
| 94 | position: relative; /* Trick to work around negative margin interfering with dragging the thumb. */ |
| 95 | padding-top: 6px; |
| 96 | border-radius: 3px 3px 0 0; |
| 97 | } |
| 98 | |
| 99 | .volumeControl { |
| 100 | min-height: 64px; |
| 101 | } |
| 102 | |
| 103 | /* .scale-thumb is an element inside the <scale> implementation. */ |
| 104 | .volumeControl .scale-thumb { |
| 105 | /* Override the default thumb appearance with a custom image. */ |
| 106 | -moz-appearance: none; |
| 107 | background: url("chrome://global/skin/media/volumeThumb.png") no-repeat center; |
| 108 | border: none !important; |
| 109 | min-width: 16px; |
| 110 | min-height: 11px; |
| 111 | } |
| 112 | .volumeControl .scale-thumb:hover, .volumeControl .scale-thumb:active { |
| 113 | background-image: url("chrome://global/skin/media/volumeThumb-hover.png"); |
| 114 | } |
| 115 | |
| 116 | .volumeBackgroundBar { |
| 117 | /* margin left/right: make bar 8px wide (control width = 28, minus 2 * 10 margin) */ |
| 118 | margin: 0px 10px; |
| 119 | background-color: rgba(0,0,0,0.5); |
| 120 | border-radius: 4px 4px; |
| 121 | } |
| 122 | |
| 123 | .durationBox { |
| 124 | -moz-box-pack: center; |
| 125 | } |
| 126 | |
| 127 | .durationLabel { |
| 128 | margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */ |
| 129 | padding-left: 8px; /* don't bump into the scrubber bar */ |
| 130 | padding-top: 0px; /* center vertically with scrubber bar */ |
| 131 | color: rgba(0,0,0,0.75); |
| 132 | font-size: 11px; |
| 133 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 134 | } |
| 135 | |
| 136 | .positionLabel { |
| 137 | display: none; |
| 138 | } |
| 139 | |
| 140 | .backgroundBar { |
| 141 | /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */ |
| 142 | /* margin left/right: 1/2 of scrubber thumb width, for overhang. */ |
| 143 | margin: 10px 22px; |
| 144 | background-color: rgba(0,0,0,0.75); |
| 145 | border-radius: 4px 4px; |
| 146 | } |
| 147 | |
| 148 | .bufferBar, .progressBar { |
| 149 | /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */ |
| 150 | /* margin left/right: 1/2 of scrubber thumb width, for overhang. */ |
| 151 | margin: 10px 22px; |
| 152 | border: none; |
| 153 | background-color: transparent; |
| 154 | min-width: 0px; |
| 155 | min-height: 0px; |
| 156 | } |
| 157 | |
| 158 | /* .progress-bar is an element inside the <progressmeter> implementation. */ |
| 159 | .bufferBar .progress-bar { |
| 160 | /* |
| 161 | * Note that this is drawn on top of the .backgroundBar. So although this |
| 162 | * has the same background-color specified, the semitransparent |
| 163 | * compositing gives it a different visual appearance. |
| 164 | */ |
| 165 | background-color: rgba(255,159,0,0.75); |
| 166 | border-radius: 4px 4px; |
| 167 | -moz-appearance: none; |
| 168 | } |
| 169 | |
| 170 | .progressBar .progress-bar { |
| 171 | background-color: #008484; |
| 172 | border-radius: 4px 0px 0px 4px; |
| 173 | -moz-appearance: none; |
| 174 | } |
| 175 | |
| 176 | /* .scale-slider is an element inside the <scale> implementation. */ |
| 177 | .scrubber .scale-slider, .volumeControl .scale-slider { |
| 178 | /* Hide the default horizontal bar. */ |
| 179 | background: none; |
| 180 | margin: 0; |
| 181 | } |
| 182 | |
| 183 | .scrubber .scale-slider { |
| 184 | /* abs(margin-top) + margin-bottom + bar height == timeThumb height */ |
| 185 | margin-top: -10px; |
| 186 | margin-bottom: 10px; |
| 187 | } |
| 188 | |
| 189 | /* .scale-thumb is an element inside the <scale> implementation. */ |
| 190 | .scrubber .scale-thumb { |
| 191 | /* Override the default thumb appearance with a custom image. */ |
| 192 | background: transparent; |
| 193 | border: none !important; |
| 194 | } |
| 195 | |
| 196 | .timeThumb { |
| 197 | background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center; |
| 198 | min-width: 45px; |
| 199 | min-height: 28px; |
| 200 | -moz-box-pack: center; |
| 201 | } |
| 202 | |
| 203 | .timeThumb[showhours="true"] { |
| 204 | background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center; |
| 205 | } |
| 206 | |
| 207 | /* |
| 208 | .timeThumb:hover, .timeThumb:active { |
| 209 | background-image: url("chrome://global/skin/media/scrubberThumb-hover.png"); |
| 210 | } |
| 211 | */ |
| 212 | |
| 213 | .timeLabel { |
| 214 | color: rgba(0,0,0,0.75); |
| 215 | font-size: 10px; |
| 216 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 217 | text-shadow: rgba(255,259,0, 0.3) 0 1px; |
| 218 | padding-top: 2px; |
| 219 | } |
| 220 | |
| 221 | .statusOverlay { |
| 222 | -moz-box-align: center; |
| 223 | -moz-box-pack: center; |
| 224 | background-color: rgba(0,0,0,0.55); |
| 225 | } |
| 226 | |
| 227 | .statusIcon { |
| 228 | margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */ |
| 229 | width: 36px; |
| 230 | height: 36px; |
| 231 | } |
| 232 | |
| 233 | .statusIcon[type="throbber"] { |
| 234 | background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center; |
| 235 | } |
| 236 | /* |
| 237 | .statusIcon[type="throbber"][stalled] { |
| 238 | background: url("chrome://global/skin/media/stalled.png") no-repeat center; |
| 239 | } |
| 240 | */ |
| 241 | .statusIcon[type="error"] { |
| 242 | background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center; |
| 243 | } |
| 244 | |
| 245 | /* Statistics formatting */ |
| 246 | html|*.statsDiv { |
| 247 | position: relative; |
| 248 | } |
| 249 | html|td { |
| 250 | height: 1em; |
| 251 | max-height: 1em; |
| 252 | padding: 0 2px; |
| 253 | } |
| 254 | html|table { |
| 255 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 256 | font-size: 11px; |
| 257 | color: white; |
| 258 | text-shadow: |
| 259 | -1px -1px 0 #000, |
| 260 | 1px -1px 0 #000, |
| 261 | -1px 1px 0 #000, |
| 262 | 1px 1px 0 #000; |
| 263 | min-width: 100%; |
| 264 | background: rgba(68,68,111,.7); |
| 265 | table-layout: fixed; |
| 266 | border-collapse: collapse; |
| 267 | position: absolute; |
| 268 | } |
| 269 | |
| 270 | /* CSS Transitions */ |
| 271 | .controlBar:not([immediate]) { |
| 272 | -moz-transition-property: opacity; |
| 273 | -moz-transition-duration: 200ms; |
| 274 | } |
| 275 | .controlBar[fadeout] { |
| 276 | opacity: 0; |
| 277 | } |
| 278 | .volumeStack:not([immediate]) { |
| 279 | -moz-transition-property: opacity, margin-top; |
| 280 | -moz-transition-duration: 200ms, 200ms; |
| 281 | } |
| 282 | .volumeStack[fadeout] { |
| 283 | opacity: 0; |
| 284 | margin-top: 0; |
| 285 | } |
| 286 | .statusOverlay:not([immediate]) { |
| 287 | -moz-transition-property: opacity; |
| 288 | -moz-transition-duration: 300ms; |
| 289 | -moz-transition-delay: 750ms; |
| 290 | } |
| 291 | .statusOverlay[fadeout] { |
| 292 | opacity: 0; |
| 293 | } |
| 294 | |
| 295 | /* Error description formatting */ |
| 296 | .errorLabel { |
| 297 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 298 | font-size: 11px; |
| 299 | color: #E7ADE7; |
| 300 | text-shadow: |
| 301 | -1px -1px 0 #000, |
| 302 | 1px -1px 0 #000, |
| 303 | -1px 1px 0 #000, |
| 304 | 1px 1px 0 #000; |
| 305 | padding: 0 10px; |
| 306 | text-align: center; |
| 307 | } |