updating EarlyBlue skin; should almost be 0.8 now ;-)
[themes.git] / EarlyBlue / global / button.css
CommitLineData
128000f4 1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 *
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/
8 *
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
12 * License.
13 *
14 * The Original Code is "Classic" theme of mozilla.org code.
15 *
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.
20 *
21 * Contributor(s):
22 * Robert Kaiser <KaiRo@KaiRo.at>
23 *
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.
35 *
36 * ***** END LICENSE BLOCK ***** */
37
38@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
f6e0a33f 39
74d14f90 40/* ===== button.css =====================================================
41 == Styles used by the XUL button element.
42 ======================================================================= */
43
44/* :::::::::: button :::::::::: */
f6e0a33f 45
46/* outer frame */
74d14f90 47
48button {
49 margin: 1px 5px 2px 5px;
50 min-width: 6.3em;
51 border: 1px outset #CCD0DD;
52 background-color: #CCD0DD;
53 color: #000000;
54}
55
56.button-box {
57 border: 1px solid transparent;
58 padding: 0px 3px 1px 2px;
59}
f6e0a33f 60
74d14f90 61.button-text {
62 margin: 0px !important;
63 text-align: center;
64}
65
66/* .......... focused state .......... */
67
68button:focus {
69}
70
71button:focus > .button-box {
72 border: 1px dotted #9999CC;
73}
74
75/* .......... default state .......... */
76
77button[default="true"] {
78 font-weight: bold;
79 list-style-image: url("chrome://global/skin/icons/return.gif");
80 -moz-box-direction: reverse;
81}
82
83button[default="true"][disabled="true"] {
84 font-weight: bold;
85 list-style-image: url("chrome://global/skin/icons/return-disabled.gif");
86}
87
88/* .......... active/open/checked state .......... */
89
90button:hover:active,
91button[open="true"],
92button[checked="true"] {
93 border: 1px inset #CCD0DD;
94}
95
96button:hover:active > .button-box,
97button[open="true"] > .button-box,
98button[checked="true"] > .button-box {
99 padding: 1px 2px 0px 3px;
100}
101
102/* .......... disabled state .......... */
103
104button[disabled="true"] {
105 border: 1px outset #CCD0DD;
106 color: #999999;
107}
108
109button[disabled="true"] > .button-box {
110 padding: 0px 3px 1px 2px !important;
111}
112
113/* ::::: menu/menu-button buttons ::::: */
f6e0a33f 114
115button[type="menu-button"] {
74d14f90 116 -moz-box-align: center;
117 -moz-box-pack: center;
118 margin: 0px;
119 border: none;
f6e0a33f 120}
121
74d14f90 122.button-menu-dropmarker,
123.button-menubutton-dropmarker {
124 margin: 1px;
125 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
f6e0a33f 126}
74d14f90 127
128.button-menu-dropmarker[disabled="true"],
129.button-menubutton-dropmarker[disabled="true"] {
130 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif");
f6e0a33f 131}
132
74d14f90 133.button-menubutton-dropmarker[open="true"] {
134 margin: 2px 0px 0px 2px;
135}
136
137
f6e0a33f 138/* ::::: plain buttons ::::: */
139
74d14f90 140button.plain {
141 border: 0px !important;
142 margin: 0px !important;
143 padding: 0px !important;
f6e0a33f 144}