home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / qute.jar / skin / classic / global / menu.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-01-29  |  5.5 KB  |  222 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.  
  25. /* ===== menu.css =======================================================
  26.   == Styles used by XUL menu-related elements.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31. /* ::::: menu/menuitem ::::: */
  32.  
  33. menu,
  34. menuitem {
  35.   -moz-box-align: center;
  36.   color: MenuText;
  37.   font: menu;
  38.   list-style-image: none;
  39. }
  40.  
  41. menuitem[default="true"] {
  42.   font-weight: bold;
  43. }
  44.  
  45. menu[disabled="true"], menuitem[disabled="true"],
  46. menu[_moz-menuactive="true"][disabled="true"],
  47. menuitem[_moz-menuactive="true"][disabled="true"] {
  48.   color: GrayText;
  49. }
  50.  
  51. /* ..... internal content .... */
  52.  
  53. .menu-text,
  54. .menu-iconic-left,
  55. .menu-iconic-text {
  56.   margin: 0px 2px 0px 0px !important;
  57.   color: inherit;
  58. }
  59.  
  60. .menu-text {
  61.   margin-left: 18px !important;
  62.   font-weight: inherit;
  63. }
  64.  
  65. .menu-accel,
  66. .menu-iconic-accel {
  67.   margin: 0px 2px 0px 7px !important;
  68.   padding-right: 14px;
  69.   color: inherit;
  70. }
  71.  
  72. .menu-iconic-left {
  73.   width: 16px;
  74. }
  75.  
  76. /* ..... menu arrow box ..... */
  77.  
  78. .menu-right {
  79.   margin: 0px 0px 0px 6px;
  80.   width: 8px;
  81.   list-style-image: url("chrome://global/skin/menu/Menu-arrow.png");
  82. }
  83.  
  84. .menu-right[_moz-menuactive="true"] {
  85.   list-style-image: url("chrome://global/skin/menu/Menu-arrow-hover.png");
  86. }
  87.  
  88. .menu-right[disabled="true"] {
  89.   list-style-image: url("chrome://global/skin/menu/Menu-arrow-disabled.png") !important;
  90. }
  91.  
  92. /* ::::: menu/menuitems in menubar ::::: */
  93.  
  94. menubar > menu {
  95.   border: 1px solid transparent;
  96.   padding: 2px 5px 2px 7px;
  97.   margin: 1px 0px 1px 0px;
  98. }
  99. menubar > menu[_moz-menuactive="true"] {
  100.   border-top: 1px solid ThreeDHighlight;
  101.   border-right: 1px solid ThreeDShadow;
  102.   border-bottom: 1px solid ThreeDShadow;
  103.   border-left: 1px solid ThreeDHighlight;
  104. }
  105. menubar > menu[_moz-menuactive="true"][open="true"] {
  106.   border-top: 1px solid ThreeDShadow;
  107.   border-right: 1px solid ThreeDHighlight;
  108.   border-bottom: 1px solid ThreeDHighlight;
  109.   border-left: 1px solid ThreeDShadow;
  110. }
  111.  
  112. /* ..... internal content .... */
  113.  
  114. .menubar-left {
  115.   margin: 0px 2px 0px 0px;
  116.   color: inherit;
  117. }
  118.  
  119. .menubar-text {
  120.   margin: 0px 2px 0px 0px !important;
  121.   color: inherit;
  122. }
  123.  
  124. /* ::::: menu/menuitems in popups ::::: */
  125.  
  126. menupopup > menu,
  127. popup > menu,
  128. menupopup > menuitem,
  129. popup > menuitem {
  130.   padding: 2px;
  131.   max-width: 42em;
  132. }
  133.  
  134. menupopup > menu[_moz-menuactive="true"],
  135. menupopup > menuitem[_moz-menuactive="true"],
  136. popup > menu[_moz-menuactive="true"],
  137. popup > menuitem[_moz-menuactive="true"] {
  138.   background-color: Highlight;
  139.   color: HighlightText;
  140. }
  141.  
  142. /* ::::: menu/menuitems in menulist popups ::::: */
  143.  
  144. .menulist-menupopup > menuitem,
  145. menulist > menupopup > menuitem,
  146. .menulist-menupopup > menu,
  147. menulist > menupopup > menu {
  148.   border: 1px solid transparent;
  149.   padding: 1px 30px 1px 5px;
  150.   max-width: none;
  151.   font: message-box;
  152.   color: -moz-FieldText;
  153. }
  154.  
  155. .menulist-menupopup > menuitem > .menu-iconic-left,
  156. menulist > menupopup > menuitem > .menu-iconic-left,
  157. .menulist-menupopup > menu > .menu-iconic-left,
  158. menulist > menupopup > menu > .menu-iconic-left {
  159.   display: none;
  160. }
  161.  
  162. menulist > menupopup > menuitem[_moz-menuactive="true"] {
  163.   border: 1px dotted #F5DB95;
  164. }
  165.  
  166. /* ::::: checkbox menuitem ::::: */
  167.  
  168. menuitem[checked="true"] {
  169.   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
  170. }
  171.  
  172. menuitem[checked="true"][disabled="true"] {
  173.   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
  174. }
  175.  
  176. menuitem[checked="true"][_moz-menuactive="true"] {
  177.   list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
  178. }
  179.  
  180. /* ::::: radio menuitem ::::: */
  181.  
  182. menuitem[checked="true"][type="radio"] {
  183.   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
  184. }
  185.  
  186. menuitem[checked="true"][type="radio"][disabled="true"] {
  187.   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
  188. }
  189.  
  190. menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
  191.   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
  192. }
  193.  
  194. /* ::::: menuseparator ::::: */
  195.  
  196. menuseparator {
  197.   margin: 2px 3px;
  198.   border-top: 1px solid ThreeDShadow;
  199.   border-bottom: 1px solid ThreeDHighlight;
  200. }
  201.  
  202. menulist > menupopup > menuseparator,
  203. .menulist-menupopup > menuseparator {
  204.   margin: 2px 0;
  205.   border-top: 1px solid #000000;
  206.   border-bottom: none;
  207. }
  208.  
  209. /* ::::: autocomplete ::::: */
  210.  
  211. .autocomplete-history-popup > menuitem {
  212.   max-width: none !important;
  213.   font: message-box;
  214. }
  215.  
  216. /* ::::: tree column picker ::::: */
  217.  
  218. .treecell-popupcell-menu {
  219.   margin-left: -2px;
  220.   list-style-image: url("chrome://global/skin/columnselect.gif");
  221. }
  222.