2 * The contents of this file are subject to the Netscape Public
3 * License Version 1.1 (the "License"); you may not use this file
4 * except in compliance with the License. You may obtain a copy of
5 * the License at http://www.mozilla.org/NPL/
7 * Software distributed under the License is distributed on an "AS
8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9 * implied. See the License for the specific language governing
10 * rights and limitations under the License.
12 * The Original Code is Mozilla Communicator client code, released
15 * The Initial Developer of the Original Code is Netscape
16 * Communications Corporation. Portions created by Netscape are
17 * Copyright (C) 1998-1999 Netscape Communications Corporation. All
21 * Joe Hewitt (hewitt@netscape.com)
24 /* ===== toolbarbutton.css =====================================================
25 == Styles used by the XUL button element.
26 ======================================================================= */
28 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
32 background-color : transparent;
37 -moz-box-align : center;
38 -moz-box-pack : center;
39 border : 1px solid transparent;
48 margin: 0px !important;
51 toolbarbutton[value] > .toolbarbutton-box > .toolbarbutton-text {
56 toolbarbutton[buttonover="true"],
57 toolbarbutton[open="true"] {
60 toolbarbutton:hover > .toolbarbutton-box {
61 border : 1px outset #CCD0DD;
64 toolbarbutton:hover:active {
67 toolbarbutton:hover:active > .toolbarbutton-box,
68 toolbarbutton[open="true"] > .toolbarbutton-box {
69 padding : 3px 1px 1px 3px;
70 border : 1px inset #CCD0DD;
73 toolbarbutton[disabled="true"],
74 toolbarbutton[disabled="true"]:hover,
75 toolbarbutton[disabled="true"]:hover:active {
79 toolbarbutton[disabled="true"] > .toolbarbutton-box,
80 toolbarbutton[disabled="true"]:hover > .toolbarbutton-box,
81 toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-box,
82 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-box,
83 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-box {
84 border : 1px solid transparent;
88 /* ..... checked state ..... */
90 toolbarbutton[checked="true"] > .toolbarbutton-box {
91 border : 1px inset #CCD0DD;
92 background-color : #DDDDDD;
95 toolbarbutton[checked="true"]:hover > .toolbarbutton-box {
96 border : 1px inset #CCD0DD;
97 background-color : #CCD0DD;
98 background-image : none;
101 /* ::::: toolbarbutton menu ::::: */
103 .toolbarbutton-dropmarker {
104 list-style-image : url("chrome://global/skin/scroll-down.gif");
107 .toolbarbutton-dropmarker[disabled="true"] {
108 list-style-image : url("chrome://global/skin/scroll-down-disabled.gif");
111 /* ::::: toolbarbutton menu-button ::::: */
113 .toolbarbutton-menubutton-dropmarker-box {
114 -moz-box-align: start;
115 -moz-box-pack: center;
118 toolbarbutton[type="menu-button"]:hover:active {
121 .toolbarbutton-menubutton-button {
122 border: none !important;
126 .toolbarbutton-menubutton-dropmarker {
127 list-style-image: url("chrome://global/skin/scroll-down.gif");
130 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
131 list-style-image: url("chrome://global/skin/scroll-down-disabled.gif");
134 .toolbarbutton-menubutton-dropmarker-box {
135 border : 1px solid transparent;
136 padding : 1px 0px 1px 0px;
139 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box
140 > .toolbarbutton-menubutton-button > .toolbarbutton-box
142 border : 1px solid transparent;
145 toolbarbutton:hover > .toolbarbutton-menubutton-box
146 > .toolbarbutton-menubutton-button > .toolbarbutton-box,
147 toolbarbutton:hover > .toolbarbutton-menubutton-box
148 > .toolbarbutton-menubutton-dropmarker-box,
149 toolbarbutton[buttonover="true"] > .toolbarbutton-menubutton-box
150 > .toolbarbutton-menubutton-dropmarker-box
152 border : 1px outset #CCD0DD;
155 toolbarbutton[buttondown="true"] > .toolbarbutton-menubutton-box
156 > .toolbarbutton-menubutton-dropmarker-box,
157 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box
158 > .toolbarbutton-menubutton-dropmarker-box,
159 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box
160 > .toolbarbutton-menubutton-button > .toolbarbutton-box
162 border : 1px inset #CCD0DD;
163 padding : 2px 0px 0px 0px;
166 .toolbarbutton-menubutton-dropmarker-box[disabled="true"] {
167 border: 1px solid transparent !important;
168 padding: 0px !important;