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 * Robert Kaiser <KaiRo@KaiRo.at>
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the NPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the NPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
41 /* ===== toolbarbutton.css =====================================================
42 == Styles used by the XUL button element.
43 ======================================================================= */
47 background-color : transparent;
52 -moz-box-align : center;
53 -moz-box-pack : center;
54 border : 1px solid transparent;
63 margin: 0px !important;
66 toolbarbutton[value] > .toolbarbutton-box > .toolbarbutton-text {
71 toolbarbutton[buttonover="true"],
72 toolbarbutton[open="true"] {
75 toolbarbutton:hover > .toolbarbutton-box {
76 border : 1px outset #CCD0DD;
79 toolbarbutton:hover:active {
82 toolbarbutton:hover:active > .toolbarbutton-box,
83 toolbarbutton[open="true"] > .toolbarbutton-box {
84 padding : 3px 1px 1px 3px;
85 border : 1px inset #CCD0DD;
88 toolbarbutton[disabled="true"],
89 toolbarbutton[disabled="true"]:hover,
90 toolbarbutton[disabled="true"]:hover:active {
94 toolbarbutton[disabled="true"] > .toolbarbutton-box,
95 toolbarbutton[disabled="true"]:hover > .toolbarbutton-box,
96 toolbarbutton[disabled="true"]:hover:active > .toolbarbutton-box,
97 toolbarbutton[disabled="true"][buttonover="true"] > .toolbarbutton-box,
98 toolbarbutton[disabled="true"][buttondown="true"] > .toolbarbutton-box {
99 border : 1px solid transparent;
103 /* ..... checked state ..... */
105 toolbarbutton[checked="true"] > .toolbarbutton-box {
106 border : 1px inset #CCD0DD;
107 background-color : #DDDDDD;
110 toolbarbutton[checked="true"]:hover > .toolbarbutton-box {
111 border : 1px inset #CCD0DD;
112 background-color : #CCD0DD;
113 background-image : none;
116 /* ::::: toolbarbutton menu ::::: */
118 .toolbarbutton-dropmarker {
119 list-style-image : url("chrome://global/skin/scroll-down.gif");
122 .toolbarbutton-dropmarker[disabled="true"] {
123 list-style-image : url("chrome://global/skin/scroll-down-disabled.gif");
126 /* ::::: toolbarbutton menu-button ::::: */
128 .toolbarbutton-menubutton-dropmarker-box {
129 -moz-box-align: start;
130 -moz-box-pack: center;
133 toolbarbutton[type="menu-button"]:hover:active {
136 .toolbarbutton-menubutton-button {
137 border: none !important;
141 .toolbarbutton-menubutton-dropmarker {
142 list-style-image: url("chrome://global/skin/scroll-down.gif");
145 .toolbarbutton-menubutton-dropmarker[disabled="true"] {
146 list-style-image: url("chrome://global/skin/scroll-down-disabled.gif");
149 .toolbarbutton-menubutton-dropmarker-box {
150 border : 1px solid transparent;
151 padding : 1px 0px 1px 0px;
154 toolbarbutton[disabled="true"]:hover > .toolbarbutton-menubutton-box
155 > .toolbarbutton-menubutton-button > .toolbarbutton-box
157 border : 1px solid transparent;
160 toolbarbutton:hover > .toolbarbutton-menubutton-box
161 > .toolbarbutton-menubutton-button > .toolbarbutton-box,
162 toolbarbutton:hover > .toolbarbutton-menubutton-box
163 > .toolbarbutton-menubutton-dropmarker-box,
164 toolbarbutton[buttonover="true"] > .toolbarbutton-menubutton-box
165 > .toolbarbutton-menubutton-dropmarker-box
167 border : 1px outset #CCD0DD;
170 toolbarbutton[buttondown="true"] > .toolbarbutton-menubutton-box
171 > .toolbarbutton-menubutton-dropmarker-box,
172 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box
173 > .toolbarbutton-menubutton-dropmarker-box,
174 toolbarbutton[open="true"] > .toolbarbutton-menubutton-box
175 > .toolbarbutton-menubutton-button > .toolbarbutton-box
177 border : 1px inset #CCD0DD;
178 padding : 2px 0px 0px 0px;
181 .toolbarbutton-menubutton-dropmarker-box[disabled="true"] {
182 border: 1px solid transparent !important;
183 padding: 0px !important;