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(0px 25px 21px 0px);
112 #print-button[disabled="true"] {
113 -moz-image-region: rect(0px 50px 21px 25px);
116 #print-button:not([disabled="true"]):hover,
117 #print-button:not([disabled="true"]):hover:active,
118 #print-button[open="true"] {
119 -moz-image-region: rect(0px 75px 21px 50px);
123 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
124 -moz-image-region: rect(84px 25px 105px 0px);
127 #home-button[disabled="true"] {
128 -moz-image-region: rect(84px 50px 105px 25px);
131 #home-button:not([disabled="true"]):hover,
132 #home-button:not([disabled="true"]):hover:active {
133 -moz-image-region: rect(84px 75px 105px 50px);
137 list-style-image: url("chrome://communicator/skin/sync/sync-32.png");
140 #sync-button[status=active] {
141 list-style-image: url("chrome://communicator/skin/sync/sync-32-throbber.png");
145 list-style-image: url("chrome://global/skin/icons/close-button.gif");
148 #clear-button:hover {
149 list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
152 /* ::::: small primary toolbar buttons ::::: */
154 toolbar[iconsize="small"] > #back-button {
155 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
156 -moz-image-region: rect(32px 16px 48px 0);
159 toolbar[iconsize="small"] > #back-button[disabled="true"] {
160 -moz-image-region: rect(32px 32px 48px 16px) !important;
163 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover,
164 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover:active {
165 -moz-image-region: rect(32px 48px 48px 32px);
168 toolbar[iconsize="small"] > #forward-button {
169 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
170 -moz-image-region: rect(48px 16px 64px 0);
173 toolbar[iconsize="small"] > #forward-button[disabled="true"] {
174 -moz-image-region: rect(48px 32px 64px 16px) !important;
177 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover,
178 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover:active {
179 -moz-image-region: rect(48px 48px 64px 32px);
182 toolbar[iconsize="small"] > #reload-button {
183 list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
184 -moz-image-region: rect(0 16px 16px 0);
187 toolbar[iconsize="small"] > #reload-button[disabled="true"] {
188 -moz-image-region: rect(0 32px 16px 16px) !important;
191 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover,
192 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover:active {
193 -moz-image-region: rect(0 48px 16px 32px);
196 toolbar[iconsize="small"] > #stop-button {
197 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
198 -moz-image-region: rect(16px 16px 32px 0);
201 toolbar[iconsize="small"] > #stop-button[disabled="true"] {
202 -moz-image-region: rect(16px 32px 32px 16px) !important;
205 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover,
206 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover:active {
207 -moz-image-region: rect(16px 48px 32px 32px);
210 toolbar[iconsize="small"] > #print-button {
211 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
212 -moz-image-region: rect(0 16px 16px 0);
215 toolbar[iconsize="small"] > #print-button[disabled="true"] {
216 -moz-image-region: rect(0 32px 16px 16px) !important;
219 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover,
220 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover:active {
221 -moz-image-region: rect(0 48px 16px 32px);
224 toolbar[iconsize="small"] > #home-button {
225 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
226 -moz-image-region: rect(64px 16px 80px 0);
229 toolbar[iconsize="small"] > #home-button[disabled="true"] {
230 -moz-image-region: rect(64px 32px 80px 16px) !important;
233 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover,
234 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover:active {
235 -moz-image-region: rect(64px 48px 80px 32px);
238 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button,
239 toolbar[iconsize="small"] > #sync-button {
240 list-style-image: url("chrome://communicator/skin/sync/sync-16.png");
243 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button[status=active],
244 toolbar[iconsize="small"] > #sync-button[status=active] {
245 list-style-image: url("chrome://communicator/skin/sync/sync-16-throbber.png");
248 #FindToolbar:-moz-lwtheme {
249 /* -moz-border-top-colors: transparent;
250 -moz-border-bottom-colors: transparent; */
253 /* ::::: fullscreen window controls ::::: */
256 -moz-box-align: center;
258 border-left: 3px solid #000000;
259 -moz-margin-start: 2px;
262 #window-controls > toolbarbutton {
264 -moz-padding-start: 2px;
265 -moz-padding-end: 1px;
268 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
273 list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
276 #minimize-button:hover {
277 list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
281 list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
284 #restore-button:hover {
285 list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
289 list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
292 #close-button:hover {
293 list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
296 /* ::::: nav-bar-inner ::::: */
299 -moz-padding-start: 1px;
300 -moz-padding-end: 1px;
302 -moz-box-align: center;
308 -moz-margin-start: 3px;
311 .urlbar-security-level {
312 border-radius: 3px 0 0 3px;
316 .urlbar-security-level[level="high"],
317 .urlbar-security-level[level="low"] {
318 background-color: #FFCF00;
322 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
323 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
327 /* ::::: notification popups ::::: */
329 .popup-notification-icon {
332 -moz-margin-end: 10px;
335 .popup-notification-icon[popupid="geolocation"] {
336 list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png");
339 .popup-notification-icon[popupid="addon-install-disabled"],
340 .popup-notification-icon[popupid="addon-install-blocked"],
341 .popup-notification-icon[popupid="addon-install-started"],
342 .popup-notification-icon[popupid="addon-install-cancelled"],
343 .popup-notification-icon[popupid="addon-install-failed"],
344 .popup-notification-icon[popupid="addon-install-complete"],
345 .popup-notification-icon[popupid="lwtheme-install-request"],
346 .popup-notification-icon[popupid="lwtheme-install-notification"] {
347 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
352 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
353 .popup-notification-icon[popupid="indexedDB-quota-prompt"] {
354 list-style-image: url("chrome://global/skin/icons/question-64.png");
357 .popup-notification-icon[popupid="password-change"],
358 .popup-notification-icon[popupid="password-save"] {
359 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
362 /* Notification icon box */
363 #notification-popup-box {
364 -moz-margin-end: 3px;
367 .notification-anchor-icon:-moz-focusring {
371 #default-notification-icon {
372 list-style-image: url("chrome://global/skin/icons/information-16.png");
377 #geo-notification-icon {
378 list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
383 #addons-notification-icon {
384 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
389 #indexedDB-notification-icon {
390 list-style-image: url("chrome://global/skin/icons/question-16.png");
395 #password-notification-icon {
396 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
401 /* ::::: page proxy icon ::::: */
416 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
419 #page-proxy-favicon {
420 list-style-image: none;
423 /* ::::: autocomplete ::::: */
425 .autocomplete-treebody::-moz-tree-cell-text(value) {
426 -moz-padding-start: 13px;
429 .autocomplete-treebody::-moz-tree-cell-text(comment) {
431 /* font-style: italic; */
434 .autocomplete-search-box {
435 border-top: 1px solid #FF9F00;
436 background-color: #9C9CFF;
440 .autocomplete-result-popup[nomatch] > .autocomplete-search-box {
441 border-top: 1px solid #9C9CFF;
444 .autocomplete-search-engine {
448 .autocomplete-search-engine[menuactive="true"] {
449 background-color: #008484;
453 .autocomplete-search-engine-img {
454 -moz-margin-end: 4px;
457 .autocomplete-history-dropmarker:hover {
458 background-color: #FFCF00;
461 .autocomplete-history-dropmarker:hover:active,
462 .autocomplete-history-dropmarker[open="true"] {
463 background-color: #FF9F00;
466 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
470 /* ::::: go and searchbuttons ::::: */
476 -moz-margin-start: 2px;
477 background-color: #000000;
480 #search-button:hover,
482 background-color: #FFCF00;
485 /* care that those buttons base on the same min height of 16px that the urlbar
486 autocomplete box gets through site icon and urlbar icons at the right */
487 #search-button > .button-box,
488 #go-button > .button-box {
493 /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
496 #search-button > .button-box > .button-icon {
501 toolbar[mode="text"] #search-button > .button-box > .button-icon,
502 toolbar[mode="icons"] #search-button > .button-box > .button-text {
507 /* ::::: search bar ::::: */
509 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
510 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
515 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
516 border-top: 1px solid #E7ADE7;
519 /* ::::: throbber ::::: */
522 -moz-margin-start: 2px;
525 /* ::::: security button ::::: */
528 list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
531 #security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
535 /* |high| and |low| styles could be different, to better reflect the secure level... */
536 #security-button[level="high"] > .statusbarpanel-contentbox,
537 #security-button[level="low"] > .statusbarpanel-contentbox {
538 list-style-image: url("chrome://communicator/skin/icons/lock-secure-hover.png");
539 background-color: #FFCF00;
542 #security-button[level="broken"] > .statusbarpanel-contentbox {
543 list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
544 background-color: #FF0000;
547 #security-button[label][level="high"] > .statusbarpanel-contentbox {
548 list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
549 background-color: #008484;
554 list-style-image: url("chrome://communicator/skin/icons/identity.png");
558 list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
561 #invalid-form-popup {
562 border: 1px solid #FFCF00;
563 border : 1px outset #FFFFCC;
564 padding: 2px 3px 0px 3px;
566 background-color: #9C9CFF;
571 /* ::::: personal toolbar ::::: */
574 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
577 #bookmarks-button[open="true"] {
578 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
581 toolbarbutton.chevron {
582 list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
585 toolbarbutton.chevron:hover,
586 toolbarbutton.chevron[open="true"] {
587 list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important;
590 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
594 toolbarbutton.chevron > .toolbarbutton-text {
595 display: none; /* hide chevron label which has a width even if blank */
598 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
599 display: -moz-box; /* display chevron icon in text mode */
602 /* Prevent [mode="icons"|"text"] from hiding the label and icon */
603 #bookmarks-ptf .bookmark-item > .toolbarbutton-text,
604 #bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
605 display: -moz-box !important;
608 #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
609 #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
614 #PersonalToolbar > #home-button {
618 #PersonalToolbar > #home-button[disabled="true"] {
619 cursor: default !important;
623 In customize mode we hide the normal bookmark items and show a placeholder
624 for the drag/drop UI.
626 .bookmarks-toolbar-customize {
627 list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
629 max-width: 15em !important;
632 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
635 background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
638 /* ::::: star button ::::: */
641 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
642 -moz-image-region: rect(16px 16px 32px 0px);
646 -moz-image-region: rect(16px 32px 32px 16px);
649 #star-button:hover:active {
650 -moz-image-region: rect(16px 48px 32px 32px);
653 #star-button[starred="true"] {
654 -moz-image-region: rect(0px 16px 16px 0px);
657 #star-button[starred="true"]:hover {
658 -moz-image-region: rect(0px 32px 16px 16px);
661 #star-button[starred="true"]:hover:active {
662 -moz-image-region: rect(0px 48px 16px 32px);
665 #editBookmarkPanelStarIcon {
666 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
667 -moz-image-region: rect(0px 16px 16px 0px);
670 /* ::::: feeds ::::: */
673 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
674 -moz-image-region: rect(0px 16px 16px 0px);
677 .feedsMenu[disabled="true"] {
678 -moz-image-region: rect(32px 16px 48px 0px);
682 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
683 -moz-image-region: rect(0px 32px 16px 16px);
687 -moz-image-region: rect(16px 32px 32px 16px);
690 .feedsButton:hover:active {
691 -moz-image-region: rect(48px 32px 64px 16px);