Commit | Line | Data |
---|---|---|
128000f4 | 1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
4 | * The contents of this file are subject to the Mozilla Public License Version | |
5 | * 1.1 (the "License"); you may not use this file except in compliance with | |
6 | * the License. You may obtain a copy of the License at | |
7 | * http://www.mozilla.org/MPL/ | |
8 | * | |
9 | * Software distributed under the License is distributed on an "AS IS" basis, | |
10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
11 | * for the specific language governing rights and limitations under the | |
12 | * License. | |
13 | * | |
14 | * The Original Code is "Classic" theme of mozilla.org code. | |
15 | * | |
16 | * The Initial Developer of the Original Code is | |
17 | * the Mozilla Organization. | |
18 | * Portions created by the Initial Developer are Copyright (C) 1998-2001 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
22 | * Robert Kaiser <KaiRo@KaiRo.at> | |
23 | * | |
24 | * Alternatively, the contents of this file may be used under the terms of | |
25 | * either the GNU General Public License Version 2 or later (the "GPL"), or | |
26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
27 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
28 | * of those above. If you wish to allow use of your version of this file only | |
29 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
30 | * use your version of this file under the terms of the MPL, indicate your | |
31 | * decision by deleting the provisions above and replace them with the notice | |
32 | * and other provisions required by the GPL or the LGPL. If you do not delete | |
33 | * the provisions above, a recipient may use your version of this file under | |
34 | * the terms of any one of the MPL, the GPL or the LGPL. | |
35 | * | |
36 | * ***** END LICENSE BLOCK ***** */ | |
37 | ||
76983f4c | 38 | /** Contains style definitions for the navigator application |
f6e0a33f | 39 | **/ |
40 | ||
74d14f90 | 41 | @import url("chrome://navigator/content/navigator.css"); |
42 | @import url("chrome://communicator/skin/"); | |
74d14f90 | 43 | @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css"); |
f6e0a33f | 44 | |
f840e302 | 45 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
46 | ||
74d14f90 | 47 | /* ::::: primary toolbar buttons ::::: */ |
f6e0a33f | 48 | |
74d14f90 | 49 | #back-button { |
ecb2fda9 RK |
50 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
51 | -moz-image-region: rect(42px 25px 63px 0px); | |
74d14f90 | 52 | } |
f6e0a33f | 53 | |
74d14f90 | 54 | #back-button[disabled="true"] { |
749ee109 | 55 | -moz-image-region: rect(42px 50px 63px 25px); |
74d14f90 | 56 | } |
f6e0a33f | 57 | |
74d14f90 | 58 | #forward-button { |
ecb2fda9 RK |
59 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
60 | -moz-image-region: rect(63px 25px 84px 0px); | |
74d14f90 | 61 | } |
62 | ||
63 | #forward-button[disabled="true"] { | |
749ee109 | 64 | -moz-image-region: rect(63px 50px 84px 25px); |
74d14f90 | 65 | } |
66 | ||
67 | #reload-button { | |
749ee109 RK |
68 | list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png"); |
69 | -moz-image-region: rect(0px 25px 21px 0px); | |
74d14f90 | 70 | } |
749ee109 | 71 | |
74d14f90 | 72 | #reload-button[disabled="true"] { |
749ee109 | 73 | -moz-image-region: rect(0px 50px 21px 25px); |
74d14f90 | 74 | } |
75 | ||
76 | #stop-button { | |
ecb2fda9 RK |
77 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
78 | -moz-image-region: rect(21px 25px 42px 0px); | |
74d14f90 | 79 | } |
80 | ||
81 | #stop-button[disabled="true"] { | |
749ee109 | 82 | -moz-image-region: rect(21px 50px 42px 25px); |
76983f4c | 83 | } |
74d14f90 | 84 | |
85 | #print-button { | |
ecb2fda9 RK |
86 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
87 | -moz-image-region: rect(0px 25px 21px 0px); | |
74d14f90 | 88 | } |
f6e0a33f | 89 | |
90 | #print-button[disabled="true"] { | |
749ee109 | 91 | -moz-image-region: rect(0px 50px 21px 25px); |
74d14f90 | 92 | } |
f6e0a33f | 93 | |
0ef1663c RK |
94 | #home-button { |
95 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); | |
96 | -moz-image-region: rect(84px 25px 105px 0px); | |
97 | } | |
98 | ||
99 | #home-button[disabled="true"] { | |
100 | -moz-image-region: rect(84px 50px 105px 25px); | |
101 | } | |
102 | ||
f2450795 | 103 | #clear-button { |
104 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); | |
105 | } | |
106 | ||
0ef1663c RK |
107 | toolbar[iconsize="small"] > #back-button { |
108 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
109 | -moz-image-region: rect(32px 16px 48px 0); | |
110 | } | |
111 | ||
112 | toolbar[iconsize="small"] > #back-button[disabled="true"] { | |
113 | -moz-image-region: rect(32px 32px 48px 16px) !important; | |
114 | } | |
115 | ||
116 | toolbar[iconsize="small"] > #forward-button { | |
117 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
118 | -moz-image-region: rect(48px 16px 64px 0); | |
119 | } | |
120 | ||
121 | toolbar[iconsize="small"] > #forward-button[disabled="true"] { | |
122 | -moz-image-region: rect(48px 32px 64px 16px) !important; | |
123 | } | |
124 | ||
125 | toolbar[iconsize="small"] > #reload-button { | |
126 | list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png"); | |
127 | -moz-image-region: rect(0 16px 16px 0); | |
128 | } | |
129 | ||
130 | toolbar[iconsize="small"] > #reload-button[disabled="true"] { | |
131 | -moz-image-region: rect(0 32px 16px 16px) !important; | |
132 | } | |
133 | ||
134 | toolbar[iconsize="small"] > #stop-button { | |
135 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
136 | -moz-image-region: rect(16px 16px 32px 0); | |
137 | } | |
138 | ||
139 | toolbar[iconsize="small"] > #stop-button[disabled="true"] { | |
140 | -moz-image-region: rect(16px 32px 32px 16px) !important; | |
141 | } | |
142 | ||
143 | toolbar[iconsize="small"] > #print-button { | |
144 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
145 | -moz-image-region: rect(0 16px 16px 0); | |
146 | } | |
147 | ||
148 | toolbar[iconsize="small"] > #print-button[disabled="true"] { | |
149 | -moz-image-region: rect(0 32px 16px 16px) !important; | |
150 | } | |
151 | ||
152 | toolbar[iconsize="small"] > #home-button { | |
153 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
154 | -moz-image-region: rect(64px 16px 80px 0); | |
155 | } | |
156 | ||
157 | toolbar[iconsize="small"] > #home-button[disabled="true"] { | |
158 | -moz-image-region: rect(64px 32px 80px 16px) !important; | |
159 | } | |
160 | ||
c8120ee9 | 161 | /* ::::: fullscreen window controls ::::: */ |
162 | ||
163 | #window-controls { | |
164 | -moz-box-align: center; | |
749ee109 | 165 | padding: 0 2px; |
083cee4a | 166 | border-left: 1px solid #9999CC; |
749ee109 | 167 | -moz-margin-start: 2px; |
083cee4a | 168 | } |
169 | ||
170 | #window-controls > toolbarbutton { | |
749ee109 RK |
171 | padding: 3px; |
172 | -moz-padding-start: 2px; | |
173 | -moz-padding-end: 1px; | |
174 | } | |
175 | ||
176 | toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon { | |
177 | display: -moz-box; | |
c8120ee9 | 178 | } |
179 | ||
180 | #minimize-button { | |
181 | list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif"); | |
182 | } | |
183 | ||
184 | #restore-button { | |
185 | list-style-image: url("chrome://navigator/skin/icons/win-restore.gif"); | |
186 | } | |
187 | ||
188 | #close-button { | |
189 | list-style-image: url("chrome://navigator/skin/icons/win-close.gif"); | |
190 | } | |
191 | ||
74d14f90 | 192 | /* ::::: nav-bar-inner ::::: */ |
193 | ||
d1476608 | 194 | .nav-bar-class { |
749ee109 RK |
195 | -moz-padding-start: 1px; |
196 | -moz-padding-end: 1px; | |
74d14f90 | 197 | min-width: 0px; |
749ee109 | 198 | -moz-box-align: center; |
74d14f90 | 199 | } |
76983f4c | 200 | |
ff5bd775 RK |
201 | #urlbar:-moz-lwtheme:not([focused="true"]), |
202 | .tabbrowser-tab:-moz-lwtheme:not([selected="true"]) { | |
203 | opacity: .8; | |
204 | } | |
205 | ||
206 | .tabbrowser-tab:-moz-lwtheme { | |
207 | text-shadow: none; | |
208 | } | |
209 | ||
74d14f90 | 210 | #urlbar { |
749ee109 RK |
211 | margin: 0; |
212 | -moz-margin-start: 3px; | |
213 | } | |
214 | ||
215 | #urlbar > .autocomplete-textbox-container { | |
216 | -moz-border-radius: 3px 0 0 3px; | |
217 | padding: 2px; | |
76983f4c | 218 | } |
74d14f90 | 219 | |
d84b9613 | 220 | #urlbar[level="high"] > .autocomplete-textbox-container, |
221 | #urlbar[level="low"] > .autocomplete-textbox-container { | |
222 | background-color: #FFFFCC; | |
223 | } | |
224 | ||
e8fc8e8e RK |
225 | #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar, |
226 | #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons { | |
227 | display: none; | |
228 | } | |
229 | ||
74d14f90 | 230 | /* ::::: page proxy icon ::::: */ |
76983f4c | 231 | |
74d14f90 | 232 | #page-proxy-deck, |
233 | #page-proxy-favicon, | |
234 | #page-proxy-button { | |
235 | width: 16px; | |
236 | height: 16px; | |
237 | } | |
2d09e496 | 238 | |
239 | #page-proxy-deck { | |
d2f0d128 | 240 | cursor: -moz-grab; |
749ee109 | 241 | margin: 0; |
74d14f90 | 242 | } |
243 | ||
244 | #page-proxy-button { | |
76983f4c | 245 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
76983f4c | 246 | } |
74d14f90 | 247 | |
248 | #page-proxy-favicon { | |
249 | list-style-image: none; | |
76983f4c | 250 | } |
f6e0a33f | 251 | |
74d14f90 | 252 | /* ::::: autocomplete ::::: */ |
253 | ||
a1f525f0 | 254 | .autocomplete-treebody::-moz-tree-cell-text(value) { |
e8fc8e8e | 255 | -moz-padding-start: 13px; |
f6e0a33f | 256 | } |
f6e0a33f | 257 | |
a1f525f0 | 258 | .autocomplete-treebody::-moz-tree-cell-text(comment) { |
74d14f90 | 259 | color: #808080; |
260 | /* font-style: italic; */ | |
f6e0a33f | 261 | } |
262 | ||
74d14f90 | 263 | .autocomplete-search-box { |
264 | border-top: 1px solid #9999CC; | |
265 | background-color: #666699; | |
266 | color: #000000; | |
267 | } | |
f6e0a33f | 268 | |
74d14f90 | 269 | .autocomplete-result-popup[nomatch] > .autocomplete-search-box { |
270 | border-top: 1px solid #666699; | |
271 | } | |
272 | ||
273 | .autocomplete-search-engine { | |
274 | padding: 2px; | |
275 | } | |
276 | ||
277 | .autocomplete-search-engine[menuactive="true"] { | |
278 | background-color: #9999CC; | |
279 | color: #000000; | |
280 | } | |
281 | ||
282 | .autocomplete-search-engine-img { | |
8caa872d | 283 | -moz-margin-end: 4px; |
74d14f90 | 284 | } |
285 | ||
286 | /* ::::: go and searchbuttons ::::: */ | |
f6e0a33f | 287 | |
76983f4c | 288 | #search-button, |
f6e0a33f | 289 | #go-button { |
749ee109 RK |
290 | margin: 0; |
291 | padding: 1px 0; | |
292 | -moz-margin-start: 2px; | |
74d14f90 | 293 | background-color: #9999CC; |
f6e0a33f | 294 | } |
295 | ||
749ee109 RK |
296 | /* care that those buttons base on the same min height of 16px that the urlbar |
297 | autocomplete box gets through site icon and urlbar icons at the right */ | |
d1476608 | 298 | #search-button > .button-box, |
749ee109 RK |
299 | #go-button > .button-box { |
300 | min-height: 16px; | |
301 | } | |
302 | ||
ff5bd775 RK |
303 | #search-button:-moz-lwtheme, |
304 | #go-button:-moz-lwtheme { | |
305 | opacity: .8; | |
306 | } | |
307 | ||
74d14f90 | 308 | #search-button { |
309 | /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */ | |
310 | font-weight: bold; | |
f6e0a33f | 311 | } |
312 | ||
749ee109 RK |
313 | /* |
314 | toolbar[mode="text"] #search-button > .button-box > .button-icon, | |
315 | toolbar[mode="icons"] #search-button > .button-box > .button-text { | |
316 | display: none; | |
317 | } | |
318 | */ | |
319 | ||
459f2165 | 320 | /* ::::: security button ::::: */ |
74d14f90 | 321 | |
459f2165 | 322 | #security-button { |
8caa872d | 323 | -moz-margin-start: 2px; |
f6e0a33f | 324 | } |
325 | ||
ff5bd775 | 326 | #security-button { |
aeb317b8 RK |
327 | list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif"); |
328 | } | |
329 | ||
b70a3a73 | 330 | /* |high| and |low| styles could be different, to better reflect the secure level... */ |
ff5bd775 RK |
331 | #security-button[level="high"] > .statusbarpanel-contentbox, |
332 | #security-button[level="low"] > .statusbarpanel-contentbox { | |
aeb317b8 RK |
333 | list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif"); |
334 | background-color: #FFFFCC; | |
74d14f90 | 335 | } |
f6e0a33f | 336 | |
ff5bd775 | 337 | #security-button[level="broken"] > .statusbarpanel-contentbox { |
aeb317b8 RK |
338 | list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif"); |
339 | background-color: #FFCCCC; | |
340 | } | |
341 | ||
ff5bd775 RK |
342 | #security-button[label] > .statusbarpanel-contentbox { |
343 | background-color: #33FF33; | |
344 | } | |
345 | ||
aeb317b8 RK |
346 | #security-button > .statusbarpanel-text { |
347 | margin: 0px; | |
aeb317b8 | 348 | color: #000000; |
74d14f90 | 349 | } |
f6e0a33f | 350 | |
ff5bd775 RK |
351 | /* make same background-color translucent on lwthemes */ |
352 | #security-button[level="high"] > .statusbarpanel-contentbox:-moz-lwtheme, | |
353 | #security-button[level="low"] > .statusbarpanel-contentbox:-moz-lwtheme { | |
354 | background-color: rgba(255, 255, 204, .8); | |
355 | } | |
356 | ||
357 | #security-button[level="broken"] > .statusbarpanel-contentbox:-moz-lwtheme { | |
358 | background-color: rgba(255, 204, 204, .8); | |
359 | } | |
360 | ||
361 | #security-button[label] > .statusbarpanel-contentbox:-moz-lwtheme { | |
362 | background-color: rgba(51, 255, 51, .8); | |
363 | } | |
364 | ||
d9954aaf RK |
365 | #ev-button { |
366 | list-style-image: url("chrome://communicator/skin/icons/identity.png"); | |
367 | } | |
368 | ||
4c66fa00 | 369 | #popupIcon { |
c37975cc | 370 | list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif"); |
4c66fa00 | 371 | } |
372 | ||
459f2165 | 373 | /* ::::: personal toolbar ::::: */ |
f6e0a33f | 374 | |
459f2165 | 375 | #bookmarks-button { |
376 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); | |
74d14f90 | 377 | } |
378 | ||
459f2165 | 379 | #bookmarks-button[open="true"] { |
380 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); | |
74d14f90 | 381 | } |
459f2165 | 382 | |
749ee109 | 383 | #toolbarbutton.chevron { |
56029caf | 384 | list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important; |
b618d1fd | 385 | } |
386 | ||
749ee109 | 387 | #toolbarbutton.chevron > .toolbarbutton-menu-dropmarker { |
b618d1fd | 388 | display: none; |
389 | } | |
6082be94 | 390 | |
749ee109 RK |
391 | toolbarbutton.chevron > .toolbarbutton-text { |
392 | display: none; /* hide chevron label which has a width even if blank */ | |
393 | } | |
394 | ||
395 | toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon { | |
396 | display: -moz-box; /* display chevron icon in text mode */ | |
397 | } | |
398 | ||
399 | /* Prevent [mode="icons"|"text"] from hiding the label and icon */ | |
400 | #bookmarks-ptf .bookmark-item > .toolbarbutton-text, | |
401 | #bookmarks-ptf .bookmark-item > .toolbarbutton-icon { | |
402 | display: -moz-box !important; | |
403 | } | |
404 | ||
e8fc8e8e | 405 | #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon, |
0ef1663c RK |
406 | #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon { |
407 | /* width: 16px; | |
408 | height: 16px; */ | |
409 | } | |
410 | ||
411 | #PersonalToolbar > #home-button { | |
412 | cursor: pointer; | |
413 | } | |
414 | ||
415 | #PersonalToolbar > #home-button[disabled="true"] { | |
416 | cursor: default !important; | |
417 | } | |
418 | ||
e8fc8e8e RK |
419 | /* |
420 | In customize mode we hide the normal bookmark items and show a placeholder | |
421 | for the drag/drop UI. | |
422 | */ | |
423 | .bookmarks-toolbar-customize { | |
d3d79c39 | 424 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png"); |
e8fc8e8e RK |
425 | display: none; |
426 | max-width: 15em !important; | |
427 | } | |
428 | ||
d3d79c39 RK |
429 | #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box { |
430 | width: 16px; | |
431 | height: 16px; | |
432 | background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat; | |
e8fc8e8e RK |
433 | } |
434 | ||
6082be94 RK |
435 | /* ::::: feeds ::::: */ |
436 | ||
437 | #feedsMenu { | |
438 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important; | |
439 | -moz-image-region: rect(0px 16px 16px 0px); | |
440 | } | |
441 | ||
442 | #feedsMenu[disabled="true"] { | |
443 | -moz-image-region: rect(32px 16px 48px 0px); | |
444 | } | |
445 | ||
446 | #feedsButton { | |
447 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png"); | |
448 | -moz-image-region: rect(0px 32px 16px 16px); | |
449 | } | |
450 | ||
451 | #feedsButton:hover { | |
452 | -moz-image-region: rect(16px 32px 32px 16px); | |
453 | } | |
454 | ||
455 | #feedsButton:hover:active { | |
456 | -moz-image-region: rect(48px 32px 64px 16px); | |
457 | } |