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 / toolbarbutton.css < prev    next >
Cascading Style Sheet File  |  2004-01-17  |  7KB  |  190 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. /* ===== toolbarbutton.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. /* ::::: toolbarbutton ::::: */
  31.  
  32. toolbarbutton {
  33.   -moz-appearance: toolbarbutton;
  34.   -moz-box-align: center;
  35.   -moz-box-pack: center;
  36.   margin: 0;
  37.   border: 2px solid;
  38.   -moz-border-top-colors: transparent;
  39.   -moz-border-right-colors: transparent;
  40.   -moz-border-bottom-colors: transparent;
  41.   -moz-border-left-colors: transparent;
  42.   padding: 2px;
  43.   background-color: transparent;
  44.   color: -moz-DialogText;
  45. }
  46.  
  47. .toolbarbutton-icon {
  48.   margin-right: 2px;
  49. }
  50.  
  51. .toolbarbutton-text {
  52.   margin: 0 !important;
  53.   text-align: center;
  54.   padding: 2px 0px 0px 0px;
  55. }
  56.  
  57. toolbarbutton:hover,
  58. toolbarbutton[buttonover="true"] {
  59.   -moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight;
  60.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  61.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  62.   -moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight;
  63.   color: #0000FF;
  64.     
  65. toolbarbutton:hover:active,
  66. toolbarbutton[open="true"] {
  67.   -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
  68.   -moz-border-right-colors: ThreeDDarkShadow ThreeDHighlight;
  69.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDHighlight;
  70.   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
  71.   padding: 3px 1px 1px 3px;
  72.   color: #0000FF;
  73. }
  74.  
  75. toolbarbutton[disabled="true"],
  76. toolbarbutton[disabled="true"]:hover,
  77. toolbarbutton[disabled="true"]:hover:active
  78. toolbarbutton[disabled="true"][open="true"] {
  79.   -moz-border-top-colors: transparent;
  80.   -moz-border-right-colors: transparent;
  81.   -moz-border-bottom-colors: transparent;
  82.   -moz-border-left-colors: transparent;
  83.   padding: 2px;
  84.   color: GrayText;
  85. }
  86.  
  87. /* ..... checked state ..... */
  88.  
  89. toolbarbutton[checked="true"] {
  90.   -moz-border-top-colors: ThreeDLightShadow ThreeDShadow !important;
  91.   -moz-border-right-colors: ThreeDLightShadow ThreeDHighlight !important;
  92.   -moz-border-bottom-colors: ThreeDLightShadow ThreeDHighlight !important;
  93.   -moz-border-left-colors: ThreeDLightShadow ThreeDShadow !important;
  94.   padding: 2px !important;
  95.   background-color: ThreeDHighlight !important;
  96.   color: ButtonText !important;
  97. }
  98.     
  99. /* ::::: toolbarbutton menu ::::: */
  100.  
  101. .toolbarbutton-menu-dropmarker {
  102.   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  103.   -moz-image-region: auto; /* cut off inheritance */
  104. }
  105.  
  106. .toolbarbutton-menu-dropmarker[disabled="true"] {
  107.   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
  108. }
  109.  
  110. /* ::::: toolbarbutton menu-button ::::: */
  111.  
  112. toolbarbutton[type="menu-button"] {
  113.   -moz-box-align: stretch;
  114. }
  115.  
  116. toolbarbutton[type="menu-button"],
  117. toolbarbutton[type="menu-button"]:hover,
  118. toolbarbutton[type="menu-button"]:hover:active,
  119. toolbarbutton[type="menu-button"][open="true"],
  120. toolbarbutton[type="menu-button"][disabled="true"],
  121. toolbarbutton[type="menu-button"][disabled="true"]:hover,
  122. toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
  123.   border: 1px solid;
  124.   padding: 0;
  125. }
  126.  
  127. .toolbarbutton-menubutton-button {
  128.   -moz-box-align: center;
  129.   -moz-box-pack: center;
  130. }
  131.  
  132. .toolbarbutton-menubutton-button,
  133. .toolbarbutton-menubutton-dropmarker {
  134.   border: 1px solid;
  135.   -moz-border-top-colors: transparent;
  136.   -moz-border-right-colors: transparent;
  137.   -moz-border-bottom-colors: transparent;
  138.   -moz-border-left-colors: transparent;
  139. }
  140.  
  141. .toolbarbutton-menubutton-button[disabled="true"],
  142. .toolbarbutton-menubutton-dropmarker[disabled="true"] {
  143.   -moz-border-top-colors: transparent !important;
  144.   -moz-border-right-colors: transparent !important;
  145.   -moz-border-bottom-colors: transparent !important;
  146.   -moz-border-left-colors: transparent !important;
  147. }
  148.  
  149. toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
  150. toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-button,
  151. toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker,
  152. toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-dropmarker,
  153. toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button {
  154.   -moz-border-top-colors: ThreeDHighlight;
  155.   -moz-border-right-colors: ThreeDShadow;
  156.   -moz-border-bottom-colors: ThreeDShadow;
  157.   -moz-border-left-colors: ThreeDHighlight;
  158. }
  159.  
  160. toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-button,
  161. toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
  162. toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker,
  163. toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
  164.   -moz-border-top-colors: ThreeDShadow;
  165.   -moz-border-right-colors: ThreeDHighlight;
  166.   -moz-border-bottom-colors: ThreeDHighlight;
  167.   -moz-border-left-colors: ThreeDShadow;
  168. }
  169.  
  170. /* .......... dropmarker .......... */
  171.  
  172. .toolbarbutton-menubutton-dropmarker {
  173.   -moz-box-align: center;
  174.   padding: 0 0 1px 0;
  175.   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  176.   -moz-image-region: auto; /* cut off inheritance */
  177. }
  178.  
  179. .toolbarbutton-menubutton-dropmarker[disabled="true"] {
  180.   border: 1px solid transparent !important;
  181.   padding: 0 0 1px 0 !important;
  182.   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif") !important;
  183. }
  184.  
  185. toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
  186. toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker {
  187.   padding: 1px 0 0 0;
  188. }
  189.