update both themes for toolkit winstripe changes between 2009-02-23 and 2009-05-01
[themes.git] / EarlyBlue / global / media / videocontrols.css
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: 11px sans-serif;
83 }
84
85 .backgroundBar {
86   /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
87   /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
88   margin: 10px 22px;
89   background-color: rgba(0,0,0,0.75);
90 }
91
92 .bufferBar, .progressBar {
93   /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
94   /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
95   margin: 10px 22px;
96   border: none;
97   background-color: transparent;
98   min-width: 0px;
99   min-height: 0px;
100 }
101
102 /* .progress-bar is an element inside the <progressmeter> implementation. */
103 .bufferBar .progress-bar {
104   /*
105    * Note that this is drawn on top of the .backgroundBar. So although this
106    * has the same background-color specified, the semitransparent
107    * compositing gives it a different visual appearance.
108    */
109   background-color: rgba(204,208,221,0.75);
110   -moz-appearance: none;
111 }
112
113 .progressBar .progress-bar {
114   background-color: #336699;
115   -moz-appearance: none;
116 }
117
118 /* .scale-slider is an element inside the <scale> implementation. */
119 .scrubber .scale-slider, .volumeControl .scale-slider {
120   /* Hide the default horizontal bar. */
121   background: none;
122   margin: 0;
123 }
124
125 .scrubber .scale-slider {
126     /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
127     margin-top: -9px;
128     margin-bottom: 10px;
129 }
130
131 /* .scale-thumb is an element inside the <scale> implementation. */
132 .scrubber .scale-thumb {
133   /* Override the default thumb appearance with a custom image. */
134   background: transparent;
135   border: none !important;
136 }
137
138 .timeThumb {
139     background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center;
140     min-width: 45px;
141     min-height: 27px;
142     -moz-box-pack: center;
143 }
144
145 .timeThumb[showhours="true"] {
146     background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center;
147 }
148
149 /*
150 .timeThumb:hover, .timeThumb:active {
151   background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
152 }
153 */
154
155 .timeLabel {
156     color: rgba(0,0,0,0.75);
157     font: 10px sans-serif;
158     text-shadow: rgba(102,102,153, 0.3) 0 1px;
159     padding-top: 2px;
160 }
161
162 .timeThumb[showhours="true"] > .timeLabel {
163     padding-top: 1px;
164 }
165
166 .statusOverlay {
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 }