update global in both themes to withstand a manual diff check
[themes.git] / EarlyBlue / global / media / videocontrols.css
... / ...
CommitLineData
1@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
2
3.controlBar {
4 height: 28px;
5 background-color: rgba(102,102,153,0.75);
6}
7
8.playButton, .muteButton {
9 /* Remove the usual button appearance and styling */
10 margin: 0px;
11 padding: 0px;
12 border: none;
13 min-height: 28px;
14 background-color: transparent;
15 background-repeat: no-repeat;
16 background-position: center center;
17}
18.playButton {
19 min-width: 28px;
20 margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */
21 position: relative; /* Trick to work around negative margin interfering with clicking on the button. */
22}
23.muteButton {
24 min-width: 33px;
25}
26
27.playButton {
28 background-image: url("chrome://global/skin/media/pauseButton.png");
29}
30.playButton[paused="true"] {
31 background-image: url("chrome://global/skin/media/playButton.png");
32}
33
34.muteButton {
35 background-image: url("chrome://global/skin/media/muteButton.png");
36}
37.muteButton[muted="true"] {
38 background-image: url("chrome://global/skin/media/unmuteButton.png");
39}
40
41.volumeStack {
42 width: 28px;
43 height: 70px;
44 background-color: rgba(102,102,153,0.74);
45 /* use negative margin to place stack over the mute button to its left. */
46 margin: -70px 3px 28px -31px;
47 overflow: hidden; /* crop it when sliding down, don't grow the control bar */
48 position: relative; /* Trick to work around negative margin interfering with dragging the thumb. */
49 padding-top: 6px;
50}
51
52.volumeControl {
53 min-height: 64px;
54}
55
56/* .scale-thumb is an element inside the <scale> implementation. */
57.volumeControl .scale-thumb {
58 /* Override the default thumb appearance with a custom image. */
59 -moz-appearance: none;
60 background: url("chrome://global/skin/media/volumeThumb.png") no-repeat center;
61 border: none !important;
62 min-width: 16px;
63 min-height: 11px;
64}
65
66.volumeBackgroundBar {
67 /* margin left/right: make bar 8px wide (control width = 28, minus 2 * 10 margin) */
68 margin: 0px 10px;
69 background-color: rgba(0,0,0,0.5);
70}
71
72
73.durationBox {
74 -moz-box-pack: center;
75}
76
77.durationLabel {
78 margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */
79 padding-left: 8px; /* don't bump into the scrubber bar */
80 padding-top: 0px; /* center vertically with scrubber bar */
81 color: rgba(204,208,221,0.75);
82 font-size: 11px;
83 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
84}
85
86.backgroundBar {
87 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
88 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
89 margin: 10px 22px;
90 background-color: rgba(0,0,0,0.75);
91}
92
93.bufferBar, .progressBar {
94 /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
95 /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
96 margin: 10px 22px;
97 border: none;
98 background-color: transparent;
99 min-width: 0px;
100 min-height: 0px;
101}
102
103/* .progress-bar is an element inside the <progressmeter> implementation. */
104.bufferBar .progress-bar {
105 /*
106 * Note that this is drawn on top of the .backgroundBar. So although this
107 * has the same background-color specified, the semitransparent
108 * compositing gives it a different visual appearance.
109 */
110 background-color: rgba(204,208,221,0.75);
111 -moz-appearance: none;
112}
113
114.progressBar .progress-bar {
115 background-color: #336699;
116 -moz-appearance: none;
117}
118
119/* .scale-slider is an element inside the <scale> implementation. */
120.scrubber .scale-slider, .volumeControl .scale-slider {
121 /* Hide the default horizontal bar. */
122 background: none;
123 margin: 0;
124}
125
126.scrubber .scale-slider {
127 /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
128 margin-top: -10px;
129 margin-bottom: 10px;
130}
131
132/* .scale-thumb is an element inside the <scale> implementation. */
133.scrubber .scale-thumb {
134 /* Override the default thumb appearance with a custom image. */
135 background: transparent;
136 border: none !important;
137}
138
139.timeThumb {
140 background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center;
141 min-width: 45px;
142 min-height: 28px;
143 -moz-box-pack: center;
144}
145
146.timeThumb[showhours="true"] {
147 background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center;
148}
149
150/*
151.timeThumb:hover, .timeThumb:active {
152 background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
153}
154*/
155
156.timeLabel {
157 color: rgba(0,0,0,0.75);
158 font-size: 10px;
159 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
160 text-shadow: rgba(102,102,153, 0.3) 0 1px;
161 padding-top: 2px;
162}
163
164.statusOverlay {
165 -moz-box-align: center;
166 -moz-box-pack: center;
167 background-color: rgba(0,0,0,0.55);
168}
169
170.statusIcon {
171 margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
172 width: 32px;
173 height: 32px;
174}
175
176.statusIcon[type="throbber"] {
177 background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center;
178}
179
180.statusIcon[type="error"] {
181 background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center;
182}
183
184/* CSS Transitions */
185.controlBar:not([immediate]) {
186 -moz-transition-property: opacity;
187 -moz-transition-duration: 200ms;
188}
189.controlBar[fadeout] {
190 opacity: 0;
191}
192.volumeStack:not([immediate]) {
193 -moz-transition-property: opacity, margin-top;
194 -moz-transition-duration: 200ms, 200ms;
195}
196.volumeStack[fadeout] {
197 opacity: 0;
198 margin-top: 0;
199}
200.statusOverlay:not([immediate]) {
201 -moz-transition-property: opacity;
202 -moz-transition-duration: 300ms;
203 -moz-transition-delay: 750ms;
204}
205.statusOverlay[fadeout] {
206 opacity: 0;
207}