1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Netscape Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/NPL/
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 mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998-1999
19 * the Initial Developer. All Rights Reserved.
22 * Joe Hewitt (hewitt@netscape.com)
23 * Jason Kersey (kerz@netscape.com)
24 * Pierre Chanial (chanial@noos.fr)
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the NPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the NPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
40 @import url("chrome://global/skin/");
42 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
48 /* ::::: bookmark buttons ::::: */
50 toolbarbutton.bookmark-item {
57 .bookmark-item > .toolbarbutton-icon {
62 /* Prevent [mode="icons"] from hiding the label */
63 .bookmark-item > .toolbarbutton-text {
64 display: -moz-box !important;
67 .bookmark-item > .toolbarbutton-menu-dropmarker {
71 .toolbarpaletteitem-box[type="bookmarks-toolbar"][place="palette"] {
74 background: url("chrome://browser/skin/Bookmarks-folder.png") no-repeat;
77 .bookmarks-toolbar-customize {
79 max-width: 15em !important;
82 toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-customize {
86 toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-overflow-items {
90 toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-items {
94 /* ::::: bookmark menus ::::: */
97 menuitem.bookmark-item {
100 border-top: 1px solid transparent !important;
101 border-bottom: 1px solid transparent !important;
102 padding: 1px 3px 1px 2px;
106 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
111 /* ..... drag and drop styles ..... */
113 .bookmark-item[dragover-left="true"] {
114 -moz-border-left-colors: #000000;
116 .bookmark-item[dragover-right="true"] {
117 -moz-border-right-colors: #000000;
119 .bookmark-item[dragover-top="true"] {
120 -moz-border-top-colors: #000000;
122 .bookmark-item[dragover-bottom="true"] {
123 -moz-border-bottom-colors: #000000;
126 /* ::::: bookmark items ::::: */
129 list-style-image: url("chrome://browser/skin/bookmark-item.gif");
132 .bookmark-item[container="true"] {
133 list-style-image: url("chrome://browser/skin/bookmark-folder-closed.gif");
135 .bookmark-item[open="true"],
136 .bookmark-item[container="true"][open="true"] {
137 list-style-image: url("chrome://browser/skin/bookmark-folder-open.gif");
144 padding: 1px 3px 1px 2px;
145 list-style-image: url("chrome://browser/skin/bookmark-group.gif");
148 /* ::::: primary toolbar buttons ::::: */
151 -moz-box-orient: vertical;
153 list-style-image: url("chrome://browser/skin/Toolbar.png");
156 toolbarbutton:not([disabled="true"]):hover,
157 menubutton:not([disabled="true"]):hover,
158 toolbarbutton:not([disabled="true"]):hover:active,
159 menubutton:not([disabled="true"]):hover:active {
160 color: ButtonText !important;
164 .toolbarbutton-menubutton-stack,
165 .toolbarbutton-menubutton-button,
166 .toolbarbutton-menubutton-stack:hover,
167 .toolbarbutton-menubutton-button:hover,
168 .toolbarbutton-menubutton-stack:hover:active,
169 .toolbarbutton-menubutton-button:hover:active {
170 margin: 0 !important;
175 toolbarbutton[type="menu-button"] {
176 -moz-box-orient: horizontal;
179 toolbar[mode="icons"] .toolbarbutton-text {
183 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker,
184 toolbar[mode="text"] .toolbarbutton-icon {
188 toolbar[mode="text"] .toolbarbutton-text {
189 padding: 0 !important;
190 margin: 3px 5px !important;
194 /* -moz-binding: url("chrome://browser/skin/browser.xml#toolbar-menu-button"); */
195 list-style-image: url("chrome://browser/skin/back.gif");
197 #back-button[disabled="true"] {
198 list-style-image: url("chrome://browser/skin/back-disabled.gif");
202 /* -moz-binding: url("chrome://browser/skin/browser.xml#toolbar-menu-button"); */
203 list-style-image: url("chrome://browser/skin/forward.gif");
205 #forward-button[disabled="true"] {
206 list-style-image: url("chrome://browser/skin/forward-disabled.gif");
210 list-style-image: url("chrome://browser/skin/reload.gif");
212 #reload-button[disabled="true"] {
213 list-style-image: url("chrome://browser/skin/reload-disabled.gif");
217 list-style-image: url("chrome://browser/skin/stop.gif");
219 #stop-button[disabled="true"] {
220 list-style-image: url("chrome://browser/skin/stop-disabled.gif");
224 list-style-image: url("chrome://browser/skin/home.gif");
226 #home-button[disabled="true"] {
227 list-style-image: url("chrome://browser/skin/home-disabled.gif");
231 list-style-image: url("chrome://browser/skin/print.gif");
233 #print-button[disabled="true"] {
234 list-style-image: url("chrome://browser/skin/print-disabled.gif");
238 -moz-image-region: rect(0px 320px 32px 288px);
240 #new-tab-button:hover,
241 #new-tab-button[checked="true"] {
242 -moz-image-region: rect(32px 320px 64px 288px);
244 #new-tab-button[disabled="true"] {
245 -moz-image-region: rect(64px 320px 96px 288px);
249 -moz-image-region: rect(0px 352px 32px 320px);
251 #new-window-button:hover,
252 #new-window-button[checked="true"] {
253 -moz-image-region: rect(32px 352px 64px 320px);
255 #new-window-button[disabled="true"] {
256 -moz-image-region: rect(64px 352px 96px 320px);
260 -moz-image-region: rect(0px 192px 32px 160px);
262 #downloads-button:hover,
263 #downloads-button[checked="true"] {
264 -moz-image-region: rect(32px 192px 64px 160px);
266 #downloads-button[disabled="true"] {
267 -moz-image-region: rect(64px 192px 96px 160px);
271 list-style-image: url("chrome://browser/skin/bookmarks.gif");
273 #bookmarks-button[disabled="true"] {
274 list-style-image: url("chrome://browser/skin/bookmarks-disabled.gif");
278 -moz-image-region: rect(0px 224px 32px 192px);
280 #history-button:hover,
281 #history-button[checked="true"] {
282 -moz-image-region: rect(32px 224px 64px 192px);
284 #history-button[disabled="true"] {
285 -moz-image-region: rect(64px 224px 96px 192px);
289 /* ::::: small primary toolbar buttons ::::: */
291 toolbar[iconsize="small"] .toolbarbutton-1 {
292 list-style-image: url("chrome://browser/skin/Toolbar-small.png");
295 toolbar[iconsize="small"] #back-button {
296 list-style-image: url("chrome://browser/skin/back.gif");
298 toolbar[iconsize="small"] #back-button[disabled="true"] {
299 list-style-image: url("chrome://browser/skin/back-disabled.gif");
302 toolbar[iconsize="small"] #forward-button {
303 list-style-image: url("chrome://browser/skin/forward.gif");
305 toolbar[iconsize="small"] #forward-button[disabled="true"] {
306 list-style-image: url("chrome://browser/skin/forward-disabled.gif");
309 toolbar[iconsize="small"] #reload-button {
310 list-style-image: url("chrome://browser/skin/reload.gif");
312 toolbar[iconsize="small"] #reload-button[disabled="true"] {
313 list-style-image: url("chrome://browser/skin/reload-disabled.gif");
316 toolbar[iconsize="small"] #stop-button {
317 list-style-image: url("chrome://browser/skin/stop.gif");
319 toolbar[iconsize="small"] #stop-button[disabled="true"] {
320 list-style-image: url("chrome://browser/skin/stop-disabled.gif");
323 toolbar[iconsize="small"] #home-button {
324 list-style-image: url("chrome://browser/skin/home-small.gif");
326 toolbar[iconsize="small"] #home-button[disabled="true"] {
327 list-style-image: url("chrome://browser/skin/home-small-disabled.gif");
330 toolbar[iconsize="small"] #print-button {
331 list-style-image: url("chrome://browser/skin/print.gif");
333 toolbar[iconsize="small"] #print-button[disabled="true"] {
334 list-style-image: url("chrome://browser/skin/print-disabled.gif");
337 toolbar[iconsize="small"] #downloads-button {
338 -moz-image-region: rect(0px 120px 20px 100px);
340 toolbar[iconsize="small"] #downloads-button:hover,
341 toolbar[iconsize="small"] #downloads-button[checked="true"] {
342 -moz-image-region: rect(20px 120px 40px 100px);
344 toolbar[iconsize="small"] #downloads-button[disabled="true"] {
345 -moz-image-region: rect(40px 120px 60px 100px) !important;
348 toolbar[iconsize="small"] #new-tab-button {
349 -moz-image-region: rect(0px 200px 20px 180px);
351 toolbar[iconsize="small"] #new-tab-button:hover,
352 toolbar[iconsize="small"] #new-tab-button[checked="true"] {
353 -moz-image-region: rect(20px 200px 40px 180px);
355 toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
356 -moz-image-region: rect(40px 200px 60px 180px) !important;
359 toolbar[iconsize="small"] #new-window-button {
360 -moz-image-region: rect(0px 220px 20px 200px);
362 toolbar[iconsize="small"] #new-window-button:hover,
363 toolbar[iconsize="small"] #new-window-button[checked="true"] {
364 -moz-image-region: rect(20px 220px 40px 200px);
366 toolbar[iconsize="small"] #new-window-button[disabled="true"] {
367 -moz-image-region: rect(40px 220px 60px 200px) !important;
370 toolbar[iconsize="small"] #bookmarks-button {
371 list-style-image: url("chrome://browser/skin/bookmarks-small.gif");
373 toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
374 list-style-image: url("chrome://browser/skin/bookmarks-small-disabled.gif");
377 toolbar[iconsize="small"] #history-button {
378 -moz-image-region: rect(0px 140px 20px 120px);
380 toolbar[iconsize="small"] #history-button:hover,
381 toolbar[iconsize="small"] #history-button[checked="true"] {
382 -moz-image-region: rect(20px 140px 40px 120px);
384 toolbar[iconsize="small"] #history-button[disabled="true"] {
385 -moz-image-region: rect(40px 140px 60px 120px) !important;
389 /* ::::: fullscreen window controls ::::: */
392 -moz-box-align: center;
393 padding: 0 2px 0 4px;
394 border-left: 2px solid;
395 -moz-border-left-colors: ThreeDHighlight ThreeDShadow;
399 list-style-image: url("chrome://navigator/skin/icons/minimize.gif");
402 list-style-image: url("chrome://navigator/skin/icons/restore.gif");
405 list-style-image: url("chrome://navigator/skin/icons/close.gif");
408 /* ::::: nav-bar-inner ::::: */
418 /* ::::: page proxy icon ::::: */
432 #page-proxy-favicon {
433 list-style-image: none;
437 list-style-image: url("chrome://global/skin/icons/Folder-item.png") !important;
438 -moz-image-region: rect(0px, 16px, 16px, 0px);}
440 #page-proxy-button[pageproxystate="invalid"] {
442 -moz-image-region: rect(32px, 16px, 48px, 0px); !important;
446 statusbarpanel#statusbar-display {
450 /* ::::: search-bar ::::: */
452 #search-proxy-button {
454 list-style-image: url("chrome://browser/skin/Search-bar.png");
457 /* ::::: autocomplete ::::: */
459 .autocomplete-treebody:-moz-tree-cell-text(treecolAutoCompleteComment) {
463 /* ::::: go button ::::: */
467 -moz-appearance: none;
468 background-color: transparent;
472 list-style-image: url("chrome://browser/skin/Go.png");
473 -moz-image-region: rect(0px, 20px, 20px, 0px);
477 -moz-appearance: toolbarbutton;
478 border-width: 1px !important;
479 -moz-border-top-colors: transparent;
480 -moz-border-right-colors: transparent;
481 -moz-border-bottom-colors: transparent;
482 -moz-border-left-colors: transparent;
483 -moz-appearance: toolbarbutton;
487 -moz-border-top-colors: ThreeDHighlight;
488 -moz-border-right-colors: ThreeDShadow;
489 -moz-border-bottom-colors: ThreeDShadow;
490 -moz-border-left-colors: ThreeDHighlight;
491 -moz-image-region: rect(0px, 40px, 20px, 20px);
494 #go-button:hover:active {
495 -moz-border-top-colors: ThreeDShadow;
496 -moz-border-right-colors: ThreeDHighlight;
497 -moz-border-bottom-colors: ThreeDHighlight;
498 -moz-border-left-colors: ThreeDShadow;
501 #go-button[disabled="true"] {
502 -moz-image-region: rect(0px, 60px, 20px, 40px);
503 border-color: transparent;
506 #go-button > .button-box > .button-text {
507 margin-left: 5px !important;
510 #go-button > .button-box {
515 background-color: Window;
518 /* ::::: content area ::::: */
528 #security-button[level="high"] {
529 list-style-image: url("chrome://browser/skin/Secure.png");
533 #security-button[level="low"] {
534 list-style-image: url("chrome://browser/skin/Secure.png");
538 #security-button[level="broken"] {
539 list-style-image: url("chrome://browser/skin/Security-broken.png");
543 #page-report-button {
547 #page-report-button[blocked] {
549 list-style-image: url("chrome://browser/skin/Info.png");
550 padding: 0px 3px 0px 3px;
553 /* ::::: throbber ::::: */
555 #navigator-throbber {
556 -moz-appearance: none;
557 -moz-user-focus: ignore;
558 margin: 0 !important;
559 border: none !important;
560 padding: 0px !important;
562 background-color: transparent;
563 list-style-image: url("chrome://browser/skin/throbber-stopped.gif");
565 #navigator-throbber[busy="true"] {
566 list-style-image: url("chrome://browser/skin/throbber.gif");
569 toolbar[iconsize="small"] #navigator-throbber,
570 toolbar[mode="text"] #navigator-throbber {
571 list-style-image: url("chrome://browser/skin/throbber-small-stopped.gif");
573 toolbar[iconsize="small"] #navigator-throbber[busy="true"],
574 toolbar[mode="text"] #navigator-throbber[busy="true"] {
575 list-style-image: url("chrome://browser/skin/throbber-small.gif");
579 list-style-image: url("chrome://global/skin/icons/close-button.gif");
582 #content .tabs-closebutton {
583 list-style-image: url("chrome://browser/skin/Close-tab.png");
584 -moz-image-region: rect(0px, 20px, 16px, 0px);
587 #content .tabs-closebutton:hover {
588 -moz-image-region: rect(0px, 40px, 16px, 20px);
591 toolbarbutton.chevron {
592 list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
596 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {