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