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