Commit | Line | Data |
---|---|---|
29465e59 RK |
1 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
2 | ||
6f25e2c5 | 3 | .controlBar { |
b310ca09 | 4 | height: 28px; |
6f25e2c5 | 5 | background-color: rgba(102,102,153,0.75); |
29465e59 RK |
6 | } |
7 | ||
6f25e2c5 RK |
8 | .playButton, .muteButton { |
9 | /* Remove the usual button appearance and styling */ | |
10 | margin: 0px; | |
11 | padding: 0px; | |
12 | border: none; | |
b310ca09 RK |
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; | |
ca710c53 RK |
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. */ | |
b310ca09 RK |
22 | } |
23 | .muteButton { | |
24 | min-width: 33px; | |
29465e59 RK |
25 | } |
26 | ||
6f25e2c5 | 27 | .playButton { |
b310ca09 | 28 | background-image: url("chrome://global/skin/media/pauseButton.png"); |
29465e59 | 29 | } |
6f25e2c5 | 30 | .playButton[paused="true"] { |
b310ca09 | 31 | background-image: url("chrome://global/skin/media/playButton.png"); |
29465e59 RK |
32 | } |
33 | ||
6f25e2c5 | 34 | .muteButton { |
b310ca09 | 35 | background-image: url("chrome://global/skin/media/muteButton.png"); |
6f25e2c5 RK |
36 | } |
37 | .muteButton[muted="true"] { | |
b310ca09 RK |
38 | background-image: url("chrome://global/skin/media/unmuteButton.png"); |
39 | } | |
40 | ||
ca710c53 RK |
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); | |
1e140ad9 RK |
82 | font-size: 11px; |
83 | font-family: helvetica,arial,tahoma,sans-serif; | |
ca710c53 RK |
84 | } |
85 | ||
b310ca09 | 86 | .backgroundBar { |
ca710c53 RK |
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; | |
b310ca09 RK |
90 | background-color: rgba(0,0,0,0.75); |
91 | } | |
92 | ||
93 | .bufferBar, .progressBar { | |
ca710c53 RK |
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; | |
b310ca09 RK |
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. */ | |
ca710c53 | 120 | .scrubber .scale-slider, .volumeControl .scale-slider { |
b310ca09 RK |
121 | /* Hide the default horizontal bar. */ |
122 | background: none; | |
ca710c53 RK |
123 | margin: 0; |
124 | } | |
125 | ||
126 | .scrubber .scale-slider { | |
127 | /* abs(margin-top) + margin-bottom + bar height == timeThumb height */ | |
1e140ad9 | 128 | margin-top: -10px; |
ca710c53 | 129 | margin-bottom: 10px; |
b310ca09 RK |
130 | } |
131 | ||
132 | /* .scale-thumb is an element inside the <scale> implementation. */ | |
ca710c53 | 133 | .scrubber .scale-thumb { |
b310ca09 | 134 | /* Override the default thumb appearance with a custom image. */ |
ca710c53 | 135 | background: transparent; |
b310ca09 | 136 | border: none !important; |
ca710c53 RK |
137 | } |
138 | ||
139 | .timeThumb { | |
140 | background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center; | |
141 | min-width: 45px; | |
1e140ad9 | 142 | min-height: 28px; |
ca710c53 RK |
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); | |
1e140ad9 RK |
158 | font-size: 10px; |
159 | font-family: helvetica,arial,tahoma,sans-serif; | |
ca710c53 RK |
160 | text-shadow: rgba(102,102,153, 0.3) 0 1px; |
161 | padding-top: 2px; | |
162 | } | |
163 | ||
ca710c53 RK |
164 | .statusOverlay { |
165 | background-color: rgba(0,0,0,0.55); | |
166 | } | |
167 | ||
168 | .statusIcon { | |
169 | margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */ | |
170 | width: 32px; | |
171 | height: 32px; | |
172 | } | |
173 | ||
174 | .statusIcon[type="throbber"] { | |
175 | background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center; | |
176 | } | |
177 | ||
178 | .statusIcon[type="error"] { | |
179 | background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center; | |
6f25e2c5 | 180 | } |