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 /* ::::: primary toolbar buttons ::::: */
50 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
51 -moz-image-region: rect(42px 25px 63px 0px);
54 #back-button[disabled="true"] {
55 -moz-image-region: rect(42px 50px 63px 25px);
58 #back-button:not([disabled="true"]):hover,
59 #back-button:not([disabled="true"]):hover:active,
60 #back-button[open="true"] {
61 -moz-image-region: rect(42px 75px 63px 50px);
65 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
66 -moz-image-region: rect(63px 25px 84px 0px);
69 #forward-button[disabled="true"] {
70 -moz-image-region: rect(63px 50px 84px 25px);
73 #forward-button:not([disabled="true"]):hover,
74 #forward-button:not([disabled="true"]):hover:active,
75 #forward-button[open="true"] {
76 -moz-image-region: rect(63px 75px 84px 50px);
80 list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
81 -moz-image-region: rect(0px 25px 21px 0px);
84 #reload-button[disabled="true"] {
85 -moz-image-region: rect(0px 50px 21px 25px);
88 #reload-button:not([disabled="true"]):hover,
89 #reload-button:not([disabled="true"]):hover:active {
90 -moz-image-region: rect(0px 75px 21px 50px);
94 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
95 -moz-image-region: rect(21px 25px 42px 0px);
98 #stop-button[disabled="true"] {
99 -moz-image-region: rect(21px 50px 42px 25px);
102 #stop-button:not([disabled="true"]):hover,
103 #stop-button:not([disabled="true"]):hover:active {
104 -moz-image-region: rect(21px 75px 42px 50px);
108 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
109 -moz-image-region: rect(84px 25px 105px 0px);
112 #home-button[disabled="true"] {
113 -moz-image-region: rect(84px 50px 105px 25px);
116 #home-button:not([disabled="true"]):hover,
117 #home-button:not([disabled="true"]):hover:active {
118 -moz-image-region: rect(84px 75px 105px 50px);
122 list-style-image: url("chrome://communicator/skin/sync/sync-32.png");
125 #sync-button[status=active] {
126 list-style-image: url("chrome://communicator/skin/sync/sync-32-throbber.png");
130 list-style-image: url("chrome://global/skin/icons/close-button.gif");
133 #clear-button:hover {
134 list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
137 /* ::::: small primary toolbar buttons ::::: */
139 toolbar[iconsize="small"] > #back-button {
140 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
141 -moz-image-region: rect(32px 16px 48px 0);
144 toolbar[iconsize="small"] > #back-button[disabled="true"] {
145 -moz-image-region: rect(32px 32px 48px 16px) !important;
148 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover,
149 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover:active {
150 -moz-image-region: rect(32px 48px 48px 32px);
153 toolbar[iconsize="small"] > #forward-button {
154 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
155 -moz-image-region: rect(48px 16px 64px 0);
158 toolbar[iconsize="small"] > #forward-button[disabled="true"] {
159 -moz-image-region: rect(48px 32px 64px 16px) !important;
162 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover,
163 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover:active {
164 -moz-image-region: rect(48px 48px 64px 32px);
167 toolbar[iconsize="small"] > #reload-button {
168 list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
169 -moz-image-region: rect(0 16px 16px 0);
172 toolbar[iconsize="small"] > #reload-button[disabled="true"] {
173 -moz-image-region: rect(0 32px 16px 16px) !important;
176 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover,
177 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover:active {
178 -moz-image-region: rect(0 48px 16px 32px);
181 toolbar[iconsize="small"] > #stop-button {
182 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
183 -moz-image-region: rect(16px 16px 32px 0);
186 toolbar[iconsize="small"] > #stop-button[disabled="true"] {
187 -moz-image-region: rect(16px 32px 32px 16px) !important;
190 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover,
191 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover:active {
192 -moz-image-region: rect(16px 48px 32px 32px);
195 toolbar[iconsize="small"] > #home-button {
196 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
197 -moz-image-region: rect(64px 16px 80px 0);
200 toolbar[iconsize="small"] > #home-button[disabled="true"] {
201 -moz-image-region: rect(64px 32px 80px 16px) !important;
204 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover,
205 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover:active {
206 -moz-image-region: rect(64px 48px 80px 32px);
209 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button,
210 toolbar[iconsize="small"] > #sync-button {
211 list-style-image: url("chrome://communicator/skin/sync/sync-16.png");
214 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button[status=active],
215 toolbar[iconsize="small"] > #sync-button[status=active] {
216 list-style-image: url("chrome://communicator/skin/sync/sync-16-throbber.png");
219 #FindToolbar:-moz-lwtheme {
220 /* -moz-border-top-colors: transparent;
221 -moz-border-bottom-colors: transparent; */
224 /* ::::: fullscreen window controls ::::: */
227 -moz-box-align: center;
229 border-left: 3px solid #000000;
230 -moz-margin-start: 2px;
233 #window-controls > toolbarbutton {
235 -moz-padding-start: 2px;
236 -moz-padding-end: 1px;
239 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
244 list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
247 #minimize-button:hover {
248 list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
252 list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
255 #restore-button:hover {
256 list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
260 list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
263 #close-button:hover {
264 list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
267 /* ::::: nav-bar-inner ::::: */
270 -moz-padding-start: 1px;
271 -moz-padding-end: 1px;
273 -moz-box-align: center;
279 -moz-margin-start: 3px;
282 .urlbar-security-level {
283 border-radius: 3px 0 0 3px;
287 .urlbar-security-level[level="high"],
288 .urlbar-security-level[level="low"] {
289 background-color: #FFCF00;
293 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
294 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
298 /* ::::: notification popups ::::: */
300 .popup-notification-icon {
303 -moz-margin-end: 10px;
306 .popup-notification-icon[popupid="geolocation"] {
307 list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png");
310 .popup-notification-icon[popupid="addon-install-disabled"],
311 .popup-notification-icon[popupid="addon-install-blocked"],
312 .popup-notification-icon[popupid="addon-install-started"],
313 .popup-notification-icon[popupid="addon-install-cancelled"],
314 .popup-notification-icon[popupid="addon-install-failed"],
315 .popup-notification-icon[popupid="addon-install-complete"],
316 .popup-notification-icon[popupid="lwtheme-install-request"],
317 .popup-notification-icon[popupid="lwtheme-install-notification"] {
318 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
323 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
324 .popup-notification-icon[popupid="indexedDB-quota-prompt"] {
325 list-style-image: url("chrome://global/skin/icons/question-64.png");
328 .popup-notification-icon[popupid="password-change"],
329 .popup-notification-icon[popupid="password-save"] {
330 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
333 /* Notification icon box */
334 #notification-popup-box {
335 -moz-margin-end: 3px;
338 .notification-anchor-icon:-moz-focusring {
342 #default-notification-icon {
343 list-style-image: url("chrome://global/skin/icons/information-16.png");
348 #geo-notification-icon {
349 list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
354 #addons-notification-icon {
355 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
360 #indexedDB-notification-icon {
361 list-style-image: url("chrome://global/skin/icons/question-16.png");
366 #password-notification-icon {
367 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
372 /* ::::: page proxy icon ::::: */
387 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
390 #page-proxy-favicon {
391 list-style-image: none;
394 /* ::::: autocomplete ::::: */
396 .autocomplete-treebody::-moz-tree-cell-text(value) {
397 -moz-padding-start: 13px;
400 .autocomplete-treebody::-moz-tree-cell-text(comment) {
402 /* font-style: italic; */
405 .autocomplete-search-box {
406 border-top: 1px solid #FF9F00;
407 background-color: #9C9CFF;
411 .autocomplete-result-popup[nomatch] > .autocomplete-search-box {
412 border-top: 1px solid #9C9CFF;
415 .autocomplete-search-engine {
419 .autocomplete-search-engine[menuactive="true"] {
420 background-color: #008484;
424 .autocomplete-search-engine-img {
425 -moz-margin-end: 4px;
428 .autocomplete-history-dropmarker:hover {
429 background-color: #FFCF00;
432 .autocomplete-history-dropmarker:hover:active,
433 .autocomplete-history-dropmarker[open="true"] {
434 background-color: #FF9F00;
437 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
441 /* ::::: go and searchbuttons ::::: */
447 -moz-margin-start: 2px;
448 background-color: #000000;
451 #search-button:hover,
453 background-color: #FFCF00;
456 /* care that those buttons base on the same min height of 16px that the urlbar
457 autocomplete box gets through site icon and urlbar icons at the right */
458 #search-button > .button-box,
459 #go-button > .button-box {
464 /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
467 #search-button > .button-box > .button-icon {
472 toolbar[mode="text"] #search-button > .button-box > .button-icon,
473 toolbar[mode="icons"] #search-button > .button-box > .button-text {
478 /* ::::: search bar ::::: */
480 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
481 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
486 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
487 border-top: 1px solid #E7ADE7;
490 /* ::::: throbber ::::: */
493 -moz-margin-start: 2px;
496 /* ::::: security button ::::: */
499 list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
502 #security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
506 /* |high| and |low| styles could be different, to better reflect the secure level... */
507 #security-button[level="high"] > .statusbarpanel-contentbox,
508 #security-button[level="low"] > .statusbarpanel-contentbox {
509 list-style-image: url("chrome://communicator/skin/icons/lock-secure-hover.png");
510 background-color: #FFCF00;
513 #security-button[level="broken"] > .statusbarpanel-contentbox {
514 list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
515 background-color: #FF0000;
518 #security-button[label][level="high"] > .statusbarpanel-contentbox {
519 list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
520 background-color: #008484;
525 list-style-image: url("chrome://communicator/skin/icons/identity.png");
529 list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
532 #invalid-form-popup {
533 border: 1px solid #FFCF00;
534 border : 1px outset #FFFFCC;
535 padding: 2px 3px 0px 3px;
537 background-color: #9C9CFF;
542 /* ::::: personal toolbar ::::: */
545 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
548 #bookmarks-button[open="true"] {
549 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
552 toolbarbutton.chevron {
553 list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
556 toolbarbutton.chevron:hover,
557 toolbarbutton.chevron[open="true"] {
558 list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important;
561 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
565 toolbarbutton.chevron > .toolbarbutton-text {
566 display: none; /* hide chevron label which has a width even if blank */
569 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
570 display: -moz-box; /* display chevron icon in text mode */
573 /* Prevent [mode="icons"|"text"] from hiding the label and icon */
574 #bookmarks-ptf .bookmark-item > .toolbarbutton-text,
575 #bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
576 display: -moz-box !important;
579 #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
580 #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
585 #PersonalToolbar > #home-button {
589 #PersonalToolbar > #home-button[disabled="true"] {
590 cursor: default !important;
594 In customize mode we hide the normal bookmark items and show a placeholder
595 for the drag/drop UI.
597 .bookmarks-toolbar-customize {
598 list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
600 max-width: 15em !important;
603 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
606 background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
609 /* ::::: star button ::::: */
612 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
613 -moz-image-region: rect(16px 16px 32px 0px);
617 -moz-image-region: rect(16px 32px 32px 16px);
620 #star-button:hover:active {
621 -moz-image-region: rect(16px 48px 32px 32px);
624 #star-button[starred="true"] {
625 -moz-image-region: rect(0px 16px 16px 0px);
628 #star-button[starred="true"]:hover {
629 -moz-image-region: rect(0px 32px 16px 16px);
632 #star-button[starred="true"]:hover:active {
633 -moz-image-region: rect(0px 48px 16px 32px);
636 #editBookmarkPanelStarIcon {
637 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
638 -moz-image-region: rect(0px 16px 16px 0px);
641 /* ::::: feeds ::::: */
644 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
645 -moz-image-region: rect(0px 16px 16px 0px);
648 .feedsMenu[disabled="true"] {
649 -moz-image-region: rect(32px 16px 48px 0px);
653 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
654 -moz-image-region: rect(0px 32px 16px 16px);
658 -moz-image-region: rect(16px 32px 32px 16px);
661 .feedsButton:hover:active {
662 -moz-image-region: rect(48px 32px 64px 16px);