even cleaner and fully working method of ensuring nice spacing in URLbar and go/searc...
[themes.git] / LCARStrek / navigator / navigator.css
CommitLineData
351107c9 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
3d6dd546 38/** Contains style definitions for the navigator application
351107c9 39 **/
40
b1eaa419 41@import url("chrome://navigator/content/navigator.css");
42@import url("chrome://communicator/skin/");
b1eaa419 43@import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css");
351107c9 44
45@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
46
47/********** resource bundle binding **********/
48
b1eaa419 49/* ::::: primary toolbar buttons ::::: */
351107c9 50
b1eaa419 51#back-button {
e10e7add
RK
52 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
53 -moz-image-region: rect(42px 25px 63px 0px);
b1eaa419 54}
351107c9 55
c710949d
RK
56#back-button[disabled="true"] {
57 -moz-image-region: rect(42px 50px 63px 25px);
b1eaa419 58}
59
c710949d
RK
60#back-button:not([disabled="true"]):hover,
61#back-button:not([disabled="true"]):hover:active,
62#back-button[open="true"] {
63 -moz-image-region: rect(42px 75px 63px 50px);
b1eaa419 64}
65
66#forward-button {
e10e7add
RK
67 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
68 -moz-image-region: rect(63px 25px 84px 0px);
b1eaa419 69}
351107c9 70
c710949d
RK
71#forward-button[disabled="true"] {
72 -moz-image-region: rect(63px 50px 84px 25px);
b1eaa419 73}
351107c9 74
c710949d
RK
75#forward-button:not([disabled="true"]):hover,
76#forward-button:not([disabled="true"]):hover:active,
77#forward-button[open="true"] {
78 -moz-image-region: rect(63px 75px 84px 50px);
b1eaa419 79}
80
81#reload-button {
c710949d
RK
82 list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
83 -moz-image-region: rect(0px 25px 21px 0px);
b1eaa419 84}
351107c9 85
c710949d
RK
86#reload-button[disabled="true"] {
87 -moz-image-region: rect(0px 50px 21px 25px);
b1eaa419 88}
89
c710949d
RK
90#reload-button:not([disabled="true"]):hover,
91#reload-button:not([disabled="true"]):hover:active {
92 -moz-image-region: rect(0px 75px 21px 50px);
b1eaa419 93}
94
95#stop-button {
e10e7add
RK
96 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
97 -moz-image-region: rect(21px 25px 42px 0px);
b1eaa419 98}
351107c9 99
c710949d
RK
100#stop-button[disabled="true"] {
101 -moz-image-region: rect(21px 50px 42px 25px);
3d6dd546 102}
351107c9 103
c710949d
RK
104#stop-button:not([disabled="true"]):hover,
105#stop-button:not([disabled="true"]):hover:active {
106 -moz-image-region: rect(21px 75px 42px 50px);
3d6dd546 107}
b1eaa419 108
109#print-button {
e10e7add
RK
110 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
111 -moz-image-region: rect(0px 25px 21px 0px);
b1eaa419 112}
351107c9 113
c710949d
RK
114#print-button[disabled="true"] {
115 -moz-image-region: rect(0px 50px 21px 25px);
b1eaa419 116}
117
c710949d
RK
118#print-button:not([disabled="true"]):hover,
119#print-button:not([disabled="true"]):hover:active,
120#print-button[open="true"] {
121 -moz-image-region: rect(0px 75px 21px 50px);
b1eaa419 122}
351107c9 123
b1e5c9b1 124#clear-button {
125 list-style-image: url("chrome://global/skin/icons/close-button.gif");
126}
127
61290d60 128#clear-button:hover {
129 list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
130}
131
80916bc4 132/* ::::: small primary toolbar buttons ::::: */
133
7a7b11b3
RK
134#nav-bar[inFullscreen="true"] .toolbar-grippy {
135 /* display: none; */
80916bc4 136}
137
138/* ::::: fullscreen window controls ::::: */
139
140#window-controls {
141 -moz-box-align: center;
862a6f44 142 padding: 0 1px;
e20d243c 143 border-left: 3px solid #000000;
862a6f44 144 -moz-margin-start: 2px;
e20d243c 145}
146
147#window-controls > toolbarbutton {
862a6f44
RK
148 padding: 3px;
149 -moz-padding-start: 2px;
150 -moz-padding-end: 1px;
80916bc4 151}
152
7a7b11b3
RK
153toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
154 display: -moz-box;
155}
156
80916bc4 157#minimize-button {
158 list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
159}
160
e20d243c 161#minimize-button:hover {
162 list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
163}
164
80916bc4 165#restore-button {
166 list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
167}
168
e20d243c 169#restore-button:hover {
170 list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
171}
172
80916bc4 173#close-button {
174 list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
175}
176
e20d243c 177#close-button:hover {
178 list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
179}
180
b1eaa419 181/* ::::: nav-bar-inner ::::: */
182
183#nav-bar-inner {
c710949d
RK
184 -moz-padding-start: 1px;
185 -moz-padding-end: 1px;
b1eaa419 186 min-width: 0px;
c710949d 187 -moz-box-align: center;
b1eaa419 188}
189
190#urlbar {
7c6f4fb9 191 -moz-border-radius: 5px;
c710949d
RK
192 margin: 0;
193 -moz-margin-start: 3px;
2c8f3260
RK
194}
195
196#urlbar > .autocomplete-textbox-container {
197 -moz-border-radius: 3px 0 0 3px;
198 padding: 2px;
b1eaa419 199}
200
d84b9613 201#urlbar[level="high"] > .autocomplete-textbox-container,
202#urlbar[level="low"] > .autocomplete-textbox-container {
203 background-color: #FFCF00;
204 color: #000000;
205}
206
b1eaa419 207/* ::::: page proxy icon ::::: */
3d6dd546 208
b1eaa419 209#page-proxy-deck,
210#page-proxy-favicon,
211#page-proxy-button {
212 width: 16px;
213 height: 16px;
214}
351107c9 215
216#page-proxy-deck {
d2f0d128 217 cursor: -moz-grab;
2c8f3260 218 margin: 0;
3d6dd546 219}
351107c9 220
b1eaa419 221#page-proxy-button {
3d6dd546 222 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
b1eaa419 223 padding-top: 2px;
224 padding-bottom: 2px;
3d6dd546 225}
226
b1eaa419 227#page-proxy-favicon {
228 list-style-image: none;
3d6dd546 229}
351107c9 230
b1eaa419 231/* ::::: autocomplete ::::: */
232
01fc5c11 233.autocomplete-treebody::-moz-tree-cell-text(value) {
b1eaa419 234 padding-left: 13px;
235}
236
01fc5c11 237.autocomplete-treebody::-moz-tree-cell-text(comment) {
b1eaa419 238 color: #E7ADE7;
239/* font-style: italic; */
351107c9 240}
241
b1eaa419 242.autocomplete-search-box {
243 border-top: 1px solid #FF9F00;
244 background-color: #9C9CFF;
245 color: #000000;
3d6dd546 246}
351107c9 247
b1eaa419 248.autocomplete-result-popup[nomatch] > .autocomplete-search-box {
249 border-top: 1px solid #9C9CFF;
351107c9 250}
351107c9 251
b1eaa419 252.autocomplete-search-engine {
253 padding: 2px;
3d6dd546 254}
351107c9 255
b1eaa419 256.autocomplete-search-engine[menuactive="true"] {
257 background-color: #008484;
258 color: #FFCF00;
3d6dd546 259}
351107c9 260
b1eaa419 261.autocomplete-search-engine-img {
262 margin-right: 4px;
263}
264
f8bb6584
RK
265.autocomplete-history-dropmarker:hover {
266 background-color: #FFCF00;
267}
268
269.autocomplete-history-dropmarker:hover:active,
270.autocomplete-history-dropmarker[open="true"] {
271 background-color: #FF9F00;
272}
273
b1eaa419 274/* ::::: go and searchbuttons ::::: */
275
3d6dd546 276#search-button,
351107c9 277#go-button {
c710949d 278 margin: 0;
2834b9ef 279 padding: 1px 0;
c710949d 280 -moz-margin-start: 2px;
b1eaa419 281 font-weight: bold;
282 background-color: #000000;
351107c9 283}
284
3d6dd546 285#search-button:hover,
351107c9 286#go-button:hover {
b1eaa419 287 background-color: #FFCF00;
351107c9 288}
289
2c8f3260
RK
290/* care that those buttons base on the same min height of 16px that the urlbar
291 autocomplete box gets through site icon and urlbar icons at the right */
292#search-button > .button-box ,
293#go-button > .button-box {
294 min-height: 16px;
295}
296
b1eaa419 297#search-button {
298/* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
299 font-weight: bold;
300}
351107c9 301
7a7b11b3
RK
302/*
303toolbar[mode="text"] #search-button > .button-box > .button-icon,
304toolbar[mode="icons"] #search-button > .button-box > .button-text {
305 display: none;
306}
307*/
308
31e46317
RK
309/* ::::: throbber ::::: */
310
311#throbber-box {
312 -moz-margin-start: 2px;
313}
314
dc8e1207 315/* ::::: security button ::::: */
351107c9 316
dc8e1207 317#security-button {
318 list-style-image:url("chrome://communicator/skin/icons/lock-insecure.gif");
31e46317 319 -moz-margin-start: 2px;
b1eaa419 320}
351107c9 321
57d23eae 322/* |high| and |low| styles could be different, to better reflect the secure level... */
323#security-button[level="high"],
dc8e1207 324#security-button[level="low"] {
325 list-style-image:url("chrome://communicator/skin/icons/lock-secure.gif");
326}
327
328#security-button[level="broken"] {
329 list-style-image:url("chrome://communicator/skin/icons/lock-broken.gif");
b1eaa419 330}
351107c9 331
a3b3d4d6 332#popupIcon {
333 list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
334}
335
dc8e1207 336/* ::::: personal toolbar ::::: */
351107c9 337
dc8e1207 338#bookmarks-button {
339 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
b1eaa419 340}
351107c9 341
dc8e1207 342#bookmarks-button[open="true"] {
343 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
b1eaa419 344}
351107c9 345
dc8e1207 346#home-button {
c710949d
RK
347 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
348 -moz-image-region: rect(84px 25px 105px 0px);
349}
350
351#home-button[disabled="true"] {
352 -moz-image-region: rect(84px 50px 105px 25px);
b1eaa419 353}
ac1cdf20 354
c710949d
RK
355#home-button:not([disabled="true"]):hover,
356#home-button:not([disabled="true"]):hover:active {
357 -moz-image-region: rect(84px 75px 105px 50px);
358}
359
360toolbarbutton.chevron {
e10e7add 361 list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
ac1cdf20 362}
363
c710949d
RK
364toolbarbutton.chevron:hover,
365toolbarbutton.chevron[open="true"] {
e10e7add 366 list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important;
ac1cdf20 367}
368
7a7b11b3 369toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
ac1cdf20 370 display: none;
371}
e10e7add 372
7a7b11b3
RK
373toolbarbutton.chevron > .toolbarbutton-text {
374 display: none; /* hide chevron label which has a width even if blank */
375}
376
377toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
378 display: -moz-box; /* display chevron icon in text mode */
379}
380
381/* Prevent [mode="icons"|"text"] from hiding the label and icon */
382#bookmarks-ptf .bookmark-item > .toolbarbutton-text,
383#bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
384 display: -moz-box !important;
385}
386
e10e7add
RK
387/* ::::: feeds ::::: */
388
389#feedsMenu {
390 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important;
391 -moz-image-region: rect(0px 16px 16px 0px);
392}
393
394#feedsMenu[disabled="true"] {
395 -moz-image-region: rect(32px 16px 48px 0px);
396}
397
398#feedsButton {
399 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
400 -moz-image-region: rect(0px 32px 16px 16px);
401}
402
403#feedsButton:hover {
404 -moz-image-region: rect(16px 32px 32px 16px);
405}
406
407#feedsButton:hover:active {
408 -moz-image-region: rect(48px 32px 64px 16px);
409}
7a7b11b3 410
c710949d
RK
411toolbar[iconsize="small"] > #back-button {
412 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
413 -moz-image-region: rect(32px 16px 48px 0);
414}
415
416toolbar[iconsize="small"] > #back-button[disabled="true"] {
417 -moz-image-region: rect(32px 32px 48px 16px) !important;
418}
419
420toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover,
421toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover:active {
422 -moz-image-region: rect(32px 48px 48px 32px);
423}
424
425toolbar[iconsize="small"] > #forward-button {
426 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
427 -moz-image-region: rect(48px 16px 64px 0);
428}
429
430toolbar[iconsize="small"] > #forward-button[disabled="true"] {
431 -moz-image-region: rect(48px 32px 64px 16px) !important;
432}
433
434toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover,
435toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover:active {
436 -moz-image-region: rect(48px 48px 64px 32px);
437}
438
439toolbar[iconsize="small"] > #reload-button {
440 list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
441 -moz-image-region: rect(0 16px 16px 0);
442}
443
444toolbar[iconsize="small"] > #reload-button[disabled="true"] {
445 -moz-image-region: rect(0 32px 16px 16px) !important;
446}
447
448toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover,
449toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover:active {
450 -moz-image-region: rect(0 48px 16px 32px);
451}
452
453toolbar[iconsize="small"] > #stop-button {
454 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
455 -moz-image-region: rect(16px 16px 32px 0);
456}
457
458toolbar[iconsize="small"] > #stop-button[disabled="true"] {
459 -moz-image-region: rect(16px 32px 32px 16px) !important;
460}
461
462toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover,
463toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover:active {
464 -moz-image-region: rect(16px 48px 32px 32px);
465}
466
467toolbar[iconsize="small"] > #print-button {
468 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
469 -moz-image-region: rect(0 16px 16px 0);
470}
471
472toolbar[iconsize="small"] > #print-button[disabled="true"] {
473 -moz-image-region: rect(0 32px 16px 16px) !important;
474}
475
476toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover,
477toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover:active {
478 -moz-image-region: rect(0 48px 16px 32px);
479}
480
481toolbar[iconsize="small"] > #home-button {
482 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
483 -moz-image-region: rect(64px 16px 80px 0);
484}
485
486toolbar[iconsize="small"] > #home-button[disabled="true"] {
487 -moz-image-region: rect(64px 32px 80px 16px) !important;
488}
489
490toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover,
491toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover:active {
492 -moz-image-region: rect(64px 48px 80px 32px);
493}
494
7a7b11b3
RK
495/* ::::: home button on the personal toolbar ::::: */
496
497#PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
498 /* width: 16px;
499 height: 16px; */
500}
501
502#PersonalToolbar > #home-button {
503 cursor: pointer;
504}
505
506#PersonalToolbar > #home-button[disabled="true"] {
507 cursor: default !important;
508}