1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Netscape Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/NPL/
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
14 * The Original Code is mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998-1999
19 * the Initial Developer. All Rights Reserved.
22 * Joe Hewitt (hewitt@netscape.com)
23 * Jason Kersey (kerz@netscape.com)
24 * Pierre Chanial (chanial@noos.fr)
25 * Dean Tessman (dean_tessman@hotmail.com)
26 * Robert Kaiser (kairo@kairo.at)
28 * Alternatively, the contents of this file may be used under the terms of
29 * either the GNU General Public License Version 2 or later (the "GPL"), or
30 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
31 * in which case the provisions of the GPL or the LGPL are applicable instead
32 * of those above. If you wish to allow use of your version of this file only
33 * under the terms of either the GPL or the LGPL, and not to allow others to
34 * use your version of this file under the terms of the NPL, indicate your
35 * decision by deleting the provisions above and replace them with the notice
36 * and other provisions required by the GPL or the LGPL. If you do not delete
37 * the provisions above, a recipient may use your version of this file under
38 * the terms of any one of the NPL, the GPL or the LGPL.
40 * ***** END LICENSE BLOCK ***** */
42 @import url("chrome://global/skin/");
44 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
47 -moz-binding: url("chrome://global/content/widgets/toolbar.xml#menubar");
48 background-color: transparent;
52 -moz-binding: url("chrome://browser/skin/browser.xml#toolbar");
56 -moz-margin-start: 2px;
59 .toolbar-primary > .toolbar-holder {
60 background-color: #FF9F00;
63 .toolbar-primary > .toolbar-begcap,
64 .toolbar-primary > .toolbar-endcap {
65 background-color: #9C9CFF;
72 /* ::::: bookmark buttons ::::: */
74 toolbarbutton.bookmark-item {
83 toolbarbutton.bookmark-item:hover:active,
84 toolbarbutton.bookmark-item[open="true"] {
87 -moz-padding-start: 2px;
88 -moz-padding-end: 0px;
91 .bookmark-item > .toolbarbutton-icon {
96 /* Prevent [mode="icons"] from hiding the label */
97 .bookmark-item > .toolbarbutton-text {
98 display: -moz-box !important;
101 .bookmark-item > .toolbarbutton-menu-dropmarker {
105 .toolbarpaletteitem-box[type="bookmarks-toolbar"][place="palette"] {
108 background: url("chrome://browser/skin/icons/bookmarks-folder.gif") no-repeat;
111 .bookmarks-toolbar-customize {
113 max-width: 15em !important;
116 toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-customize {
120 toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-overflow-items {
124 toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-items {
128 /* ::::: bookmark menus ::::: */
131 menuitem.bookmark-item {
134 border-top: 1px solid transparent !important;
135 border-bottom: 1px solid transparent !important;
138 -moz-padding-start: 2px;
139 -moz-padding-end: 3px;
143 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
148 /* ..... drag and drop styles ..... */
150 .bookmark-item[dragover-left="true"] {
151 -moz-border-left-colors: #008484;
153 .bookmark-item[dragover-right="true"] {
154 -moz-border-right-colors: #008484;
156 .bookmark-item[dragover-top="true"] {
157 -moz-border-top-colors: #008484;
159 .bookmark-item[dragover-bottom="true"] {
160 -moz-border-bottom-colors: #008484;
163 /* ::::: bookmark items ::::: */
166 list-style-image: url("chrome://browser/skin/icons/bookmark-item.gif");
169 .bookmark-item[container="true"] {
170 list-style-image: url("chrome://browser/skin/icons/bookmark-folder-closed.gif");
172 .bookmark-item[open="true"],
173 .bookmark-item[container="true"][open="true"] {
174 list-style-image: url("chrome://browser/skin/icons/bookmark-folder-open.gif");
177 /* ::::: primary toolbar buttons ::::: */
180 .toolbarbutton-1 > .toolbarbutton-menubutton-button {
181 -moz-box-orient: vertical;
185 toolbarbutton:not([disabled="true"]):hover,
186 menubutton:not([disabled="true"]):hover,
187 toolbarbutton:not([disabled="true"]):hover:active,
188 menubutton:not([disabled="true"]):hover:active {
189 color: #000000 !important;
193 .toolbarbutton-menubutton-stack,
194 .toolbarbutton-menubutton-button,
195 .toolbarbutton-menubutton-stack:hover,
196 .toolbarbutton-menubutton-button:hover,
197 .toolbarbutton-menubutton-stack:hover:active,
198 .toolbarbutton-menubutton-button:hover:active {
199 margin: 0 !important;
204 toolbarbutton[type="menu-button"] {
205 -moz-box-orient: horizontal;
208 toolbar[mode="icons"] .toolbarbutton-text {
212 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker,
213 toolbar[mode="text"] .toolbarbutton-icon {
217 toolbar[mode="text"] .toolbarbutton-text {
218 padding: 0 !important;
219 margin: 3px 5px !important;
223 /* -moz-binding: url("chrome://browser/skin/browser.xml#toolbar-menu-button"); */
224 list-style-image: url("chrome://browser/skin/icons/back.gif");
227 #back-button[open="true"] {
228 list-style-image: url("chrome://browser/skin/icons/back-hover.gif");
230 #back-button[disabled="true"] {
231 list-style-image: url("chrome://browser/skin/icons/back-disabled.gif");
235 /* -moz-binding: url("chrome://browser/skin/browser.xml#toolbar-menu-button"); */
236 list-style-image: url("chrome://browser/skin/icons/forward.gif");
238 #forward-button:hover,
239 #forward-button[open="true"] {
240 list-style-image: url("chrome://browser/skin/icons/forward-hover.gif");
242 #forward-button[disabled="true"] {
243 list-style-image: url("chrome://browser/skin/icons/forward-disabled.gif");
247 list-style-image: url("chrome://browser/skin/icons/reload.gif");
249 #reload-button:hover {
250 list-style-image: url("chrome://browser/skin/icons/reload-hover.gif");
252 #reload-button[disabled="true"] {
253 list-style-image: url("chrome://browser/skin/icons/reload-disabled.gif");
257 list-style-image: url("chrome://browser/skin/icons/stop.gif");
260 list-style-image: url("chrome://browser/skin/icons/stop-hover.gif");
262 #stop-button[disabled="true"] {
263 list-style-image: url("chrome://browser/skin/icons/stop-disabled.gif");
267 list-style-image: url("chrome://browser/skin/icons/home.gif");
270 list-style-image: url("chrome://browser/skin/icons/home-hover.gif");
272 #home-button[disabled="true"] {
273 list-style-image: url("chrome://browser/skin/icons/home-disabled.gif");
277 list-style-image: url("chrome://browser/skin/icons/print.gif");
279 #print-button:hover {
280 list-style-image: url("chrome://browser/skin/icons/print-hover.gif");
282 #print-button[disabled="true"] {
283 list-style-image: url("chrome://browser/skin/icons/print-disabled.gif");
287 list-style-image: url("chrome://browser/skin/icons/new-tab.gif");
289 #new-tab-button:hover {
290 list-style-image: url("chrome://browser/skin/icons/new-tab-hover.gif");
292 #new-tab-button[disabled="true"] {
293 list-style-image: url("chrome://browser/skin/icons/new-tab-disabled.gif");
297 list-style-image: url("chrome://browser/skin/icons/new-window.gif");
299 #new-window-button:hover {
300 list-style-image: url("chrome://browser/skin/icons/new-window-hover.gif");
302 #new-window-button[disabled="true"] {
303 list-style-image: url("chrome://browser/skin/icons/new-window-disabled.gif");
307 list-style-image: url("chrome://browser/skin/icons/downloads.gif");
309 #downloads-button:hover {
310 list-style-image: url("chrome://browser/skin/icons/downloads-hover.gif");
312 #downloads-button[disabled="true"] {
313 list-style-image: url("chrome://browser/skin/icons/downloads-disabled.gif");
317 list-style-image: url("chrome://browser/skin/icons/bookmarks.gif");
319 #bookmarks-button:hover {
320 list-style-image: url("chrome://browser/skin/icons/bookmarks-hover.gif");
322 #bookmarks-button[disabled="true"] {
323 list-style-image: url("chrome://browser/skin/icons/bookmarks-disabled.gif");
327 list-style-image: url("chrome://browser/skin/icons/history.gif");
329 #history-button:hover {
330 list-style-image: url("chrome://browser/skin/icons/history-hover.gif");
332 #history-button[disabled="true"] {
333 list-style-image: url("chrome://browser/skin/icons/history-disabled.gif");
337 list-style-image: url("chrome://browser/skin/icons/cut.gif");
340 list-style-image: url("chrome://browser/skin/icons/cut-hover.gif");
342 #cut-button[disabled="true"] {
343 list-style-image: url("chrome://browser/skin/icons/cut-disabled.gif");
347 list-style-image: url("chrome://browser/skin/icons/copy.gif");
350 list-style-image: url("chrome://browser/skin/icons/copy-hover.gif");
352 #copy-button[disabled="true"] {
353 list-style-image: url("chrome://browser/skin/icons/copy-disabled.gif");
357 list-style-image: url("chrome://browser/skin/icons/paste.gif");
359 #paste-button:hover {
360 list-style-image: url("chrome://browser/skin/icons/paste-hover.gif");
362 #paste-button[disabled="true"] {
363 list-style-image: url("chrome://browser/skin/icons/paste-disabled.gif");
367 /* ::::: small primary toolbar buttons ::::: */
369 toolbar[iconsize="small"] #back-button {
370 list-style-image: url("chrome://browser/skin/icons/back-small.gif");
372 toolbar[iconsize="small"] #back-button:hover {
373 list-style-image: url("chrome://browser/skin/icons/back-small-hover.gif");
375 toolbar[iconsize="small"] #back-button[disabled="true"] {
376 list-style-image: url("chrome://browser/skin/icons/back-small-disabled.gif");
379 toolbar[iconsize="small"] #forward-button {
380 list-style-image: url("chrome://browser/skin/icons/forward-small.gif");
382 toolbar[iconsize="small"] #forward-button:hover {
383 list-style-image: url("chrome://browser/skin/icons/forward-small-hover.gif");
385 toolbar[iconsize="small"] #forward-button[disabled="true"] {
386 list-style-image: url("chrome://browser/skin/icons/forward-small-disabled.gif");
389 toolbar[iconsize="small"] #reload-button {
390 list-style-image: url("chrome://browser/skin/icons/reload-small.gif");
392 toolbar[iconsize="small"] #reload-button:hover {
393 list-style-image: url("chrome://browser/skin/icons/reload-small-hover.gif");
395 toolbar[iconsize="small"] #reload-button[disabled="true"] {
396 list-style-image: url("chrome://browser/skin/icons/reload-small-disabled.gif");
399 toolbar[iconsize="small"] #stop-button {
400 list-style-image: url("chrome://browser/skin/icons/stop-small.gif");
402 toolbar[iconsize="small"] #stop-button:hover {
403 list-style-image: url("chrome://browser/skin/icons/stop-small-hover.gif");
405 toolbar[iconsize="small"] #stop-button[disabled="true"] {
406 list-style-image: url("chrome://browser/skin/icons/stop-small-disabled.gif");
409 toolbar[iconsize="small"] #home-button {
410 list-style-image: url("chrome://browser/skin/icons/home-small.gif");
412 toolbar[iconsize="small"] #home-button:hover {
413 list-style-image: url("chrome://browser/skin/icons/home-small-hover.gif");
415 toolbar[iconsize="small"] #home-button[disabled="true"] {
416 list-style-image: url("chrome://browser/skin/icons/home-small-disabled.gif");
419 toolbar[iconsize="small"] #print-button {
420 list-style-image: url("chrome://browser/skin/icons/print-small.gif");
422 toolbar[iconsize="small"] #print-button:hover {
423 list-style-image: url("chrome://browser/skin/icons/print-small-hover.gif");
425 toolbar[iconsize="small"] #print-button[disabled="true"] {
426 list-style-image: url("chrome://browser/skin/icons/print-small-disabled.gif");
429 toolbar[iconsize="small"] #downloads-button {
430 list-style-image: url("chrome://browser/skin/icons/downloads-small.gif");
432 toolbar[iconsize="small"] #downloads-button:hover {
433 list-style-image: url("chrome://browser/skin/icons/downloads-small-hover.gif");
435 toolbar[iconsize="small"] #downloads-button[disabled="true"] {
436 list-style-image: url("chrome://browser/skin/icons/downloads-small-disabled.gif");
439 toolbar[iconsize="small"] #new-tab-button {
440 list-style-image: url("chrome://browser/skin/icons/new-tab-small.gif");
442 toolbar[iconsize="small"] #new-tab-button:hover {
443 list-style-image: url("chrome://browser/skin/icons/new-tab-small-hover.gif");
445 toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
446 list-style-image: url("chrome://browser/skin/icons/new-tab-small-disabled.gif");
449 toolbar[iconsize="small"] #new-window-button {
450 list-style-image: url("chrome://browser/skin/icons/new-window-small.gif");
452 toolbar[iconsize="small"] #new-window-button:hover {
453 list-style-image: url("chrome://browser/skin/icons/new-window-small-hover.gif");
455 toolbar[iconsize="small"] #new-window-button[disabled="true"] {
456 list-style-image: url("chrome://browser/skin/icons/new-window-small-disabled.gif");
459 toolbar[iconsize="small"] #bookmarks-button {
460 list-style-image: url("chrome://browser/skin/icons/bookmarks-small.gif");
462 toolbar[iconsize="small"] #bookmarks-button:hover {
463 list-style-image: url("chrome://browser/skin/icons/bookmarks-small-hover.gif");
465 toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
466 list-style-image: url("chrome://browser/skin/icons/bookmarks-small-disabled.gif");
469 toolbar[iconsize="small"] #history-button {
470 list-style-image: url("chrome://browser/skin/icons/history-small.gif");
472 toolbar[iconsize="small"] #history-button:hover {
473 list-style-image: url("chrome://browser/skin/icons/history-small-hover.gif");
475 toolbar[iconsize="small"] #history-button[disabled="true"] {
476 list-style-image: url("chrome://browser/skin/icons/history-small-disabled.gif");
479 toolbar[iconsize="small"] #cut-button {
480 list-style-image: url("chrome://browser/skin/icons/cut-small.gif");
482 toolbar[iconsize="small"] #cut-button:hover {
483 list-style-image: url("chrome://browser/skin/icons/cut-small-hover.gif");
485 toolbar[iconsize="small"] #cut-button[disabled="true"] {
486 list-style-image: url("chrome://browser/skin/icons/cut-small-disabled.gif");
489 toolbar[iconsize="small"] #copy-button {
490 list-style-image: url("chrome://browser/skin/icons/copy-small.gif");
492 toolbar[iconsize="small"] #copy-button:hover {
493 list-style-image: url("chrome://browser/skin/icons/copy-small-hover.gif");
495 toolbar[iconsize="small"] #copy-button[disabled="true"] {
496 list-style-image: url("chrome://browser/skin/icons/copy-small-disabled.gif");
499 toolbar[iconsize="small"] #paste-button {
500 list-style-image: url("chrome://browser/skin/icons/paste-small.gif");
502 toolbar[iconsize="small"] #paste-button:hover {
503 list-style-image: url("chrome://browser/skin/icons/paste-small-hover.gif");
505 toolbar[iconsize="small"] #paste-button[disabled="true"] {
506 list-style-image: url("chrome://browser/skin/icons/paste-small-disabled.gif");
510 /* Smaller padding on small toolbar buttons */
512 toolbar[iconsize="small"] .toolbarbutton-1 {
516 toolbar[iconsize="small"] .toolbarbutton-1:hover:active,
517 toolbar[iconsize="small"] .toolbarbutton-1[open="true"] {
520 -moz-padding-start: 3px;
521 -moz-padding-end: 1px;
524 toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"],
525 toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover,
526 toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover:active,
527 toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"][open="true"] {
531 toolbar[iconsize="small"] .toolbarbutton-1[checked="true"] {
532 padding-top: 3px !important;
533 padding-bottom: 1px !important;
534 -moz-padding-start: 3px !important;
535 -moz-padding-end: 1px !important;
538 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"],
539 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover,
540 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active,
541 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"],
542 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"],
543 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover,
544 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover:active {
548 /* ::::: fullscreen window controls ::::: */
551 -moz-box-align: center;
554 -moz-padding-start: 0px;
555 -moz-padding-end: 2px;
556 border-left: 3px solid #000000;
561 list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
563 #minimize-button:hover {
564 list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
567 list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
569 #restore-button:hover {
570 list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
573 list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
575 #close-button:hover {
576 list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
579 /* ::::: nav-bar-inner ::::: */
589 /* ::::: page proxy icon ::::: */
603 #page-proxy-favicon {
604 list-style-image: none;
608 list-style-image: url("chrome://browser/skin/icons/bookmark-item.gif") !important;
611 #page-proxy-button[pageproxystate="invalid"] {
613 list-style-image: url("chrome://browser/skin/icons/bookmark-item.gif") !important;
617 statusbarpanel#statusbar-display {
618 -moz-padding-start: 0;
621 /* ::::: search-bar ::::: */
623 #search-proxy-button {
625 list-style-image: url("chrome://browser/skin/icons/search-bar.gif");
629 list-style-image: url("chrome://browser/skin/icons/search-bar.gif");
632 /* ::::: autocomplete ::::: */
634 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
638 /* ::::: go button ::::: */
642 background-color: transparent;
647 list-style-image: url("chrome://browser/skin/icons/go.gif");
651 border: 1px solid transparent;
655 #go-button:hover:active {
656 list-style-image: url("chrome://browser/skin/icons/go-hover.gif");
657 border: 1px outset #CCD0DD;
660 #go-button[disabled="true"] {
661 list-style-image: url("chrome://browser/skin/icons/go-disabled.gif");
662 border: 1px solid transparent;
665 #go-button > .button-box > .button-text {
666 -moz-margin-start: 5px !important;
669 #go-button > .button-box {
674 background-color: #CCD0DD;
677 /* ::::: content area ::::: */
687 #security-button[level="high"] {
688 list-style-image: url("chrome://browser/skin/icons/secure.gif");
692 #security-button[level="low"] {
693 list-style-image: url("chrome://browser/skin/icons/secure.gif");
697 #security-button[level="broken"] {
698 list-style-image: url("chrome://browser/skin/icons/security-broken.gif");
702 #page-report-button {
706 #page-report-button[blocked] {
708 list-style-image: url("chrome://browser/skin/icons/info.gif");
716 #page-theme-button[themes] {
718 list-style-image: url("chrome://browser/skin/icons/page-themes.gif");
722 /* ::::: throbber ::::: */
724 #navigator-throbber {
725 -moz-user-focus: ignore;
727 -moz-margin-end: 2px;
728 border: none !important;
729 padding: 0px !important;
731 list-style-image: url("chrome://browser/skin/icons/throbber-stopped.gif");
733 #navigator-throbber[busy="true"] {
734 list-style-image: url("chrome://browser/skin/icons/throbber.gif");
737 toolbar[iconsize="small"] #navigator-throbber,
738 toolbar[mode="text"] #navigator-throbber {
739 list-style-image: url("chrome://browser/skin/icons/throbber-small-stopped.gif");
741 toolbar[iconsize="small"] #navigator-throbber[busy="true"],
742 toolbar[mode="text"] #navigator-throbber[busy="true"] {
743 list-style-image: url("chrome://browser/skin/icons/throbber-small.gif");
747 list-style-image: url("chrome://global/skin/icons/close-button.gif");
750 #content .tabs-closebutton {
751 list-style-image: url("chrome://browser/skin/Close-tab.png");
752 -moz-image-region: rect(0px, 18px, 14px, 0px);
755 #content .tabs-closebutton:hover {
756 -moz-image-region: rect(0px, 36px, 14px, 18px);
759 toolbarbutton.chevron {
760 list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
764 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
768 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
772 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-text {
776 #sidebar-throbber[loading="true"] {
777 list-style-image: url(chrome://global/skin/icons/loading.gif);