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 .urlbar-security-level[level="low"] {
186 background-color: #FFFFCC;
189 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
190 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
194 /* ::::: notification popups ::::: */
196 .popup-notification-icon {
199 -moz-margin-end: 10px;
202 .popup-notification-icon[popupid="geolocation"] {
203 list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png");
206 .popup-notification-icon[popupid="addon-install-disabled"],
207 .popup-notification-icon[popupid="addon-install-blocked"],
208 .popup-notification-icon[popupid="addon-install-started"],
209 .popup-notification-icon[popupid="addon-install-cancelled"],
210 .popup-notification-icon[popupid="addon-install-failed"],
211 .popup-notification-icon[popupid="addon-install-complete"],
212 .popup-notification-icon[popupid="lwtheme-install-request"],
213 .popup-notification-icon[popupid="lwtheme-install-notification"] {
214 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
219 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
220 .popup-notification-icon[popupid="indexedDB-quota-prompt"] {
221 list-style-image: url("chrome://global/skin/icons/question-64.png");
224 .popup-notification-icon[popupid="password-change"],
225 .popup-notification-icon[popupid="password-save"] {
226 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
229 .popup-notification-icon[popupid="click-to-play-plugins"] {
230 list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png");
235 .addon-progress-description {
240 /* Notification icon box */
241 #notification-popup-box {
242 -moz-margin-end: 3px;
245 .notification-anchor-icon:-moz-focusring {
249 #default-notification-icon {
250 list-style-image: url("chrome://global/skin/icons/information-16.png");
255 #geo-notification-icon {
256 list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
261 #addons-notification-icon {
262 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
267 #indexedDB-notification-icon {
268 list-style-image: url("chrome://global/skin/icons/question-16.png");
273 #password-notification-icon {
274 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
279 #plugins-notification-icon {
280 list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric-16.png");
285 /* ::::: page proxy icon ::::: */
300 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
303 #page-proxy-favicon {
304 list-style-image: none;
307 /* ::::: autocomplete ::::: */
309 .autocomplete-treebody::-moz-tree-cell-text(value) {
310 -moz-padding-start: 13px;
313 .autocomplete-treebody::-moz-tree-cell-text(comment) {
315 /* font-style: italic; */
318 .autocomplete-search-box {
319 border-top: 1px solid #9999CC;
320 background-color: #666699;
324 .autocomplete-result-popup[nomatch] > .autocomplete-search-box {
325 border-top: 1px solid #666699;
328 .autocomplete-search-engine {
332 .autocomplete-search-engine[menuactive="true"] {
333 background-color: #9999CC;
337 .autocomplete-search-engine-img {
338 -moz-margin-end: 4px;
341 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
345 /* ::::: go and searchbuttons ::::: */
351 -moz-margin-start: 2px;
352 background-color: #9999CC;
355 /* care that those buttons base on the same min height of 16px that the urlbar
356 autocomplete box gets through site icon and urlbar icons at the right */
357 #search-button > .button-box,
358 #go-button > .button-box {
363 /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
367 #search-button > .button-box > .button-icon {
372 toolbar[mode="text"] #search-button > .button-box > .button-icon,
373 toolbar[mode="icons"] #search-button > .button-box > .button-text {
378 /* ::::: search bar ::::: */
380 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
381 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
386 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
387 border-top: 1px solid #808080;
390 /* ::::: security button ::::: */
393 -moz-margin-start: 2px;
397 list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
400 /* |high| and |low| styles could be different, to better reflect the secure level... */
401 #security-button[level="high"] > .statusbarpanel-contentbox,
402 #security-button[level="low"] > .statusbarpanel-contentbox {
403 list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
404 background-color: #FFFFCC;
407 #security-button[level="broken"] > .statusbarpanel-contentbox {
408 list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
409 background-color: #FFCCCC;
412 #security-button[label] > .statusbarpanel-contentbox {
413 background-color: #33FF33;
416 #security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
421 /* make same background-color translucent on lwthemes */
422 #security-button[level="high"] > .statusbarpanel-contentbox:-moz-lwtheme,
423 #security-button[level="low"] > .statusbarpanel-contentbox:-moz-lwtheme {
424 background-color: rgba(255, 255, 204, .8);
427 #security-button[level="broken"] > .statusbarpanel-contentbox:-moz-lwtheme {
428 background-color: rgba(255, 204, 204, .8);
431 #security-button[label] > .statusbarpanel-contentbox:-moz-lwtheme {
432 background-color: rgba(51, 255, 51, .8);
436 list-style-image: url("chrome://communicator/skin/icons/identity.png");
440 list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
443 #invalid-form-popup {
444 border : 1px outset #FFFFCC;
445 padding: 2px 3px 0px 3px;
447 background-color : #FFFFCC;
452 /* ::::: personal toolbar ::::: */
455 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
458 #bookmarks-button[open="true"] {
459 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
462 #toolbarbutton.chevron {
463 list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
466 #toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
470 toolbarbutton.chevron > .toolbarbutton-text {
471 display: none; /* hide chevron label which has a width even if blank */
474 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
475 display: -moz-box; /* display chevron icon in text mode */
478 /* Prevent [mode="icons"|"text"] from hiding the label and icon */
479 #bookmarks-ptf .bookmark-item > .toolbarbutton-text,
480 #bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
481 display: -moz-box !important;
484 #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
485 #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
490 #PersonalToolbar > #home-button {
494 #PersonalToolbar > #home-button[disabled="true"] {
495 cursor: default !important;
499 In customize mode we hide the normal bookmark items and show a placeholder
500 for the drag/drop UI.
502 .bookmarks-toolbar-customize {
503 list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
505 max-width: 15em !important;
508 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
511 background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
514 /* ::::: star button ::::: */
517 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
518 -moz-image-region: rect(16px 16px 32px 0px);
522 -moz-image-region: rect(16px 32px 32px 16px);
525 #star-button:hover:active {
526 -moz-image-region: rect(16px 48px 32px 32px);
529 #star-button[starred="true"] {
530 -moz-image-region: rect(0px 16px 16px 0px);
533 #star-button[starred="true"]:hover {
534 -moz-image-region: rect(0px 32px 16px 16px);
537 #star-button[starred="true"]:hover:active {
538 -moz-image-region: rect(0px 48px 16px 32px);
541 #editBookmarkPanelStarIcon {
542 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
543 -moz-image-region: rect(0px 16px 16px 0px);
546 /* ::::: feeds ::::: */
549 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
550 -moz-image-region: rect(0px 16px 16px 0px);
553 .feedsMenu[disabled="true"] {
554 -moz-image-region: rect(32px 16px 48px 0px);
558 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
559 -moz-image-region: rect(0px 32px 16px 16px);
563 -moz-image-region: rect(16px 32px 32px 16px);
566 .feedsButton:hover:active {
567 -moz-image-region: rect(48px 32px 64px 16px);