home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / qute.jar / skin / classic / global / toolbarbutton.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-07-10  |  3.9 KB  |  132 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: 1px solid transparent;
  38.   padding: 3px;
  39.   background-color: transparent;
  40.   color: -moz-DialogText;
  41. }
  42.  
  43. .toolbarbutton-icon {
  44.   margin-right: 2px;
  45. }
  46.  
  47. .toolbarbutton-text {
  48.   margin: 0 !important;
  49.   text-align: center;
  50. }
  51.  
  52. toolbarbutton:hover,
  53. toolbarbutton[buttonover="true"] {
  54.   border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
  55. }
  56.  
  57. toolbarbutton:hover:active,
  58. toolbarbutton[open="true"] {
  59.   border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;
  60.   padding: 4px 2px 2px 4px;
  61. }
  62.  
  63. toolbarbutton[disabled="true"],
  64. toolbarbutton[disabled="true"]:hover,
  65. toolbarbutton[disabled="true"]:hover:active,
  66. toolbarbutton[disabled="true"][open="true"] {
  67.   border-color: transparent;
  68.   padding: 3px;
  69.   color: GrayText;
  70. }
  71.  
  72. /* ..... checked state ..... */
  73.  
  74. toolbarbutton[checked="true"] {
  75.   border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow !important;
  76.   padding: 4px 2px 2px 4px !important;
  77.   background-image: url("chrome://global/skin/toolbar/Lighten.png");
  78.   color: ButtonText !important;
  79. }
  80.  
  81. /* ::::: toolbarbutton menu ::::: */
  82.  
  83. .toolbarbutton-menu-dropmarker {
  84.   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  85. }
  86.  
  87. .toolbarbutton-menu-dropmarker[disabled="true"] {
  88.   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
  89. }
  90.  
  91. /* ::::: toolbarbutton menu-button ::::: */
  92.  
  93. toolbarbutton[type="menu-button"] {
  94.   -moz-box-align: stretch;
  95.   -moz-box-orient: horizontal !important;
  96. }
  97.  
  98. toolbarbutton[type="menu-button"],
  99. toolbarbutton[type="menu-button"]:hover,
  100. toolbarbutton[type="menu-button"]:hover:active,
  101. toolbarbutton[type="menu-button"][open="true"],
  102. toolbarbutton[type="menu-button"][disabled="true"],
  103. toolbarbutton[type="menu-button"][disabled="true"]:hover,
  104. toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
  105.   border-style: none;
  106.   padding: 0;
  107. }
  108.  
  109. .toolbarbutton-menubutton-button {
  110.   -moz-box-align: center;
  111.   -moz-box-pack: center;
  112.   -moz-box-orient: vertical;
  113. }
  114.  
  115. /* .......... dropmarker .......... */
  116.  
  117. .toolbarbutton-menubutton-dropmarker {
  118.   -moz-box-align: center;
  119.   padding: 0 0 1px 0;
  120.   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  121. }
  122.  
  123. .toolbarbutton-menubutton-dropmarker[disabled="true"] {
  124.   padding: 0 0 1px 0 !important;
  125.   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif") !important;
  126. }
  127.  
  128. toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
  129. toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker {
  130.   padding: 1px 0 0 0;
  131. }
  132.