128000f4 |
1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 |
f6e0a33f |
3 | * |
128000f4 |
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/ |
f6e0a33f |
8 | * |
128000f4 |
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. |
f6e0a33f |
13 | * |
128000f4 |
14 | * The Original Code is mozilla.org code. |
15 | * |
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. |
f6e0a33f |
20 | * |
21 | * Contributor(s): |
22 | * Joe Hewitt (hewitt@netscape.com) |
128000f4 |
23 | * Robert Kaiser <KaiRo@KaiRo.at> |
24 | * |
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. |
36 | * |
37 | * ***** END LICENSE BLOCK ***** */ |
38 | |
39 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
f6e0a33f |
40 | |
41 | /* ===== toolbarbutton.css ===================================================== |
42 | == Styles used by the XUL button element. |
43 | ======================================================================= */ |
44 | |
74d14f90 |
45 | /* ::::: toolbarbutton ::::: */ |
f6e0a33f |
46 | |
74d14f90 |
47 | toolbarbutton { |
48 | -moz-box-align: center; |
49 | -moz-box-pack: center; |
50 | margin: 0px; |
51 | border: 1px solid transparent; |
52 | padding: 1px; |
53 | background-color: transparent; |
54 | color: #000000; |
f6e0a33f |
55 | } |
56 | |
57 | .toolbarbutton-icon { |
58 | margin-right: 2px; |
59 | } |
60 | |
61 | .toolbarbutton-text { |
62 | margin: 0px !important; |
74d14f90 |
63 | padding: 0px; |
64 | text-align: center; |
f6e0a33f |
65 | } |
66 | |
f6e0a33f |
67 | toolbarbutton:hover, |
68 | toolbarbutton[buttonover="true"], |
74d14f90 |
69 | toolbarbutton.toolbarbutton-menubutton-button[open="true"] { |
f6e0a33f |
70 | } |
f6e0a33f |
71 | |
74d14f90 |
72 | toolbarbutton:hover { |
73 | border: 1px outset #CCD0DD; |
f6e0a33f |
74 | } |
75 | |
74d14f90 |
76 | toolbarbutton:hover:active, |
77 | toolbarbutton[open="true"] { |
78 | padding: 2px 0px 0px 2px; |
79 | border: 1px inset #CCD0DD; |
f6e0a33f |
80 | } |
81 | |
74d14f90 |
82 | toolbarbutton[disabled="true"] { |
83 | border: 1px solid transparent !important; |
84 | padding: 1px !important; |
85 | color: #999999 !important; |
f6e0a33f |
86 | } |
87 | |
88 | /* ..... checked state ..... */ |
89 | |
74d14f90 |
90 | toolbarbutton[checked="true"] { |
91 | padding: 2px !important; |
92 | border: 1px inset #CCD0DD !important; |
93 | background-color: #DDDDDD !important; |
f6e0a33f |
94 | } |
95 | |
f6e0a33f |
96 | /* ::::: toolbarbutton menu ::::: */ |
97 | |
74d14f90 |
98 | .toolbarbutton-menu-dropmarker { |
99 | list-style-image: url("chrome://global/skin/arrow/arrow-down.gif"); |
f6e0a33f |
100 | } |
101 | |
74d14f90 |
102 | .toolbarbutton-menu-dropmarker[disabled="true"] { |
103 | list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif"); |
f6e0a33f |
104 | } |
105 | |
106 | /* ::::: toolbarbutton menu-button ::::: */ |
107 | |
74d14f90 |
108 | toolbarbutton[type="menu-button"] { |
109 | -moz-box-align: stretch; |
f6e0a33f |
110 | } |
111 | |
74d14f90 |
112 | toolbarbutton[type="menu-button"], |
113 | toolbarbutton[type="menu-button"]:hover, |
114 | toolbarbutton[type="menu-button"]:hover:active, |
115 | toolbarbutton[type="menu-button"][open="true"], |
116 | toolbarbutton[type="menu-button"][disabled="true"], |
117 | toolbarbutton[type="menu-button"][disabled="true"]:hover, |
118 | toolbarbutton[type="menu-button"][disabled="true"]:hover:active { |
119 | border: none !important; |
120 | padding: 0px !important; |
f6e0a33f |
121 | } |
122 | |
123 | .toolbarbutton-menubutton-button { |
74d14f90 |
124 | -moz-box-align: center; |
125 | -moz-box-pack: center; |
f6e0a33f |
126 | } |
127 | |
74d14f90 |
128 | .toolbarbutton-menubutton-button, |
f6e0a33f |
129 | .toolbarbutton-menubutton-dropmarker { |
74d14f90 |
130 | border: 1px solid transparent; |
f6e0a33f |
131 | } |
74d14f90 |
132 | |
133 | .toolbarbutton-menubutton-button[disabled="true"], |
f6e0a33f |
134 | .toolbarbutton-menubutton-dropmarker[disabled="true"] { |
74d14f90 |
135 | border: 1px solid transparent !important; |
f6e0a33f |
136 | } |
137 | |
74d14f90 |
138 | toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button, |
139 | toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-button, |
140 | toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker, |
141 | toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-dropmarker { |
142 | border: 1px outset #CCD0DD; |
f6e0a33f |
143 | } |
144 | |
74d14f90 |
145 | toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-button, |
146 | toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker, |
147 | toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker, |
148 | toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button, |
149 | toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker { |
150 | border: 1px inset #CCD0DD; |
f6e0a33f |
151 | } |
152 | |
74d14f90 |
153 | toolbarbutton[type="menu-button"][buttondown="true"] > toolbarbutton.toolbarbutton-menubutton-button, |
154 | toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button { |
155 | padding: 2px 0px 0px 2px !important; |
f6e0a33f |
156 | } |
157 | |
74d14f90 |
158 | /* .......... dropmarker .......... */ |
159 | |
160 | .toolbarbutton-menubutton-dropmarker { |
161 | -moz-box-align: center; |
162 | padding: 0px 1px 15px 1px; |
163 | list-style-image: url("chrome://global/skin/arrow/arrow-down.gif"); |
f6e0a33f |
164 | } |
165 | |
74d14f90 |
166 | toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker, |
167 | toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker, |
168 | toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker { |
169 | padding: 1px 0px 14px 2px; |
170 | } |
171 | |
172 | .toolbarbutton-menubutton-dropmarker[disabled="true"] { |
173 | padding: 0px 1px 15px 1px !important; |
174 | list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif") !important; |
f6e0a33f |
175 | } |