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 / menu.css < prev    next >
Cascading Style Sheet File  |  2005-07-29  |  6KB  |  234 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: black;
  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: #888888;
  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-left {
  74.   width: 16px;
  75. }
  76.  
  77. /* ..... menu arrow box ..... */
  78.  
  79. .menu-right {
  80.   margin: 0px 0px 0px 6px;
  81.   width: 8px;
  82.   list-style-image: url("chrome://global/skin/menu/Menu-arrow.png");
  83.   -moz-image-region: auto;
  84. }
  85.  
  86. .menu-right[_moz-menuactive="true"] {
  87.   list-style-image: url("chrome://global/skin/menu/Menu-arrow-hover.png");
  88.   -moz-image-region: auto;
  89. }
  90.  
  91. .menu-right[disabled="true"] {
  92.   list-style-image: url("chrome://global/skin/menu/Menu-arrow-disabled.png") !important;
  93.   -moz-image-region: auto;
  94. }
  95.  
  96. /* ::::: menu/menuitems in menubar ::::: */
  97.  
  98. menubar > menu {
  99.   border: 1px solid transparent;
  100.   padding: 2px 5px 2px 7px;
  101.   margin: 1px 0px 1px 0px;
  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. 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: #c8e3eb;*/
  143.     background-color: Highlight;
  144.     color: HighlightText;
  145. }
  146.  
  147. /* ::::: menu/menuitems in menulist popups ::::: */
  148.  
  149. .menulist-menupopup > menuitem,
  150. menulist > menupopup > menuitem,
  151. .menulist-menupopup > menu,
  152. menulist > menupopup > menu {
  153.   border: 1px solid transparent;
  154.   padding: 1px 30px 1px 5px;
  155.   max-width: none;
  156.   font: message-box;
  157.   color: -moz-FieldText;
  158. }
  159.  
  160. .menulist-menupopup > menuitem > .menu-iconic-left,
  161. menulist > menupopup > menuitem > .menu-iconic-left,
  162. .menulist-menupopup > menu > .menu-iconic-left,
  163. menulist > menupopup > menu > .menu-iconic-left {
  164.   display: none;
  165. }
  166.  
  167. menulist > menupopup > menuitem[_moz-menuactive="true"] {
  168.   border: 1px dotted #F5DB95;
  169. }
  170.  
  171. /* ::::: checkbox menuitem ::::: */
  172.  
  173. menuitem[checked="true"] {
  174.   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
  175.   -moz-image-region: auto;
  176. }
  177.  
  178. menuitem[checked="true"][disabled="true"] {
  179.   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
  180.   -moz-image-region: auto;
  181. }
  182.  
  183. menuitem[checked="true"][_moz-menuactive="true"] {
  184.   list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
  185.   -moz-image-region: auto;
  186. }
  187.  
  188. /* ::::: radio menuitem ::::: */
  189.  
  190. menuitem[checked="true"][type="radio"] {
  191.   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
  192.   -moz-image-region: auto;
  193. }
  194.  
  195. menuitem[checked="true"][type="radio"][disabled="true"] {
  196.   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
  197.   -moz-image-region: auto;
  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.   -moz-image-region: auto;
  203. }
  204.  
  205. /* ::::: menuseparator ::::: */
  206.  
  207. menuseparator {
  208.   margin: 2px 3px;
  209.   border-top: 1px solid ThreeDShadow;
  210.   border-bottom: 1px solid ThreeDHighlight;
  211. }
  212.  
  213. menulist > menupopup > menuseparator,
  214. .menulist-menupopup > menuseparator {
  215.   margin: 2px 0;
  216.   border-top: 1px solid #000000;
  217.   border-bottom: none;
  218. }
  219.  
  220. /* ::::: autocomplete ::::: */
  221.  
  222. .autocomplete-history-popup > menuitem {
  223.   max-width: none !important;
  224.   font: message-box;
  225. }
  226.  
  227. /* ::::: tree column picker ::::: */
  228.  
  229. .treecell-popupcell-menu {
  230.   margin-left: -2px;
  231.   list-style-image: url("chrome://global/skin/columnselect.gif");
  232.   -moz-image-region: auto;
  233. }
  234.