1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
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 "Classic" theme of mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * the Mozilla Organization.
18 * Portions created by the Initial Developer are Copyright (C) 1998-2001
19 * the Initial Developer. All Rights Reserved.
22 * Robert Kaiser <KaiRo@KaiRo.at>
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
40 /* NEW WIDGET ANDING: <button> */
42 /** Default Button Styles (apply to usage of <button> without
49 -moz-border-radius : 3px;
51 margin : 1px 5px 2px 5px;
53 background-color : #000000;
55 -moz-user-focus : normal;
59 margin: 0px !important;
63 button[disabled="true"],
64 button[disabled="true"][default],
65 button[disabled="true"]:hover,
66 button[disabled="true"]:hover:active
69 background-color : #000000;
74 button[disabled="true"][default] > .button-box,
75 button[disabled="true"]:hover:active > .button-box
77 -moz-border-radius : 3px;
79 -moz-user-focus : none;
83 button[disabled="true"][default] > .button-box > .button-box-2,
84 button[disabled="true"]:hover:active > .button-box > .button-box-2
92 button[checked="true"]
95 background-color : #FFCF00;
99 button:hover:active > .button-box,
100 button[checked="true"] > .button-box,
101 button[checked="true"]:focus > .button-box,
102 button[open="true"] > .button-box,
103 button[open="true"]:focus > .button-box
108 button:hover:active > .button-box > .button-box-2,
109 button[checked="true"] > .button-box > .button-box-2,
110 button[checked="true"]:focus> .button-box > .button-box-2,
111 button[open="true"] > .button-box > .button-box-2,
112 button[open="true"]:focus > .button-box > .button-box-2
117 button:hover:active > .button-box > .button-box-2 > .button-box-text,
118 button[open="true"] > .button-box > .button-box-2 > .button-box-text
120 padding : 1px 2px 0px 3px;
123 button[disabled="true"] > .button-box > .button-box-2 > .button-box-text,
124 button[disabled="true"]:hover:active > .button-box > .button-box-2 > .button-box-text
126 padding : 0px 3px 1px 2px;
129 /* text wrapping frame (hack because <text> does not support alignment) */
131 button[disabled]:focus > .button-box > .button-box-2 > .button-box-text
133 padding : 0px 3px 1px 2px;
137 /** Styles for "DEFAULT" buttons (usually 'OK' or equivalent in dialogs.
138 * To activate, set 'default' attribute on button.
142 button[default], button:focus
147 button[default] > .button-box > .button-box-2 > .button-box-text
150 list-style-image : url("chrome://global/skin/return.gif");
151 -moz-box-direction : reverse;
154 button[default]:hover > .button-box > .button-box-2 > .button-box-text
156 list-style-image : url("chrome://global/skin/return-hover.gif");
159 button[default][disabled="true"] > .button-box > .button-box-2 > .button-box-text,
160 button[default][disabled="true"]:hover > .button-box > .button-box-2 > .button-box-text
162 list-style-image : url("chrome://global/skin/return-disabled.gif");
165 /* ::::: menu-button buttons ::::: */
167 button[type="menu-button"] {
168 margin: 0px !important;
169 border: none !important;
172 .menu-button-dropmarker {
173 list-style-image: url("chrome://global/skin/scroll-down.gif");
176 .menu-button-dropmarker:hover {
177 list-style-image: url("chrome://global/skin/scroll-down-hover.gif");
180 .menu-button-dropmarker[disabled="true"],
181 .menu-button-dropmarker[disabled="true"]:hover {
182 list-style-image: url("chrome://global/skin/scroll-down-disabled.gif");
185 /* ::::: plain buttons ::::: */
189 button.plain:hover:active,
190 button.plain > .button-box,
191 button.plain:hover > .button-box,
192 button.plain:hover:active > .button-box {
193 border: 0px ! important;