/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla 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/MPL/
 *
 * 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.org code.
 *
 * The Initial Developer of the Original Code is 
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 2003
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or 
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

@import url("resource:/res/forms.css");

input,
textarea {
  border-width: 2px;
  padding: 0 2px 0 1px;
  font-size: 11px;
  background-color: transparent;
}

select {
  -moz-appearance: menulist;
  margin: 1px;
  background-color: transparent !important;
  color: -moz-FieldText !important;
  font-size: 11px;
}

select[size] {
  -moz-appearance: listbox;
  margin: 0px;
  background-color: -moz-Field !important;
}

select[size="1"] {
  -moz-appearance: menulist;
  margin: 1px;
  background-color: transparent !important;
}

select > input[type="button"] {
  /* make sure nothing paints for the menulist button, since the button is
     painted as part of the menulist. */
  background-image: none !important;
}

select > input[type="button"]:active {
  background-image: none !important;
}

input[disabled],
textarea[disabled],
option[disabled],
optgroup[disabled],
select[disabled] {
  color: GrayText !important;
}

input[type="checkbox"] {
  -moz-appearance: checkbox-small;
  width: 14px;
  height: 15px;
}

input[type="radio"] {
  -moz-appearance: radio-small;
  width: 14px;
  height: 14px;
}

input[type="reset"],
input[type="button"],
input[type="submit"] {
  -moz-appearance: button-small;
  font-size: 11px;
  margin: 0px 3px;
  padding: 0;
  border-width: 2px 8px 2px 8px;
  color: -moz-FieldText !important;
}

button,
button[disabled],
button[disabled]:active {
  -moz-appearance: button-bevel;
  padding: 0;
  border-width: 4px;
}

button:active:hover,
input[type="reset"]:active:hover,
input[type="button"]:active:hover,
input[type="submit"]:active:hover {
  padding: 0;
}

button::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]::-moz-focus-inner {
  padding: 0;
  border: 0;
}

input[type="reset"][disabled]:active,
input[type="reset"][disabled],
input[type="button"][disabled]:active,
input[type="button"][disabled],
input[type="submit"][disabled]:active,
input[type="submit"][disabled] {
  padding: 0;
  border-width: 2px 8px 2px 8px;
  color: GrayText !important;
}
