keep up with current classic developement, make full screen mode work with LCARStrek
[themes.git] / LCARStrek / forms / button.css
CommitLineData
b1eaa419 1/*
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/
6 *
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.
11 *
12 * The Original Code is Mozilla Communicator client code, released
13 * March 31, 1998.
14 *
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
18 * Rights Reserved.
19 *
20 * Contributor(s):
21 * Joe Hewitt (hewitt@netscape.com)
22 */
23
24/* ===== button.css =====================================================
25 == Styles used by the XUL button element.
26 ======================================================================= */
27
28@namespace url(http://www.w3.org/1999/xhtml);
e20d243c 29@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
b1eaa419 30
31/* :::::::::: button :::::::::: */
32
33button,
34input[type="button"],
35input[type="submit"],
36input[type="reset"] {
e20d243c 37 /* -moz-appearance: button; */
b1eaa419 38 margin: 1px 5px 2px 5px;
b1eaa419 39 border: 3px solid;
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;
45 color: ButtonText;
46}
47
e20d243c 48xul|*.button-box {
b1eaa419 49 border: 1px solid transparent;
e20d243c 50 padding: 0px 4px 1px 3px;
b1eaa419 51}
52
e20d243c 53xul|*.button-box-text {
b1eaa419 54 margin: 0 !important;
55 text-align: center;
56}
57
e20d243c 58/* .......... active/open/checked state .......... */
59
60button:hover:active,
61input[type="button"]:hover:active,
62input[type="submit"]:hover:active,
63input[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;
68}
69
70button:hover:active > xul|*.button-box,
71input[type="button"]:hover:active > xul|*.button-box,
72input[type="submit"]:hover:active > xul|*.button-box,
73input[type="reset"]:hover:active > xul|*.button-box {
74 padding: 1px 3px 0px 4px;
75}
76
b1eaa419 77/* .......... focused state .......... */
78
79button:focus,
80input[type="button"]:focus,
81input[type="submit"]:focus,
82input[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;
87}
88
e20d243c 89button:focus > xul|*.button-box,
90input[type="button"]:focus > xul|*.button-box,
91input[type="submit"]:focus > xul|*.button-box,
92input[type="reset"]:focus > xul|*.button-box {
b1eaa419 93 border: 1px dotted ThreeDDarkShadow;
94}
95
96/* .......... disabled state .......... */
97
98button[disabled="true"],
99input[type="button"][disabled="true"],
100input[type="submit"][disabled="true"],
101input[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;
106 color: GrayText;
107}
108
e20d243c 109button[disabled="true"] > xul|*.button-box,
110input[type="button"][disabled="true"] > xul|*.button-box,
111input[type="submit"][disabled="true"] > xul|*.button-box,
112input[type="reset"][diasbled="true"] > xul|*.button-box {
113 padding: 0px 4px 1px 3px !important;
b1eaa419 114}
115