home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / mozilla / skin / MozCurveBlue-1.4-0.99.jar / global / radio.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-12-06  |  2.7 KB  |  110 lines

  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.  *  Brian Ryner <bryner@netscape.com>
  22.  *
  23.  */
  24.  
  25. /* ===== radio.css ===================================================
  26.   == Styles used by the XUL radio element.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31. /* ::::: radio ::::: */
  32.  
  33. radio {
  34.   -moz-appearance: radio-container;
  35.   -moz-box-align: center;
  36.   margin: 2px 4px;
  37.   padding: 0px 2px 0px 1px;
  38.   border: 1px solid transparent;
  39. }
  40.  
  41. .radio-label-box {
  42.   margin-left: 2px;
  43.   padding: 0px 0px 1px 1px;
  44. }
  45.  
  46. .radio-icon {
  47.   margin-right: 2px;
  48. }
  49.  
  50. .radio-label {
  51.   margin: 0 !important;
  52. }
  53.  
  54. /* ..... focused state ..... */
  55.  
  56. radio[focused="true"] {
  57.   border: 1px solid ThreeDDarkShadow;
  58. }
  59.  
  60. /* ..... disabled state ..... */
  61.  
  62. radio[disabled="true"] > .radio-check-box1 {
  63.   background-color: -moz-Dialog;
  64. }
  65.  
  66. radio[disabled="true"] {
  67.   color: GrayText !important;
  68. }
  69.  
  70. /* ::::: checkmark image ::::: */
  71.  
  72. .radio-check-box1 {
  73.   -moz-appearance: radio;
  74.   margin: 3px 0px 4px 0px;
  75.   border-top: 1px solid ThreeDShadow;
  76.   border-right: 1px solid ThreeDHighlight;
  77.   border-bottom: 1px solid ThreeDHighlight;
  78.   border-left: 1px solid ThreeDShadow;
  79.   -moz-border-radius: 50%;
  80.   min-width: 12px;
  81.   min-height: 12px;
  82.   background-color: -moz-Field;
  83. }
  84.  
  85. .radio-check-box2 {
  86.   border-top: 1px solid ThreeDDarkShadow;
  87.   border-right: 1px solid ThreeDLightShadow;
  88.   border-bottom: 1px solid ThreeDLightShadow;
  89.   border-left: 1px solid ThreeDDarkShadow;
  90.   -moz-border-radius: 50%;
  91.   padding: 2px;
  92.   width: 4px;
  93.   height: 4px;
  94.   list-style-image: none;
  95. }
  96.  
  97. radio:hover:active > .radio-check-box1 {
  98.   background-color: -moz-Dialog;
  99. }
  100.  
  101. /* ..... selected state ..... */
  102.  
  103. radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
  104.   list-style-image: url("chrome://global/skin/radio/radio-check.gif");
  105. }
  106.  
  107. radio[selected="true"][disabled="true"] > .radio-check-box1 {
  108.   list-style-image: url("chrome://global/skin/radio/radio-check-dis.gif") !important
  109. }
  110.