| 1 | /* |
| 2 | * The contents of this file are subject to the Netscape Public |
| 3 | * License Version 1.1 (the "License"); you may not use this file |
| 4 | * except in compliance with the License. You may obtain a copy of |
| 5 | * the License at http://www.mozilla.org/NPL/ |
| 6 | * |
| 7 | * Software distributed under the License is distributed on an "AS |
| 8 | * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 9 | * implied. See the License for the specific language governing |
| 10 | * rights and limitations under the License. |
| 11 | * |
| 12 | * The Original Code is Mozilla Communicator client code, released |
| 13 | * March 31, 1998. |
| 14 | * |
| 15 | * The Initial Developer of the Original Code is Netscape |
| 16 | * Communications Corporation. Portions created by Netscape are |
| 17 | * Copyright (C) 1998-1999 Netscape Communications Corporation. All |
| 18 | * Rights Reserved. |
| 19 | * |
| 20 | * Contributor(s): |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | /* ===== checkbox.css =================================================== |
| 25 | == Styles used by the XUL checkbox element. |
| 26 | ======================================================================= */ |
| 27 | |
| 28 | @namespace url(http://www.w3.org/1999/xhtml); |
| 29 | |
| 30 | /* ::::: checkbox ::::: */ |
| 31 | |
| 32 | input[type="checkbox"] { |
| 33 | -moz-appearance: checkbox; |
| 34 | -moz-box-align: center; |
| 35 | border: 2px solid; |
| 36 | padding-left: 1px; |
| 37 | padding-right: 1px; |
| 38 | -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; |
| 39 | -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; |
| 40 | -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; |
| 41 | -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; |
| 42 | min-width: 13px; |
| 43 | min-height: 13px; |
| 44 | background: -moz-Field no-repeat 50% 50%; |
| 45 | } |
| 46 | |
| 47 | input[type="checkbox"]:hover:active { |
| 48 | background-color: -moz-Dialog; |
| 49 | } |
| 50 | |
| 51 | /* ..... disabled state ..... */ |
| 52 | |
| 53 | input[type="checkbox"][disabled="true"] { |
| 54 | background-color: -moz-Dialog; |
| 55 | } |
| 56 | |
| 57 | /* ..... checked state ..... */ |
| 58 | |
| 59 | input[type="checkbox"][_moz-input-checked] { |
| 60 | list-style-image: url("chrome://global/skin/checkbox/cbox-check.gif"); |
| 61 | } |
| 62 | |
| 63 | input[type="checkbox"][_moz-input-checked][disabled="true"] { |
| 64 | list-style-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important |
| 65 | } |
| 66 | |