start 2.8 development cycle for both themes
[themes.git] / LCARStrek / global / media / videocontrols.css
CommitLineData
29465e59 1@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
1e29db46 2@namespace html url("http://www.w3.org/1999/xhtml");
29465e59 3
6f25e2c5 4.controlBar {
b310ca09 5 height: 28px;
6f25e2c5 6 background-color: rgba(156,156,255,0.75);
29465e59
RK
7}
8
6f25e2c5
RK
9.playButton, .muteButton {
10 /* Remove the usual button appearance and styling */
11 margin: 0px;
12 padding: 0px;
13 border: none;
b310ca09 14 min-height: 28px;
1880ed93
RK
15 background-color: transparent;
16 background-repeat: no-repeat;
17 background-position: center center;
18}
b310ca09
RK
19.playButton {
20 min-width: 28px;
ca710c53
RK
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. */
b310ca09
RK
23}
24.muteButton {
25 min-width: 33px;
26}
1880ed93
RK
27.playButton:hover, .muteButton:hover {
28 background-color: rgba(255,207,0,0.75);
29}
024ec655
RK
30.playButton:-moz-focusring > .button-box,
31.muteButton:-moz-focusring > .button-box {
1880ed93 32 border: 1px dotted rgba(0,0,0,0.75);
29465e59
RK
33}
34
6f25e2c5 35.playButton {
1880ed93 36 background-image: url("chrome://global/skin/media/pauseButton.png");
6f25e2c5
RK
37}
38.playButton:hover {
1880ed93 39 background-image: url("chrome://global/skin/media/pauseButton-hover.png");
29465e59 40}
6f25e2c5 41.playButton[paused="true"] {
1880ed93 42 background-image: url("chrome://global/skin/media/playButton.png");
6f25e2c5
RK
43}
44.playButton[paused="true"]:hover {
1880ed93 45 background-image: url("chrome://global/skin/media/playButton-hover.png");
29465e59
RK
46}
47
6f25e2c5 48.muteButton {
1880ed93 49 background-image: url("chrome://global/skin/media/muteButton.png");
6f25e2c5
RK
50}
51.muteButton:hover {
1880ed93 52 background-image: url("chrome://global/skin/media/muteButton-hover.png");
6f25e2c5
RK
53}
54.muteButton[muted="true"] {
1880ed93 55 background-image: url("chrome://global/skin/media/unmuteButton.png");
6f25e2c5
RK
56}
57.muteButton[muted="true"]:hover {
1880ed93 58 background-image: url("chrome://global/skin/media/unmuteButton-hover.png");
6f25e2c5 59}
b310ca09 60
ca710c53
RK
61.volumeStack {
62 width: 28px;
63 height: 70px;
64 background-color: rgba(156,156,255,0.74);
65 /* use negative margin to place stack over the mute button to its left. */
66 margin: -70px 3px 28px -31px;
67 overflow: hidden; /* crop it when sliding down, don't grow the control bar */
68 position: relative; /* Trick to work around negative margin interfering with dragging the thumb. */
69 padding-top: 6px;
e51a824f 70 border-radius: 3px 3px 0 0;
ca710c53
RK
71}
72
73.volumeControl {
74 min-height: 64px;
75}
76
77/* .scale-thumb is an element inside the <scale> implementation. */
78.volumeControl .scale-thumb {
79 /* Override the default thumb appearance with a custom image. */
80 -moz-appearance: none;
81 background: url("chrome://global/skin/media/volumeThumb.png") no-repeat center;
82 border: none !important;
83 min-width: 16px;
84 min-height: 11px;
85}
86.volumeControl .scale-thumb:hover, .volumeControl .scale-thumb:active {
87 background-image: url("chrome://global/skin/media/volumeThumb-hover.png");
88}
89
90.volumeBackgroundBar {
91 /* margin left/right: make bar 8px wide (control width = 28, minus 2 * 10 margin) */
92 margin: 0px 10px;
93 background-color: rgba(0,0,0,0.5);
569543b3 94 border-radius: 4px 4px;
ca710c53
RK
95}
96
ca710c53
RK
97.durationBox {
98 -moz-box-pack: center;
99}
100
101.durationLabel {
102 margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */
103 padding-left: 8px; /* don't bump into the scrubber bar */
104 padding-top: 0px; /* center vertically with scrubber bar */
105 color: rgba(0,0,0,0.75);
1e140ad9 106 font-size: 11px;
3327253e 107 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
ca710c53
RK
108}
109
9162a092
RK
110.positionLabel {
111 display: none;
112}
113
b310ca09 114.backgroundBar {
ca710c53
RK
115 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
116 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
117 margin: 10px 22px;
b310ca09 118 background-color: rgba(0,0,0,0.75);
569543b3 119 border-radius: 4px 4px;
b310ca09
RK
120}
121
122.bufferBar, .progressBar {
ca710c53
RK
123 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
124 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
125 margin: 10px 22px;
b310ca09
RK
126 border: none;
127 background-color: transparent;
128 min-width: 0px;
129 min-height: 0px;
130}
131
132/* .progress-bar is an element inside the <progressmeter> implementation. */
133.bufferBar .progress-bar {
134 /*
135 * Note that this is drawn on top of the .backgroundBar. So although this
136 * has the same background-color specified, the semitransparent
137 * compositing gives it a different visual appearance.
138 */
139 background-color: rgba(255,159,0,0.75);
569543b3 140 border-radius: 4px 4px;
b310ca09
RK
141 -moz-appearance: none;
142}
143
144.progressBar .progress-bar {
145 background-color: #008484;
569543b3 146 border-radius: 4px 0px 0px 4px;
b310ca09
RK
147 -moz-appearance: none;
148}
149
150/* .scale-slider is an element inside the <scale> implementation. */
ca710c53 151.scrubber .scale-slider, .volumeControl .scale-slider {
b310ca09
RK
152 /* Hide the default horizontal bar. */
153 background: none;
ca710c53
RK
154 margin: 0;
155}
156
157.scrubber .scale-slider {
3327253e
RK
158 /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
159 margin-top: -10px;
160 margin-bottom: 10px;
b310ca09
RK
161}
162
163/* .scale-thumb is an element inside the <scale> implementation. */
ca710c53 164.scrubber .scale-thumb {
b310ca09 165 /* Override the default thumb appearance with a custom image. */
ca710c53 166 background: transparent;
b310ca09 167 border: none !important;
b310ca09
RK
168}
169
ca710c53
RK
170.timeThumb {
171 background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center;
172 min-width: 45px;
1e140ad9 173 min-height: 28px;
ca710c53
RK
174 -moz-box-pack: center;
175}
176
177.timeThumb[showhours="true"] {
178 background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center;
179}
180
181/*
182.timeThumb:hover, .timeThumb:active {
b310ca09
RK
183 background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
184}
ca710c53
RK
185*/
186
187.timeLabel {
3327253e
RK
188 color: rgba(0,0,0,0.75);
189 font-size: 10px;
190 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
191 text-shadow: rgba(255,259,0, 0.3) 0 1px;
192 padding-top: 2px;
ca710c53
RK
193}
194
ca710c53 195.statusOverlay {
3327253e
RK
196 -moz-box-align: center;
197 -moz-box-pack: center;
198 background-color: rgba(0,0,0,0.55);
ca710c53
RK
199}
200
201.statusIcon {
3327253e
RK
202 margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
203 width: 36px;
204 height: 36px;
ca710c53
RK
205}
206
207.statusIcon[type="throbber"] {
3327253e 208 background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center;
ca710c53 209}
154ee8b3
RK
210/*
211.statusIcon[type="throbber"][stalled] {
212 background: url("chrome://global/skin/media/stalled.png") no-repeat center;
213}
214*/
ca710c53 215.statusIcon[type="error"] {
3327253e 216 background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center;
ca710c53 217}
4b1ccdb4 218
1e29db46
RK
219/* Statistics formatting */
220html|*.statsDiv {
221 position: relative;
222}
223html|td {
224 height: 1em;
225 max-height: 1em;
226 padding: 0 2px;
227}
228html|table {
229 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
230 font-size: 11px;
231 color: white;
232 text-shadow:
233 -1px -1px 0 #000,
234 1px -1px 0 #000,
235 -1px 1px 0 #000,
236 1px 1px 0 #000;
237 min-width: 100%;
238 background: rgba(68,68,111,.7);
239 table-layout: fixed;
240 border-collapse: collapse;
241 position: absolute;
242}
243
4b1ccdb4
RK
244/* CSS Transitions */
245.controlBar:not([immediate]) {
246 -moz-transition-property: opacity;
247 -moz-transition-duration: 200ms;
248}
249.controlBar[fadeout] {
250 opacity: 0;
251}
252.volumeStack:not([immediate]) {
253 -moz-transition-property: opacity, margin-top;
254 -moz-transition-duration: 200ms, 200ms;
255}
256.volumeStack[fadeout] {
257 opacity: 0;
258 margin-top: 0;
259}
260.statusOverlay:not([immediate]) {
261 -moz-transition-property: opacity;
262 -moz-transition-duration: 300ms;
263 -moz-transition-delay: 750ms;
264}
265.statusOverlay[fadeout] {
266 opacity: 0;
267}