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