1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /** Contains style definitions for the navigator application
8 @import url("chrome://navigator/content/navigator.css");
9 @import url("chrome://communicator/skin/");
10 @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css");
12 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
14 /* ::::: primary toolbar buttons ::::: */
17 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
18 -moz-image-region: rect(42px 25px 63px 0px);
21 #back-button[disabled="true"] {
22 -moz-image-region: rect(42px 50px 63px 25px);
26 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
27 -moz-image-region: rect(63px 25px 84px 0px);
30 #forward-button[disabled="true"] {
31 -moz-image-region: rect(63px 50px 84px 25px);
35 list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
36 -moz-image-region: rect(0px 25px 21px 0px);
39 #reload-button[disabled="true"] {
40 -moz-image-region: rect(0px 50px 21px 25px);
44 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
45 -moz-image-region: rect(21px 25px 42px 0px);
48 #stop-button[disabled="true"] {
49 -moz-image-region: rect(21px 50px 42px 25px);
53 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
54 -moz-image-region: rect(84px 25px 105px 0px);
57 #home-button[disabled="true"] {
58 -moz-image-region: rect(84px 50px 105px 25px);
62 list-style-image: url("chrome://communicator/skin/sync/sync-32.png");
65 #sync-button[status=active] {
66 list-style-image: url("chrome://communicator/skin/sync/sync-32-throbber.png");
70 list-style-image: url("chrome://global/skin/icons/close-button.gif");
73 /* ::::: small primary toolbar buttons ::::: */
75 toolbar[iconsize="small"] > #back-button {
76 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
77 -moz-image-region: rect(32px 16px 48px 0);
80 toolbar[iconsize="small"] > #back-button[disabled="true"] {
81 -moz-image-region: rect(32px 32px 48px 16px) !important;
84 toolbar[iconsize="small"] > #forward-button {
85 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
86 -moz-image-region: rect(48px 16px 64px 0);
89 toolbar[iconsize="small"] > #forward-button[disabled="true"] {
90 -moz-image-region: rect(48px 32px 64px 16px) !important;
93 toolbar[iconsize="small"] > #reload-button {
94 list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
95 -moz-image-region: rect(0 16px 16px 0);
98 toolbar[iconsize="small"] > #reload-button[disabled="true"] {
99 -moz-image-region: rect(0 32px 16px 16px) !important;
102 toolbar[iconsize="small"] > #stop-button {
103 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
104 -moz-image-region: rect(16px 16px 32px 0);
107 toolbar[iconsize="small"] > #stop-button[disabled="true"] {
108 -moz-image-region: rect(16px 32px 32px 16px) !important;
111 toolbar[iconsize="small"] > #home-button {
112 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
113 -moz-image-region: rect(64px 16px 80px 0);
116 toolbar[iconsize="small"] > #home-button[disabled="true"] {
117 -moz-image-region: rect(64px 32px 80px 16px) !important;
120 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button,
121 toolbar[iconsize="small"] > #sync-button {
122 list-style-image: url("chrome://communicator/skin/sync/sync-16.png");
125 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button[status=active],
126 toolbar[iconsize="small"] > #sync-button[status=active] {
127 list-style-image: url("chrome://communicator/skin/sync/sync-16-throbber.png");
130 #FindToolbar:-moz-lwtheme {
131 /* -moz-border-top-colors: transparent;
132 -moz-border-bottom-colors: transparent; */
135 /* ::::: fullscreen window controls ::::: */
138 -moz-box-align: center;
140 border-left: 1px solid #9999CC;
141 -moz-margin-start: 2px;
144 #window-controls > toolbarbutton {
146 -moz-padding-start: 2px;
147 -moz-padding-end: 1px;
150 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
155 list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
159 list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
163 list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
166 /* ::::: nav-bar-inner ::::: */
169 -moz-padding-start: 1px;
170 -moz-padding-end: 1px;
172 -moz-box-align: center;
177 -moz-margin-start: 3px;
180 .urlbar-security-level {
184 .urlbar-security-level[level="high"] {
185 background-color: #FFFFCC;
188 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
189 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
193 /* ::::: notification popups ::::: */
195 .popup-notification-icon {
198 -moz-margin-end: 10px;
201 .popup-notification-icon[popupid="geolocation"] {
202 list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png");
205 .popup-notification-icon[popupid="web-notifications"] {
206 list-style-image: url("chrome://communicator/skin/icons/notification-64.png");
209 .popup-notification-icon[popupid="addon-install-disabled"],
210 .popup-notification-icon[popupid="addon-install-blocked"],
211 .popup-notification-icon[popupid="addon-install-started"],
212 .popup-notification-icon[popupid="addon-install-cancelled"],
213 .popup-notification-icon[popupid="addon-install-failed"],
214 .popup-notification-icon[popupid="addon-install-complete"],
215 .popup-notification-icon[popupid="lwtheme-install-request"],
216 .popup-notification-icon[popupid="lwtheme-install-notification"] {
217 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
222 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
223 .popup-notification-icon[popupid="indexedDB-quota-prompt"] {
224 list-style-image: url("chrome://global/skin/icons/question-64.png");
227 .popup-notification-icon[popupid="password"] {
228 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
231 .popup-notification-icon[popupid="click-to-play-plugins"] {
232 list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png");
238 .addon-progress-description {
243 /* Notification icon box */
244 #notification-popup-box {
245 -moz-margin-end: 3px;
248 .notification-anchor-icon:-moz-focusring {
252 #default-notification-icon {
253 list-style-image: url("chrome://global/skin/icons/information-16.png");
258 #geo-notification-icon {
259 list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
264 #web-notifications-notification-icon {
265 list-style-image: url("chrome://communicator/skin/icons/notification-16.png");
270 #addons-notification-icon {
271 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
276 #indexedDB-notification-icon {
277 list-style-image: url("chrome://global/skin/icons/question-16.png");
282 #password-notification-icon {
283 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
288 #plugins-notification-icon {
289 list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric-16.png");
294 .click-to-play-plugins-notification-content {
299 .click-to-play-plugins-notification-icon-box {
300 background-color: #CCD0DD;
301 -moz-border-end: 1px solid #666699;
305 .click-to-play-plugins-notification-separator {
306 -moz-border-start: 1px solid #666699;
307 border-top: 1px solid #666699;
310 .click-to-play-plugins-notification-description-box {
312 -moz-padding-end: 11px;
314 -moz-padding-start: 10px;
317 .click-to-play-plugins-notification-center-box {
318 background-color: #CCD0DD;
321 .click-to-play-plugins-notification-button-container {
326 padding: 8px 16px 0px 16px;
329 .center-item-box[padbottom="true"] {
334 background-image: url("chrome://mozapps/skin/plugins/pluginGeneric-16.png");
335 background-repeat: no-repeat;
341 .center-item-box[warn="true"] {
342 /* background-image: url("chrome://navigator/skin/click-to-play-warning-stripes.png");*/
343 background-repeat: repeat-x;
344 padding: 8px 16px 6px 16px;
347 .center-item-box[padbottom="true"][warn="true"] {
351 .center-item-box[showseparator="true"] {
352 border-top: 1px solid #666699;
355 .center-item-box[warn="false"] > .center-item-warning {
359 .center-item-warning > .text-link[href=""] {
363 .center-item-warning-icon {
364 background-image: url("chrome://mozapps/skin/extensions/alerticon-info-negative.png");
365 background-repeat: no-repeat;
371 .center-item-warning-description {
375 .center-item-button {
379 /* ::::: page proxy icon ::::: */
394 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
397 #page-proxy-favicon {
398 list-style-image: none;
401 /* ::::: autocomplete ::::: */
403 .autocomplete-treebody::-moz-tree-cell-text(value) {
404 -moz-padding-start: 13px;
407 .autocomplete-treebody::-moz-tree-cell-text(comment) {
409 /* font-style: italic; */
412 .autocomplete-search-box {
413 border-top: 1px solid #9999CC;
414 background-color: #666699;
418 .autocomplete-result-popup[nomatch] > .autocomplete-search-box {
419 border-top: 1px solid #666699;
422 .autocomplete-search-engine {
426 .autocomplete-search-engine[menuactive="true"] {
427 background-color: #9999CC;
431 .autocomplete-search-engine-img {
432 -moz-margin-end: 4px;
435 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
439 /* ::::: go and searchbuttons ::::: */
445 -moz-margin-start: 2px;
446 background-color: #9999CC;
449 /* care that those buttons base on the same min height of 16px that the urlbar
450 autocomplete box gets through site icon and urlbar icons at the right */
451 #search-button > .button-box,
452 #go-button > .button-box {
457 /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
461 #search-button > .button-box > .button-icon {
466 toolbar[mode="text"] #search-button > .button-box > .button-icon,
467 toolbar[mode="icons"] #search-button > .button-box > .button-text {
472 /* ::::: search bar ::::: */
474 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
475 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
480 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
481 border-top: 1px solid #808080;
484 /* ::::: security button ::::: */
487 -moz-margin-start: 2px;
491 list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
494 /* |high| and |low| styles could be different, to better reflect the secure level... */
495 #security-button[level="high"] > .statusbarpanel-contentbox {
496 list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
497 background-color: #FFFFCC;
500 #security-button[level="broken"] > .statusbarpanel-contentbox {
501 list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
502 background-color: #FFCCCC;
505 #security-button[label] > .statusbarpanel-contentbox {
506 background-color: #33FF33;
509 #security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
514 /* make same background-color translucent on lwthemes */
515 #security-button[level="high"] > .statusbarpanel-contentbox:-moz-lwtheme {
516 background-color: rgba(255, 255, 204, .8);
519 #security-button[level="broken"] > .statusbarpanel-contentbox:-moz-lwtheme {
520 background-color: rgba(255, 204, 204, .8);
523 #security-button[label] > .statusbarpanel-contentbox:-moz-lwtheme {
524 background-color: rgba(51, 255, 51, .8);
528 list-style-image: url("chrome://communicator/skin/icons/identity.png");
532 list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
535 #invalid-form-popup {
536 border : 1px outset #FFFFCC;
537 padding: 2px 3px 0px 3px;
539 background-color : #FFFFCC;
544 /* ::::: personal toolbar ::::: */
547 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
550 #bookmarks-button[open="true"] {
551 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
554 #toolbarbutton.chevron {
555 list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
558 #toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
562 toolbarbutton.chevron > .toolbarbutton-text {
563 display: none; /* hide chevron label which has a width even if blank */
566 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
567 display: -moz-box; /* display chevron icon in text mode */
570 /* Prevent [mode="icons"|"text"] from hiding the label and icon */
571 #bookmarks-ptf .bookmark-item > .toolbarbutton-text,
572 #bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
573 display: -moz-box !important;
576 #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
577 #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
582 #PersonalToolbar > #home-button {
586 #PersonalToolbar > #home-button[disabled="true"] {
587 cursor: default !important;
591 In customize mode we hide the normal bookmark items and show a placeholder
592 for the drag/drop UI.
594 .bookmarks-toolbar-customize {
595 list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
597 max-width: 15em !important;
600 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
603 background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
606 /* ::::: star button ::::: */
609 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
610 -moz-image-region: rect(16px 16px 32px 0px);
614 -moz-image-region: rect(16px 32px 32px 16px);
617 #star-button:hover:active {
618 -moz-image-region: rect(16px 48px 32px 32px);
621 #star-button[starred="true"] {
622 -moz-image-region: rect(0px 16px 16px 0px);
625 #star-button[starred="true"]:hover {
626 -moz-image-region: rect(0px 32px 16px 16px);
629 #star-button[starred="true"]:hover:active {
630 -moz-image-region: rect(0px 48px 16px 32px);
633 #editBookmarkPanelStarIcon {
634 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
635 -moz-image-region: rect(0px 16px 16px 0px);
638 /* ::::: feeds ::::: */
641 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
642 -moz-image-region: rect(0px 16px 16px 0px);
645 .feedsMenu[disabled="true"] {
646 -moz-image-region: rect(32px 16px 48px 0px);
650 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
651 -moz-image-region: rect(0px 32px 16px 16px);
655 -moz-image-region: rect(16px 32px 32px 16px);
658 .feedsButton:hover:active {
659 -moz-image-region: rect(48px 32px 64px 16px);