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
23 /* This contains CSS just for editor toolbars */
29 #FormatToolbar > .toolbar-holder {
30 background-image: url(chrome://editor/skin/images/format-toolbar-endcap.gif);
42 /* From button.css: */
43 /* margin: 4px 7px 1px 1px; */
44 /* We have too many buttons - must be closer! */
46 .toolbar, .key-toolbar {
51 border: 1px inset FF9F00;
54 /* THIS DOESN'T WORK ON <text>! */
59 /* end of SHOULD GO IN GLOBAL */
63 /* Same as "standard" toolbar background */
64 border-top: 1px solid #9C9CFF;
69 /* BORDERS ARE NOT WORKING! global class="plain" is fighting us! */
70 /* !important in for now as a workaround to above problem! */
71 tab.edit-mode:hover, button.edit-mode:hover:active,
73 -moz-border-radius: 0px 0px 7px 7px ;
74 padding: 0px 4px 1px 4px;
76 border-top: 0px solid black !important; /* Must be same as background */
77 border-bottom: 1px solid #9C9CFF !important;
78 border-left: 1px solid #9C9CFF !important;
79 border-right: 1px solid #9C9CFF !important;
82 tab.edit-mode > .button-internal-box,
83 tab.edit-mode:hover > .button-internal-box,
84 tab.edit-mode:hover:active > .button-internal-box {
89 /* border: 1px solid #3366FF !important; */
92 tab.edit-mode:hover:active {
93 padding: 1px 5px 0px 3px;
94 /* border: 1px solid #99CCFF !important; */
97 /* selected="1" is from old times when edit-mode was a <button> - still left in xul */
99 tab.edit-mode[selected="1"],
100 tab.edit-mode[selected="true"] {
101 padding: 0px 4px 1px 4px;
102 margin: -1px 0px 0px 0px;
103 /* Not resizing well! - use color instead
106 background-color: #008484;
110 tab.edit-mode[selected="1"]:active,
111 tab.edit-mode[selected="1"]:hover:active,
112 tab.edit-mode[selected="true"]:active,
113 tab.edit-mode[selected="true"]:hover:active {
114 padding: 1px 5px 0px 3px;
117 #NormalModeButton[type="image"] {
118 list-style-image:url(chrome://editor/skin/images/editmode-normal.gif);
121 #TagModeButton[type="image"] {
122 list-style-image:url(chrome://editor/skin/images/editmode-tags.gif);
125 #SourceModeButton[type="image"] {
126 list-style-image:url(chrome://editor/skin/images/editmode-html.gif);
129 #PreviewModeButton[type="image"] {
130 list-style-image:url(chrome://editor/skin/images/editmode-preview.gif);
133 #ToggleEditModeType {
134 list-style-image:url(chrome://editor/skin/images/editmode-toggle.gif);
135 border: 1px outset #CCCCDD;
138 #ToggleEditModeType:hover {
139 border: 1px solid #99CCFF;
142 #ToggleEditModeType:hover:active {
143 border: 1px inset #99CCFF;
146 /* Image URLs for all Editor toolbar buttons */
149 list-style-image:url(chrome://editor/skin/images/bold.gif);
153 list-style-image:url(chrome://editor/skin/images/bold-hover.gif);
157 list-style-image:url(chrome://editor/skin/images/italic.gif);
160 #italicButton:hover {
161 list-style-image:url(chrome://editor/skin/images/italic-hover.gif);
165 list-style-image:url(chrome://editor/skin/images/underline.gif);
168 #underlineButton:hover {
169 list-style-image:url(chrome://editor/skin/images/underline-hover.gif);
173 list-style-image:url("chrome://editor/skin/images/newfile.gif");
177 list-style-image:url("chrome://editor/skin/images/newfile-hover.gif");
180 #newButton[disabled="true"] {
181 list-style-image:url("chrome://editor/skin/images/newfile_dis.gif");
185 list-style-image:url("chrome://editor/skin/images/openfile.gif");
189 list-style-image:url("chrome://editor/skin/images/openfile-hover.gif");
192 #openButton[disabled="true"] {
193 list-style-image:url("chrome://editor/skin/images/openfile_dis.gif");
197 list-style-image:url("chrome://editor/skin/images/savefile.gif");
201 list-style-image:url("chrome://editor/skin/images/savefile-hover.gif");
204 #saveButton[disabled="true"] {
205 list-style-image:url("chrome://editor/skin/images/savefile_dis.gif");
208 #saveButton[dirty="true"] {
209 list-style-image:url(chrome://editor/skin/images/savemod.gif);
212 #saveButton[dirty="true"]:hover {
213 list-style-image:url(chrome://editor/skin/images/savemod-hover.gif);
217 list-style-image:url("chrome://editor/skin/images/publish.gif");
221 list-style-image:url("chrome://editor/skin/images/preview.gif");
224 #previewButton:hover {
225 list-style-image:url("chrome://editor/skin/images/preview-hover.gif");
228 #previewButton[disabled="true"] {
229 list-style-image:url("chrome://editor/skin/images/preview_dis.gif");
233 list-style-image:url("chrome://editor/skin/images/print.gif");
237 #printButton > .menubutton-internal-box > button:hover {
238 list-style-image:url("chrome://editor/skin/images/print-hover.gif");
241 #printButton[disabled="true"],
242 #printButton[disabled="true"]:hover,
243 #printButton[disabled="true"] > .menubutton-internal-box > button:hover {
244 list-style-image:url("chrome://editor/skin/images/print_dis.gif");
248 list-style-image:url("chrome://editor/skin/images/find.gif");
251 #findButton[disabled="true"] {
252 list-style-image:url("chrome://editor/skin/images/find_dis.gif");
256 list-style-image:url("chrome://editor/skin/images/link.gif");
260 list-style-image:url("chrome://editor/skin/images/link-hover.gif");
263 #linkButton[disabled="true"] {
264 list-style-image:url("chrome://editor/skin/images/link_dis.gif");
268 list-style-image:url("chrome://editor/skin/images/image.gif");
272 list-style-image:url("chrome://editor/skin/images/image-hover.gif");
275 #imageButton[disabled="true"] {
276 list-style-image:url("chrome://editor/skin/images/image_dis.gif");
280 list-style-image:url("chrome://editor/skin/images/anchor.gif");
283 #namedAnchorButton:hover {
284 list-style-image:url("chrome://editor/skin/images/anchor-hover.gif");
287 #namedAnchorButton[disabled="true"] {
288 list-style-image:url("chrome://editor/skin/images/anchor_dis.gif");
292 list-style-image:url("chrome://editor/skin/images/hline.gif");
296 list-style-image:url("chrome://editor/skin/images/hline-hover.gif");
299 #hlineButton[disabled="true"] {
300 list-style-image:url("chrome://editor/skin/images/hline_dis.gif");
304 list-style-image:url("chrome://editor/skin/images/table.gif");
308 list-style-image:url("chrome://editor/skin/images/table-hover.gif");
311 #tableButton[disabled="true"] {
312 list-style-image:url("chrome://editor/skin/images/table_dis.gif");
316 list-style-image:url("chrome://editor/skin/images/link.gif");
319 list-style-image:url("chrome://editor/skin/images/image.gif");
321 #namedAnchorButton-dark {
322 list-style-image:url("chrome://editor/skin/images/anchor.gif");
325 list-style-image:url("chrome://editor/skin/images/hline.gif");
328 list-style-image:url("chrome://editor/skin/images/table.gif");
331 list-style-image:url("chrome://editor/skin/images/spell.gif");
334 #DecreaseFontSizeButton {
335 list-style-image:url("chrome://editor/skin/images/dec-font-size.gif");
338 #DecreaseFontSizeButton:hover {
339 list-style-image:url("chrome://editor/skin/images/dec-font-size-hover.gif");
342 #IncreaseFontSizeButton {
343 list-style-image:url("chrome://editor/skin/images/inc-font-size.gif");
346 #IncreaseFontSizeButton:hover {
347 list-style-image:url("chrome://editor/skin/images/inc-font-size-hover.gif");
351 list-style-image:url("chrome://editor/skin/images/bullets.gif");
355 list-style-image:url("chrome://editor/skin/images/bullets-hover.gif");
359 list-style-image:url("chrome://editor/skin/images/numbers.gif");
363 list-style-image:url("chrome://editor/skin/images/numbers-hover.gif");
367 list-style-image:url("chrome://editor/skin/images/outdent.gif");
370 #outdentButton:hover {
371 list-style-image:url("chrome://editor/skin/images/outdent-hover.gif");
374 #outdentButton[disabled="true"] {
375 list-style-image:url("chrome://editor/skin/images/outdent_dis.gif");
379 list-style-image:url("chrome://editor/skin/images/indent.gif");
382 #indentButton:hover {
383 list-style-image:url("chrome://editor/skin/images/indent-hover.gif");
386 #FormatToolbar > button,
387 #FormatToolbar > button:hover,
388 #FormatToolbar > button:active,
389 #FormatToolbar > button[disabled="true"] {
394 #FormatToolbar > button > .button-internal-box {
400 #FormatToolbar > button:active > .button-internal-box {
401 padding: 2px 0px 0px 2px;
404 #FormatToolbar > button > .button-internal-box > .button-text-container
414 list-style-image:url("chrome://editor/skin/images/align.gif");
417 #AlignPopupButton:hover {
418 list-style-image:url("chrome://editor/skin/images/align-hover.gif");
421 #AlignPopupButton > .button-internal-box {
422 border:1px solid transparent;
424 #AlignPopupButton:hover > .button-internal-box {
425 border:1px outset #CCCCDD;
427 #AlignPopupButton:active > .button-internal-box,
428 #AlignPopupButton[open="true"] > .button-internal-box {
429 border:1px inset #CCCCDD;
433 list-style-image:url("chrome://editor/skin/images/object-popup.gif");
439 list-style-image : url("chrome://editor/skin/images/left.gif");
442 #text-align-left:hover,
443 #align-left-button:hover
445 list-style-image : url("chrome://editor/skin/images/left-hover.gif");
448 #text-align-left[disabled="true"],
449 #text-align-left[disabled="true"]:hover,
450 #text-align-left[disabled="true"]:hover:active,
451 #align-left-button[disabled="true"],
452 #align-left-button[disabled="true"]:hover,
453 #align-left-button[disabled="true"]:hover:active,
455 list-style-image : url("chrome://editor/skin/images/left-disabled.gif");
461 list-style-image : url("chrome://editor/skin/images/center.gif");
464 #text-align-center:hover,
465 #align-center-button:hover
467 list-style-image : url("chrome://editor/skin/images/center-hover.gif");
470 #text-align-center[disabled="true"],
471 #text-align-center[disabled="true"]:hover,
472 #text-align-center[disabled="true"]:hover:active,
473 #align-center-button[disabled="true"],
474 #align-center-button[disabled="true"]:hover,
475 #align-center-button[disabled="true"]:hover:active
477 list-style-image : url("chrome://editor/skin/images/center-disabled.gif");
483 list-style-image : url("chrome://editor/skin/images/right.gif");
486 #text-align-right:hover,
487 #align-right-button:hover
489 list-style-image : url("chrome://editor/skin/images/right-hover.gif");
492 #text-align-right[disabled="true"],
493 #text-align-right[disabled="true"]:hover,
494 #text-align-right[disabled="true"]:hover:active
495 #align-right-button[disabled="true"],
496 #align-right-button[disabled="true"]:hover,
497 #align-right-button[disabled="true"]:hover:active
499 list-style-image : url("chrome://editor/skin/images/right-disabled.gif");
503 #align-justify-button
505 list-style-image : url("chrome://editor/skin/images/justify.gif");
508 #text-align-justify:hover,
509 #align-justify-button:hover
511 list-style-image : url("chrome://editor/skin/images/justify-hover.gif");
514 #text-align-justify[disabled="true"],
515 #text-align-justify[disabled="true"]:hover,
516 #text-align-justify[disabled="true"]:hover:active
517 #align-justify-button[disabled="true"],
518 #align-justify-button[disabled="true"]:hover,
519 #align-justify-button[disabled="true"]:hover:active
521 list-style-image : url("chrome://editor/skin/images/justify-disabled.gif");
525 border: 1px inset white;
531 /* TODO: How to make inset color skinable? */
533 border: 1px inset #FF9F00;
540 .color-button:hover {
541 border: 1px solid #FFCF00;
549 margin: 1px 7px 7px 1px;
550 /* TEMP: Set color here. TODO: Set color from page */
551 background-color: #AA0000;
554 #BackgroundColorButton {
555 margin: 7px 1px 1px 7px;
556 /* TEMP: Set color here. TODO: Set color from page */
557 background-color: #FFFF00;