home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Apollo.jar / global / button.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-11-06  |  4.7 KB  |  157 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.  *   Joe Hewitt (hewitt@netscape.com)
  22.  */
  23.  
  24. /* ===== button.css =====================================================
  25.   == Styles used by the XUL button element.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29.  
  30. /* :::::::::: button :::::::::: */
  31.  
  32. button {
  33.   -moz-appearance: button;
  34.   margin: 1px 5px 2px 5px;
  35.   min-width: 6.3em;
  36.   border: 3px solid;
  37.   -moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow;
  38.   -moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow;
  39.   -moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow;
  40.   -moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow;
  41.   background-color: ThreeDFace;
  42.   color: ButtonText;
  43. }
  44.  
  45. .button-box {
  46.   border: 1px solid transparent;
  47.   padding: 1px 4px 2px 3px;
  48. }
  49.  
  50. .button-text {
  51.   margin: 0 !important;
  52.   text-align: center;
  53. }
  54.  
  55. /* .......... focused state .......... */
  56.  
  57. button:focus {
  58.   -moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight transparent;
  59.   -moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
  60.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
  61.   -moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight transparent;
  62. }
  63.  
  64. button:focus > .button-box {
  65.   border: 1px dotted ThreeDDarkShadow;
  66. }
  67.  
  68. /* .......... default state .......... */
  69.  
  70. button[default="true"] {
  71.   -moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow;
  72.   -moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
  73.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
  74.   -moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow;
  75. }
  76.  
  77. /* .......... active/open/checked state .......... */
  78.  
  79. button:hover:active,
  80. button[open="true"],
  81. button[checked="true"] {
  82.   -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow transparent;
  83.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow transparent;
  84.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent;
  85.   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow transparent;
  86. }
  87.  
  88. button:hover:active > .button-box,
  89. button[open="true"] > .button-box,
  90. button[checked="true"] > .button-box {
  91.   padding: 2px 3px 1px 4px;
  92. }
  93.  
  94. /* .......... disabled state .......... */
  95.  
  96. button[disabled="true"] {
  97.   -moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
  98.   -moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
  99.   -moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
  100.   -moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
  101.   color: GrayText;
  102. }
  103.  
  104. button[disabled="true"] > .button-box {
  105.   padding: 1px 4px 2px 3px !important;
  106. }
  107.  
  108. /* ::::: menu/menu-button buttons ::::: */
  109.  
  110. button[type="menu-button"] {
  111.   -moz-box-align: center;
  112.   -moz-box-pack: center;
  113.   margin: 0;
  114.   border: none;
  115. }
  116.  
  117. .button-menu-dropmarker,
  118. .button-menubutton-dropmarker {
  119.   margin: 1px;
  120.   list-style-image: url("chrome://messenger/skin/icons/dropmarker.png");
  121.   -moz-image-region: rect(0px 16px 16px 0px);
  122.   min-width:11px;
  123.   min-height:11px;
  124. }
  125.   
  126. .button-menu-dropmarker[disabled="true"],
  127. .button-menubutton-dropmarker[disabled="true"] {
  128.   -moz-image-region: rect(32px 16px 48px 0px);
  129. }
  130.  
  131. .button-menubutton-dropmarker[open="true"] {
  132.   -moz-image-region: rect(16px 16px 32px 0px);
  133. }
  134.  
  135. /* ::::: plain buttons ::::: */
  136.  
  137. button.plain {
  138.   border: 0px !important;
  139.   margin: 0px !important;
  140.   padding: 0px !important;
  141. }
  142.  
  143. button[type="disclosure"] {
  144.   border: 0px !important;
  145.   margin: 0px !important;
  146.   padding: 0px !important;
  147.   -moz-appearance: none;
  148.   list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
  149.   min-width: 0px !important;
  150.   background-color: transparent;
  151. }
  152.  
  153. button[type="disclosure"][open="true"] {
  154.   list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); 
  155. }
  156.  
  157.