/* 
 * 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): 
 *   Pete Collins, Ben Goodger
 */

/*
   THIS FILE IS LOCKED DOWN.  YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
   CHANGES REVIEWED BY cmanske@netscape.com.
*/


table { 
  border-collapse: separate; 
  border-spacing:  0px; 
  margin: 0px; 
  border: 0px;
}

td { border: 0px;}

/* Use to center vertically in a table cell */
tr { 
  vertical-align: middle;
}

/* This strategy for hidding allows widget to keep layout space
   while using "hidden" attribute sets to display: none, removing space
*/
input[visibility=hidden]
{
  visibility: hidden;
}

input.MinWidth200,select.MinWidth200,div.MinWidth200,titledbutton.MinWidth200,text.MinWidth200,spring.MinWidth100 {
  min-width: 200px;
}

input.MinWidth100,select.MinWidth100,div.MinWidth100,titledbutton.MinWidth100,text.MinWidth100,spring.MinWidth100 {
  min-width: 100px;
}

input.MinWidth70,select.MinWidth70,label.MinWidth70,div.MinWidth70,titledbutton.MinWidth70,text.MinWidth70,spring.MinWidth70 {
  min-width: 70px;
}

input.MinWidth50,select.MinWidth50,label.MinWidth50,div.MinWidth50,titledbutton.MinWidth50,text.MinWidth50,spring.MinWidth50 {
  min-width: 50px;
}

input#CellAlignCharInput {
  padding-left:  3px;
  padding-right: 3px;
}

select.SpellCheckList, select.SpellCheckLanguage, input.SpellCheckWord {
    width: 200px;
}

select.dialog {
	font-size: smaller;
}

div.spacer [align~=horizontal] {
    border:  1px inset white;
    height:  2px;
}

div#message {
  width:       20em; 
  margin-left: 10px;
}

div.middle-align {
  vertical-align: middle;
}

.margin-left-right {
  margin-left:  10px;
  margin-right:  5px;
}

*.color-well {
  width:20px;
  height: 1em; 
  border: 1px inset #CCCCCC;
  /* Background color is set at runtime */
}

*.color-well[default="true"] {
  border: 1px solid transparent;
  background-color: inherit;
}

image.popup-trigger {
  list-style-image: url(chrome://global/skin/scroll-down.gif);
}

td#ColorPreview {
  border:           1px inset #CCCCCC;
  padding-left:     5px;
  padding-right:    5px;
  min-width:        100px;
  min-height:       50px;
}

/* A line of text inside the preview cell */
td#ColorPreview div {
  margin-top:    5px;
  margin-bottom: 5px;
}

/* XUL ELEMENTS */

/* These reduce extra space to 
   minimize total height in Table Dialog
*/
titledbox.NoBottomPad {
  padding-bottom: 0px;
}

titledbox.NoTopMargin {
  margin-bottom: 0px;
}

titledbox.NoTopPadding {
  padding-top: 0px;
}

tabpanel.Padding5 {
  padding: 5px;
}

/* SHOULD GO IN GLOBAL.CSS */
text {
  text-align: left;
}

text[hidden="true"], input[hidden="true"] {
  display: none;
}

select#alignTypeSelect,label#alignLabel {
  margin-left: 5px;
}

/* For right-aligned buttons */
titledbutton#AdvancedEditButton,titledbutton#AdvancedEditExtraButton,titledbutton#SaveDefault {
  min-width: 8em;
}

titledbutton#MoreFewerButton[more="0"] {
  margin-left: 6px;
  list-style-image: url(chrome://global/skin/scroll-down.gif);
  /* bug 9459 - changing button text doesn't resize width.
     This covers that problem, but we want this size anyway */
  width: 10em;
}
titledbutton#MoreFewerButton[more="1"] {
  margin-left: 6px;
  list-style-image: url(chrome://global/skin/scroll-up.gif);
  width: 10em;
}

/* We use a borderless button to show misspelled word in dialog */
titledbutton#MisspelledWord {
  font-weight: bold;
}

text#linkTextCaption {
  font-weight: bold;
}

/* For a column of right-aligned text before 
   a column of input fields, e.g., InsertTable dialog
*/
text.right {
  /* doesn't work yet! must use align="right" in <text> */
  text-align:   right;
  margin-right: 5px;
  /* Kludge: this needs to be wide enoungh for longest string */
  min-width:    10em;
}

/* use outset shape for a button look */
menu.colorpicker {
  border: 1px outset #CCCCCC;
  /* For a little extra space between buttons */
  margin-bottom: 2px;
}


menu.colorpicker:active {
  border: 1px inset #CCCCCC;
}

/* THIS SHOULD BE IN GLOBAL.CSS */
label.dialog[disabled],legend.dialog[disabled] {
    color: gray;
}

titledbutton.SizeToParent {
  width: 100%;
  /* A hack to get buttons to be the same width */
  min-width: 5em;
}

spring.smallspacer {
  width:  3px;
  height: 3px;
  min-width:  3px;
  min-height: 3px;
}

spring.spacer {
  width:  5px;
  height: 5px;
  min-width:  5px;
  min-height: 5px;
}

spring.bigspacer {
  width:  10px;
  height: 10px;
  min-width:  10px;
  min-height: 10px;
}

img.AlignIcon {
  margin-right: 5px;
  /* To make all align the same */
  /*vertical-align: middle;*/
}

titledbutton#img-align-top {
	list-style-image:url("chrome://editor/skin/images/img-align-top.gif");
}
titledbutton#img-align-middle {
	list-style-image:url("chrome://editor/skin/images/img-align-middle.gif");
}
titledbutton#img-align-bottom {
	list-style-image:url("chrome://editor/skin/images/img-align-bottom.gif");
}
titledbutton#img-align-left {
	list-style-image:url("chrome://editor/skin/images/img-align-left.gif");
}
titledbutton#img-align-right {
	list-style-image:url("chrome://editor/skin/images/img-align-right.gif");
}

/* Rest are from Ben Goodger for Advanced Edit dialog 
   These need reviewing and eliminate all but essential attributes */
/* Have made some mods and eliminated some unnecessary portions. 
   hope to merge most of the treecell formatting into global as some of 
   this "property list" style treecell formatting is used by cookie/signon 
   viewers. */


div.tagname {
    font-weight: bold;
}

div#tagLabel {
  font-weight: bold;
}

/* In Color Properties dialog */
div#SaveImageMsg {
  max-width: 150px;
}

/* styles for an attribute tree-table */
tree.AttributesTree {
  min-width : 200px;
  min-height: 200px;
}

tree.AttributesTree > treechildren > treeitem > treerow > treecell.value {
    padding-left    : 0px;
    padding-top     : 0px;
    padding-bottom  : 0px;
    padding-right   : 0px;
    margin-left     : 0px;
}

input.AttributesCell {
  border: none;
  width: 100%;
  background-color: #FFFFFF;
  font-weight: normal;
  border: none;
  outline: none;
  margin: 0px;
  width: 100%;
}

treecell > input {
  margin: 0px;
  background-color: #E5E5E5 ! important;
}

