never try to theme <button> tags, we just can't catch all the permutations

(r=pink/sr=bryner/a=asa, bug 244058)
This commit is contained in:
pinkerton%aol.net 2004-06-09 21:58:22 +00:00
Родитель 71ac85a177
Коммит 1c77027593
1 изменённых файлов: 0 добавлений и 153 удалений

Просмотреть файл

@ -1,153 +0,0 @@
/* ***** 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://gre/res/forms.css");
/* makes sure enabled and disabled input and text area fields are drawn */
input,
textarea,
input[disabled],
textarea[disabled] {
border-width: 2px;
padding: 0px 1px 0px 1px;
font-size: 11px;
margin: 1px 1px 1px 1px;
background-color: -moz-field;
}
select {
-moz-appearance: menulist;
margin: 1px 1px 1px 1px;
background-color: transparent !important;
color: -moz-FieldText !important;
font-size: 11px;
direction: ltr;
}
/* Need the "select[size][multiple]" selector to override the settings on
'select[size="1"]', eg if one has <select size="1" multiple> */
select[size],
select[multiple],
select[size][multiple] {
-moz-appearance: listbox;
margin: 1px 1px 1px 1px;
background-color: transparent !important;
}
select[size="0"],
select[size="1"] {
-moz-appearance: menulist;
margin: 1px 1px 1px 1px;
background-color: transparent !important;
}
/* make sure nothing paints for the menulist button, since the button is
painted as part of the menulist. */
select > input[type="button"],
select > input[type="button"]:active {
background-image: none !important;
}
option[disabled],
optgroup[disabled],
select[disabled] {
color: GrayText !important;
}
/* margins makes sure they are aligned with the text baseline */
input[type="checkbox"] {
-moz-appearance: checkbox-small;
width: 15px;
height: 15px;
margin: 1px 2px 0px 3px;
}
input[type="radio"] {
-moz-appearance: radio-small;
width: 15px;
height: 16px;
margin: 1px 2px -3px 3px;
}
input[type="reset"],
input[type="button"],
input[type="submit"],
input[type="reset"]:active:hover,
input[type="button"]:active:hover,
input[type="submit"]:active:hover {
-moz-appearance: button-small;
font-size: 11px;
margin: 2px 1px 2px 1px;
padding: 0;
border-width: 2px 8px 2px 8px;
color: -moz-FieldText !important;
min-width: 24px;
}
/* makes sure diabled buttons have the same style as enabled buttons */
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] {
margin: 2px 1px 2px 1px;
padding: 0;
border-width: 2px 8px 2px 8px;
min-width: 24px;
color: GrayText !important;
}
/* this draws the square button */
button,
button[disabled],
button:active:hover,
button[disabled]:active {
-moz-appearance: button-bevel;
margin: 5px 2px 0px 2px;
padding: 0px;
border-width: 2px 4px 4px 4px;
}
/* this turns off the mozilla focus ring shown inside clicked or selecetd buttons */
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 {
border: 0;
}