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");
31 -moz-border-radius : 3px;
34 background-color : #000000;
39 -moz-border-radius : 3px;
40 -moz-box-align : center;
41 -moz-box-pack : center;
51 margin: 0px !important;
54 toolbarbutton[value] > .toolbarbutton-box > .toolbarbutton-text {
59 toolbarbutton[buttonover="true"],
60 toolbarbutton:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
61 toolbarbutton[buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button {
62 background-color : #FFCF00;
66 toolbarbutton:hover > .toolbarbutton-box {
70 toolbarbutton:hover:active,
71 toolbarbutton[open="true"],
72 toolbarbutton:hover:active > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
73 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button {
74 background-color : #FF9F00;
78 toolbarbutton:hover:active > .toolbarbutton-box,
79 toolbarbutton[open="true"] > .toolbarbutton-box {
80 padding : 3px 1px 1px 3px;
84 toolbarbutton[disabled="true"],
85 toolbarbutton[disabled="true"]:hover,
86 toolbarbutton[disabled="true"]:hover:active,
87 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
88 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
89 toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button,
90 toolbarbutton[disabled="true"][open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button {
91 background-color : #000000;
95 toolbarbutton[disabled="true"] > .toolbarbutton-box,
96 toolbarbutton[disabled="true"]:hover > .toolbarbutton-box,
97 toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-box,
98 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-box,
99 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-box {
104 /* ..... checked state ..... */
106 toolbarbutton[checked="true"] {
107 background-color : #008484;
111 toolbarbutton[checked="true"]:hover {
112 background-color : #FFCF00;
116 /* ::::: toolbarbutton menu ::::: */
118 .toolbarbutton-dropmarker {
119 list-style-image : url("chrome://global/skin/scroll-down.gif");
122 toolbarbutton:hover > .toolbarbutton-box > .toolbarbutton-dropmarker,
123 toolbarbutton[buttonover="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
124 toolbarbutton[buttondown="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
125 toolbarbutton[open="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker {
126 list-style-image : url("chrome://global/skin/scroll-down-hover.gif");
129 .toolbarbutton-dropmarker[disabled="true"],
130 toolbarbutton[disabled="true"]:hover > .toolbarbutton-box > .toolbarbutton-dropmarker,
131 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
132 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker,
133 toolbarbutton[disabled="true"][open="true"] > .toolbarbutton-box > .toolbarbutton-dropmarker {
134 list-style-image : url("chrome://global/skin/scroll-down-disabled.gif");
137 /* ::::: toolbarbutton menu-button ::::: */
139 .toolbarbutton-menubutton-dropmarker-box {
140 -moz-box-align: start;
141 -moz-box-pack: center;
144 toolbarbutton[type="menu-button"]:hover:active {
147 .toolbarbutton-menubutton-button {
148 border: none !important;
152 .toolbarbutton-menubutton-dropmarker {
153 list-style-image: url("chrome://global/skin/scroll-down.gif");
156 toolbarbutton:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
157 toolbarbutton[buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
158 toolbarbutton[buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
159 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker
161 list-style-image : url("chrome://global/skin/scroll-down-hover.gif");
164 .toolbarbutton-menubutton-dropmarker[disabled="true"],
165 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
166 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
167 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker,
168 toolbarbutton[disabled="true"][open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box > .toolbarbutton-menubutton-dropmarker {
169 list-style-image: url("chrome://global/skin/scroll-down-disabled.gif");
172 .toolbarbutton-menubutton-dropmarker-box {
173 border : 1px solid transparent;
174 padding : 1px 0px 1px 0px;
177 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button > .toolbarbutton-box
179 /* border : 1px solid transparent; */
182 toolbarbutton[buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box,
183 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-dropmarker-box,
184 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button > .toolbarbutton-box
186 padding : 2px 0px 0px 0px;
189 .toolbarbutton-menubutton-dropmarker-box[disabled="true"] {
190 /* border: 1px solid transparent !important; */
191 padding: 0px !important;