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 /* ===== button.css =====================================================
25 == Styles used by the XUL button element.
26 ======================================================================= */
28 @namespace url(http://www.w3.org/1999/xhtml);
29 @namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
31 /* :::::::::: button :::::::::: */
37 /* -moz-appearance: button; */
38 margin: 1px 5px 2px 5px;
40 -moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow;
41 -moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow;
42 -moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow;
43 -moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow;
44 background-color: ThreeDFace;
49 border: 1px solid transparent;
50 padding: 0px 4px 1px 3px;
53 xul|*.button-box-text {
58 /* .......... active/open/checked state .......... */
61 input[type="button"]:hover:active,
62 input[type="submit"]:hover:active,
63 input[type="reset"]:hover:active {
64 -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow transparent;
65 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow transparent;
66 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent;
67 -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow transparent;
70 button:hover:active > xul|*.button-box,
71 input[type="button"]:hover:active > xul|*.button-box,
72 input[type="submit"]:hover:active > xul|*.button-box,
73 input[type="reset"]:hover:active > xul|*.button-box {
74 padding: 1px 3px 0px 4px;
77 /* .......... focused state .......... */
80 input[type="button"]:focus,
81 input[type="submit"]:focus,
82 input[type="reset"]:focus {
83 -moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight transparent;
84 -moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
85 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
86 -moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight transparent;
89 button:focus > xul|*.button-box,
90 input[type="button"]:focus > xul|*.button-box,
91 input[type="submit"]:focus > xul|*.button-box,
92 input[type="reset"]:focus > xul|*.button-box {
93 border: 1px dotted ThreeDDarkShadow;
96 /* .......... disabled state .......... */
98 button[disabled="true"],
99 input[type="button"][disabled="true"],
100 input[type="submit"][disabled="true"],
101 input[type="reset"][disabled="true"] {
102 -moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
103 -moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
104 -moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
105 -moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
109 button[disabled="true"] > xul|*.button-box,
110 input[type="button"][disabled="true"] > xul|*.button-box,
111 input[type="submit"][disabled="true"] > xul|*.button-box,
112 input[type="reset"][diasbled="true"] > xul|*.button-box {
113 padding: 0px 4px 1px 3px !important;