1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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 "Classic" theme of mozilla.org code.
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.
22 * Robert Kaiser <KaiRo@KaiRo.at>
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.
36 * ***** END LICENSE BLOCK ***** */
38 /** Contains style definitions for the navigator application
41 @import url("chrome://navigator/content/navigator.css");
42 @import url("chrome://communicator/skin/");
43 @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css");
45 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
47 /********** resource bundle binding **********/
49 /* ::::: primary toolbar buttons ::::: */
52 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
53 -moz-image-region: rect(42px 25px 63px 0px);
56 #back-button[disabled="true"] {
57 -moz-image-region: rect(42px 50px 63px 25px);
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);
67 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
68 -moz-image-region: rect(63px 25px 84px 0px);
71 #forward-button[disabled="true"] {
72 -moz-image-region: rect(63px 50px 84px 25px);
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);
82 list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
83 -moz-image-region: rect(0px 25px 21px 0px);
86 #reload-button[disabled="true"] {
87 -moz-image-region: rect(0px 50px 21px 25px);
90 #reload-button:not([disabled="true"]):hover,
91 #reload-button:not([disabled="true"]):hover:active {
92 -moz-image-region: rect(0px 75px 21px 50px);
96 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
97 -moz-image-region: rect(21px 25px 42px 0px);
100 #stop-button[disabled="true"] {
101 -moz-image-region: rect(21px 50px 42px 25px);
104 #stop-button:not([disabled="true"]):hover,
105 #stop-button:not([disabled="true"]):hover:active {
106 -moz-image-region: rect(21px 75px 42px 50px);
110 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
111 -moz-image-region: rect(0px 25px 21px 0px);
114 #print-button[disabled="true"] {
115 -moz-image-region: rect(0px 50px 21px 25px);
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);
125 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
126 -moz-image-region: rect(84px 25px 105px 0px);
129 #home-button[disabled="true"] {
130 -moz-image-region: rect(84px 50px 105px 25px);
133 #home-button:not([disabled="true"]):hover,
134 #home-button:not([disabled="true"]):hover:active {
135 -moz-image-region: rect(84px 75px 105px 50px);
139 list-style-image: url("chrome://global/skin/icons/close-button.gif");
142 #clear-button:hover {
143 list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
146 /* ::::: small primary toolbar buttons ::::: */
148 toolbar[iconsize="small"] > #back-button {
149 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
150 -moz-image-region: rect(32px 16px 48px 0);
153 toolbar[iconsize="small"] > #back-button[disabled="true"] {
154 -moz-image-region: rect(32px 32px 48px 16px) !important;
157 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover,
158 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover:active {
159 -moz-image-region: rect(32px 48px 48px 32px);
162 toolbar[iconsize="small"] > #forward-button {
163 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
164 -moz-image-region: rect(48px 16px 64px 0);
167 toolbar[iconsize="small"] > #forward-button[disabled="true"] {
168 -moz-image-region: rect(48px 32px 64px 16px) !important;
171 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover,
172 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover:active {
173 -moz-image-region: rect(48px 48px 64px 32px);
176 toolbar[iconsize="small"] > #reload-button {
177 list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
178 -moz-image-region: rect(0 16px 16px 0);
181 toolbar[iconsize="small"] > #reload-button[disabled="true"] {
182 -moz-image-region: rect(0 32px 16px 16px) !important;
185 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover,
186 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover:active {
187 -moz-image-region: rect(0 48px 16px 32px);
190 toolbar[iconsize="small"] > #stop-button {
191 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
192 -moz-image-region: rect(16px 16px 32px 0);
195 toolbar[iconsize="small"] > #stop-button[disabled="true"] {
196 -moz-image-region: rect(16px 32px 32px 16px) !important;
199 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover,
200 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover:active {
201 -moz-image-region: rect(16px 48px 32px 32px);
204 toolbar[iconsize="small"] > #print-button {
205 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
206 -moz-image-region: rect(0 16px 16px 0);
209 toolbar[iconsize="small"] > #print-button[disabled="true"] {
210 -moz-image-region: rect(0 32px 16px 16px) !important;
213 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover,
214 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover:active {
215 -moz-image-region: rect(0 48px 16px 32px);
218 toolbar[iconsize="small"] > #home-button {
219 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
220 -moz-image-region: rect(64px 16px 80px 0);
223 toolbar[iconsize="small"] > #home-button[disabled="true"] {
224 -moz-image-region: rect(64px 32px 80px 16px) !important;
227 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover,
228 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover:active {
229 -moz-image-region: rect(64px 48px 80px 32px);
232 /* ::::: fullscreen window controls ::::: */
235 -moz-box-align: center;
237 border-left: 3px solid #000000;
238 -moz-margin-start: 2px;
241 #window-controls > toolbarbutton {
243 -moz-padding-start: 2px;
244 -moz-padding-end: 1px;
247 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
252 list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
255 #minimize-button:hover {
256 list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
260 list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
263 #restore-button:hover {
264 list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
268 list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
271 #close-button:hover {
272 list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
275 /* ::::: nav-bar-inner ::::: */
278 -moz-padding-start: 1px;
279 -moz-padding-end: 1px;
281 -moz-box-align: center;
284 .tabbrowser-tab:-moz-lwtheme:not([selected="true"]) {
288 .tabbrowser-tab:-moz-lwtheme {
295 -moz-margin-start: 3px;
298 #urlbar > .autocomplete-textbox-container {
299 border-radius: 3px 0 0 3px;
303 #urlbar[level="high"] > .autocomplete-textbox-container,
304 #urlbar[level="low"] > .autocomplete-textbox-container {
305 background-color: #FFCF00;
309 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
310 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
314 /* ::::: notification popups ::::: */
316 #notification-popup {
321 .popup-notification-icon {
324 -moz-margin-end: 10px;
327 .popup-notification-icon[popupid="geolocation"] {
328 list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png");
331 .popup-notification-icon[popupid="password-save"] {
332 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
335 /* Notification icon box */
336 #notification-popup-box {
337 -moz-margin-end: 3px;
340 .notification-anchor-icon:-moz-focusring {
344 #geo-notification-icon {
345 list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
350 #password-notification-icon {
351 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
356 /* ::::: page proxy icon ::::: */
371 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
374 #page-proxy-favicon {
375 list-style-image: none;
378 /* ::::: autocomplete ::::: */
380 .autocomplete-treebody::-moz-tree-cell-text(value) {
381 -moz-padding-start: 13px;
384 .autocomplete-treebody::-moz-tree-cell-text(comment) {
386 /* font-style: italic; */
389 .autocomplete-search-box {
390 border-top: 1px solid #FF9F00;
391 background-color: #9C9CFF;
395 .autocomplete-result-popup[nomatch] > .autocomplete-search-box {
396 border-top: 1px solid #9C9CFF;
399 .autocomplete-search-engine {
403 .autocomplete-search-engine[menuactive="true"] {
404 background-color: #008484;
408 .autocomplete-search-engine-img {
409 -moz-margin-end: 4px;
412 .autocomplete-history-dropmarker:hover {
413 background-color: #FFCF00;
416 .autocomplete-history-dropmarker:hover:active,
417 .autocomplete-history-dropmarker[open="true"] {
418 background-color: #FF9F00;
421 /* ::::: go and searchbuttons ::::: */
427 -moz-margin-start: 2px;
428 background-color: #000000;
431 #search-button:hover,
433 background-color: #FFCF00;
436 /* care that those buttons base on the same min height of 16px that the urlbar
437 autocomplete box gets through site icon and urlbar icons at the right */
438 #search-button > .button-box,
439 #go-button > .button-box {
444 /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
448 toolbar[mode="text"] #search-button > .button-box > .button-icon,
449 toolbar[mode="icons"] #search-button > .button-box > .button-text {
454 /* ::::: throbber ::::: */
457 -moz-margin-start: 2px;
460 /* ::::: security button ::::: */
463 list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
466 #security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
470 /* |high| and |low| styles could be different, to better reflect the secure level... */
471 #security-button[level="high"] > .statusbarpanel-contentbox,
472 #security-button[level="low"] > .statusbarpanel-contentbox {
473 list-style-image: url("chrome://communicator/skin/icons/lock-secure-hover.png");
474 background-color: #FFCF00;
477 #security-button[level="broken"] > .statusbarpanel-contentbox {
478 list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
479 background-color: #FF0000;
482 #security-button[label][level="high"] > .statusbarpanel-contentbox {
483 list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
484 background-color: #008484;
489 list-style-image: url("chrome://communicator/skin/icons/identity.png");
493 list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
496 #invalid-form-popup {
497 border: 1px solid #FFCF00;
498 border : 1px outset #FFFFCC;
499 padding: 2px 3px 0px 3px;
501 background-color: #9C9CFF;
506 /* ::::: personal toolbar ::::: */
509 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
512 #bookmarks-button[open="true"] {
513 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
516 toolbarbutton.chevron {
517 list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
520 toolbarbutton.chevron:hover,
521 toolbarbutton.chevron[open="true"] {
522 list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important;
525 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
529 toolbarbutton.chevron > .toolbarbutton-text {
530 display: none; /* hide chevron label which has a width even if blank */
533 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
534 display: -moz-box; /* display chevron icon in text mode */
537 /* Prevent [mode="icons"|"text"] from hiding the label and icon */
538 #bookmarks-ptf .bookmark-item > .toolbarbutton-text,
539 #bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
540 display: -moz-box !important;
543 #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
544 #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
549 #PersonalToolbar > #home-button {
553 #PersonalToolbar > #home-button[disabled="true"] {
554 cursor: default !important;
558 In customize mode we hide the normal bookmark items and show a placeholder
559 for the drag/drop UI.
561 .bookmarks-toolbar-customize {
562 list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
564 max-width: 15em !important;
567 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
570 background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
573 /* ::::: star button ::::: */
576 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
577 -moz-image-region: rect(16px 16px 32px 0px);
581 -moz-image-region: rect(16px 32px 32px 16px);
584 #star-button:hover:active {
585 -moz-image-region: rect(16px 48px 32px 32px);
588 #star-button[starred="true"] {
589 -moz-image-region: rect(0px 16px 16px 0px);
592 #star-button[starred="true"]:hover {
593 -moz-image-region: rect(0px 32px 16px 16px);
596 #star-button[starred="true"]:hover:active {
597 -moz-image-region: rect(0px 48px 16px 32px);
600 /* ::::: feeds ::::: */
603 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important;
604 -moz-image-region: rect(0px 16px 16px 0px);
607 #feedsMenu[disabled="true"] {
608 -moz-image-region: rect(32px 16px 48px 0px);
612 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
613 -moz-image-region: rect(0px 32px 16px 16px);
617 -moz-image-region: rect(16px 32px 32px 16px);
620 #feedsButton:hover:active {
621 -moz-image-region: rect(48px 32px 64px 16px);