home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Apollo.jar / global / menu.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-08-10  |  5.8 KB  |  238 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.   -moz-image-region: auto;
  40. }
  41.  
  42. menuitem[default="true"] {
  43.   font-weight: bold;
  44. }  
  45.   
  46. menu[disabled="true"], menuitem[disabled="true"],
  47. menu[_moz-menuactive="true"][disabled="true"],
  48. menuitem[_moz-menuactive="true"][disabled="true"] {
  49.   color: GrayText;
  50. }
  51.  
  52. /* ..... internal content .... */
  53.  
  54. .menu-text, 
  55. .menu-iconic-left,
  56. .menu-iconic-text {
  57.   margin: 0px 2px 0px 0px !important;
  58.   color: inherit;
  59. }
  60.  
  61. .menu-text {
  62.   margin-left: 18px !important;
  63.   font-weight: inherit;
  64. }
  65.  
  66. .menu-accel,
  67. .menu-iconic-accel {
  68.   margin: 0px 2px 0px 7px !important;
  69.   padding-right: 14px;
  70.   color: inherit;
  71. }
  72.  
  73. .menu-iconic-icon {
  74.   width: 16px;
  75.   height: 16px;
  76.   list-style-image: inherit;
  77. }
  78.  
  79. /* ..... menu arrow box ..... */
  80.  
  81. .menu-right {
  82.   margin: 0px 0px 0px 6px;
  83.   width: 8px;
  84.   list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
  85. }
  86.  
  87. .menu-right[_moz-menuactive="true"] {
  88.   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
  89. }
  90.  
  91. .menu-right[disabled="true"] {
  92.   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
  93. }
  94.  
  95. /* ::::: menu/menuitems in menubar ::::: */
  96.  
  97. menubar > menu {
  98.   border: 0px solid transparent !important;
  99.   padding: 2px 5px 2px 7px;
  100.   margin: 1px 0px 1px 0px !important;
  101. }
  102.  
  103. menubar > menu[_moz-menuactive="true"] {
  104.   border-top: 1px solid ThreeDHighlight;
  105.   border-right: 1px solid ThreeDShadow;
  106.   border-bottom: 1px solid ThreeDShadow;
  107.   border-left: 1px solid ThreeDHighlight;
  108. }
  109.  
  110. menubar > menu[_moz-menuactive="true"][open="true"] {
  111.   border-top: 1px solid ThreeDShadow;
  112.   border-right: 1px solid ThreeDHighlight;
  113.   border-bottom: 1px solid ThreeDHighlight;
  114.   border-left: 1px solid ThreeDShadow;
  115. }
  116.  
  117. menubar > menu:hover {
  118.   color: highlighttext;
  119.   background-color: highlight;
  120. }
  121.  
  122. /* ..... internal content .... */
  123.  
  124. .menubar-left {
  125.   margin: 0px 2px 0px 0px;
  126.   color: inherit;
  127. }
  128.  
  129. .menubar-text {
  130.   margin: 0px 2px 0px 0px !important;
  131.   color: inherit;
  132. }
  133.  
  134. /* ::::: menu/menuitems in popups ::::: */
  135.  
  136. menupopup > menu,
  137. popup > menu,
  138. menupopup > menuitem,
  139. popup > menuitem {
  140.   padding: 2px;
  141.   max-width: 42em;
  142. }
  143.  
  144. menupopup > menu[_moz-menuactive="true"],
  145. menupopup > menuitem[_moz-menuactive="true"],
  146. popup > menu[_moz-menuactive="true"],
  147. popup > menuitem[_moz-menuactive="true"] {
  148.   background-color: Highlight;
  149.   color: HighlightText;
  150. }
  151.  
  152. /* ::::: menu/menuitems in menulist popups ::::: */
  153.  
  154. .menulist-menupopup > menuitem,
  155. menulist > menupopup > menuitem,
  156. .menulist-menupopup > menu,
  157. menulist > menupopup > menu {
  158.   border: 1px solid transparent;
  159.   padding: 1px 30px 1px 5px;
  160.   max-width: none;
  161.   font: message-box;
  162.   color: -moz-FieldText;
  163. }
  164.     
  165. .menulist-menupopup > menuitem > .menu-iconic-left,
  166. menulist > menupopup > menuitem > .menu-iconic-left,
  167. .menulist-menupopup > menu > .menu-iconic-left,
  168. menulist > menupopup > menu > .menu-iconic-left {
  169.   display: none;
  170. }
  171.     
  172. menulist > menupopup > menuitem[_moz-menuactive="true"] {
  173.   border: 1px dotted #F5DB95;
  174. }
  175.  
  176. /* ::::: checkbox menuitem ::::: */
  177.  
  178. menuitem[checked="true"] {
  179.   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
  180. }
  181.  
  182. menuitem[checked="true"][disabled="true"] {
  183.   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
  184. }
  185.  
  186. menuitem[checked="true"][_moz-menuactive="true"] {
  187.   list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
  188. }
  189.  
  190. /* ::::: radio menuitem ::::: */
  191.  
  192. menuitem[checked="true"][type="radio"] {
  193.   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
  194. }
  195.  
  196. menuitem[checked="true"][type="radio"][disabled="true"] {
  197.   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
  198. }
  199.  
  200. menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
  201.   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
  202. }
  203.  
  204. /* ::::: menuseparator ::::: */
  205.  
  206. menuseparator {
  207.   margin: 2px 3px;
  208.   border-top: 1px solid ThreeDShadow;
  209.   border-bottom: 1px solid ThreeDHighlight;
  210. }
  211.  
  212. menulist > menupopup > menuseparator,
  213. .menulist-menupopup > menuseparator {
  214.   margin: 2px 0;
  215.   border-top: 1px solid #000000;
  216.   border-bottom: none;
  217. }
  218.  
  219. /* ::::: autocomplete ::::: */
  220.  
  221. .autocomplete-history-popup > menuitem {
  222.   max-width: none !important;
  223.   font: message-box;
  224. }
  225.  
  226. /* ::::: tree column picker ::::: */
  227.  
  228. .treecell-popupcell-menu {
  229.   margin-left: -2px;
  230.   list-style-image: url("chrome://global/skin/columnselect.gif");
  231. }
  232.  
  233. .menu-description {
  234. font-style: italic;
  235. color: GrayText;
  236. margin-left: 1ex !important;
  237. }
  238.