home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / fusion.jar / skin / fusion / global / toolbarbutton.css < prev    next >
Cascading Style Sheet File  |  2005-07-29  |  4KB  |  149 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-box-align: center;
  34.   -moz-box-pack: center;
  35.   padding: 0px;
  36.   font: message-box;
  37. }
  38.  
  39. .toolbarbutton-icon {
  40.   margin-right: 2px;
  41.   list-style-image: inherit;
  42. }
  43.  
  44. .toolbarbutton-text {
  45.   margin: 0px !important;
  46.   text-align: center;
  47. }
  48.  
  49. toolbarbutton:hover,
  50. toolbarbutton[buttonover="true"] {
  51.   border-top-color: #EEF0F3;
  52.   border-right-color: #86929E;
  53.   border-bottom-color: #86929E;
  54.   border-left-color: #EEF0F3;
  55. }
  56.  
  57. toolbarbutton:hover:active,
  58. toolbarbutton[open="true"] {
  59.   border-top-color: #86929E;
  60.   border-right-color: #EEF0F3;
  61.   border-bottom-color: #EEF0F3;
  62.   border-left-color: #86929E;
  63.   padding: 0px;
  64. }
  65.  
  66. toolbarbutton[disabled="true"],
  67. toolbarbutton[disabled="true"]:hover,
  68. toolbarbutton[disabled="true"]:hover:active,
  69. toolbarbutton[disabled="true"][open="true"] {
  70.   color: #444444 !important;
  71. }
  72.  
  73. /* ..... checked state ..... */
  74.  
  75. toolbarbutton[checked="true"] {
  76.   border-top-color: #454C55 !important;
  77.   border-right-color: #7D848D !important;
  78.   border-bottom-color: #7D848D !important;
  79.   border-left-color: #454C55 !important;
  80.   background-color: #8C9AA8 !important;
  81.   color: #EFF1F4;
  82. }
  83.  
  84. /* ::::: toolbarbutton menu ::::: */
  85.  
  86. .toolbarbutton-menu-dropmarker {
  87.   list-style-image: url("chrome://global/skin/button/tbmenu-arrow.gif");
  88.   -moz-image-region: auto; /* cut off inheritance */
  89. }
  90.  
  91. .toolbarbutton-menu-dropmarker[disabled="true"] {
  92.   list-style-image: url("chrome://global/skin/button/tbmenu-arrow-dis.gif");
  93. }
  94.  
  95. .toolbarbutton-menu-dropmarker[open="true"] {
  96.   list-style-image: url("chrome://global/skin/button/tbmenu-arrow-act.gif");
  97. }
  98.  
  99. /* ::::: toolbarbutton menu-button ::::: */
  100.  
  101. toolbarbutton[type="menu-button"] {
  102.     -moz-box-orient: horizontal;
  103.     font: inherit;
  104. }
  105.  
  106. toolbarbutton[type="menu-button"],
  107. toolbarbutton[type="menu-button"]:hover,
  108. toolbarbutton[type="menu-button"]:hover:active,
  109. toolbarbutton[type="menu-button"][open="true"],
  110. toolbarbutton[type="menu-button"][disabled="true"],
  111. toolbarbutton[type="menu-button"][disabled="true"]:hover,
  112. toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
  113.     border-style: none;
  114.     padding: 0px !important;
  115. }
  116.  
  117. .toolbarbutton-menubutton-button {
  118.     -moz-box-orient: vertical;
  119.      font: inherit;
  120. }
  121.  
  122. /* .......... dropmarker .......... */
  123.  
  124. .toolbarbutton-menubutton-dropmarker {
  125.     -moz-box-orient: vertical;
  126.     -moz-box-pack: end;
  127.     -moz-image-region: auto;
  128.     margin: 0px;
  129.     margin-bottom: 10px;
  130.     width: 11px;
  131.     height: 11px;
  132.     list-style-image: none;
  133.     -moz-image-region: auto; /* cut off inheritance */
  134. }
  135. [iconsize="small"] .toolbarbutton-menubutton-dropmarker {
  136.     margin-bottom: 5px;
  137. }
  138. .toolbarbutton-menubutton-dropmarker:hover,
  139. .toolbarbutton-menubutton-dropmarker image:hover,
  140. toolbarbutton:hover .toolbarbutton-menubutton-dropmarker {
  141.     list-style-image: url("chrome://global/skin/toolbar/toolbarbutton-dropmarker.png");
  142. }
  143.  
  144. toolbarbutton[disabled="true"] .toolbarbutton-menubutton-dropmarker,
  145. toolbarbutton[disabled="true"]:hover .toolbarbutton-menubutton-dropmarker
  146. {
  147.     list-style-image: none;
  148. }
  149.