Commit | Line | Data |
---|---|---|
351107c9 | 1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
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/ | |
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 mozilla.org code. | |
15 | * | |
3a121502 | 16 | * The Initial Developer of the Original Code is |
351107c9 | 17 | * Netscape Communications Corporation. |
18 | * Portions created by the Initial Developer are Copyright (C) 1998 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
4115f43c | 22 | * Joe Hewitt (hewitt@netscape.com) |
23 | * Patrick Thompson (sailfish@unforgettable.com) | |
351107c9 | 24 | * Robert Kaiser <KaiRo@KaiRo.at> |
25 | * | |
26 | * Alternatively, the contents of this file may be used under the terms of | |
3a121502 | 27 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
351107c9 | 28 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
29 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
30 | * of those above. If you wish to allow use of your version of this file only | |
31 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
32 | * use your version of this file under the terms of the NPL, indicate your | |
33 | * decision by deleting the provisions above and replace them with the notice | |
34 | * and other provisions required by the GPL or the LGPL. If you do not delete | |
35 | * the provisions above, a recipient may use your version of this file under | |
36 | * the terms of any one of the NPL, the GPL or the LGPL. | |
37 | * | |
38 | * ***** END LICENSE BLOCK ***** */ | |
39 | ||
40 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
41 | ||
b1eaa419 | 42 | #newButton { |
4db0b17b RK |
43 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
44 | -moz-image-region: rect(84px 25px 105px 0px); | |
b1eaa419 | 45 | } |
46 | ||
47 | #newButton[disabled="true"] { | |
4db0b17b RK |
48 | -moz-image-region: rect(84px 50px 105px 25px); |
49 | } | |
b1eaa419 | 50 | |
4db0b17b RK |
51 | #newButton:not([disabled="true"]):hover, |
52 | #newButton:not([disabled="true"]):hover:active { | |
53 | -moz-image-region: rect(84px 75px 105px 50px) | |
b1eaa419 | 54 | } |
351107c9 | 55 | |
4db0b17b RK |
56 | #openButton { |
57 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
58 | -moz-image-region: rect(105px 25px 126px 0px); | |
59 | } | |
b1eaa419 | 60 | |
61 | #openButton[disabled="true"] { | |
4db0b17b RK |
62 | -moz-image-region: rect(105px 50px 126px 25px); |
63 | } | |
b1eaa419 | 64 | |
4db0b17b RK |
65 | #openButton:not([disabled="true"]):hover, |
66 | #openButton:not([disabled="true"]):hover:active { | |
67 | -moz-image-region: rect(105px 75px 126px 50px) | |
b1eaa419 | 68 | } |
351107c9 | 69 | |
4db0b17b RK |
70 | #saveButton { |
71 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
72 | -moz-image-region: rect(147px 25px 168px 0px); | |
73 | } | |
b1eaa419 | 74 | |
75 | #saveButton[disabled="true"] { | |
4db0b17b | 76 | -moz-image-region: rect(147px 50px 168px 25px); |
b1eaa419 | 77 | } |
351107c9 | 78 | |
4db0b17b RK |
79 | #saveButton:not([disabled="true"]):hover, |
80 | #saveButton:not([disabled="true"]):hover:active { | |
81 | -moz-image-region: rect(147px 75px 168px 50px) | |
b1eaa419 | 82 | } |
83 | ||
b1eaa419 | 84 | #publishButton { |
4db0b17b RK |
85 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
86 | -moz-image-region: rect(210px 25px 231px 0px); | |
87 | } | |
b1eaa419 | 88 | |
89 | #publishButton[disabled="true"] { | |
4db0b17b | 90 | -moz-image-region: rect(210px 50px 231px 25px); |
b1eaa419 | 91 | } |
b1eaa419 | 92 | |
4db0b17b RK |
93 | #publishButton:not([disabled="true"]):hover, |
94 | #publishButton:not([disabled="true"]):hover:active { | |
95 | -moz-image-region: rect(210px 75px 231px 50px) | |
3a121502 | 96 | } |
351107c9 | 97 | |
4db0b17b RK |
98 | #previewButton { |
99 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
100 | -moz-image-region: rect(126px 25px 147px 0px); | |
101 | } | |
b1eaa419 | 102 | |
103 | #previewButton[disabled="true"] { | |
4db0b17b RK |
104 | -moz-image-region: rect(126px 50px 147px 25px); |
105 | } | |
b1eaa419 | 106 | |
4db0b17b RK |
107 | #previewButton:not([disabled="true"]):hover, |
108 | #previewButton:not([disabled="true"]):hover:active { | |
109 | -moz-image-region: rect(126px 75px 147px 50px) | |
b1eaa419 | 110 | } |
351107c9 | 111 | |
4db0b17b RK |
112 | #printButton { |
113 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); | |
114 | -moz-image-region: rect(0px 25px 21px 0px); | |
115 | } | |
b1eaa419 | 116 | |
117 | #printButton[disabled="true"] { | |
4db0b17b | 118 | -moz-image-region: rect(0px 50px 21px 25px); |
b1eaa419 | 119 | } |
120 | ||
4db0b17b RK |
121 | #printButton:not([disabled="true"]):hover, |
122 | #printButton:not([disabled="true"]):hover:active { | |
123 | -moz-image-region: rect(0px 75px 21px 50px) | |
b1eaa419 | 124 | } |
351107c9 | 125 | |
4db0b17b RK |
126 | #findButton { |
127 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
128 | -moz-image-region: rect(294px 25px 315px 0px); | |
129 | } | |
b1eaa419 | 130 | |
131 | #findButton[disabled="true"] { | |
4db0b17b | 132 | -moz-image-region: rect(294px 50px 315px 25px); |
b1eaa419 | 133 | } |
b1eaa419 | 134 | |
4db0b17b RK |
135 | #findButton:not([disabled="true"]):hover, |
136 | #findButton:not([disabled="true"]):hover:active { | |
137 | -moz-image-region: rect(294px 75px 315px 50px) | |
b1eaa419 | 138 | } |
351107c9 | 139 | |
4db0b17b RK |
140 | #linkButton { |
141 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
142 | -moz-image-region: rect(63px 25px 84px 0px); | |
143 | } | |
b1eaa419 | 144 | |
145 | #linkButton[disabled="true"] { | |
4db0b17b RK |
146 | -moz-image-region: rect(63px 50px 84px 25px); |
147 | } | |
b1eaa419 | 148 | |
4db0b17b RK |
149 | #linkButton:not([disabled="true"]):hover, |
150 | #linkButton:not([disabled="true"]):hover:active { | |
151 | -moz-image-region: rect(63px 75px 84px 50px) | |
b1eaa419 | 152 | } |
351107c9 | 153 | |
4db0b17b RK |
154 | #imageButton { |
155 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
156 | -moz-image-region: rect(42px 25px 63px 0px); | |
157 | } | |
b1eaa419 | 158 | |
159 | #imageButton[disabled="true"] { | |
4db0b17b | 160 | -moz-image-region: rect(42px 50px 63px 25px); |
b1eaa419 | 161 | } |
162 | ||
4db0b17b RK |
163 | #imageButton:not([disabled="true"]):hover, |
164 | #imageButton:not([disabled="true"]):hover:active { | |
165 | -moz-image-region: rect(42px 75px 63px 50px) | |
b1eaa419 | 166 | } |
351107c9 | 167 | |
4db0b17b RK |
168 | #namedAnchorButton { |
169 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
170 | -moz-image-region: rect(0px 25px 21px 0px); | |
171 | } | |
b1eaa419 | 172 | |
173 | #namedAnchorButton[disabled="true"] { | |
4db0b17b RK |
174 | -moz-image-region: rect(0px 50px 21px 25px); |
175 | } | |
b1eaa419 | 176 | |
4db0b17b RK |
177 | #namedAnchorButton:not([disabled="true"]):hover, |
178 | #namedAnchorButton:not([disabled="true"]):hover:active { | |
179 | -moz-image-region: rect(0px 75px 21px 50px) | |
b1eaa419 | 180 | } |
351107c9 | 181 | |
4db0b17b RK |
182 | #hlineButton { |
183 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
184 | -moz-image-region: rect(21px 25px 42px 0px); | |
185 | } | |
351107c9 | 186 | |
b1eaa419 | 187 | #hlineButton[disabled="true"] { |
4db0b17b RK |
188 | -moz-image-region: rect(21px 50px 42px 25px); |
189 | } | |
351107c9 | 190 | |
4db0b17b RK |
191 | #hlineButton:not([disabled="true"]):hover, |
192 | #hlineButton:not([disabled="true"]):hover:active { | |
193 | -moz-image-region: rect(21px 75px 42px 50px) | |
b1eaa419 | 194 | } |
195 | ||
4db0b17b RK |
196 | #tableButton { |
197 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
198 | -moz-image-region: rect(189px 25px 210px 0px); | |
199 | } | |
b1eaa419 | 200 | |
201 | #tableButton[disabled="true"] { | |
4db0b17b | 202 | -moz-image-region: rect(189px 50px 210px 25px); |
b1eaa419 | 203 | } |
204 | ||
4db0b17b RK |
205 | #tableButton:not([disabled="true"]):hover, |
206 | #tableButton:not([disabled="true"]):hover:active { | |
207 | -moz-image-region: rect(189px 75px 210px 50px) | |
3a121502 | 208 | } |
209 | ||
4db0b17b RK |
210 | #spellingButton { |
211 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
212 | -moz-image-region: rect(168px 25px 189px 0px); | |
b1eaa419 | 213 | } |
214 | ||
215 | #spellingButton[disabled="true"] { | |
4db0b17b | 216 | -moz-image-region: rect(168px 50px 189px 25px); |
b1eaa419 | 217 | } |
4115f43c | 218 | |
4db0b17b RK |
219 | #spellingButton:not([disabled="true"]):hover, |
220 | #spellingButton:not([disabled="true"]):hover:active, | |
221 | #spellingButton[open="true"] { | |
222 | -moz-image-region: rect(168px 75px 189px 50px); | |
4115f43c | 223 | } |
224 | ||
4db0b17b RK |
225 | #cutButton { |
226 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
227 | -moz-image-region: rect(231px 25px 252px 0px); | |
01fc5c11 | 228 | } |
229 | ||
4115f43c | 230 | #cutButton[disabled="true"] { |
4db0b17b | 231 | -moz-image-region: rect(231px 50px 252px 25px); |
4115f43c | 232 | } |
233 | ||
4db0b17b RK |
234 | #cutButton:not([disabled="true"]):hover, |
235 | #cutButton:not([disabled="true"]):hover:active { | |
236 | -moz-image-region: rect(231px 75px 251px 50px) | |
4115f43c | 237 | } |
238 | ||
4db0b17b RK |
239 | #copyButton { |
240 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
241 | -moz-image-region: rect(252px 25px 273px 0px); | |
01fc5c11 | 242 | } |
243 | ||
4115f43c | 244 | #copyButton[disabled="true"] { |
4db0b17b | 245 | -moz-image-region: rect(252px 50px 273px 25px); |
4115f43c | 246 | } |
247 | ||
4db0b17b RK |
248 | #copyButton:not([disabled="true"]):hover, |
249 | #copyButton:not([disabled="true"]):hover:active { | |
250 | -moz-image-region: rect(252px 75px 273px 50px) | |
4115f43c | 251 | } |
252 | ||
4db0b17b RK |
253 | #pasteButton { |
254 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); | |
255 | -moz-image-region: rect(273px 25px 294px 0px); | |
01fc5c11 | 256 | } |
257 | ||
4115f43c | 258 | #pasteButton[disabled="true"] { |
4db0b17b | 259 | -moz-image-region: rect(273px 50px 294px 25px); |
01fc5c11 | 260 | } |
261 | ||
4db0b17b RK |
262 | #pasteButton:not([disabled="true"]):hover, |
263 | #pasteButton:not([disabled="true"]):hover:active { | |
264 | -moz-image-region: rect(273px 75px 294px 50px) | |
01fc5c11 | 265 | } |