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 / button.css < prev    next >
Cascading Style Sheet File  |  2003-06-30  |  4KB  |  141 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: -moz-ButtonDefault ThreeDHighlight transparent;
  59.   -moz-border-right-colors: -moz-ButtonDefault ThreeDDarkShadow ThreeDShadow;
  60.   -moz-border-bottom-colors: -moz-ButtonDefault ThreeDDarkShadow ThreeDShadow;
  61.   -moz-border-left-colors: -moz-ButtonDefault 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: -moz-ButtonDefault ThreeDHighlight ThreeDLightShadow;
  72.   -moz-border-right-colors: -moz-ButtonDefault ThreeDDarkShadow ThreeDShadow;
  73.   -moz-border-bottom-colors: -moz-ButtonDefault ThreeDDarkShadow ThreeDShadow;
  74.   -moz-border-left-colors: -moz-ButtonDefault 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: -moz-ButtonDefault ThreeDShadow transparent;
  83.   -moz-border-right-colors: -moz-ButtonDefault ThreeDShadow transparent;
  84.   -moz-border-bottom-colors: -moz-ButtonDefault ThreeDShadow transparent;
  85.   -moz-border-left-colors: -moz-ButtonDefault 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.   background-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  121.   min-width:11px;
  122.   min-height:11px;
  123. }
  124.   
  125. .button-menu-dropmarker[disabled="true"],
  126. .button-menubutton-dropmarker[disabled="true"] {
  127.   background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
  128. }
  129.  
  130. .button-menubutton-dropmarker[open="true"] {
  131.   margin: 2px 0px 0px 2px;
  132. }
  133.  
  134. /* ::::: plain buttons ::::: */
  135.  
  136. button.plain {
  137.   border: 0px !important;
  138.   margin: 0px !important;
  139.   padding: 0px !important;
  140. }
  141.