home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Mars.jar / global / toolbarbutton.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-11-05  |  3.6 KB  |  134 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: none;/*toolbarbutton;*/
  34.   -moz-box-align: center;
  35.   -moz-box-pack: center;
  36.   margin: 0;
  37.   padding: 3px;
  38.   background-color: transparent;
  39.   color: -moz-DialogText;
  40. }
  41.  
  42. .toolbarbutton-icon {
  43.   margin-right: 2px;
  44. }
  45.  
  46. .toolbarbutton-text {
  47.   margin: 0 !important;
  48.   text-align: center;
  49. }
  50.  
  51. toolbarbutton:hover,
  52. toolbarbutton:hover {
  53.   color: highlight;
  54. }
  55.  
  56. toolbarbutton:hover:active,
  57. toolbarbutton[open="true"] {
  58.   color: highlight;
  59.   padding: 4px 2px 2px 4px;
  60. }
  61.  
  62. toolbarbutton[disabled="true"],
  63. toolbarbutton[disabled="true"]:hover,
  64. toolbarbutton[disabled="true"]:hover:active,
  65. toolbarbutton[disabled="true"][open="true"] {
  66.   padding: 3px;
  67.   color: GrayText;
  68. }
  69.  
  70. /* ..... checked state ..... */
  71.  
  72. toolbarbutton[checked="true"] {
  73.   padding: 4px 2px 2px 4px !important;
  74.   color: highlight;
  75. }
  76.  
  77. /* ::::: toolbarbutton menu ::::: */
  78.  
  79. .toolbarbutton-menu-dropmarker {
  80.   list-style-image: url("chrome://messenger/skin/icons/dropmarker.png");
  81.   -moz-image-region: rect(0px 16px 16px 0px);
  82. }
  83.  
  84. .toolbarbutton-menu-dropmarker:hover, .toolbarbutton-menu-dropmarker:hover:active {
  85.   -moz-image-region: rect(16px 16px 32px 0px);
  86. }
  87.  
  88. .toolbarbutton-menu-dropmarker[disabled="true"] {
  89.   -moz-image-region: rect(32px 16px 48px 0px);
  90. }
  91.  
  92. /* ::::: toolbarbutton menu-button ::::: */
  93.  
  94. toolbarbutton[type="menu-button"] {
  95.   -moz-box-align: stretch;
  96.   -moz-box-orient: horizontal !important;
  97. }
  98.  
  99. toolbarbutton[type="menu-button"],
  100. toolbarbutton[type="menu-button"]:hover,
  101. toolbarbutton[type="menu-button"]:hover:active,
  102. toolbarbutton[type="menu-button"][open="true"],
  103. toolbarbutton[type="menu-button"][disabled="true"],
  104. toolbarbutton[type="menu-button"][disabled="true"]:hover,
  105. toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
  106.   border-style: none;
  107.   padding: 0;
  108. }
  109.  
  110. .toolbarbutton-menubutton-button {
  111.   -moz-box-align: center;
  112.   -moz-box-pack: center;
  113.   -moz-box-orient: vertical;
  114. }
  115.  
  116. /* .......... dropmarker .......... */
  117.  
  118. .toolbarbutton-menubutton-dropmarker {
  119.   -moz-box-align: center;
  120.   padding: 0 0 1px 0;
  121.   list-style-image: url("chrome://messenger/skin/icons/dropmarker.png");
  122.   -moz-image-region: rect(0px 16px 16px 0px);
  123. }
  124.  
  125. .toolbarbutton-menubutton-dropmarker[disabled="true"] {
  126.   padding: 0 0 1px 0 !important;
  127.   -moz-image-region: rect(32px 16px 48px 0px);
  128. }
  129.  
  130. toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
  131. toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker {
  132.   -moz-image-region: rect(16px 16px 32px 0px);
  133. }
  134.