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