/* 
 * The contents of this file are subject to the Netscape Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/NPL/
 *  
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *  
 * The Original Code is Mozilla Communicator client code, released
 * March 31, 1998.
 * 
 * The Initial Developer of the Original Code is Netscape
 * Communications Corporation. Portions created by Netscape are
 * Copyright (C) 1998-1999 Netscape Communications Corporation. All
 * Rights Reserved.
 * 
 * Contributor(s): 
 */

/* This contains CSS just for editor toolbars */

#EditorToolbox {
  min-width: 1px;
}

#FormatToolbar {
  border-bottom: 1px solid #003366;
}

.separator_small { 
  width: 1em; 
}

.margin-left-right {
  margin-left:  3px;
  margin-right: 3px;
}

/* From button.css: */
/* margin: 4px 7px 1px 1px; */
/* We have too many buttons - must be closer! */

.toolbar, .key-toolbar {
  margin-right: 2px;
}

.inset-border {
  border: 1px inset white;
}

/* THIS DOESN'T WORK ON <text>! */
.center {
  text-align: center;
}

/* end of SHOULD GO IN GLOBAL */

#EditModeToolbar {
  padding:       0px;
  /* Same as "standard" toolbar background */
  border-top:    1px solid #003366;
  border-bottom: 1px solid darkgray;
  margin-bottom: 0px;
  min-width:     1px;
  color:         white;
  background-color: #999999;
  overflow:      hidden;
}
/* BORDERS ARE NOT WORKING! global class="plain" is fighting us! */
button.edit-mode:hover, button.edit-mode:hover:active,
button.edit-mode {
  -moz-border-radius: 0px 0px 7px 7px;
  padding: 0px 4px 1px 4px;
  margin: 0px;
  color: black;
  background-color: #CCCCCC;
  border-top: 1px solid #CCCCCC; /* Must be same as background */
  border-bottom: 1px solid #666666;
  border-left: 1px solid white;
  border-right: 1px solid #666666;
}

button.edit-mode:hover {
  border:  1px solid white;
}

button.edit-mode:hover:active {
  padding: 1px 5px 0px 3px;
  border:  1px solid white;
}

button.edit-mode[selected="1"] {
  padding: 0px 4px 1px 4px;
  margin: -1px 0px 0px 0px;
/* Not resizing well! - use color instead
  font-weight: bold; 
*/
  background-color: #FFFFFF;
}

button.edit-mode[selected="1"]:active,
button.edit-mode[selected="1"]:hover:active {
  padding: 1px 5px 0px 3px;
}

#NormalModeButton[type="image"] {
  list-style-image:url(chrome://editor/skin/images/editmode-normal.gif); 
}

#TagModeButton[type="image"] {
  list-style-image:url(chrome://editor/skin/images/editmode-tags.gif); 
}
#SourceModeButton[type="image"] {
  list-style-image:url(chrome://editor/skin/images/editmode-html.gif); 
}
#PreviewModeButton[type="image"] {
  list-style-image:url(chrome://editor/skin/images/editmode-preview.gif); 
}
#ToggleEditModeType {
  list-style-image:url(chrome://editor/skin/images/editmode-toggle.gif); 
  border: 1px outset #CCCCCC;
}

#ToggleEditModeType:hover {
  border: 1px solid white;
}

#ToggleEditModeType:hover:active {
  border: 1px inset #CCCCCC;
}

/* Image URLs for all Editor toolbar buttons */

#boldButton {
  list-style-image:url(chrome://editor/skin/images/bold.gif); 
}

#italicButton {
  list-style-image:url(chrome://editor/skin/images/italic.gif); 
}

#underlineButton {
  list-style-image:url(chrome://editor/skin/images/underline.gif); 
}

#newButton {
	list-style-image:url("chrome://editor/skin/images/newfile.gif");
}
#openButton {
	list-style-image:url("chrome://editor/skin/images/openfile.gif");
}

#saveButton {
	list-style-image:url("chrome://editor/skin/images/savefile.gif");
}
#saveButton[dirty="true"] {
  list-style-image:url(chrome://editor/skin/images/savemod.gif); 
}

#publishButton {
	list-style-image:url("chrome://editor/skin/images/publish.gif");
}
#previewButton {
	list-style-image:url("chrome://editor/skin/images/preview.gif");
}

#printButton 
  {
    behavior              : url("chrome://communicator/skin/menubuttonBindings.xml#menubutton-dual-standard");
	  list-style-image      : url("chrome://editor/skin/images/print.gif");
    margin-top            : 0px;
    margin-left           : 0px !important;
  }

#findButton {
	list-style-image:url("chrome://editor/skin/images/find.gif");
}
#linkButton {
	list-style-image:url("chrome://editor/skin/images/link.gif");
}
#imageButton {
	list-style-image:url("chrome://editor/skin/images/image.gif");
}
#namedAnchorButton {
	list-style-image:url("chrome://editor/skin/images/anchor.gif");
}
#hlineButton {
	list-style-image:url("chrome://editor/skin/images/hline.gif");
}
#tableButton {
	list-style-image:url("chrome://editor/skin/images/table.gif");
}
#linkButton-dark {
	list-style-image:url("chrome://editor/skin/images/link.gif");
}
#imageButton-dark {
	list-style-image:url("chrome://editor/skin/images/image.gif");
}
#namedAnchorButton-dark {
	list-style-image:url("chrome://editor/skin/images/anchor.gif");
}
#hlineButton-dark {
	list-style-image:url("chrome://editor/skin/images/hline.gif");
}
#tableButton-dark {
	list-style-image:url("chrome://editor/skin/images/table.gif");
}
#spellingButton {
	list-style-image:url("chrome://editor/skin/images/spell.gif");
}

#DecreaseFontSizeButton {
	list-style-image:url("chrome://editor/skin/images/dec-font-size.gif");
  border: 1px solid transparent;
  margin:  1px 0px 1px 1px;
  padding: 2px 1px 2px 2px;
}
#DecreaseFontSizeButton:hover {
  border: 1px solid white;
}
#DecreaseFontSizeButton:active {
  border: 1px inset white;
  padding: 3px 0px 1px 3px;
}
#IncreaseFontSizeButton {
	list-style-image:url("chrome://editor/skin/images/inc-font-size.gif");
  border: 1px solid transparent;
  margin: 1px 1px 1px 0px;
  padding: 2px 2px 2px 0px;
}
#IncreaseFontSizeButton:hover {
  border: 1px solid white;
}
#IncreaseFontSizeButton:active {
  border: 1px inset white;
  padding: 3px 1px 1px 1px;
}

#ulButton {
	list-style-image:url("chrome://editor/skin/images/bullets.gif");
}
#olButton {
	list-style-image:url("chrome://editor/skin/images/numbers.gif");
}
#outdentButton {
	list-style-image:url("chrome://editor/skin/images/outdent.gif");
}
#indentButton {
	list-style-image:url("chrome://editor/skin/images/indent.gif");
}
#AlignPopupButton {
	list-style-image:url("chrome://editor/skin/images/align.gif");
}
#InsertPopupButton {
	list-style-image:url("chrome://editor/skin/images/object-popup.gif");
}

#text-align-left {
	list-style-image:url("chrome://editor/skin/images/left.gif");
}
#text-align-center {
	list-style-image:url("chrome://editor/skin/images/center.gif");
}
#text-align-right {
	list-style-image:url("chrome://editor/skin/images/right.gif");
}
#text-align-justify {
	list-style-image:url("chrome://editor/skin/images/justify.gif");
}

.ColorPickerLabel {
  border:     1px inset white;
  margin:     0px;
  padding:    2px;
  text-align: center;
}

/* TODO: How to make inset color skinable? */
.color-button {
  border: 1px inset #CCCCCC;
  padding: 0px;
  width:  14px;
  height: 12px;
  margin:  2px;
}

.color-button:hover {
  border:  1px solid white;
}

#TextColorPopupButton {
  margin: 2px 9px 9px 2px;
  /* TEMP: Set color here. TODO: Set color from page */
  background-color: #AA0000;
}

#BackColorPopupButton {
  margin: 9px 2px 2px 9px;
  /* TEMP: Set color here. TODO: Set color from page */
  background-color: #FFFF00;
}
