/* 
 * 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); 
}

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

#boldButton[disabled="true"],
#boldButton[disabled="true"]:hover,
#boldButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/bold-disabled.gif");
  } 

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

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

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

#italicButton[disabled="true"],
#italicButton[disabled="true"]:hover,
#italicButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/italic-disabled.gif");
  } 

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

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

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

#underlineButton[disabled="true"],
#underlineButton[disabled="true"]:hover,
#underlineButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/underline-disabled.gif");
  } 

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

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

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

#newButton[disabled="true"],
#newButton[disabled="true"]:hover,
#newButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/newfile-disabled.gif");
  } 

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

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

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

#openButton[disabled="true"],
#openButton[disabled="true"]:hover,
#openButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/openfile-disabled.gif");
  } 

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

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

#saveButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/savefile.gif");
  } 

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

#saveButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/savefile-hover.gif");
  } 

#saveButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/savefile-hover-active.gif");
  } 

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

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

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

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

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

#publishButton[disabled="true"],
#publishButton[disabled="true"]:hover,
#publishButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/publish-disabled.gif");
  } 

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

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

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

#previewButton[disabled="true"],
#previewButton[disabled="true"]:hover,
#previewButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/preview-disabled.gif");
  } 

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

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

#printButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/print.gif");
  } 

#printButton[disabled="true"],
#printButton[disabled="true"]:hover,
#printButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/print-disabled.gif");
  } 

#printButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/print-hover.gif");
  } 

#printButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/print-hover-active.gif");
  }

#findButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/find.gif");
  } 

#findButton[disabled="true"],
#findButton[disabled="true"]:hover,
#findButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/find-disabled.gif");
  } 

#findButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/find-hover.gif");
  } 

#findButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/find-hover-active.gif"); 
  }

#linkButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/link.gif");
  } 

#linkButton[disabled="true"],
#linkButton[disabled="true"]:hover,
#linkButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/link-disabled.gif");
  } 

#linkButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/link-hover.gif");
  } 

#linkButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/link-hover-active.gif"); 
  }

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

#imageButton[disabled="true"],
#imageButton[disabled="true"]:hover,
#imageButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/image-disabled.gif");
  } 

#imageButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/image-hover.gif");
  } 

#imageButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/image-hover-active.gif"); 
  }

#namedAnchorButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/anchor.gif");
  } 

#namedAnchorButton[disabled="true"],
#namedAnchorButton[disabled="true"]:hover,
#namedAnchorButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/anchor-disabled.gif");
  } 

#namedAnchorButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/anchor-hover.gif");
  } 

#namedAnchorButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/anchor-hover-active.gif"); 
  }

#hlineButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/hline.gif");
  } 

#hlineButton[disabled="true"],
#hlineButton[disabled="true"]:hover,
#hlineButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/hline-disabled.gif");
  } 

#hlineButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/hline-hover.gif");
  } 

#hlineButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/hline-hover-active.gif"); 
  }

#tableButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/table.gif");
  } 

#tableButton[disabled="true"],
#tableButton[disabled="true"]:hover,
#tableButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/table-disabled.gif");
  } 

#tableButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/table-hover.gif");
  } 

#tableButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/table-hover-active.gif"); 
  }

#spellingButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/spell.gif");
  } 

#spellingButton[disabled="true"],
#spellingButton[disabled="true"]:hover,
#spellingButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/spell-disabled.gif");
  } 

#spellingButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/spell-hover.gif");
  } 

#spellingButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/spell-hover-active.gif"); 
  }
  
#DecreaseFontSizeButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/dec-font-size.gif");
  } 

#DecreaseFontSizeButton[disabled="true"],
#DecreaseFontSizeButton[disabled="true"]:hover,
#DecreaseFontSizeButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/dec-font-size-disabled.gif");
  } 

#DecreaseFontSizeButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/dec-font-size-hover.gif");
  } 

#DecreaseFontSizeButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/dec-font-size-hover-active.gif"); 
  }
  
#IncreaseFontSizeButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/inc-font-size.gif");
  } 

#IncreaseFontSizeButton[disabled="true"],
#IncreaseFontSizeButton[disabled="true"]:hover,
#IncreaseFontSizeButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/inc-font-size-disabled.gif");
  } 

#IncreaseFontSizeButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/inc-font-size-hover.gif");
  } 

#IncreaseFontSizeButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/inc-font-size-hover-active.gif"); 
  }
  
#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");
  } 

#outdentButton[disabled="true"],
#outdentButton[disabled="true"]:hover,
#outdentButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/outdent-disabled.gif");
  } 

#outdentButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/outdent-hover.gif");
  } 

#outdentButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/outdent-hover-active.gif"); 
  }

#indentButton 
  {
	  list-style-image      : url("chrome://editor/skin/images/indent.gif");
  } 

#indentButton[disabled="true"],
#indentButton[disabled="true"]:hover,
#indentButton[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/indent-disabled.gif");
  } 

#indentButton:hover
  {
    list-style-image      : url("chrome://editor/skin/images/indent-hover.gif");
  } 

#indentButton:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/indent-hover-active.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-left[disabled="true"],
#text-align-left[disabled="true"]:hover,
#text-align-left[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/left-disabled.gif");
  } 

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

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

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

#text-align-center[disabled="true"],
#text-align-center[disabled="true"]:hover,
#text-align-center[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/center-disabled.gif");
  } 

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

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

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

#text-align-right[disabled="true"],
#text-align-right[disabled="true"]:hover,
#text-align-right[disabled="true"]:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/right-disabled.gif");
  } 

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

#text-align-right:hover:active
  {
    list-style-image      : url("chrome://editor/skin/images/right-hover-active.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;
}
