home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / mozilla / skin / MozCurveBlue-1.4-0.99.jar / global / menu.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-12-06  |  5.4 KB  |  226 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-icon {
  73.   width: 16px;
  74.   height: 16px;
  75.   list-style-image: inherit;
  76. }
  77.  
  78. /* ..... menu arrow box ..... */
  79.  
  80. .menu-right {
  81.   margin: 0px 0px 0px 6px;
  82.   width: 8px;
  83.   list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
  84. }
  85.  
  86. .menu-right[_moz-menuactive="true"] {
  87.   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
  88. }
  89.  
  90. .menu-right[disabled="true"] {
  91.   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
  92. }
  93.  
  94. /* ::::: menu/menuitems in menubar ::::: */
  95.  
  96. menubar > menu {
  97.   border: 1px solid transparent;
  98.   padding: 2px 5px 2px 7px;
  99.   margin: 1px 0px 1px 0px;
  100. }
  101.  
  102. menubar > menu[_moz-menuactive="true"] {
  103.   border-top: 1px solid ThreeDHighlight;
  104.   border-right: 1px solid ThreeDShadow;
  105.   border-bottom: 1px solid ThreeDShadow;
  106.   border-left: 1px solid ThreeDHighlight;
  107. }
  108.  
  109. menubar > menu[_moz-menuactive="true"][open="true"] {
  110.   border-top: 1px solid ThreeDShadow;
  111.   border-right: 1px solid ThreeDHighlight;
  112.   border-bottom: 1px solid ThreeDHighlight;
  113.   border-left: 1px solid ThreeDShadow;
  114. }
  115.  
  116. /* ..... internal content .... */
  117.  
  118. .menubar-left {
  119.   margin: 0px 2px 0px 0px;
  120.   color: inherit;
  121. }
  122.  
  123. .menubar-text {
  124.   margin: 0px 2px 0px 0px !important;
  125.   color: inherit;
  126. }
  127.  
  128. /* ::::: menu/menuitems in popups ::::: */
  129.  
  130. menupopup > menu,
  131. popup > menu,
  132. menupopup > menuitem,
  133. popup > menuitem {
  134.   padding: 2px;
  135.   max-width: 42em;
  136. }
  137.  
  138. menupopup > menu[_moz-menuactive="true"],
  139. menupopup > menuitem[_moz-menuactive="true"],
  140. popup > menu[_moz-menuactive="true"],
  141. popup > menuitem[_moz-menuactive="true"] {
  142.   background-color: Highlight;
  143.   color: HighlightText;
  144. }
  145.  
  146. /* ::::: menu/menuitems in menulist popups ::::: */
  147.  
  148. .menulist-menupopup > menuitem,
  149. menulist > menupopup > menuitem,
  150. .menulist-menupopup > menu,
  151. menulist > menupopup > menu {
  152.   border: 1px solid transparent;
  153.   padding: 1px 30px 1px 5px;
  154.   max-width: none;
  155.   font: message-box;
  156.   color: -moz-FieldText;
  157. }
  158.     
  159. .menulist-menupopup > menuitem > .menu-iconic-left,
  160. menulist > menupopup > menuitem > .menu-iconic-left,
  161. .menulist-menupopup > menu > .menu-iconic-left,
  162. menulist > menupopup > menu > .menu-iconic-left {
  163.   display: none;
  164. }
  165.     
  166. menulist > menupopup > menuitem[_moz-menuactive="true"] {
  167.   border: 1px dotted #F5DB95;
  168. }
  169.  
  170. /* ::::: checkbox menuitem ::::: */
  171.  
  172. menuitem[checked="true"] {
  173.   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
  174. }
  175.  
  176. menuitem[checked="true"][disabled="true"] {
  177.   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
  178. }
  179.  
  180. menuitem[checked="true"][_moz-menuactive="true"] {
  181.   list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
  182. }
  183.  
  184. /* ::::: radio menuitem ::::: */
  185.  
  186. menuitem[checked="true"][type="radio"] {
  187.   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
  188. }
  189.  
  190. menuitem[checked="true"][type="radio"][disabled="true"] {
  191.   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
  192. }
  193.  
  194. menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
  195.   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
  196. }
  197.  
  198. /* ::::: menuseparator ::::: */
  199.  
  200. menuseparator {
  201.   margin: 2px 3px;
  202.   border-top: 1px solid ThreeDShadow;
  203.   border-bottom: 1px solid ThreeDHighlight;
  204. }
  205.  
  206. menulist > menupopup > menuseparator,
  207. .menulist-menupopup > menuseparator {
  208.   margin: 2px 0;
  209.   border-top: 1px solid #000000;
  210.   border-bottom: none;
  211. }
  212.  
  213. /* ::::: autocomplete ::::: */
  214.  
  215. .autocomplete-history-popup > menuitem {
  216.   max-width: none !important;
  217.   font: message-box;
  218. }
  219.  
  220. /* ::::: tree column picker ::::: */
  221.  
  222. .treecell-popupcell-menu {
  223.   margin-left: -2px;
  224.   list-style-image: url("chrome://global/skin/columnselect.gif");
  225. }
  226.