home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Charamel.jar / global / menu.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-11-19  |  6.3 KB  |  270 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.  *   Alex W. (Charamel) <lucx@shaw.ca>
  23.  *
  24.  */
  25.  
  26. /* ===== menu.css =======================================================
  27.   == Styles used by XUL menu-related elements.
  28.   ======================================================================= */
  29.  
  30. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  31.  
  32. /* ::::: menu/menuitem ::::: */
  33.  
  34. menu,
  35. menuitem {
  36.   -moz-box-align: center;
  37.   color: MenuText;
  38.   font: menu;
  39.   list-style-image: none;
  40. }
  41.  
  42. menuitem[default="true"] {
  43.   font-weight: bold;
  44. }
  45.  
  46. /*menubar disabled state*/
  47. menu[disabled="true"],
  48. menu[_moz-menuactive="true"][disabled="true"]{
  49. color: #BDA791;
  50. }
  51.  
  52. /*menuitems disabled state*/
  53. menuitem[disabled="true"],
  54. menuitem[_moz-menuactive="true"][disabled="true"] {
  55. color: #BDA791; /*#D3C2B2*/
  56. }
  57.  
  58. /*menuitems with submenus - disabled*/
  59. menupopup menu[disabled="true"]{
  60. color: #BDA791;
  61. }
  62.  
  63.  
  64. /* ..... internal content .... */
  65.  
  66. .menu-text,
  67. .menu-iconic-left,
  68. .menu-iconic-text {
  69.   margin: 0px 2px 0px 0px !important;
  70.   color: inherit;
  71. }
  72.  
  73.  
  74. .menu-text {
  75.   margin-left: 18px !important;
  76.   font-weight: inherit;
  77. }
  78.  
  79. .menu-accel,
  80. .menu-iconic-accel {
  81.   margin: 0px 2px 0px 7px !important;
  82.   padding-right: 14px;
  83.   color: inherit;
  84. }
  85.  
  86. /*make keyboard accelerators right aligned*/
  87. menuitem > hbox{
  88. -moz-box-pack:end;
  89. }
  90.  
  91. .menu-iconic-left {
  92. width: 16px;
  93. -moz-image-region: auto; /* cut off image-region inheritance in toolbaricon menupopups*/
  94. }
  95.  
  96.  
  97. /* ..... menu arrow box ..... */
  98.  
  99. .menu-right {
  100. margin: 0px 0px 0px 6px;
  101. width: 8px;
  102. list-style-image: url("chrome://global/skin/menu/Menu-arrow.png");
  103. -moz-image-region: auto; /* cut off image-region inheritance in toolbaricon menupopups*/
  104.  
  105. }
  106.  
  107. .menu-right[_moz-menuactive="true"] {
  108.   list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.png");
  109. }
  110.  
  111. .menu-right[disabled="true"] {
  112.   list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.png") !important;
  113. }
  114.  
  115. /* ::::: menu/menuitems in menubar ::::: */
  116.  
  117. menubar > menu {
  118.   padding: 2px 5px 2px 7px;
  119. }
  120. /*hover*/
  121. menubar > menu[_moz-menuactive="true"] {
  122. /*background:#F6F0E6;*/
  123. }
  124. /*open*/
  125. menubar > menu[_moz-menuactive="true"][open="true"]{
  126. background:#1D81CD;
  127. color:white;
  128. }
  129.  
  130. /*when alt is pressed*/
  131. menubar > menu[_moz-menuactive="true"]{
  132. /* not used becuase it conflicts with :hover */
  133. }
  134.  
  135. /* ..... internal content .... */
  136.  
  137. .menubar-left {
  138.   margin: 0px 2px 0px 0px;
  139.   color: inherit;
  140. }
  141.  
  142. .menubar-text {
  143.   margin: 0px 2px 0px 0px !important;
  144.   color: inherit;
  145. }
  146.  
  147. /* ::::: menu/menuitems in popups ::::: */
  148.  
  149. menupopup > menu,
  150. popup > menu,
  151. menupopup > menuitem,
  152. popup > menuitem {
  153.   padding: 3px;
  154.   max-width: 42em;
  155. }
  156.  
  157. /*Menu item hilite color*/
  158. menupopup > menu[_moz-menuactive="true"],
  159. menupopup > menuitem[_moz-menuactive="true"],
  160. popup > menu[_moz-menuactive="true"],
  161. popup > menuitem[_moz-menuactive="true"] {
  162.   background-color: #1D81CD;
  163.   color: white;
  164. }
  165.  
  166.  
  167. /*mouseover over disabled item*/
  168. menuitem[disabled="true"][_moz-menuactive="true"],
  169. /*disabled menuitmes with submenus*/
  170. menupopup menu[disabled="true"][_moz-menuactive="true"],
  171. /*disabled menuitmes with submenus in context menus*/
  172. popup menu[disabled="true"][_moz-menuactive="true"]{
  173. background:#EFE6DD !important;
  174. }
  175.  
  176.  
  177. /* ::::: menu/menuitems in menulist popups ::::: */
  178.  
  179. .menulist-menupopup > menuitem,
  180. menulist > menupopup > menuitem,
  181. .menulist-menupopup > menu,
  182. menulist > menupopup > menu {
  183.   border: 1px solid transparent;
  184.   padding: 1px 30px 1px 5px;
  185.   max-width: none;
  186.   font: message-box;
  187.   color: -moz-FieldText;
  188. }
  189.  
  190. .menulist-menupopup > menuitem > .menu-iconic-left,
  191. menulist > menupopup > menuitem > .menu-iconic-left,
  192. .menulist-menupopup > menu > .menu-iconic-left,
  193. menulist > menupopup > menu > .menu-iconic-left {
  194.   display: none;
  195. }
  196.  
  197. /*focus rectangle on hilited menulist items */
  198. menulist > menupopup > menuitem[_moz-menuactive="true"] {
  199. }
  200.  
  201. /* ::::: checkbox menuitem ::::: */
  202.  
  203. menuitem[checked="true"] {
  204.   list-style-image: url("chrome://global/skin/menu/menu-check.gif");
  205. }
  206.  
  207. menuitem[checked="true"][disabled="true"] {
  208.   list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
  209. }
  210.  
  211. menuitem[checked="true"][_moz-menuactive="true"] {
  212.   list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
  213. }
  214.  
  215. /* ::::: radio menuitem ::::: */
  216.  
  217. menuitem[checked="true"][type="radio"] {
  218.   list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
  219. }
  220.  
  221. menuitem[checked="true"][type="radio"][disabled="true"] {
  222.   list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
  223. }
  224.  
  225. menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
  226.   list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
  227. }
  228.  
  229. /* ::::: menuseparator ::::: */
  230.  
  231. menuseparator {
  232. margin: 3px 0px;
  233. border-top-color:#F4EFEA;
  234. border-bottom-color:#FEFEFE;
  235. border-width:1px 0px;
  236. border-style:solid;
  237. }
  238.  
  239.  
  240. /*menulist separators*/
  241. menulist > menupopup > menuseparator,
  242. .menulist-menupopup > menuseparator {
  243. border-top-color:#DFD2C0;
  244. }
  245.  
  246.  
  247. /*make personal toolbar menus look like toolbars*/
  248.  
  249. /*personal toolbar separators*/
  250. #personal-bookmarks menuseparator{
  251. border-color:#DFD2C0 !important;
  252. border-bottom:none;
  253. }   
  254.  
  255.  
  256.  
  257. /* ::::: autocomplete ::::: */
  258.  
  259. .autocomplete-history-popup > menuitem {
  260.   max-width: none !important;
  261.   font: message-box;
  262. }
  263.  
  264. /* ::::: tree column picker ::::: */
  265.  
  266. .treecell-popupcell-menu {
  267.   margin-left: -2px;
  268.   list-style-image: url("chrome://global/skin/columnselect.gif");
  269. }
  270.